mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 14:36:36 +08:00
Merge pull request #11591 from alalek:calib3d_chessboard_fix3
This commit is contained in:
commit
58d28061a4
@ -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…
Reference in New Issue
Block a user