mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 11:40:44 +08:00
Merge pull request #156 from jet47/gpu-hough-lines-fix
This commit is contained in:
commit
72a63922d2
@ -236,7 +236,7 @@ namespace cv { namespace gpu { namespace device
|
||||
const int r = blockIdx.x * blockDim.x + threadIdx.x;
|
||||
const int n = blockIdx.y * blockDim.y + threadIdx.y;
|
||||
|
||||
if (r >= accum.cols - 2 && n >= accum.rows - 2)
|
||||
if (r >= accum.cols - 2 || n >= accum.rows - 2)
|
||||
return;
|
||||
|
||||
const int curVotes = accum(n + 1, r + 1);
|
||||
|
Loading…
Reference in New Issue
Block a user