From ffc5a7b809d9507073ef9f001f72434ada587455 Mon Sep 17 00:00:00 2001 From: Anatoly Baksheev Date: Thu, 15 Sep 2011 05:51:41 +0000 Subject: [PATCH] minor --- modules/gpu/src/cuda/mathfunc.cu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);