mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 22:44:02 +08:00
Merge pull request #2147 from ilya-lavrenov:tapi_sqrt
This commit is contained in:
commit
fdb1019b9e
@ -2057,10 +2057,15 @@ static bool ocl_pow(InputArray _src, double power, OutputArray _dst)
|
||||
ocl::KernelArg srcarg = ocl::KernelArg::ReadOnlyNoSize(src),
|
||||
dstarg = ocl::KernelArg::WriteOnly(dst, cn);
|
||||
|
||||
if (depth == CV_32F)
|
||||
k.args(srcarg, dstarg, (float)power);
|
||||
if (issqrt)
|
||||
k.args(srcarg, dstarg);
|
||||
else
|
||||
k.args(srcarg, dstarg, power);
|
||||
{
|
||||
if (depth == CV_32F)
|
||||
k.args(srcarg, dstarg, (float)power);
|
||||
else
|
||||
k.args(srcarg, dstarg, power);
|
||||
}
|
||||
|
||||
size_t globalsize[2] = { dst.cols * cn, dst.rows };
|
||||
return k.run(2, globalsize, NULL, false);
|
||||
|
Loading…
Reference in New Issue
Block a user