diff --git a/modules/gpu/src/cuda/mathfunc.cu b/modules/gpu/src/cuda/mathfunc.cu index 3e93aa5d0a..0a644d46dd 100644 --- a/modules/gpu/src/cuda/mathfunc.cu +++ b/modules/gpu/src/cuda/mathfunc.cu @@ -136,7 +136,7 @@ namespace cv { namespace gpu { namespace mathfunc template void cartToPolar_caller(const DevMem2Df& x, const DevMem2Df& y, const DevMem2Df& mag, const DevMem2Df& angle, bool angleInDegrees, cudaStream_t stream) { - dim3 threads(16, 16, 1); + dim3 threads(32, 8, 1); dim3 grid(1, 1, 1); grid.x = divUp(x.cols, threads.x); @@ -186,7 +186,7 @@ namespace cv { namespace gpu { namespace mathfunc template void polarToCart_caller(const DevMem2Df& mag, const DevMem2Df& angle, const DevMem2Df& x, const DevMem2Df& y, bool angleInDegrees, cudaStream_t stream) { - dim3 threads(16, 16, 1); + dim3 threads(32, 8, 1); dim3 grid(1, 1, 1); grid.x = divUp(mag.cols, threads.x);