mirror of
https://github.com/opencv/opencv.git
synced 2025-06-10 19:24:07 +08:00
Merge pull request #25299 from Kumataro:add_fix25274
imgcodecs: jpeg: (test) fix condition to compare rgb and cmyk jpeg
This commit is contained in:
commit
8c540a56af
@ -207,7 +207,7 @@ TEST_P(Imgcodecs_Jpeg_decode_cmyk, regression25274)
|
|||||||
// Jpeg is lossy compression.
|
// Jpeg is lossy compression.
|
||||||
// There may be small differences in decoding results by environments.
|
// There may be small differences in decoding results by environments.
|
||||||
// -> 255 * 1% = 2.55 .
|
// -> 255 * 1% = 2.55 .
|
||||||
EXPECT_EQ(3, cvtest::norm(rgb_img, cmyk_img, NORM_INF));
|
EXPECT_LE(cvtest::norm(rgb_img, cmyk_img, NORM_INF), 3); // norm() <= 3
|
||||||
}
|
}
|
||||||
|
|
||||||
INSTANTIATE_TEST_CASE_P( /* nothing */,
|
INSTANTIATE_TEST_CASE_P( /* nothing */,
|
||||||
|
Loading…
Reference in New Issue
Block a user