Commit f014fb0a authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

restored the ordering of SURF constructor parameters (ticket #1704)

parent 8e3f1c09
...@@ -111,8 +111,8 @@ public: ...@@ -111,8 +111,8 @@ public:
SURF(); SURF();
//! the full constructor taking all the necessary parameters //! the full constructor taking all the necessary parameters
explicit SURF(double _hessianThreshold, explicit SURF(double _hessianThreshold,
bool _extended=true, bool _upright=false, int _nOctaves=4, int _nOctaveLayers=2,
int _nOctaves=4, int _nOctaveLayers=2); bool _extended=true, bool _upright=false);
//! returns the descriptor size in float's (64 or 128) //! returns the descriptor size in float's (64 or 128)
int descriptorSize() const; int descriptorSize() const;
......
...@@ -819,7 +819,7 @@ SURF::SURF() ...@@ -819,7 +819,7 @@ SURF::SURF()
nOctaveLayers = 2; nOctaveLayers = 2;
} }
SURF::SURF(double _threshold, bool _extended, bool _upright, int _nOctaves, int _nOctaveLayers) SURF::SURF(double _threshold, int _nOctaves, int _nOctaveLayers, bool _extended, bool _upright)
{ {
hessianThreshold = _threshold; hessianThreshold = _threshold;
extended = _extended; extended = _extended;
......
...@@ -297,7 +297,7 @@ void CV_DetectorsTest::run( int /*start_from*/ ) ...@@ -297,7 +297,7 @@ void CV_DetectorsTest::run( int /*start_from*/ )
if (exp.empty()) if (exp.empty())
return; return;
if (!testDetector(to_test, SurfNoMaskWrap(SURF(1536+512+512, true, false, 2)), exp)) if (!testDetector(to_test, SurfNoMaskWrap(SURF(1536+512+512, 2)), exp))
return; return;
LoadExpected(string(ts->get_data_path()) + "detectors/star.xml", exp); LoadExpected(string(ts->get_data_path()) + "detectors/star.xml", exp);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment