为什么我不能在opencv3中使用SurfFeatureDetector?

OpenCV中2D特征检测相关算法的头文件位于OpenCV \ Modules \ Features 2D \ Include \ OpenCV 2 \ Features 2D。HPP,除了筛选和冲浪。opencv \ modules \ non free \ include \ opencv 2 \ non free \ features 2d . HPP只包含SIFT和SURF这两个受专利保护的特性,所以不是非免费的。我们来看看具体类DescriptorExtractor的子类,都是描述符提取器,包含FreakopponentColorDescriptor的子类,都是特征检测器,包含MSERStarDetector。也称为star feature detector fast feature detector gftt detector,也称为goodbeaturestotracktester simpleblobdetector dense feature detector feature detector还提供了一系列特殊的适配器子类。用于增强或加速以前的功能检测器类网格适应的食品检测器金字塔适应的食品检测器调节器动态适应的食品检测器快速调节器适应调节器。SurfAdjusterFeature2D的子类既是FeatureDetector又是DescriptorExtractor,包括BRISKORBSIFTSURF。希望这个回答能教到鱼。