2 more warnings on Windows fixed
authorVadim Pisarevsky <vadim.pisarevsky@gmail.com>
Tue, 12 Feb 2013 22:32:10 +0000 (02:32 +0400)
committerVadim Pisarevsky <vadim.pisarevsky@gmail.com>
Tue, 12 Feb 2013 22:32:10 +0000 (02:32 +0400)
modules/imgproc/src/hough.cpp

index d1ecfa6..29fe713 100644 (file)
@@ -605,7 +605,7 @@ void cv::HoughLines( InputArray _image, OutputArray _lines,
     if( srn == 0 && stn == 0 )
         HoughLinesStandard(image, (float)rho, (float)theta, threshold, lines, INT_MAX);
     else
-        HoughLinesSDiv(image, (float)rho, (float)theta, threshold, (float)srn, (float)stn, lines, INT_MAX);
+        HoughLinesSDiv(image, (float)rho, (float)theta, threshold, cvRound(srn), cvRound(stn), lines, INT_MAX);
 
     Mat(lines).copyTo(_lines);
 }