Commit 1ce6a7da authored by remi cresson's avatar remi cresson
Browse files

ENH: no-data value can be chose

parent 5eda97ed
No related merge requests found
Showing with 7 additions and 5 deletions
+7 -5
......@@ -138,12 +138,14 @@ public:
}
// Set nodata
FloatVectorImageType::PixelType nodatapix;
FloatVectorImageType::PixelType innodatapix, outnodatapix;
m_ArgmaxMosaicFilter->UpdateOutputInformation();
nodatapix.SetSize(m_ArgmaxMosaicFilter->GetOutput()->GetNumberOfComponentsPerPixel());
nodatapix.Fill(GetParameterFloat("nodata"));
m_ArgmaxMosaicFilter->SetNoDataInputPixel(nodatapix);
m_ArgmaxMosaicFilter->SetNoDataOutputPixel(nodatapix);
innodatapix.SetSize(inputArray->GetNthElement(0)->GetNumberOfComponentsPerPixel());
outnodatapix.SetSize(1);
innodatapix.Fill(GetParameterFloat("nodata"));
outnodatapix.Fill(GetParameterFloat("nodata"));
m_ArgmaxMosaicFilter->SetNoDataInputPixel(innodatapix);
m_ArgmaxMosaicFilter->SetNoDataOutputPixel(outnodatapix);
SelectInterpolator<ArgmaxFilterType>(m_ArgmaxMosaicFilter);
}
......
Supports Markdown
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