added more unit tests for hog coordinate transforms

This commit is contained in:
Davis King 2011-08-09 17:06:01 -04:00
parent 6acf4eac25
commit 46eb8d1c8d
1 changed files with 7 additions and 0 deletions

View File

@ -78,8 +78,15 @@ namespace
DLIB_TEST(hog1.feat_to_image_space(point(0,0)) == point(5,5));
DLIB_TEST(hog2.feat_to_image_space(point(0,0)) == point(9,9));
DLIB_TEST(hog1.feat_to_image_space(point(1,1)) == point(8,8));
DLIB_TEST(hog2.feat_to_image_space(point(1,1)) == point(17,17));
DLIB_TEST(hog1.image_to_feat_space(hog1.feat_to_image_space(point(0,0))) == point(0,0));
DLIB_TEST(hog2.image_to_feat_space(hog2.feat_to_image_space(point(0,0))) == point(0,0));
DLIB_TEST(hog1.image_to_feat_space(hog1.feat_to_image_space(point(1,1))) == point(1,1));
DLIB_TEST(hog2.image_to_feat_space(hog2.feat_to_image_space(point(1,1))) == point(1,1));
DLIB_TEST(hog1.image_to_feat_space(hog1.feat_to_image_space(point(1,2))) == point(1,2));
DLIB_TEST(hog2.image_to_feat_space(hog2.feat_to_image_space(point(1,2))) == point(1,2));
}
} a;