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

pull/11591/head
Alexander Alekhin 7 years ago
parent 0a6d190095
commit f3cbb0f941
  1. 2
      modules/calib3d/src/calibinit.cpp

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

Loading…
Cancel
Save