Merge pull request #2740 from ilya-lavrenov:tapi_norm_fix

pull/2749/merge
Roman Donchenko 11 years ago committed by OpenCV Buildbot
commit f13e05cdcb
  1. 2
      modules/core/src/opencl/reduce.cl

@ -187,7 +187,7 @@
if (mask[mask_index]) \
{ \
temp = loadpix(srcptr + src_index); \
maxval = max(maxval, (srcT)(temp >= 0 ? temp : -temp)); \
maxval = max(maxval, (srcT)(temp >= (srcT)(0) ? temp : -temp)); \
}
#define SET_LOCAL_1 \
localmem_max[lid] = maxval

Loading…
Cancel
Save