Ask Your Question

fuego's profile - activity

2013-04-06 12:47:33 -0500 answered a question simple image display code not working in qt creator

Did you find a solution because i have the same problem ! I have exactly the same code.

2013-04-04 05:37:29 -0500 commented answer GenericDescriptorMatcher for Fern algorithm

Any others suggestions?

2013-04-03 02:50:46 -0500 commented answer GenericDescriptorMatcher for Fern algorithm

Quanta : Exactly, the images are the train images with their respective keypoints (for each one). And "testKeypoints" are the computed keypoints of "testImage". I have checked that the keypoints are not out of the images.

So i don't know why this error appears.

Adding more precision to my application, i try to find an object in a panorama. However the panorama it is not just one image but many tiles. Consequently, my test image is not exactly the same of a tile but it looks like one of them.

2013-04-02 08:53:26 -0500 received badge  Supporter (source)
2013-04-02 07:58:18 -0500 commented answer GenericDescriptorMatcher for Fern algorithm

Thank you for your interest.

It's a summary of my code:

vector<cv::Mat> images; vector< vector<cv::KeyPoint> > keypoints;

descriptorMatcher = cv::GenericDescriptorMatcher::create("FERN", filename); descriptorMatcher->add(images, keypoints); descriptorMatcher->train();

cv::Mat testImage = cv::imread("test.jpg"); vector<cv::KeyPoint> testKeypoints;

descriptorMatcher->classify(testImage, testKeypoints);"

The keypoints are found with SURF detection.

In the "classify" method, it will have to be the query image, right? So why there are an error with this variable (images) ?

2013-04-02 05:48:15 -0500 asked a question 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 ?