fix for cv::norm (norm_inf)

pull/2740/head
Ilya Lavrenov 11 years ago
parent ea5b411c0f
commit f64dfeb222
  1. 2
      modules/core/src/opencl/reduce.cl

@ -187,7 +187,7 @@
if (mask[mask_index]) \ if (mask[mask_index]) \
{ \ { \
temp = loadpix(srcptr + src_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 \ #define SET_LOCAL_1 \
localmem_max[lid] = maxval localmem_max[lid] = maxval

Loading…
Cancel
Save