Skip to content

Commit 55b7073

Browse files
committed
Merge pull request opencv#9730 from yanlend:patch-1
2 parents bf6548d + 332588f commit 55b7073

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/imgproc/src/hough.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,8 +1112,8 @@ icvHoughCirclesGradient( CvMat* img, float dp, float min_dist,
11121112
{
11131113
int base = y*(acols+2) + x;
11141114
if( adata[base] > acc_threshold &&
1115-
adata[base] > adata[base-1] && adata[base] > adata[base+1] &&
1116-
adata[base] > adata[base-acols-2] && adata[base] > adata[base+acols+2] )
1115+
adata[base] > adata[base-1] && adata[base] >= adata[base+1] &&
1116+
adata[base] > adata[base-acols-2] && adata[base] >= adata[base+acols+2] )
11171117
cvSeqPush(centers, &base);
11181118
}
11191119
}

0 commit comments

Comments
 (0)