DescriptorExtractor::create() returns NULL pointer
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?
any chance, you're running opencv3.0 ?
Well, no. The binary I have is named
opencv2.framework
. I'm including header files from a directory namedopencv2/
. Additionally, that function is documented as belonging to v2.4.9.