admin管理员组文章数量:1650766
1 问题
Error: The function/feature is not implemented () in cv::Feature2D::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<KeyPoint> 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;
// siftDescriptorpute(image1,keyPoint1,imageDesc1);
// siftDescriptorpute(image2,keyPoint2,imageDesc2);
本文标签: featurefunctionErrorimplementeddetectAndCompute
版权声明:本文标题:Error: The functionfeature is not implemented () in cv::Feature2D::detectAndCompute 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dongtai/1729533144a1205067.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论