1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

Fix pixel value evaluation overflow in bit-exact GaussianBlur implementation

This commit is contained in:
Vitaly Tuzov
2019-07-12 01:53:49 +03:00
parent 8bcd7e122a
commit 894ad33bf4
2 changed files with 24 additions and 16 deletions
@@ -158,4 +158,12 @@ TEST(GaussianBlur_Bitexact, Linear8U)
}
}
TEST(GaussianBlur_Bitexact, regression_15015)
{
Mat src(100,100,CV_8UC3,Scalar(255,255,255));
Mat dst;
GaussianBlur(src, dst, Size(5, 5), 9);
ASSERT_EQ(0.0, cvtest::norm(dst, src, NORM_INF));
}
}} // namespace