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
ce14edcb
Commit
ce14edcb
authored
Dec 19, 2014
by
Davis King
Browse files
added skeleton unit test
parent
0f24b1ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
dlib/test/image.cpp
dlib/test/image.cpp
+10
-0
No files found.
dlib/test/image.cpp
View file @
ce14edcb
...
...
@@ -1800,6 +1800,16 @@ namespace
for
(
int
i
=
0
;
i
<
100
;
++
i
)
test_separable_filtering_center
<
float
>
(
rnd
);
{
print_spinner
();
matrix
<
unsigned
char
>
img
(
40
,
80
);
assign_all_pixels
(
img
,
255
);
skeleton
(
img
);
DLIB_TEST
(
sum
(
matrix_cast
<
int
>
(
mat
(
img
)))
/
255
==
40
);
draw_line
(
img
,
point
(
20
,
19
),
point
(
59
,
19
),
00
);
DLIB_TEST
(
sum
(
matrix_cast
<
int
>
(
mat
(
img
)))
==
0
);
}
}
}
a
;
...
...
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