From 57d1591957e9be6ae16e6c11a239a5c59a7f2660 Mon Sep 17 00:00:00 2001 From: Tomoaki Teshima Date: Thu, 21 Jul 2016 06:42:11 +0900 Subject: [PATCH] imgproc: fix typo * indent line --- modules/imgproc/src/imgwarp.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/imgproc/src/imgwarp.cpp b/modules/imgproc/src/imgwarp.cpp index 54054883df..ff96c2fe1e 100644 --- a/modules/imgproc/src/imgwarp.cpp +++ b/modules/imgproc/src/imgwarp.cpp @@ -4617,14 +4617,14 @@ static bool ocl_linearPolar(InputArray _src, OutputArray _dst, size_t w = dsize.width; size_t h = dsize.height; String buildOptions; - unsigned mem_szie = 32; + unsigned mem_size = 32; if (flags & CV_WARP_INVERSE_MAP) { buildOptions = "-D InverseMap"; } else { - buildOptions = format("-D ForwardMap -D MEM_SIZE=%d", mem_szie); + buildOptions = format("-D ForwardMap -D MEM_SIZE=%d", mem_size); } String retval; ocl::Program p(ocl::imgproc::linearPolar_oclsrc, buildOptions, retval); @@ -4662,7 +4662,7 @@ static bool ocl_linearPolar(InputArray _src, OutputArray _dst, } size_t globalThreads[2] = { (size_t)dsize.width , (size_t)dsize.height }; - size_t localThreads[2] = { mem_szie , mem_szie }; + size_t localThreads[2] = { mem_size , mem_size }; k.run(2, globalThreads, localThreads, false); remap(src, _dst, mapx, mapy, flags & cv::INTER_MAX, (flags & CV_WARP_FILL_OUTLIERS) ? cv::BORDER_CONSTANT : cv::BORDER_TRANSPARENT); return true; @@ -4686,14 +4686,14 @@ static bool ocl_logPolar(InputArray _src, OutputArray _dst, size_t w = dsize.width; size_t h = dsize.height; String buildOptions; - unsigned mem_szie = 32; + unsigned mem_size = 32; if (flags & CV_WARP_INVERSE_MAP) { buildOptions = "-D InverseMap"; } else { - buildOptions = format("-D ForwardMap -D MEM_SIZE=%d", mem_szie); + buildOptions = format("-D ForwardMap -D MEM_SIZE=%d", mem_size); } String retval; ocl::Program p(ocl::imgproc::logPolar_oclsrc, buildOptions, retval); @@ -4731,9 +4731,9 @@ static bool ocl_logPolar(InputArray _src, OutputArray _dst, k.args(ocl_mapx, ocl_mapy, ascale, (float)M, center.x, center.y, ANGLE_BORDER, (unsigned)dsize.width, (unsigned)dsize.height); -} + } size_t globalThreads[2] = { (size_t)dsize.width , (size_t)dsize.height }; - size_t localThreads[2] = { mem_szie , mem_szie }; + size_t localThreads[2] = { mem_size , mem_size }; k.run(2, globalThreads, localThreads, false); remap(src, _dst, mapx, mapy, flags & cv::INTER_MAX, (flags & CV_WARP_FILL_OUTLIERS) ? cv::BORDER_CONSTANT : cv::BORDER_TRANSPARENT); return true;