diff --git a/modules/core/src/convert.cpp b/modules/core/src/convert.cpp index de36cc67a2..9d65f3b906 100644 --- a/modules/core/src/convert.cpp +++ b/modules/core/src/convert.cpp @@ -5692,7 +5692,7 @@ void cv::normalize( InputArray _src, InputOutputArray _dst, double a, double b, { double smin = 0, smax = 0; double dmin = MIN( a, b ), dmax = MAX( a, b ); - minMaxLoc( _src, &smin, &smax, 0, 0, _mask ); + minMaxIdx( _src, &smin, &smax, 0, 0, _mask ); scale = (dmax - dmin)*(smax - smin > DBL_EPSILON ? 1./(smax - smin) : 0); shift = dmin - smin*scale; }