calib3d: chess board - perform full range (with 0) histogram smooth

This commit is contained in:
Alexander Alekhin 2018-05-25 15:35:36 +03:00
parent 0a6d190095
commit f3cbb0f941

View File

@ -252,7 +252,7 @@ static int icvSmoothHistogram( const std::vector<int>& piHist, std::vector<int>&
for ( int ii=-iWidth; ii<=iWidth; ii++)
{
iIdx = i+ii;
if (iIdx > 0 && iIdx < 256)
if (iIdx >= 0 && iIdx < 256)
{
iSmooth += piHist[iIdx];
}