1 | initial version |
Python cv2 module is a wrapper around original C++ code. ie those functions are not implemented in Python, but implemented in C++. Then there is "bridge" code which helps you to call these functions from Python. So to find a function, you need to search in origin C++ codes.
For example, you need to know how cv2.equalizeHist() is working. You go directly where it is implemented in C++ (ie opencv/modules/imgproc/src/histogram.cpp).
So how they are called from Python? go to opencv2/modules/python/src2/. There are some header parser (hdr_parser.py) which parse header files and some bindings generator (gen2.py) which generates the "bridge" code. Now with the help of cv2.cpp (contains the data conversion from Python <--> C++), cv2 modules is created.
Hope it helps...