fixed bug in gpu::HoughLines
This commit is contained in:
parent
6484732509
commit
a9919e01d0
@ -236,7 +236,7 @@ namespace cv { namespace gpu { namespace device
|
|||||||
const int r = blockIdx.x * blockDim.x + threadIdx.x;
|
const int r = blockIdx.x * blockDim.x + threadIdx.x;
|
||||||
const int n = blockIdx.y * blockDim.y + threadIdx.y;
|
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;
|
return;
|
||||||
|
|
||||||
const int curVotes = accum(n + 1, r + 1);
|
const int curVotes = accum(n + 1, r + 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user