Commit f8576771 authored by Arnaud Jaen's avatar Arnaud Jaen

DOC: Call UpdateOutputInformation instead of GenerateOutputInformation

parents 48862951 483f3a51
......@@ -258,8 +258,8 @@ LabelImageToOGRDataSourceFilter<TInputImage>
this->GetInputMask()->TransformIndexToPhysicalPoint(bufferIndexOrigin, bufferOrigin);
geoTransform[0] = bufferOrigin[0];
geoTransform[3] = bufferOrigin[1];
geoTransform[1] = this->GetInput()->GetSpacing()[0];
geoTransform[5] = this->GetInput()->GetSpacing()[1];
geoTransform[1] = this->GetInputMask()->GetSpacing()[0];
geoTransform[5] = this->GetInputMask()->GetSpacing()[1];
// FIXME: Here component 1 and 4 should be replaced by the orientation parameters
if (projSize == 0)
{
......@@ -268,8 +268,8 @@ LabelImageToOGRDataSourceFilter<TInputImage>
}
else
{
geoTransform[2] = this->GetInput()->GetGeoTransform()[2];
geoTransform[4] = this->GetInput()->GetGeoTransform()[4];
geoTransform[2] = this->GetInputMask()->GetGeoTransform()[2];
geoTransform[4] = this->GetInputMask()->GetGeoTransform()[4];
}
maskDataset->SetGeoTransform(geoTransform);
......
......@@ -181,7 +181,7 @@ int main(int argc, char *argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
reader->SetFileName(imageName);
reader->GenerateOutputInformation();
reader->UpdateOutputInformation();
maskReader->SetFileName(maskName);
maskReader->UpdateOutputInformation();
......
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