#include <features2d.hpp>
Classes | |
struct | CommonParams |
struct | DescriptorParams |
struct | DetectorParams |
Public Member Functions | |
int | descriptorSize () const |
returns the descriptor size in floats (128) | |
CommonParams | getCommonParams () const |
DescriptorParams | getDescriptorParams () const |
DetectorParams | getDetectorParams () const |
void | operator() (const Mat &img, const Mat &mask, vector< KeyPoint > &keypoints, Mat &descriptors, bool useProvidedKeypoints=false) const |
void | operator() (const Mat &img, const Mat &mask, vector< KeyPoint > &keypoints) const |
finds the keypoints using SIFT algorithm | |
SIFT (const CommonParams &_commParams, const DetectorParams &_detectorParams=DetectorParams(), const DescriptorParams &_descriptorParams=DescriptorParams()) | |
SIFT (double _magnification, bool _isNormalize=true, bool _recalculateAngles=true, int _nOctaves=CommonParams::DEFAULT_NOCTAVES, int _nOctaveLayers=CommonParams::DEFAULT_NOCTAVE_LAYERS, int _firstOctave=CommonParams::DEFAULT_FIRST_OCTAVE, int _angleMode=CommonParams::FIRST_ANGLE) | |
sift-descriptor constructor | |
SIFT (double _threshold, double _edgeThreshold, int _nOctaves=CommonParams::DEFAULT_NOCTAVES, int _nOctaveLayers=CommonParams::DEFAULT_NOCTAVE_LAYERS, int _firstOctave=CommonParams::DEFAULT_FIRST_OCTAVE, int _angleMode=CommonParams::FIRST_ANGLE) | |
sift-detector constructor | |
SIFT () | |
Protected Attributes | |
CommonParams | commParams |
DescriptorParams | descriptorParams |
DetectorParams | detectorParams |
The class implements SIFT algorithm by D. Lowe.
cv::SIFT::SIFT | ( | ) |
cv::SIFT::SIFT | ( | double | _threshold, | |
double | _edgeThreshold, | |||
int | _nOctaves = CommonParams::DEFAULT_NOCTAVES , |
|||
int | _nOctaveLayers = CommonParams::DEFAULT_NOCTAVE_LAYERS , |
|||
int | _firstOctave = CommonParams::DEFAULT_FIRST_OCTAVE , |
|||
int | _angleMode = CommonParams::FIRST_ANGLE | |||
) |
sift-detector constructor
cv::SIFT::SIFT | ( | double | _magnification, | |
bool | _isNormalize = true , |
|||
bool | _recalculateAngles = true , |
|||
int | _nOctaves = CommonParams::DEFAULT_NOCTAVES , |
|||
int | _nOctaveLayers = CommonParams::DEFAULT_NOCTAVE_LAYERS , |
|||
int | _firstOctave = CommonParams::DEFAULT_FIRST_OCTAVE , |
|||
int | _angleMode = CommonParams::FIRST_ANGLE | |||
) |
sift-descriptor constructor
cv::SIFT::SIFT | ( | const CommonParams & | _commParams, | |
const DetectorParams & | _detectorParams = DetectorParams() , |
|||
const DescriptorParams & | _descriptorParams = DescriptorParams() | |||
) |
int cv::SIFT::descriptorSize | ( | ) | const [inline] |
returns the descriptor size in floats (128)
CommonParams cv::SIFT::getCommonParams | ( | ) | const [inline] |
DescriptorParams cv::SIFT::getDescriptorParams | ( | ) | const [inline] |
DetectorParams cv::SIFT::getDetectorParams | ( | ) | const [inline] |
void cv::SIFT::operator() | ( | const Mat & | img, | |
const Mat & | mask, | |||
vector< KeyPoint > & | keypoints, | |||
Mat & | descriptors, | |||
bool | useProvidedKeypoints = false | |||
) | const |
finds the keypoints and computes descriptors for them using SIFT algorithm. Optionally it can compute descriptors for the user-provided keypoints
void cv::SIFT::operator() | ( | const Mat & | img, | |
const Mat & | mask, | |||
vector< KeyPoint > & | keypoints | |||
) | const |
finds the keypoints using SIFT algorithm
CommonParams cv::SIFT::commParams [protected] |
DescriptorParams cv::SIFT::descriptorParams [protected] |
DetectorParams cv::SIFT::detectorParams [protected] |