mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 03:30:34 +08:00
fix for cv::norm (norm_inf)
This commit is contained in:
parent
ea5b411c0f
commit
f64dfeb222
@ -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…
Reference in New Issue
Block a user