Commit eb9d7c4d authored by Seunghoon Park's avatar Seunghoon Park

fixing bug #3345. use norm to make sure two matrices are the same.

parent 73389b2b
...@@ -1914,5 +1914,7 @@ TEST(Imgproc_Blur, borderTypes) ...@@ -1914,5 +1914,7 @@ TEST(Imgproc_Blur, borderTypes)
blur(src_roi, dst, kernelSize, Point(-1, -1), BORDER_REPLICATE); blur(src_roi, dst, kernelSize, Point(-1, -1), BORDER_REPLICATE);
Mat expected_dst = Mat expected_dst =
(Mat_<uchar>(3, 3) << 170, 113, 170, 113, 28, 113, 170, 113, 170); (Mat_<uchar>(3, 3) << 170, 113, 170, 113, 28, 113, 170, 113, 170);
EXPECT_EQ(9 * 255, cv::sum(expected_dst == dst).val[0]); EXPECT_EQ(expected_dst.type(), dst.type());
EXPECT_EQ(expected_dst.size(), dst.size());
EXPECT_DOUBLE_EQ(0.0, cvtest::norm(expected_dst, dst, NORM_INF));
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment