Ask Your Question

yougo's profile - activity

2017-10-26 07:14:31 -0600 received badge  Famous Question (source)
2016-09-05 10:40:12 -0600 received badge  Nice Question (source)
2016-04-14 10:43:12 -0600 received badge  Notable Question (source)
2015-06-15 09:58:49 -0600 received badge  Popular Question (source)
2014-06-05 11:05:43 -0600 received badge  Student (source)
2013-03-26 05:46:18 -0600 commented answer feature 2d: Feature Matching fails with assert (stat.cpp)

I see. I had obtained the list of possible descriptors from: http://docs.opencv.org/modules/features2d/doc/common_interfaces_of_feature_detectors.html No FREAK is listed. Going to see if the "common interfaces of feature detectors" also accepts this one. Thanks again.

2013-03-25 11:44:59 -0600 received badge  Supporter (source)
2013-03-25 11:44:48 -0600 commented answer feature 2d: Feature Matching fails with assert (stat.cpp)

@Guranta, Thanks for the explanation. I am new to this so I won't risk experimenting with changes.
I will do as you suggested an stick to L2 (BruteForce and FlannBased).

BTW, is that "FREAK" a typo?

2013-03-25 08:58:48 -0600 asked a question feature 2d: Feature Matching fails with assert (stat.cpp)

Hello,

I have tried to use all combinations of feature detectors, extractors and matchers. I have found that certain combinations are not allowed. These are detected and an exception thrown during runt-time. However certain combinations generate this error:

OpenCV Error: Assertion failed ((type == CV_8U && dtype == CV_32S) || dtype == CV_32F) in batchDistance, file /home/hugof/projects/recommender/opencv2.4/opencv-2.4.4/modules/core/src/stat.cpp, line 1810 terminate called after throwing an instance of 'cv::Exception' what(): /home/hugof/projects/recommender/opencv2.4/opencv-2.4.4/modules/core/src/stat.cpp:1810: error: (-215) (type == CV_8U && dtype == CV_32S) || dtype == CV_32F in function batchDistance

Of the total 1650 combinations, 169 fail with this exception (other exceptions occur in with other combinations also). My question is: is this solvable? If so, how may I solve it? (Images are loaded and converted to grey scale 8UC3).

I can make the source code available (test images are in the examples, matching_to_many_images/query.png and train*.png) but basically I copied an example in the tutorials. As an example I show some combinations that fail (see end of message, -d descriptor type, -e extractor, -m for the matcher). I can also send a text file with all 169 combinations.

Appreciate any help.

TIA, Hugo F.

option -d : GridSURF option -e : SURF option -m : BruteForce-Hamming(2)

option -d : GridSURF option -e : SURF option -m : BruteForce-Hamming

option -d : GridSURF option -e : OpponentSURF option -m : BruteForce-Hamming(2)