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

pull/13383/head
Vadim Pisarevsky 13 years ago
parent 8e3f1c09d2
commit f014fb0a0e
  1. 4
      modules/nonfree/include/opencv2/nonfree/features2d.hpp
  2. 2
      modules/nonfree/src/surf.cpp
  3. 2
      modules/nonfree/test/test_detectors.cpp

@ -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()
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*/ )
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);

Loading…
Cancel
Save