Skip to content
Snippets Groups Projects
Commit f8576771 authored by Arnaud Jaen's avatar Arnaud Jaen
Browse files

DOC: Call UpdateOutputInformation instead of GenerateOutputInformation

parents 48862951 483f3a51
No related branches found
No related tags found
No related merge requests found
...@@ -258,8 +258,8 @@ LabelImageToOGRDataSourceFilter<TInputImage> ...@@ -258,8 +258,8 @@ LabelImageToOGRDataSourceFilter<TInputImage>
this->GetInputMask()->TransformIndexToPhysicalPoint(bufferIndexOrigin, bufferOrigin); this->GetInputMask()->TransformIndexToPhysicalPoint(bufferIndexOrigin, bufferOrigin);
geoTransform[0] = bufferOrigin[0]; geoTransform[0] = bufferOrigin[0];
geoTransform[3] = bufferOrigin[1]; geoTransform[3] = bufferOrigin[1];
geoTransform[1] = this->GetInput()->GetSpacing()[0]; geoTransform[1] = this->GetInputMask()->GetSpacing()[0];
geoTransform[5] = this->GetInput()->GetSpacing()[1]; geoTransform[5] = this->GetInputMask()->GetSpacing()[1];
// FIXME: Here component 1 and 4 should be replaced by the orientation parameters // FIXME: Here component 1 and 4 should be replaced by the orientation parameters
if (projSize == 0) if (projSize == 0)
{ {
...@@ -268,8 +268,8 @@ LabelImageToOGRDataSourceFilter<TInputImage> ...@@ -268,8 +268,8 @@ LabelImageToOGRDataSourceFilter<TInputImage>
} }
else else
{ {
geoTransform[2] = this->GetInput()->GetGeoTransform()[2]; geoTransform[2] = this->GetInputMask()->GetGeoTransform()[2];
geoTransform[4] = this->GetInput()->GetGeoTransform()[4]; geoTransform[4] = this->GetInputMask()->GetGeoTransform()[4];
} }
maskDataset->SetGeoTransform(geoTransform); maskDataset->SetGeoTransform(geoTransform);
......
...@@ -181,7 +181,7 @@ int main(int argc, char *argv[]) ...@@ -181,7 +181,7 @@ int main(int argc, char *argv[])
// Software Guide : EndLatex // Software Guide : EndLatex
// Software Guide : BeginCodeSnippet // Software Guide : BeginCodeSnippet
reader->SetFileName(imageName); reader->SetFileName(imageName);
reader->GenerateOutputInformation(); reader->UpdateOutputInformation();
maskReader->SetFileName(maskName); maskReader->SetFileName(maskName);
maskReader->UpdateOutputInformation(); maskReader->UpdateOutputInformation();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment