diff --git a/Modules/Applications/AppClassification/app/otbZonalStatistics.cxx b/Modules/Applications/AppClassification/app/otbZonalStatistics.cxx index 1d24a15da68072f0426623bfd3e57c17456501f2..fde9f332d89f81566f3944f5f17969b3b9d7579c 100644 --- a/Modules/Applications/AppClassification/app/otbZonalStatistics.cxx +++ b/Modules/Applications/AppClassification/app/otbZonalStatistics.cxx @@ -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;