Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv_contrib
Commits
05fe693d
Commit
05fe693d
authored
Nov 09, 2018
by
YTY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix fbs test with new reference image
parent
6e3eea54
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
test_fbs_filter.cpp
modules/ximgproc/test/test_fbs_filter.cpp
+4
-3
No files found.
modules/ximgproc/test/test_fbs_filter.cpp
View file @
05fe693d
...
...
@@ -82,7 +82,7 @@ TEST(FastBilateralSolverTest, SplatSurfaceAccuracy)
// When filtering a constant image we should get the same image:
double
normL1
=
cvtest
::
norm
(
src
,
res
,
NORM_L1
)
/
src
.
total
()
/
src
.
channels
();
EXPECT_LE
(
normL1
,
1.0
);
EXPECT_LE
(
normL1
,
1.0
/
64
);
}
}
...
...
@@ -91,7 +91,8 @@ TEST(FastBilateralSolverTest, ReferenceAccuracy)
string
dir
=
getDataDir
()
+
"cv/edgefilter"
;
Mat
src
=
imread
(
dir
+
"/kodim23.png"
);
Mat
ref
=
imread
(
dir
+
"/fgs/kodim23_lambda=1000_sigma=10.png"
);
Mat
ref
=
imread
(
dir
+
"/fbs/kodim23_spatial=16_luma=16_chroma=16.png"
);
Mat
confidence
(
src
.
size
(),
CV_MAKE_TYPE
(
CV_8U
,
1
),
255
);
ASSERT_FALSE
(
src
.
empty
());
...
...
@@ -103,7 +104,7 @@ TEST(FastBilateralSolverTest, ReferenceAccuracy)
double
totalMaxError
=
1.0
/
64.0
*
src
.
total
()
*
src
.
channels
();
EXPECT_LE
(
cvtest
::
norm
(
res
,
ref
,
NORM_L2
),
totalMaxError
);
EXPECT_LE
(
cvtest
::
norm
(
res
,
ref
,
NORM_INF
),
1
00
);
EXPECT_LE
(
cvtest
::
norm
(
res
,
ref
,
NORM_INF
),
1
);
}
INSTANTIATE_TEST_CASE_P
(
FullSet
,
FastBilateralSolverTest
,
Combine
(
Values
(
szODD
,
szQVGA
),
SrcTypes
::
all
(),
GuideTypes
::
all
()));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment