MCPcopy Create free account
hub / github.com/davisking/dlib / test_load_frame

Function test_load_frame

dlib/test/ffmpeg.cpp:138–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers 1

perform_testMethod · 0.85

Calls 5

load_frameFunction · 0.85
psnrFunction · 0.85
load_imageFunction · 0.50
nrMethod · 0.45
ncMethod · 0.45

Tested by

no test coverage detected