DescriptorExtractor::create() returns NULL pointer

asked 2014-09-05 14:46:53 -0500

kenilworth gravatar image

I'm trying to instantiate a BRIEF Feature extractor:

cv::Ptr<cv::DescriptorExtractor> extractor = cv::DescriptorExtractor::create("BRIEF");

But the returned Ptr is empty (its owner and stored values are NULL).

Note that I have #include "opencv2/features2d/features2d.hpp" on the top of my code.

What's wrong?

edit retag flag offensive close merge delete



any chance, you're running opencv3.0 ?

berak gravatar imageberak ( 2014-09-05 15:08:01 -0500 )edit

Well, no. The binary I have is named opencv2.framework. I'm including header files from a directory named opencv2/. Additionally, that function is documented as belonging to v2.4.9.

kenilworth gravatar imagekenilworth ( 2014-09-05 15:20:38 -0500 )edit