1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 08:13:04 +04:00

Fix for morphologyEx MORPH_HITMISS mode

This commit is contained in:
Vitaly Tuzov
2018-05-29 20:11:49 +03:00
parent 44572fac44
commit 2e22f8e790
2 changed files with 12 additions and 4 deletions
+6
View File
@@ -2102,6 +2102,12 @@ TEST(Imgproc_MorphEx, hitmiss_regression_8957)
ref.at<uchar>(1, 1) = 255;
ASSERT_DOUBLE_EQ(cvtest::norm(dst, ref, NORM_INF), 0.);
src.at<uchar>(1, 1) = 255;
ref.at<uchar>(0, 1) = 255;
ref.at<uchar>(2, 1) = 255;
cv::morphologyEx(src, dst, MORPH_HITMISS, kernel);
ASSERT_DOUBLE_EQ(cvtest::norm(dst, ref, NORM_INF), 0.);
}
TEST(Imgproc_MorphEx, hitmiss_zero_kernel)