Commit b3e31fb8 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #3023 from vbystricky:ocl_minMaxLoc

parents 18de8dee b48e487d
...@@ -209,7 +209,7 @@ __kernel void minmaxloc(__global const uchar * srcptr, int src_step, int src_off ...@@ -209,7 +209,7 @@ __kernel void minmaxloc(__global const uchar * srcptr, int src_step, int src_off
#if kercn == 1 #if kercn == 1
#ifdef NEED_MINVAL #ifdef NEED_MINVAL
#if NEED_MINLOC #ifdef NEED_MINLOC
if (minval > temp) if (minval > temp)
{ {
minval = temp; minval = temp;
...@@ -326,7 +326,7 @@ __kernel void minmaxloc(__global const uchar * srcptr, int src_step, int src_off ...@@ -326,7 +326,7 @@ __kernel void minmaxloc(__global const uchar * srcptr, int src_step, int src_off
int lid2 = lsize + lid; int lid2 = lsize + lid;
#ifdef NEED_MINVAL #ifdef NEED_MINVAL
#ifdef NEED_MAXLOC #ifdef NEED_MINLOC
if (localmem_min[lid] >= localmem_min[lid2]) if (localmem_min[lid] >= localmem_min[lid2])
{ {
if (localmem_min[lid] == localmem_min[lid2]) if (localmem_min[lid] == localmem_min[lid2])
......
...@@ -1452,7 +1452,7 @@ static bool ocl_minMaxIdx( InputArray _src, double* minVal, double* maxVal, int* ...@@ -1452,7 +1452,7 @@ static bool ocl_minMaxIdx( InputArray _src, double* minVal, double* maxVal, int*
CV_Assert(!haveSrc2 || _src2.type() == type); CV_Assert(!haveSrc2 || _src2.type() == type);
if (depth == CV_32S || depth == CV_32F || !_mask.empty()) if (depth == CV_32S || depth == CV_32F)
return false; return false;
if ((depth == CV_64F || ddepth == CV_64F) && !doubleSupport) if ((depth == CV_64F || ddepth == CV_64F) && !doubleSupport)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment