Commit 573be75f authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #3392 from wangyan42164:houghlines_bug_fix

parents 1abc2690 0692bf5f
...@@ -303,7 +303,7 @@ HoughLinesSDiv( const Mat& img, ...@@ -303,7 +303,7 @@ HoughLinesSDiv( const Mat& img,
ti1 < halftn; ti1++, phi += theta_it, phi1 += scale_factor ) ti1 < halftn; ti1++, phi += theta_it, phi1 += scale_factor )
{ {
rv = r0 * std::cos( phi ); rv = r0 * std::cos( phi );
i = cvFloor( rv ) * tn; i = (int)rv * tn;
i += cvFloor( phi1 ); i += cvFloor( phi1 );
assert( i >= 0 ); assert( i >= 0 );
assert( i < rn * tn ); assert( i < rn * tn );
......
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