40 #ifndef __EMSCRIPTEN__
42 _detector = cv::FastFeatureDetector::create(30,
44 cv::FastFeatureDetector::TYPE_9_16);
45 _descriptor = cv::xfeatures2d::BriefDescriptorExtractor::create(32,
true);
55 cv::ORB::HARRIS_SCORE,
68 #ifndef __EMSCRIPTEN__
70 _detector = cv::xfeatures2d::SURF::create(100,
78 # if CV_MAJOR_VERSION == 4 && CV_MINOR_VERSION >= 5
85 _detector = cv::xfeatures2d::SIFT::create(300,
96 "Unknown detector-descriptor type.",
106 cv::Ptr<CVFeature2D> detector,
107 cv::Ptr<CVFeature2D> descriptor)
119 assert(
_detector &&
"CVFeatureManager::detectAndDescribe: No detector!");
120 assert(
_descriptor &&
"CVFeatureManager::detectAndDescribe: No descriptor!");
123 _detector->detectAndCompute(image, mask, keypoints, descriptors);
126 _detector->detect(image, keypoints, mask);
127 _descriptor->compute(image, keypoints, descriptors);
CVDetectDescribeType
Feature detector-decriptor types.
Declares the Raul Mur ORB feature detector and descriptor.
cv::InputArray CVInputArray
cv::OutputArray CVOutputArray
vector< cv::KeyPoint > CVVKeyPoint
CVDetectDescribeType _type
Type of detector-descriptor pair.
CVDetectDescribeType type()
void setDetectorDescriptor(CVDetectDescribeType detectDescribeType, cv::Ptr< CVFeature2D > detector, cv::Ptr< CVFeature2D > descriptor)
Sets the detector and decriptor to the passed ones.
void createDetectorDescriptor(CVDetectDescribeType detectDescribeType)
Creates a detector and decriptor to the passed type.
cv::Ptr< CVFeature2D > _descriptor
CV smart pointer to the OpenCV descriptor extractor.
void detectAndDescribe(CVInputArray image, CVVKeyPoint &keypoints, CVOutputArray descriptors, CVInputArray mask=cv::noArray())
cv::Ptr< CVFeature2D > _detector
CV smart pointer to the OpenCV feature detector.
Orb detector and descriptor with distribution.
void exitMsg(const char *tag, const char *msg, const int line, const char *file)
Terminates the application with a message. No leak checking.