Skip to content

Commit

Permalink
Replace lenna with astronaut in imgproc pt2
Browse files Browse the repository at this point in the history
  • Loading branch information
k-dominik committed Sep 20, 2024
1 parent febb971 commit 0fa82db
Show file tree
Hide file tree
Showing 20 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion test/imgproc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
VIGRA_ADD_TEST(test_imgproc test.cxx LIBRARIES vigraimpex)

VIGRA_COPY_TEST_DATA(astronaut128.xv lenna128rgb.xv splineimageview2.xv splineimageview3.xv splineimageview5.xv astronaut42lin.xv astronaut288neu.xv astronaut42neu.xv lenna288rgbneu.xv lenna42rgbneu.xv astronaut367FIR.xv astronaut42FIR.xv astronaut367IIR.xv astronaut42IIR.xv lenna42linrgb.xv lennargb42FIR.xv lennargb42IIR.xv astronaut_rotate.xv)
VIGRA_COPY_TEST_DATA(astronaut128.xv astronaut128rgb.xv splineimageview2.xv splineimageview3.xv splineimageview5.xv astronaut42lin.xv astronaut288neu.xv astronaut42neu.xv astronaut288rgbneu.xv astronaut42rgbneu.xv astronaut367FIR.xv astronaut42FIR.xv astronaut367IIR.xv astronaut42IIR.xv astronaut42linrgb.xv astronautrgb42FIR.xv astronautrgb42IIR.xv astronaut_rotate.xv)
Binary file added test/imgproc/astronaut128rgb.xv
Binary file not shown.
Binary file added test/imgproc/astronaut288rgbneu.xv
Binary file not shown.
Binary file added test/imgproc/astronaut42linrgb.xv
Binary file not shown.
Binary file added test/imgproc/astronaut42rgbneu.xv
Binary file not shown.
Binary file added test/imgproc/astronaut_rotate.xv
Binary file not shown.
Binary file added test/imgproc/astronautrgb42FIR.xv
Binary file not shown.
Binary file added test/imgproc/astronautrgb42IIR.xv
Binary file not shown.
Binary file removed test/imgproc/lenna128rgb.xv
Binary file not shown.
Binary file removed test/imgproc/lenna288.xv
Binary file not shown.
Binary file removed test/imgproc/lenna288rgb.xv
Binary file not shown.
Binary file removed test/imgproc/lenna288rgbneu.xv
Binary file not shown.
Binary file removed test/imgproc/lenna42.xv
Binary file not shown.
Binary file removed test/imgproc/lenna42linrgb.xv
Binary file not shown.
Binary file removed test/imgproc/lenna42rgb.xv
Binary file not shown.
Binary file removed test/imgproc/lenna42rgbneu.xv
Binary file not shown.
Binary file removed test/imgproc/lenna_rotate.xv
Binary file not shown.
Binary file removed test/imgproc/lennargb42FIR.xv
Binary file not shown.
Binary file removed test/imgproc/lennargb42IIR.xv
Binary file not shown.
28 changes: 14 additions & 14 deletions test/imgproc/test.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,7 @@ struct ResizeImageTest
img.resize(ginfo.width(), ginfo.height());
importImage(ginfo, destImage(img));

ImageImportInfo cinfo("lenna128rgb.xv");
ImageImportInfo cinfo("astronaut128rgb.xv");
rgb.resize(cinfo.width(), cinfo.height());
importImage(cinfo, destImage(rgb));

Expand All @@ -1148,7 +1148,7 @@ struct ResizeImageTest

shouldEqualSequenceTolerance(dest.begin(), dest.end(), ref.begin(), 1.0e-6f);

ImageImportInfo inforgb("lenna42linrgb.xv");
ImageImportInfo inforgb("astronaut42linrgb.xv");
RGBImage rgbref(inforgb.size());
importImage(inforgb, destImage(rgbref));

Expand Down Expand Up @@ -1189,7 +1189,7 @@ struct ResizeImageTest

void rgbExpand()
{
ImageImportInfo info("lenna288rgbneu.xv");
ImageImportInfo info("astronaut288rgbneu.xv");

RGBImage rgbex(info.width(), info.height());
importImage(info, destImage(rgbex));
Expand All @@ -1212,7 +1212,7 @@ struct ResizeImageTest

void rgbReduce()
{
ImageImportInfo info("lenna42rgbneu.xv");
ImageImportInfo info("astronaut42rgbneu.xv");

RGBImage rgbred(info.width(), info.height());
importImage(info, destImage(rgbred));
Expand All @@ -1235,7 +1235,7 @@ struct ResizeImageTest

/*Vergroesserungstest
*/
void testCatmullRomInterpolationExtensionWithLena()
void testCatmullRomInterpolationExtensionWithAstronaut()
{
ImageImportInfo inforef("astronaut367FIR.xv");
Image ref(inforef.size());
Expand All @@ -1251,7 +1251,7 @@ struct ResizeImageTest

/*Verkleinerungstest
*/
void testCatmullRomInterpolationReductionWithLena()
void testCatmullRomInterpolationReductionWithAstronaut()
{
ImageImportInfo inforef("astronaut42FIR.xv");
Image ref(inforef.size());
Expand All @@ -1263,7 +1263,7 @@ struct ResizeImageTest

shouldEqualSequenceTolerance(dest.begin(), dest.end(), ref.begin(), 1e-4f);

ImageImportInfo inforgb("lennargb42FIR.xv");
ImageImportInfo inforgb("astronautrgb42FIR.xv");
RGBImage rgbref(inforgb.size());
importImage(inforgb, destImage(rgbref));

Expand All @@ -1283,7 +1283,7 @@ struct ResizeImageTest
}
}

void testCubicInterpolationExtensionWithLena()
void testCubicInterpolationExtensionWithAstronaut()
{
ImageImportInfo inforef("astronaut367IIR.xv");
Image ref(inforef.size());
Expand All @@ -1298,7 +1298,7 @@ struct ResizeImageTest

/*Verkleinerungstest
*/
void testCubicInterpolationReductionWithLena()
void testCubicInterpolationReductionWithAstronaut()
{
ImageImportInfo inforef("astronaut42IIR.xv");
Image ref(inforef.size());
Expand All @@ -1310,7 +1310,7 @@ struct ResizeImageTest

shouldEqualSequenceTolerance(dest.begin(), dest.end(), ref.begin(), 1e-4f);

ImageImportInfo inforgb("lennargb42IIR.xv");
ImageImportInfo inforgb("astronautrgb42IIR.xv");
RGBImage rgbref(inforgb.size());
importImage(inforgb, destImage(rgbref));

Expand Down Expand Up @@ -1794,10 +1794,10 @@ struct ImageFunctionsTestSuite
add( testCase( &ResizeImageTest::scalarReduce));
add( testCase( &ResizeImageTest::rgbExpand));
add( testCase( &ResizeImageTest::rgbReduce));
add( testCase( &ResizeImageTest::testCatmullRomInterpolationExtensionWithLena));
add( testCase( &ResizeImageTest::testCatmullRomInterpolationReductionWithLena));
add( testCase( &ResizeImageTest::testCubicInterpolationExtensionWithLena));
add( testCase( &ResizeImageTest::testCubicInterpolationReductionWithLena));
add( testCase( &ResizeImageTest::testCatmullRomInterpolationExtensionWithAstronaut));
add( testCase( &ResizeImageTest::testCatmullRomInterpolationReductionWithAstronaut));
add( testCase( &ResizeImageTest::testCubicInterpolationExtensionWithAstronaut));
add( testCase( &ResizeImageTest::testCubicInterpolationReductionWithAstronaut));
add( testCase( &ResizeImageTest::testCatmullRomInterpolationExtensionHandControled));
add( testCase( &SplineImageViewTest<0>::testPSF));
add( testCase( &SplineImageViewTest<0>::testCoefficientArray));
Expand Down

0 comments on commit 0fa82db

Please sign in to comment.