Commit 58d28061 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #11591 from alalek:calib3d_chessboard_fix3

parents faae5edf f3cbb0f9
...@@ -252,7 +252,7 @@ static int icvSmoothHistogram( const std::vector<int>& piHist, std::vector<int>& ...@@ -252,7 +252,7 @@ static int icvSmoothHistogram( const std::vector<int>& piHist, std::vector<int>&
for ( int ii=-iWidth; ii<=iWidth; ii++) for ( int ii=-iWidth; ii<=iWidth; ii++)
{ {
iIdx = i+ii; iIdx = i+ii;
if (iIdx > 0 && iIdx < 256) if (iIdx >= 0 && iIdx < 256)
{ {
iSmooth += piHist[iIdx]; 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