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

ENH: no-data value can be chose

parent 5eda97ed
......@@ -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);
}
......
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