mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 11:10:21 +08:00
calib3d: chess board - perform full range (with 0) histogram smooth
This commit is contained in:
parent
0a6d190095
commit
f3cbb0f941
@ -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