Skip to content

Commit a6f5723

Browse files
committed
Fix SideWindowFilter.cpp BUG
1 parent e113866 commit a6f5723

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SideWindowFilter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Mat SideWindowFilter(Mat src, int radius = 1) {
1717
Mat dst(row, col, CV_8UC1);
1818
for (int i = 0; i < row; i++) {
1919
for (int j = 0; j < col; j++) {
20-
if (i < radius || i + radius > row || j < radius || j + radius > col) {
20+
if (i < radius || i + radius >= row || j < radius || j + radius >= col) {
2121
dst.at<uchar>(i, j) = src.at<uchar>(i, j);
2222
continue;
2323
}

0 commit comments

Comments
 (0)