首页 > 解决方案 > OpenCV 4.0:类“cv::FastFeatureDetector”没有成员“DetectorType”

问题描述

我尝试使用 opencv_contrib 构建 OpenCV 4.0,但没有成功。

xfeatures2d.hpp有以下行,错误在

cv::FastFeatureDetector::DetectorType

CV_EXPORTS void FASTForPointSet( InputArray image, CV_IN_OUT std::vector<KeyPoint>& keypoints,
                  int threshold, bool nonmaxSuppression=true, cv::FastFeatureDetector::DetectorType type=FastFeatureDetector::TYPE_9_16);

我检查了 FasFeatureDetector 及其父级,该类确实没有 DetectorType 的定义。

我在此处发布以查看是否有其他人有此错误,或者是否是使用带有 opencv_contrib 的 OpenCV 4.0-alpha 的错误。如果有人可以提供帮助,谢谢。

标签: opencv

解决方案


推荐阅读