From 11124010aa9cd28de3747b85e4f5e40664d60e7c Mon Sep 17 00:00:00 2001 From: Patrick Snape Date: Thu, 20 Aug 2015 11:14:48 +0100 Subject: [PATCH] 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. --- modules/line_descriptor/src/binary_descriptor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/line_descriptor/src/binary_descriptor.cpp b/modules/line_descriptor/src/binary_descriptor.cpp index 546431ccb..16f124992 100644 --- a/modules/line_descriptor/src/binary_descriptor.cpp +++ b/modules/line_descriptor/src/binary_descriptor.cpp @@ -692,7 +692,7 @@ int BinaryDescriptor::OctaveKeyLines( cv::Mat& image, ScaleLines &keyLines ) /* sigma values and reduction factor used in Gaussian pyramids */ float preSigma2 = 0; //orignal image is not blurred, has zero sigma; 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 */ for ( int octaveCount = 0; octaveCount < params.numOfOctave_; octaveCount++ )