mirror of
https://github.com/opencv/opencv.git
synced 2024-11-28 05:06:29 +08:00
Merge pull request #24713 from MaximSmolskiy:improve-icvSmoothHistogram256
Improve icvSmoothHistogram256
This commit is contained in:
commit
465e601e10
@ -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);
|
||||
}
|
||||
}
|
||||
/***************************************************************************************************/
|
||||
|
Loading…
Reference in New Issue
Block a user