1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +04:00

Optimization for HoughLinesP

This commit is contained in:
Alexander Karsakov
2014-10-07 14:57:02 +04:00
parent eaf5a163b1
commit 66a8acfd3d
4 changed files with 37 additions and 40 deletions
@@ -117,7 +117,7 @@ namespace cv { namespace cuda { namespace device
if (dir.x < 0)
dir = -dir;
}
else if (pb[1].x == cols - 1 && (pb[0].y >= 0 && pb[0].y < rows))
else if (pb[1].x == cols - 1 && (pb[1].y >= 0 && pb[1].y < rows))
{
p0 = pb[1];
if (dir.x > 0)