Commit b074c67a authored by Scott Breyfogle's avatar Scott Breyfogle

Add static cast to hough lines

parent 0ea45430
...@@ -106,7 +106,7 @@ HoughLinesStandard( const Mat& img, float rho, float theta, ...@@ -106,7 +106,7 @@ HoughLinesStandard( const Mat& img, float rho, float theta,
memset( accum, 0, sizeof(accum[0]) * (numangle+2) * (numrho+2) ); 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++ ) for(int n = 0; n < numangle; ang += theta, n++ )
{ {
tabSin[n] = (float)(sin((double)ang) * irho); tabSin[n] = (float)(sin((double)ang) * irho);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment