| 136 | } |
| 137 | |
| 138 | void test_load_frame(const std::string& filename) |
| 139 | { |
| 140 | matrix<rgb_pixel> img1, img2; |
| 141 | load_image(img1, filename); |
| 142 | load_frame(img2, filename); |
| 143 | DLIB_TEST(img1.nr() == img2.nr()); |
| 144 | DLIB_TEST(img1.nc() == img2.nc()); |
| 145 | const double similarity = psnr(img1, img2); |
| 146 | DLIB_TEST_MSG(similarity > 25.0, "psnr " << similarity); |
| 147 | } |
| 148 | |
| 149 | template<class pixel_type> |
| 150 | void test_load_save_frame(const std::string& filename) |
no test coverage detected