Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

extractor.compute clears keypoints

If I run any one of the descriptor extractors, it clears the keypoints and returns no descriptors.

Even this simple test case:

                   cv::Mat descriptorsTest;
            std:vector<cv::KeyPoint> tester;
            cv::KeyPoint test;
            test.pt.x = 232;
            test.pt.y = 132;
            tester.push_back(test);

            OrbDescriptorExtractor extractor;                                      //tester.size = 1;
            extractor.compute(img1, tester, descriptorsTest);               //tester.size = 0;

As I step through, tester fills up so that its size is 1. As soon as the extractor.compute runs, the size goes to 0.

Why is this happening?

extractor.compute clears keypoints

If I run any one of the descriptor extractors, it clears the keypoints and returns no descriptors.

Even this simple test case:

  cv::Mat descriptorsTest;
            std:vector<cv::KeyPoint> tester;
            cv::KeyPoint test;
            test.pt.x = 232;
            test.pt.y = 132;
            tester.push_back(test);

            OrbDescriptorExtractor extractor;                                //tester.size = 1;
            extractor.compute(img1, tester, descriptorsTest);        //tester.size = 0;

As I step through, tester fills up so that its size is 1. As soon as the extractor.compute runs, the size goes to 0.

Why is this happening?