mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-23 00:49:38 +08:00
sqrt is not overriden for integers in MSVC<2012
Adding the decimal point means that VS doesn't complain about lack of overrides for sqrt with integers.
This commit is contained in:
@@ -692,7 +692,7 @@ int BinaryDescriptor::OctaveKeyLines( cv::Mat& image, ScaleLines &keyLines )
|
|||||||
/* sigma values and reduction factor used in Gaussian pyramids */
|
/* sigma values and reduction factor used in Gaussian pyramids */
|
||||||
float preSigma2 = 0; //orignal image is not blurred, has zero sigma;
|
float preSigma2 = 0; //orignal image is not blurred, has zero sigma;
|
||||||
float curSigma2 = 1.0; //[sqrt(2)]^0=1;
|
float curSigma2 = 1.0; //[sqrt(2)]^0=1;
|
||||||
double factor = sqrt( 2 ); //the down sample factor between connective two octave images
|
double factor = sqrt( 2.0 ); //the down sample factor between connective two octave images
|
||||||
|
|
||||||
/* loop over number of octaves */
|
/* loop over number of octaves */
|
||||||
for ( int octaveCount = 0; octaveCount < params.numOfOctave_; octaveCount++ )
|
for ( int octaveCount = 0; octaveCount < params.numOfOctave_; octaveCount++ )
|
||||||
|
Reference in New Issue
Block a user