#include "opencv2/features2d.hpp"
-#ifdef __cplusplus
-
namespace cv
{
class CV_EXPORTS_W SIFT : public Feature2D
{
public:
- CV_WRAP explicit SIFT( int nfeatures=0, int nOctaveLayers=3,
- double contrastThreshold=0.04, double edgeThreshold=10,
- double sigma=1.6);
+ CV_WRAP explicit SIFT( int nfeatures = 0, int nOctaveLayers = 3,
+ double contrastThreshold = 0.04, double edgeThreshold = 10,
+ double sigma = 1.6);
//! returns the descriptor size in floats (128)
CV_WRAP int descriptorSize() const;
void operator()(InputArray img, InputArray mask,
std::vector<KeyPoint>& keypoints,
OutputArray descriptors,
- bool useProvidedKeypoints=false) const;
+ bool useProvidedKeypoints = false) const;
AlgorithmInfo* info() const;
std::vector<KeyPoint>& keypoints ) const;
protected:
- void detectImpl( const Mat& image, std::vector<KeyPoint>& keypoints, const Mat& mask=Mat() ) const;
+ void detectImpl( const Mat& image, std::vector<KeyPoint>& keypoints, const Mat& mask = Mat() ) const;
void computeImpl( const Mat& image, std::vector<KeyPoint>& keypoints, Mat& descriptors ) const;
CV_PROP_RW int nfeatures;
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);
+ 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;
void operator()(InputArray img, InputArray mask,
CV_OUT std::vector<KeyPoint>& keypoints,
OutputArray descriptors,
- bool useProvidedKeypoints=false) const;
+ bool useProvidedKeypoints = false) const;
AlgorithmInfo* info() const;
protected:
- void detectImpl( const Mat& image, std::vector<KeyPoint>& keypoints, const Mat& mask=Mat() ) const;
+ void detectImpl( const Mat& image, std::vector<KeyPoint>& keypoints, const Mat& mask = Mat() ) const;
void computeImpl( const Mat& image, std::vector<KeyPoint>& keypoints, Mat& descriptors ) const;
};
} /* namespace cv */
-#endif /* __cplusplus */
-
#endif
-
-/* End of file. */