Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Commits
0e6c3350
Commit
0e6c3350
authored
Aug 10, 2017
by
Rostislav Vasilikhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Imgproc_ColorLab_Full.accuracy test fixed
parent
d9e364f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
test_color.cpp
modules/imgproc/test/test_color.cpp
+3
-1
No files found.
modules/imgproc/test/test_color.cpp
View file @
0e6c3350
...
...
@@ -1898,13 +1898,15 @@ static void validateResult(const Mat& reference, const Mat& actual, const Mat& s
int
cn
=
reference
.
channels
();
ssize
.
width
*=
cn
;
bool
next
=
true
;
//RGB2Lab_f works throug LUT and brings additional error
static
const
float
maxErr
=
1.
f
/
200.
f
;
for
(
int
y
=
0
;
y
<
ssize
.
height
&&
next
;
++
y
)
{
const
float
*
rD
=
reference
.
ptr
<
float
>
(
y
);
const
float
*
D
=
actual
.
ptr
<
float
>
(
y
);
for
(
int
x
=
0
;
x
<
ssize
.
width
&&
next
;
++
x
)
if
(
fabs
(
rD
[
x
]
-
D
[
x
])
>
0.0001
f
)
if
(
fabs
(
rD
[
x
]
-
D
[
x
])
>
maxErr
)
{
next
=
false
;
ts
->
printf
(
cvtest
::
TS
::
SUMMARY
,
"Error in: (%d, %d)
\n
"
,
x
/
cn
,
y
);
...
...
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