Commit 7fd21d21 authored by Vladislav Vinogradov's avatar Vladislav Vinogradov

fix bug #3562:

add missing __syncthreads to edgesHysteresisLocalKernel
parent ce42593f
......@@ -293,8 +293,12 @@ namespace canny
n += smem[threadIdx.y + 2][threadIdx.x + 2] == 2;
}
__syncthreads();
if (n > 0)
smem[threadIdx.y + 1][threadIdx.x + 1] = 2;
__syncthreads();
}
const int e = smem[threadIdx.y + 1][threadIdx.x + 1];
......
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