diff --git a/Modules/Core/ImageAdaptors/test/itkImageAdaptorGTest.cxx b/Modules/Core/ImageAdaptors/test/itkImageAdaptorGTest.cxx index 6e5d9599553..61643053f8a 100644 --- a/Modules/Core/ImageAdaptors/test/itkImageAdaptorGTest.cxx +++ b/Modules/Core/ImageAdaptors/test/itkImageAdaptorGTest.cxx @@ -20,6 +20,7 @@ #include "itkImageAdaptor.h" #include "itkCovariantVector.h" +#include "itkDefaultPixelAccessor.h" #include "itkImage.h" #include "itkImageBase.h" #include "itkImageRegionIterator.h" @@ -32,27 +33,6 @@ namespace { -template -class DummyPixelAccessor -{ -public: - using ExternalType = TPixelType; - using InternalType = TPixelType; - - static void - Set(TPixelType & output, const TPixelType & input) - { - output = input; - } - - static TPixelType - Get(const TPixelType & input) - { - return input; - } -}; - - template void Expect_same_type_and_equal_value(T1 && value1, T2 && value2) @@ -127,7 +107,7 @@ Expect_Transform_member_functions_return_the_same_for_an_ImageAdaptor_as_for_its const auto ImageDimension = TImage::ImageDimension; using IndexType = itk::Index; - const auto imageAdaptor = itk::ImageAdaptor>::New(); + const auto imageAdaptor = itk::ImageAdaptor>::New(); imageAdaptor->SetImage(&image); for (const auto & point : @@ -197,7 +177,7 @@ TEST(ImageAdaptor, ComputeOffset) using ImageType = itk::Image; const auto image = ImageType::New(); - const auto adaptor = itk::ImageAdaptor>::New(); + const auto adaptor = itk::ImageAdaptor>::New(); // Use a very small image region, to speed up the unit test. const itk::ImageRegion imageRegion{ itk::Index::Filled(1), itk::Size::Filled(2) }; @@ -221,7 +201,7 @@ TEST(ImageAdaptor, SupportsRegionIterator) using ImageType = itk::Image; const auto image = ImageType::New(); - const auto adaptor = itk::ImageAdaptor>::New(); + const auto adaptor = itk::ImageAdaptor>::New(); adaptor->SetImage(image); adaptor->SetRegions(itk::Size::Filled(4));