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);
2 | No.2 Revision |
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);
3 | No.3 Revision |
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);