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
fd6735d7
Commit
fd6735d7
authored
Mar 03, 2014
by
Davis King
Browse files
Added more pyramid point transform unit tests
parent
f4ed54c9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
dlib/test/pyramid_down.cpp
dlib/test/pyramid_down.cpp
+9
-4
No files found.
dlib/test/pyramid_down.cpp
View file @
fd6735d7
...
@@ -268,12 +268,17 @@ void test_pyramid_down_grayscale2()
...
@@ -268,12 +268,17 @@ void test_pyramid_down_grayscale2()
// make sure the coordinate mapping is invertible when it should be
// make sure the coordinate mapping is invertible when it should be
for
(
int
l
=
0
;
l
<
4
;
++
l
)
{
for
(
long
x
=
-
10
;
x
<=
10
;
++
x
)
for
(
long
x
=
-
10
;
x
<=
10
;
++
x
)
{
{
for
(
long
y
=
-
10
;
y
<=
10
;
++
y
)
for
(
long
y
=
-
10
;
y
<=
10
;
++
y
)
{
{
DLIB_TEST_MSG
(
point
(
pyr
.
point_down
(
pyr
.
point_up
(
point
(
x
,
y
))))
==
point
(
x
,
y
),
DLIB_TEST_MSG
(
point
(
pyr
.
point_down
(
pyr
.
point_up
(
point
(
x
,
y
),
l
),
l
))
==
point
(
x
,
y
),
point
(
x
,
y
)
<<
" "
<<
pyr
.
point_up
(
point
(
x
,
y
))
<<
" "
<<
pyr
.
point_down
(
pyr
.
point_up
(
point
(
x
,
y
))));
point
(
x
,
y
)
<<
" "
<<
pyr
.
point_up
(
point
(
x
,
y
),
l
)
<<
" "
<<
pyr
.
point_down
(
pyr
.
point_up
(
point
(
x
,
y
),
l
),
l
));
DLIB_TEST_MSG
(
point
(
pyr
.
point_down
(
point
(
pyr
.
point_up
(
point
(
x
,
y
),
l
)),
l
))
==
point
(
x
,
y
),
point
(
x
,
y
)
<<
" "
<<
pyr
.
point_up
(
point
(
x
,
y
),
l
)
<<
" "
<<
pyr
.
point_down
(
point
(
pyr
.
point_up
(
point
(
x
,
y
),
l
)),
l
));
}
}
}
}
}
}
}
...
...
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