1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

Improve icvSmoothHistogram256

This commit is contained in:
MaximSmolskiy
2023-12-18 16:56:05 +03:00
parent 70618cb7bf
commit 398611b7e8
+1 -1
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);
}
}
/***************************************************************************************************/