How can I change the norm used by cv::FlannBasedMatcher?
Hi, I use the following code to create a cv::FlannBasedMatcher.
new cv::FlannBasedMatcher(new cv::flann::LshIndexParams(6, 12, 2));
How can I change the norm used by the matcher?
Thx
I am afraid that you cannot do that, if you see this documentation. You can instead do something about the
KDTreeIndexParams
, orSearchParams
. See this for more info.Basically there are these norm types defined in the cv2.NORM_L2,cv2.NORM_L1,cv2.NORM_HAMMING,cv2.NORM_HAMMING2. This documentation may help you : http://docs.opencv.org/trunk/doc/py_tutorials/py_feature2d/py_matcher/py_matcher.html