| 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)
| 2 | No.2 Revision |
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 a smartpointer on the left side, it will simply delf-destroy ! cv::Ptr smartptr
NEVER use raw pointers with opencv !
(DescriptorExtractor is just a typedef for the more general Feature2D)
| 3 | No.3 Revision |
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)