Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
32e1d0b6
Commit
32e1d0b6
authored
May 29, 2011
by
Davis King
Browse files
Added more tests
parent
ed3c2522
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
dlib/test/pixel.cpp
dlib/test/pixel.cpp
+23
-0
No files found.
dlib/test/pixel.cpp
View file @
32e1d0b6
...
@@ -433,6 +433,29 @@ namespace
...
@@ -433,6 +433,29 @@ namespace
DLIB_TEST
(
get_pixel_intensity
(
p_rgb
)
==
0
);
DLIB_TEST
(
get_pixel_intensity
(
p_rgb
)
==
0
);
DLIB_TEST
(
get_pixel_intensity
(
p_gray16
)
==
0
);
DLIB_TEST
(
get_pixel_intensity
(
p_gray16
)
==
0
);
p_rgb
.
red
=
100
;
p_rgb
.
green
=
100
;
p_rgb
.
blue
=
100
;
DLIB_TEST
(
get_pixel_intensity
(
p_rgb
)
==
100
);
p_rgb
.
red
=
1
;
p_rgb
.
green
=
2
;
p_rgb
.
blue
=
3
;
DLIB_TEST
(
get_pixel_intensity
(
p_rgb
)
==
2
);
p_rgba
.
alpha
=
100
;
p_rgba
.
red
=
100
;
p_rgba
.
green
=
100
;
p_rgba
.
blue
=
100
;
DLIB_TEST
(
get_pixel_intensity
(
p_rgba
)
==
100
);
p_rgba
.
red
=
1
;
p_rgba
.
green
=
2
;
p_rgba
.
blue
=
3
;
p_rgba
.
alpha
=
0
;
DLIB_TEST
(
get_pixel_intensity
(
p_rgba
)
==
2
);
p_hsi
.
h
=
123
;
p_hsi
.
s
=
100
;
p_hsi
.
i
=
84
;
DLIB_TEST
(
get_pixel_intensity
(
p_hsi
)
==
84
);
p_float
=
54.25
;
p_float
=
54.25
;
DLIB_TEST
(
get_pixel_intensity
(
p_float
)
==
54.25
);
DLIB_TEST
(
get_pixel_intensity
(
p_float
)
==
54.25
);
...
...
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