Commit 5e1808c7 authored by Vladislav Vinogradov's avatar Vladislav Vinogradov

fixed bug in gpu::Canny

parent 1d1da9c5
......@@ -339,6 +339,11 @@ namespace cv { namespace gpu { namespace device
void edgesHysteresisLocal_gpu(PtrStepi map, ushort2* st1, int rows, int cols)
{
void* counter_ptr;
cudaSafeCall( cudaGetSymbolAddress(&counter_ptr, counter) );
cudaSafeCall( cudaMemset(counter_ptr, 0, sizeof(unsigned int)) );
dim3 block(16, 16, 1);
dim3 grid(divUp(cols, block.x), divUp(rows, block.y), 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