Merge pull request #24713 from MaximSmolskiy:improve-icvSmoothHistogram256

Improve icvSmoothHistogram256
This commit is contained in:
Alexander Smorkalov 2023-12-19 18:39:34 +03:00 committed by GitHub
commit 465e601e10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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