mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 22:44:02 +08:00
Update imgcodecs tests
This commit is contained in:
parent
75f3f0fac8
commit
7d6b6161cc
@ -2161,7 +2161,7 @@ static void showSaveDialog(CvWindow& window)
|
||||
#ifdef HAVE_TIFF
|
||||
"TIFF Files (*.tiff;*.tif)\0*.tiff;*.tif\0"
|
||||
#endif
|
||||
#ifdef HAVE_JASPER
|
||||
#if defined(HAVE_JASPER) || defined(HAVE_OPENJPEG)
|
||||
"JPEG-2000 files (*.jp2)\0*.jp2\0"
|
||||
#endif
|
||||
#ifdef HAVE_WEBP
|
||||
|
@ -5,6 +5,9 @@
|
||||
|
||||
namespace opencv_test
|
||||
{
|
||||
|
||||
#ifdef HAVE_JPEG
|
||||
|
||||
using namespace perf;
|
||||
|
||||
PERF_TEST(JPEG, Decode)
|
||||
@ -35,4 +38,6 @@ PERF_TEST(JPEG, Encode)
|
||||
SANITY_CHECK_NOTHING();
|
||||
}
|
||||
|
||||
#endif // HAVE_JPEG
|
||||
|
||||
} // namespace
|
@ -6,6 +6,9 @@
|
||||
|
||||
namespace opencv_test
|
||||
{
|
||||
|
||||
#if defined(HAVE_PNG) || defined(HAVE_SPNG)
|
||||
|
||||
using namespace perf;
|
||||
|
||||
typedef perf::TestBaseWithParam<std::string> PNG;
|
||||
@ -38,4 +41,6 @@ PERF_TEST(PNG, encode)
|
||||
SANITY_CHECK_NOTHING();
|
||||
}
|
||||
|
||||
#endif // HAVE_PNG
|
||||
|
||||
} // namespace
|
||||
|
@ -87,11 +87,17 @@ const string all_images[] =
|
||||
"readwrite/uint16-mono2.dcm",
|
||||
"readwrite/uint8-rgb.dcm",
|
||||
#endif
|
||||
#if defined(HAVE_PNG) || defined(HAVE_SPNG)
|
||||
"readwrite/color_palette_alpha.png",
|
||||
#endif
|
||||
#ifdef HAVE_TIFF
|
||||
"readwrite/multipage.tif",
|
||||
#endif
|
||||
"readwrite/ordinary.bmp",
|
||||
"readwrite/rle8.bmp",
|
||||
#ifdef HAVE_JPEG
|
||||
"readwrite/test_1_c1.jpg",
|
||||
#endif
|
||||
#ifdef HAVE_IMGCODEC_HDR
|
||||
"readwrite/rle.hdr"
|
||||
#endif
|
||||
|
@ -303,6 +303,7 @@ TEST(Imgcodecs_Image, write_umat)
|
||||
EXPECT_EQ(0, remove(dst_name.c_str()));
|
||||
}
|
||||
|
||||
#ifdef HAVE_TIFF
|
||||
TEST(Imgcodecs_Image, multipage_collection_size)
|
||||
{
|
||||
const string root = cvtest::TS::ptr()->get_data_path();
|
||||
@ -479,6 +480,7 @@ TEST(ImgCodecs, multipage_collection_two_iterator_operatorpp)
|
||||
EXPECT_TRUE(cv::norm(img1, img[i], NORM_INF) == 0);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
TEST(Imgcodecs_Params, imwrite_regression_22752)
|
||||
|
Loading…
Reference in New Issue
Block a user