From 62c58757e0addfd98ae410b3590898bb5a3c3351 Mon Sep 17 00:00:00 2001
From: Rashad Kanavath <mohammed.rashad-km@cnes.fr>
Date: Thu, 17 Jul 2014 14:54:53 +0200
Subject: [PATCH] WRG: uninitialized values in DisparityMapToDEMFilter

---
 Code/DisparityMap/otbDisparityMapToDEMFilter.txx | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Code/DisparityMap/otbDisparityMapToDEMFilter.txx b/Code/DisparityMap/otbDisparityMapToDEMFilter.txx
index 18cb0bc8de..ba5bb46cd7 100644
--- a/Code/DisparityMap/otbDisparityMapToDEMFilter.txx
+++ b/Code/DisparityMap/otbDisparityMapToDEMFilter.txx
@@ -461,6 +461,13 @@ DisparityMapToDEMFilter<TDisparityImage,TInputImage,TOutputDEMImage,TEpipolarGri
   double epiIndexMax[2];
   int maxGridIndex[2];
   int minGridIndex[2];
+
+  epiIndexMin[0] = itk::NumericTraits<double>::Zero;
+  epiIndexMin[1] = itk::NumericTraits<double>::Zero;
+
+  epiIndexMax[0] = itk::NumericTraits<double>::Zero;
+  epiIndexMax[1] = itk::NumericTraits<double>::Zero;
+
   maxGridIndex[0] = static_cast<int>(gridRegion.GetIndex(0) + gridRegion.GetSize(0)) - 2;
   maxGridIndex[1] = static_cast<int>(gridRegion.GetIndex(1) + gridRegion.GetSize(1)) - 2;
   minGridIndex[0] = static_cast<int>(gridRegion.GetIndex(0));
-- 
GitLab