Feature Matching with FLANN Tutorial
Hello all!
I've tried this tut: http://docs.opencv.org/doc/tutorials/features2d/feature_flann_matcher/feature_flann_matcher.html#feature-flann-matcher .
When I'm adding: equalizeHist(img_1,img_1) after loading the images, the program will crash. This crash at "matcher.match( descriptors_1, descriptors_2, matches );" with error: "OpenCV Error: Unsupported format or combination of formats (type=0) in unknown function, file ......\src\opencv\modules\flann\src\miniflann.cpp, line 315"
What changes in format does equalizeHist() do? Do you have some hints for me, to evade this error? Thanks in advance. Wish you a nice weekend.
Solution: http://answers.opencv.org/question/11449/flann-algorithm-cannot-find-any-descriptor/ I was using the same image. Immi
Have you made any other changes to the code? I tried running the tutorial code with and without equalizeHist(), and even emptied the descriptors and keypoints after running their respective functions and it still worked fine on my machine.
Hi, I've just changed imread from variable to path and deleted the lines with check of arguments.Thanks for your help.