From: Scott Breyfogle Date: Fri, 31 Jan 2014 22:26:45 +0000 (-0800) Subject: Add static cast to hough lines X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~3489^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b074c67a56b874c7d6270eaf8a6c2f1ec239c669;p=platform%2Fupstream%2Fopencv.git Add static cast to hough lines --- diff --git a/modules/imgproc/src/hough.cpp b/modules/imgproc/src/hough.cpp index 6cbc9bc..061835c 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);