Skip to content

Commit 20efa8c

Browse files
committed
Merge pull request #1892 from ytyytyyt:fbs_test
2 parents 901e61d + 05fe693 commit 20efa8c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

modules/ximgproc/test/test_fbs_filter.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ TEST(FastBilateralSolverTest, SplatSurfaceAccuracy)
8282

8383
// When filtering a constant image we should get the same image:
8484
double normL1 = cvtest::norm(src, res, NORM_L1)/src.total()/src.channels();
85-
EXPECT_LE(normL1, 1.0);
85+
EXPECT_LE(normL1, 1.0/64);
8686
}
8787
}
8888

@@ -91,7 +91,8 @@ TEST(FastBilateralSolverTest, ReferenceAccuracy)
9191
string dir = getDataDir() + "cv/edgefilter";
9292

9393
Mat src = imread(dir + "/kodim23.png");
94-
Mat ref = imread(dir + "/fgs/kodim23_lambda=1000_sigma=10.png");
94+
Mat ref = imread(dir + "/fbs/kodim23_spatial=16_luma=16_chroma=16.png");
95+
9596
Mat confidence(src.size(), CV_MAKE_TYPE(CV_8U, 1), 255);
9697

9798
ASSERT_FALSE(src.empty());
@@ -103,7 +104,7 @@ TEST(FastBilateralSolverTest, ReferenceAccuracy)
103104
double totalMaxError = 1.0/64.0*src.total()*src.channels();
104105

105106
EXPECT_LE(cvtest::norm(res, ref, NORM_L2), totalMaxError);
106-
EXPECT_LE(cvtest::norm(res, ref, NORM_INF), 100);
107+
EXPECT_LE(cvtest::norm(res, ref, NORM_INF), 1);
107108
}
108109

109110
INSTANTIATE_TEST_CASE_P(FullSet, FastBilateralSolverTest,Combine(Values(szODD, szQVGA), SrcTypes::all(), GuideTypes::all()));

0 commit comments

Comments
 (0)