Error: The function/feature is not implemented () in cv::Feature2D::detectAndCompute

1成就

错误:函数/功用未在cv::feature 2d::detectAndCompute中实现()

2治疗办法

利用指针而不是把持数据。

```cpp//提取特点点 vector<KeyPoint> keyPoint1,keyPoint2; Ptr<xfeatures2d::SiftFeatureDetector> featureDetector = xfeatures2d::SiftFeatureDetector::create(); featureDetector->detect(image1, keyPoint1); featureDetector->detect(image2, keyPoint2);// SiftFeatureDetector siftDetector; // 海塞矩阵阈值// vector keyPoint1,keyPoint2;// siftDetector.detect(image1,keyPoint1);// siftDetector.detect(image2,keyPoint2); //特点点描画,为下边的特点点婚配做预备 Mat imageDesc1,imageDesc2; Ptr<xfeatures2d::SiftDescriptorExtractor> siftDescriptor = xfeatures2d::SiftDescriptorExtractor::create(); siftDescriptor->compute(image1, keyPoint1, imageDesc1); siftDescriptor->compute(image2, keyPoint1, imageDesc2);// SiftDescriptorExtractor siftDescriptor;// Mat imageDesc1,imageDesc2;// siftDescriptor.compute(image1,keyPoint1,imageDesc1);// siftDescriptor.compute(image2,keyPoint2,imageDesc2);

您可以还会对下面的文章感兴趣:

最新评论

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。