From b074c67a56b874c7d6270eaf8a6c2f1ec239c669 Mon Sep 17 00:00:00 2001 From: Scott Breyfogle Date: Fri, 31 Jan 2014 14:26:45 -0800 Subject: [PATCH] Add static cast to hough lines --- modules/imgproc/src/hough.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/imgproc/src/hough.cpp b/modules/imgproc/src/hough.cpp index 6cbc9bcc6d..061835cc09 100644 --- a/modules/imgproc/src/hough.cpp +++ b/modules/imgproc/src/hough.cpp @@ -106,7 +106,7 @@ HoughLinesStandard( const Mat& img, float rho, float theta, memset( accum, 0, sizeof(accum[0]) * (numangle+2) * (numrho+2) ); - float ang = min_theta; + float ang = static_cast(min_theta); for(int n = 0; n < numangle; ang += theta, n++ ) { tabSin[n] = (float)(sin((double)ang) * irho);