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

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

最近想用opencv中的特征检测与匹配,无赖老是遇到错误,查了好多博客都是千篇一律,说要勾选OPENCV_ENABLE_NONFREE,编译时我确实勾选了OPENCV_ENABLE_NONFREE,但是还是用不了,估计有很多人都是这样吧,后来我去国外网站找了下,找到了解决方法,不知道对各位遇到这种问题的有没有帮助。

问题

OpenCV(3.4.6) Error: The function/feature is not implemented () in cv::Feature2D::detectAndCompute, file E:\ck_tools\opencv3.4.6\opencv\sources\modules\features2d\src\feature2d.cpp, line 154
解决:

//xfeatures2d::SiftFeatureDetector featureDetector;
Ptr<xfeatures2d::SiftFeatureDetector> featureDetector = xfeatures2d::SiftFeatureDetector::create();
//featureDetector.detect(trainImage_gray, train_keyPoint);
featureDetector->detect(trainImage_gray, train_keyPoint);
评论 10
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值