added some performance tests

This commit is contained in:
Ilya Lavrenov
2014-01-07 15:08:48 +04:00
parent 1592234f1a
commit a01e81c8f7
2 changed files with 77 additions and 1 deletions

View File

@@ -2375,7 +2375,7 @@ static bool ocl_patchNaNs( InputOutputArray _a, float value )
int cn = a.channels();
k.args(ocl::KernelArg::ReadOnlyNoSize(a),
ocl::KernelArg::WriteOnly(a), (float)value);
ocl::KernelArg::WriteOnly(a, cn), (float)value);
size_t globalsize[2] = { a.cols * cn, a.rows };
return k.run(2, globalsize, NULL, false);