diff --git a/Code/Projections/otbOrthoRectificationFilter.h b/Code/Projections/otbOrthoRectificationFilter.h index 7ea0d9dc149c31a5cdd91da52d1f5f2d2999c6ed..7e01fad8915dab1b998cd5936ddcaeeada9c0e24 100644 --- a/Code/Projections/otbOrthoRectificationFilter.h +++ b/Code/Projections/otbOrthoRectificationFilter.h @@ -89,6 +89,12 @@ public: } } itkGetObjectMacro(MapProjection, MapProjectionType); + + /** + * Set the output size. This method is deprecated and is + * maintained for backward compatibility only + */ + itkLegacyMacro(void SetSize(const SizeType& size){this->SetOutputSize(size);}); protected: OrthoRectificationFilter(); diff --git a/Testing/Code/Projections/otbOrthoRectificationFilter.cxx b/Testing/Code/Projections/otbOrthoRectificationFilter.cxx index 73556babaeb64a7f34723d5f9d415a09167933ea..ceb1148352710967b0b54a3791d6703c603e1ae1 100644 --- a/Testing/Code/Projections/otbOrthoRectificationFilter.cxx +++ b/Testing/Code/Projections/otbOrthoRectificationFilter.cxx @@ -76,7 +76,7 @@ int otbOrthoRectificationFilter(int argc, char* argv[]) ImageType::SizeType size; size[0] = atoi(argv[5]); // X size size[1] = atoi(argv[6]); //Y size - orthoRectifFilter->SetOutputSize(size); + orthoRectifFilter->SetSize(size); ImageType::SpacingType spacing; spacing[0] = atof(argv[7]); @@ -91,7 +91,7 @@ int otbOrthoRectificationFilter(int argc, char* argv[]) utmMapProjection->SetZone(atoi(argv[9])); utmMapProjection->SetHemisphere(argv[10][0]); orthoRectifFilter->SetMapProjection(utmMapProjection); - + // Deformation Field spacing ImageType::SpacingType gridSpacing; gridSpacing[0] = atof(argv[11]);