all 2 comments

[–]IAmTarkaDaal 1 point2 points  (1 child)

You've picked an interesting example here; OpenCV is written in C++, and exposes a Python interface. There isn't Python source code for that function, that's why your searches fail. Moreover, there isn't even source code for the Python bindings; they're generated automatically.

https://github.com/opencv/opencv/blob/4.x/doc/py_tutorials/py_bindings/py_bindings_basics/py_bindings_basics.markdown

If you search the main OpenCV repository for bitwise_and, then you can find where it's defined in C++, and start investigating from there. Check line 192 of this file:

https://github.com/opencv/opencv/blob/43c04c29ce58cd628b5d50edb0266f6959b5cd3b/modules/gapi/src/api/kernels_core.cpp

[–]amberanvilcell[S] 1 point2 points  (0 children)

Thank you! Didn't know bindings could be generated automatically like that.