diff --git a/modules/nonfree/include/opencv2/nonfree/features2d.hpp b/modules/nonfree/include/opencv2/nonfree/features2d.hpp index c283f11d21..f5c6e7d6f2 100644 --- a/modules/nonfree/include/opencv2/nonfree/features2d.hpp +++ b/modules/nonfree/include/opencv2/nonfree/features2d.hpp @@ -111,8 +111,8 @@ public: SURF(); //! the full constructor taking all the necessary parameters 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) int descriptorSize() const; diff --git a/modules/nonfree/src/surf.cpp b/modules/nonfree/src/surf.cpp index 66856a1d3e..5fbdcbc84f 100644 --- a/modules/nonfree/src/surf.cpp +++ b/modules/nonfree/src/surf.cpp @@ -819,7 +819,7 @@ SURF::SURF() 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; extended = _extended; diff --git a/modules/nonfree/test/test_detectors.cpp b/modules/nonfree/test/test_detectors.cpp index d9f7a8eeab..75bc521801 100644 --- a/modules/nonfree/test/test_detectors.cpp +++ b/modules/nonfree/test/test_detectors.cpp @@ -297,7 +297,7 @@ void CV_DetectorsTest::run( int /*start_from*/ ) if (exp.empty()) 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; LoadExpected(string(ts->get_data_path()) + "detectors/star.xml", exp);