error1: no matching function for call to ‘cv::ORB::create()’
Ptr< Feature2D > detector = ORB::create();
^
// Ptr< Feature2D > detector = ORB::create();此为原代码
Ptr<Feature2D> detector = Feature2D::create ( "ORB" );
参考:https://blog.youkuaiyun.com/LittleEmperor/article/details/79698579
备注:Feature2D包含特征检测、描述、匹配等2D特征框架
error2: ‘class cv::Feature2D’ has no member named ‘detectAndCompute’ detector->detectAndComp
// detector->detectAndCompute( image, Mat(), keypoints, descriptor );此为原代码
detector->detect( image, keypoints );
detector->compute( image, keypoints, descriptor );