Skip to content
Snippets Groups Projects
Commit 3877deaa authored by Otmane Lahlou's avatar Otmane Lahlou
Browse files

ENH : use the SetSize method as deprecated

parent d583b357
Branches
Tags
No related merge requests found
......@@ -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();
......
......@@ -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]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment