Commit 20a79481 authored by Davis King's avatar Davis King

Added a test that the pyramid down objects do the coordinate mapping correctly.

parent ffad02d4
...@@ -264,6 +264,18 @@ void test_pyramid_down_grayscale2() ...@@ -264,6 +264,18 @@ void test_pyramid_down_grayscale2()
//my_window.wait_until_closed(); //my_window.wait_until_closed();
// make sure the coordinate mapping is invertible when it should be
for (long x = -10; x <= 10; ++x)
{
for (long y = -10; y <= 10; ++y)
{
DLIB_TEST_MSG(point(pyr.point_down(pyr.point_up(point(x,y)))) == point(x,y),
point(x,y) << " " << pyr.point_up(point(x,y)) << " " << pyr.point_down(pyr.point_up(point(x,y))));
}
}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment