Commit 7cbd515c authored by Julien Osman's avatar Julien Osman

FIX: Input and Output ImageMetadata are set in the good order

parent b3b9f74b
Pipeline #6669 failed with stages
in 89 minutes and 44 seconds
......@@ -111,7 +111,6 @@ public:
/**
* Set/Get input & output projections.
* Set/Get input & output keywordlist
* The macro are not used here cause the input and the output are
* inversed.
*/
......@@ -140,21 +139,21 @@ public:
/** Set/Get ImageMetadata*/
const ImageMetadata* GetInputImageMetadata() const
{
return m_Transform->GetInputImageMetadata();
return m_Transform->GetOutputImageMetadata();
}
void SetInputImageMetadata(const ImageMetadata* imd)
{
m_Transform->SetInputImageMetadata(imd);
m_Transform->SetOutputImageMetadata(imd);
this->Modified();
}
const ImageMetadata* GetOutputImageMetadata() const
{
return m_Transform->GetOutputImageMetadata();
return m_Transform->GetInputImageMetadata();
}
void SetOutputImageMetadata(const ImageMetadata* imd)
{
m_Transform->SetOutputImageMetadata(imd);
m_Transform->SetInputImageMetadata(imd);
this->Modified();
}
......
......@@ -111,7 +111,6 @@ int otbDEMToImageGeneratorFromImageTest(int argc, char* argv[])
{
char* outputName2 = argv[4];
generatorFilter2->SetOutputParametersFromImage(reader->GetOutput());
generatorFilter2->InstantiateTransform();
extract2->SetInput(generatorFilter2->GetOutput());
extract2->SetSizeX(atoi(argv[7]));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment