diff --git a/Common/GTesting/elxTransformIOGTest.cxx b/Common/GTesting/elxTransformIOGTest.cxx index 65b1a4193..b69023b26 100644 --- a/Common/GTesting/elxTransformIOGTest.cxx +++ b/Common/GTesting/elxTransformIOGTest.cxx @@ -308,8 +308,8 @@ struct WithDimension const auto imageContainer = elx::ElastixBase::DataObjectContainerType::New(); const auto image = itk::Image::New(); - image->SetOrigin(testValue); - image->SetSpacing(testValue); + image->SetOrigin(itk::Point(testValue)); + image->SetSpacing(itk::Vector(testValue)); imageContainer->push_back(image); elastixObject->SetFixedImageContainer(imageContainer);