Skip to content

Commit b9f0ffd

Browse files
committed
Typo fix in ximageproc BrightEdges
1 parent f149f26 commit b9f0ffd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/ximgproc/src/brightedges.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ namespace cv
150150
iedge.ptr(row + 1)[col + 2] +
151151
iedge.ptr(row - 1)[col + 2];
152152
if (line < weight) lines += 1;
153-
if (line == 1) return 0;
153+
if (lines == 1) return 0;
154154
// Compute surrounding pixels for dark zone
155155
int surround = iedge.ptr(row - 1)[col - 1] +
156156
iedge.ptr(row - 1)[col] +

0 commit comments

Comments
 (0)