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
bc189464
Commit
bc189464
authored
Jun 04, 2011
by
Davis King
Browse files
Added another test
parent
642762c0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
dlib/test/image.cpp
dlib/test/image.cpp
+19
-0
No files found.
dlib/test/image.cpp
View file @
bc189464
...
@@ -44,6 +44,25 @@ namespace
...
@@ -44,6 +44,25 @@ namespace
img2
.
nr
()
==
100
&&
img2
.
nc
()
==
100
,
""
);
img2
.
nr
()
==
100
&&
img2
.
nc
()
==
100
,
""
);
for
(
long
r
=
0
;
r
<
img1
.
nr
();
++
r
)
{
for
(
long
c
=
0
;
c
<
img1
.
nc
();
++
c
)
{
DLIB_TEST
(
img1
[
r
][
c
]
==
7
);
DLIB_TEST
(
img2
[
r
][
c
]
==
7
);
}
}
img2
.
clear
();
DLIB_TEST
(
img2
.
size
()
==
0
);
DLIB_TEST
(
img2
.
nr
()
==
0
);
DLIB_TEST
(
img2
.
nc
()
==
0
);
assign_image
(
img2
,
array_to_matrix
(
img1
));
DLIB_TEST_MSG
(
img1
.
nr
()
==
100
&&
img1
.
nc
()
==
100
&&
img2
.
nr
()
==
100
&&
img2
.
nc
()
==
100
,
""
);
for
(
long
r
=
0
;
r
<
img1
.
nr
();
++
r
)
for
(
long
r
=
0
;
r
<
img1
.
nr
();
++
r
)
{
{
for
(
long
c
=
0
;
c
<
img1
.
nc
();
++
c
)
for
(
long
c
=
0
;
c
<
img1
.
nc
();
++
c
)
...
...
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