Add static cast to hough lines
authorScott Breyfogle <swb02009@mymail.pomona.edu>
Fri, 31 Jan 2014 22:26:45 +0000 (14:26 -0800)
committerScott Breyfogle <swb02009@mymail.pomona.edu>
Fri, 31 Jan 2014 22:26:45 +0000 (14:26 -0800)
modules/imgproc/src/hough.cpp

index 6cbc9bc..061835c 100644 (file)
@@ -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<float>(min_theta);
     for(int n = 0; n < numangle; ang += theta, n++ )
     {
         tabSin[n] = (float)(sin((double)ang) * irho);