mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 14:13:15 +08:00
minor
This commit is contained in:
parent
b873fa818f
commit
21f5cc7e6e
@ -456,7 +456,7 @@ void edgesHysteresisGlobal_gpu(PtrStepi map, ushort2* st1, ushort2* st2, int row
|
||||
cudaSafeCall( cudaMemset(counter_ptr, 0, sizeof(unsigned int)) );
|
||||
|
||||
dim3 block(128, 1, 1);
|
||||
dim3 grid(min(count, 65535u), divUp(count, 65535), 1);
|
||||
dim3 grid(std::min(count, 65535u), divUp(count, 65535), 1);
|
||||
edgesHysteresisGlobal<<<grid, block>>>(map, st1, st2, rows, cols, count);
|
||||
cudaSafeCall( cudaGetLastError() );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user