added one more SIFT::CommonParams constructor

pull/13383/head
Maria Dimashova 14 years ago
parent 7d4f06b7f3
commit ca551ab9ae
  1. 1
      modules/features2d/include/opencv2/features2d/features2d.hpp
  2. 4
      modules/features2d/src/sift.cpp

@ -312,6 +312,7 @@ public:
CommonParams();
CommonParams( int _nOctaves, int _nOctaveLayers, int /*_firstOctave*/, int /*_angleMode*/ );
CommonParams( int _nOctaves, int _nOctaveLayers );
int nOctaves, nOctaveLayers;
int firstOctave; // it is not used now (firstOctave == 0 always)
int angleMode; // it is not used now

@ -1380,6 +1380,10 @@ SIFT::CommonParams::CommonParams( int _nOctaves, int _nOctaveLayers, int /*_firs
firstOctave(-1/*_firstOctave*/), angleMode(FIRST_ANGLE/*_angleMode*/)
{}
SIFT::CommonParams::CommonParams( int _nOctaves, int _nOctaveLayers ) :
nOctaves(_nOctaves), nOctaveLayers(_nOctaveLayers), firstOctave(-1), angleMode(FIRST_ANGLE)
{}
SIFT::DetectorParams::DetectorParams() :
threshold(GET_DEFAULT_THRESHOLD()), edgeThreshold(GET_DEFAULT_EDGE_THRESHOLD())
{}

Loading…
Cancel
Save