Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

GenericDescriptorMatcher for Fern algorithm

Hi everyone,

I'm french so sorry for my english. I try to implement the Fern algorithm with the GenericDescriptorMatcher but i have a problem.

I'm using many pictures in order to match the test image with this database. However when i launch the method "classify" (of GenericDescriptorMatcher)

"ps_descriptorMatcher->classify(s_testImage, s_testKeypoints);"

i have this error:

OpenCV Error: Assertion failed (imgIdx < (int)images.size()) in getKeyPoint, file /build/buildd/opencv-2.3.1/modules/features2d/src/matchers.cpp, line 918 terminate called after throwing an instance of 'cv::Exception' what(): /build/buildd/opencv-2.3.1/modules/features2d/src/matchers.cpp:918: error: (-215) imgIdx < (int)images.size() in function getKeyPoint

I don't understand why the idx is bigger than the image?

Can you help me please ?