Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

problem is here:

DescriptorExtractor* extractor = cv::ORB::create();

you need:

Ptr<Feature2D> extractor = cv::ORB::create();

if you don't use the cv::Ptr smartptr on the left side, it will simply delf-destroy !

NEVER use raw pointers with opencv !

(DescriptorExtractor is just a typedef for the more general Feature2D)

problem is here:

DescriptorExtractor* extractor = cv::ORB::create();

you need:

Ptr<Feature2D> extractor = cv::ORB::create();

it returns a cv::Ptr, and if you don't use the cv::Ptr smartptr a smartpointer on the left side, it will simply delf-destroy !

NEVER use raw pointers with opencv !

(DescriptorExtractor is just a typedef for the more general Feature2D)

problem is here:

DescriptorExtractor* extractor = cv::ORB::create();

you need:

Ptr<Feature2D> extractor = cv::ORB::create();

it returns a cv::Ptr, and if you don't use a smartpointer on the left side, it will simply delf-destroy self-destroy !

NEVER use raw pointers with opencv !

(DescriptorExtractor is just a typedef for the more general Feature2D)