Skip to content

Commit 618447f

Browse files
author
Kirill Kornyakov
committed
Trying to workaround issue on travis
1 parent a259cd2 commit 618447f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/img_proc.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ int processFrame(const Mat& src, Mat& dst)
1616

1717
cv::Rect region(src.rows/4, src.cols/4, src.rows/2, src.cols/2);
1818
const int kSize = 11;
19-
medianBlur(dst(region), dst(region), kSize);
19+
Mat roi = dst(region);
20+
medianBlur(roi, roi, kSize);
2021
rectangle(dst, region, Scalar(255, 0, 0));
2122

2223
if (dst.empty())

0 commit comments

Comments
 (0)