Skip to content

Commit

Permalink
Merge pull request opencv#3023 from vbystricky:ocl_minMaxLoc
Browse files Browse the repository at this point in the history
  • Loading branch information
alalek committed Aug 1, 2014
2 parents 18de8de + b48e487 commit b3e31fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/core/src/opencl/minmaxloc.cl
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ __kernel void minmaxloc(__global const uchar * srcptr, int src_step, int src_off

#if kercn == 1
#ifdef NEED_MINVAL
#if NEED_MINLOC
#ifdef NEED_MINLOC
if (minval > temp)
{
minval = temp;
Expand Down Expand Up @@ -326,7 +326,7 @@ __kernel void minmaxloc(__global const uchar * srcptr, int src_step, int src_off
int lid2 = lsize + lid;

#ifdef NEED_MINVAL
#ifdef NEED_MAXLOC
#ifdef NEED_MINLOC
if (localmem_min[lid] >= localmem_min[lid2])
{
if (localmem_min[lid] == localmem_min[lid2])
Expand Down
2 changes: 1 addition & 1 deletion modules/core/src/stat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1452,7 +1452,7 @@ static bool ocl_minMaxIdx( InputArray _src, double* minVal, double* maxVal, int*

CV_Assert(!haveSrc2 || _src2.type() == type);

if (depth == CV_32S || depth == CV_32F || !_mask.empty())
if (depth == CV_32S || depth == CV_32F)
return false;

if ((depth == CV_64F || ddepth == CV_64F) && !doubleSupport)
Expand Down

0 comments on commit b3e31fb

Please sign in to comment.