Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

indeed, the interface has changed in 3.0. you can no more create an instance in auto/stack memory, bit have to use the 'factory' method, which returns a Ptr<> :

Ptr<BriefDescriptorExtractor> extractor = BriefDescriptorExtractor::create();
...
extractor->compute(image, kp_vec, descriptors);

indeed, the interface has changed in 3.0. you can no more create an instance in auto/stack memory, bit have to use the 'factory' method, which returns a Ptr<> :

 # include "opencv2/xfeaturesd2d.hpp" // don't forget to link to opencv_xfeatures2d as well..
 ...
 Ptr<BriefDescriptorExtractor> extractor = BriefDescriptorExtractor::create();
 ...
 extractor->compute(image, kp_vec, descriptors);

indeed, the interface has changed in 3.0. you can no more create an instance in auto/stack memory, bit but have to use the 'factory' method, which returns a Ptr<> :

 # include "opencv2/xfeaturesd2d.hpp" // don't forget to link to opencv_xfeatures2d as well..
 ...
 Ptr<BriefDescriptorExtractor> extractor = BriefDescriptorExtractor::create();
 ...
 extractor->compute(image, kp_vec, descriptors);