1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

minor ocl.cpp refactoring

fix for cv::LUT and cv::transpose
This commit is contained in:
Ilya Lavrenov
2014-02-01 15:07:03 +04:00
parent 75dde49b64
commit da5b316b4e
6 changed files with 272 additions and 248 deletions
+3
View File
@@ -2909,6 +2909,9 @@ static bool ocl_transpose( InputArray _src, OutputArray _dst )
ocl::Kernel k(kernelName.c_str(), ocl::core::transpose_oclsrc,
format("-D T=%s -D TILE_DIM=%d -D BLOCK_ROWS=%d",
ocl::memopTypeToStr(type), TILE_DIM, BLOCK_ROWS));
if (k.empty())
return false;
if (inplace)
k.args(ocl::KernelArg::ReadWriteNoSize(dst), dst.rows);
else