From 233eff24533c5468ad2ec7bce07716c6c59695ae Mon Sep 17 00:00:00 2001 From: Jordi Inglada <jordi.inglada@cesbio.cnes.fr> Date: Wed, 12 Sep 2018 12:10:03 +0200 Subject: [PATCH] ENH: intitalise no data in declaration --- .../Applications/AppClassification/app/otbZonalStatistics.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Modules/Applications/AppClassification/app/otbZonalStatistics.cxx b/Modules/Applications/AppClassification/app/otbZonalStatistics.cxx index 1d24a15da6..fde9f332d8 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; -- GitLab