Solve exception for 3D Mat

pull/7748/head
LaurentBerger 8 years ago
parent fb456eb69c
commit c56c0e140b
  1. 2
      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;
}

Loading…
Cancel
Save