Commit f3cbb0f9 authored by Alexander Alekhin's avatar Alexander Alekhin

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

parent 0a6d1900
......@@ -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];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment