123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
- #ifndef __OPENCV_XFEATURES2D_FEATURES_2D_HPP__
- #define __OPENCV_XFEATURES2D_FEATURES_2D_HPP__
- #include "opencv2/features2d.hpp"
- namespace cv
- {
- namespace xfeatures2d
- {
- class CV_EXPORTS_W SIFT : public Feature2D
- {
- public:
-
- CV_WRAP static Ptr<SIFT> create( int nfeatures = 0, int nOctaveLayers = 3,
- double contrastThreshold = 0.04, double edgeThreshold = 10,
- double sigma = 1.6);
- };
- typedef SIFT SiftFeatureDetector;
- typedef SIFT SiftDescriptorExtractor;
- class CV_EXPORTS_W SURF : public Feature2D
- {
- public:
-
- CV_WRAP static Ptr<SURF> create(double hessianThreshold=100,
- int nOctaves = 4, int nOctaveLayers = 3,
- bool extended = false, bool upright = false);
- CV_WRAP virtual void setHessianThreshold(double hessianThreshold) = 0;
- CV_WRAP virtual double getHessianThreshold() const = 0;
- CV_WRAP virtual void setNOctaves(int nOctaves) = 0;
- CV_WRAP virtual int getNOctaves() const = 0;
- CV_WRAP virtual void setNOctaveLayers(int nOctaveLayers) = 0;
- CV_WRAP virtual int getNOctaveLayers() const = 0;
- CV_WRAP virtual void setExtended(bool extended) = 0;
- CV_WRAP virtual bool getExtended() const = 0;
- CV_WRAP virtual void setUpright(bool upright) = 0;
- CV_WRAP virtual bool getUpright() const = 0;
- };
- typedef SURF SurfFeatureDetector;
- typedef SURF SurfDescriptorExtractor;
- }
- }
- #endif
|