【OpenCV】特征检测器 FeatureDetector

本文介绍了OpenCV库中的FeatureDetector模块,用于实现图像特征的检测和匹配。内容包括OpenCV 2.4.3提供的10种特征检测算法:FAST, STAR, SIFT, SURF, ORB, MSER, GFTT, HARRIS, Dense和SimpleBlob。这些方法在计算机视觉应用中有着广泛的应用。" 4494313,615856,Oracle 调用 DLL 故障排查指南,"['数据库', 'Oracle', 'DLL调用', '错误处理']

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

OpenCV提供FeatureDetector实现特征检测及匹配

class CV_EXPORTS FeatureDetector
{
public:
	virtual ~FeatureDetector();
	void detect( const Mat& image, vector<KeyPoint>& keypoints,
		const Mat& mask=Mat() ) const;
	void detect( const vector<Mat>& images,
		vector<vector<KeyPoint> >& keypoints,
		const vector<Mat>& masks=vector<Mat>() ) const;
	virtual void read(const FileNode&);
	virtual void write(FileStorage&) const;
	static Ptr<FeatureDetector> create( const string& detectorType );
protected:
	...
};

FeatureDetetor是虚类,通过定义FeatureDetector的对象可以使用多种特征检测方法。通过create()函数调用:

Ptr<FeatureDetector> FeatureDetector::create(const string& detectorType);

OpenCV 2.4.3提供了10种特征检测方法:

  • "FAST" – FastFeatureDetector
  • "STAR" – StarFeatureDetector
  • "SIFT" – SIFT (nonfree module)
  • "SURF" – SURF (nonfree module)
  • "ORB" – ORB
  • "MSER" – MSER
  • "GFTT" – GoodFeaturesToTrackDetector
  • "HARRIS" – GoodFeaturesToTrackDetector with Harris detector enabled
评论 19
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值