Commit b319d2af authored by Jordi Inglada's avatar Jordi Inglada

ENH: intitalise no data in declaration

parent 655f2fbd
......@@ -336,8 +336,6 @@ public:
}
m_StatsFilter->GetStreamer()->SetAutomaticAdaptativeStreaming(GetParameterInt("ram"));
AddProcess(m_StatsFilter->GetStreamer(), "Computing statistics");
// Internal no-data value
m_IntNoData = itk::NumericTraits<LabelValueType>::max();
// Select zone definition mode
m_FromLabelImage = (GetParameterAsString("inzone") == "labelimage");
if (m_FromLabelImage)
......@@ -382,7 +380,7 @@ public:
LabelImageToVectorFilterType::Pointer m_LabelImageToVectorFilter;
ThresholdFilterType::Pointer m_ThresholdFilter;
FloatVectorImageType::Pointer m_InputImage;
LabelValueType m_IntNoData;
LabelValueType m_IntNoData = itk::NumericTraits<LabelValueType>::max();
bool m_FromLabelImage;
StatsFilterType::LabelPopulationMapType m_CountMap;
StatsFilterType::PixelValueMapType m_MeanMap;
......
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