Merge pull request #11591 from alalek:calib3d_chessboard_fix3

This commit is contained in:
Alexander Alekhin 2018-05-28 12:48:10 +00:00
commit 58d28061a4

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];
}