fixing bug #3345. don't use BORDER_ISOLATED alone. it should be combined with some border type

(cherry picked from commit 2272a58769)
This commit is contained in:
Seunghoon Park 2014-01-14 20:47:23 -05:00 committed by Alexander Smorkalov
parent 7868733002
commit 27a8bb471b

View File

@ -1901,7 +1901,7 @@ TEST(Imgproc_Blur, borderTypes)
EXPECT_EQ(227, dst.at<uchar>(0, 0)); EXPECT_EQ(227, dst.at<uchar>(0, 0));
// should work like BORDER_ISOLATED // should work like BORDER_ISOLATED
blur(src_roi, dst, kernelSize, Point(-1, -1), BORDER_ISOLATED); blur(src_roi, dst, kernelSize, Point(-1, -1), BORDER_REPLICATE | BORDER_ISOLATED);
EXPECT_EQ(0, dst.at<uchar>(0, 0)); EXPECT_EQ(0, dst.at<uchar>(0, 0));
/// ksize <= src_roi.size() /// ksize <= src_roi.size()