Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I have changed your code a little, using cv::Ptr instead of pointers:

cv::Ptr< cv::FeatureDetector > detector = new cv::SiftFeatureDetector();
cv::Ptr< cv::DescriptorExtractor > extractor = new cv::SiftDescriptorExtractor();

And using OpenCV 2.4.9 it works file, the allDescriptors is not empty at the end.

By the way, I have not found "opencv2\xfeatures2d\nonfree.hpp", so I have used #include <opencv2\nonfree\features2d.hpp>. Maybe it is a problem of 3.0.0?