特征检测和描述(SURF)

来源:互联网 发布:windows agent 安装 编辑:程序博客网 时间:2024/05/17 22:00

特征检测和描述(SURF)


SURF (Speeded Up RobustFeatures)

1、opencv文档

SURF定义在#include <opencv2/nonfree/features2d.hpp>中

SURF::SURF
The SURF extractor constructors.
函数定义:

C++: SURF::SURF()C++: SURF::SURF(double hessianThreshold, int nOctaves=4, int nOctaveLayers=2, bool extended=true, bool upright=false )

2、opencv源码定义

/*! SURF implementation. The class implements SURF algorithm by H. Bay et al. */class CV_EXPORTS_W SURF : public Feature2D{public:    //! the default constructor    CV_WRAP SURF();    //! the full constructor taking all the necessary parameters    explicit CV_WRAP SURF(double hessianThreshold,                  int nOctaves=4, int nOctaveLayers=2,                  bool extended=true, bool upright=false);    //! returns the descriptor size in float's (64 or 128)    CV_WRAP int descriptorSize() const;    //! returns the descriptor type    CV_WRAP int descriptorType() const;    //! finds the keypoints using fast hessian detector used in SURF    void operator()(InputArray img, InputArray mask,                    CV_OUT vector<KeyPoint>& keypoints) const;    //! finds the keypoints and computes their descriptors. Optionally it can compute descriptors for the user-provided keypoints    void operator()(InputArray img, InputArray mask,                    CV_OUT vector<KeyPoint>& keypoints,                    OutputArray descriptors,                    bool useProvidedKeypoints=false) const;    AlgorithmInfo* info() const;    CV_PROP_RW double hessianThreshold;    CV_PROP_RW int nOctaves;    CV_PROP_RW int nOctaveLayers;    CV_PROP_RW bool extended;    CV_PROP_RW bool upright;protected:    void detectImpl( const Mat& image, vector<KeyPoint>& keypoints, const Mat& mask=Mat() ) const;    void computeImpl( const Mat& image, vector<KeyPoint>& keypoints, Mat& descriptors ) const;};typedef SURF SurfFeatureDetector;typedef SURF SurfDescriptorExtractor;
0 0
原创粉丝点击