mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 14:13:15 +08:00
restored the ordering of SURF constructor parameters (ticket #1704)
This commit is contained in:
parent
8e3f1c09d2
commit
f014fb0a0e
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user