Merge pull request #24713 from MaximSmolskiy:improve-icvSmoothHistogram256

Improve icvSmoothHistogram256
pull/24723/head
Alexander Smorkalov 1 year ago committed by GitHub
commit 465e601e10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      modules/calib3d/src/calibinit.cpp

@ -298,7 +298,7 @@ static void icvSmoothHistogram256(const ArrayContainer& piHist, ArrayContainer&
CV_DbgAssert(iIdx >= 0 && iIdx < 256); CV_DbgAssert(iIdx >= 0 && iIdx < 256);
iSmooth += piHist[iIdx]; iSmooth += piHist[iIdx];
} }
piHistSmooth[i] = iSmooth/(2*iWidth+1); piHistSmooth[i] = iSmooth/(iIdx_max-iIdx_min+1);
} }
} }
/***************************************************************************************************/ /***************************************************************************************************/

Loading…
Cancel
Save