From e93162affbb69d5ed8415fca3e61609de6e356aa Mon Sep 17 00:00:00 2001
From: Guillaume Pasero <guillaume.pasero@c-s.fr>
Date: Tue, 27 Dec 2011 11:55:18 +0100
Subject: [PATCH] WRG: commented unused variables in otbViewerModel, fixed
 tests apTvDmStereSensorModel...

---
 Code/Visualization/Viewer/Model/otbViewerModel.cxx | 6 +++---
 Testing/Applications/DisparityMap/CMakeLists.txt   | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/Code/Visualization/Viewer/Model/otbViewerModel.cxx b/Code/Visualization/Viewer/Model/otbViewerModel.cxx
index d88ba6a479..6f9584dbfa 100644
--- a/Code/Visualization/Viewer/Model/otbViewerModel.cxx
+++ b/Code/Visualization/Viewer/Model/otbViewerModel.cxx
@@ -142,7 +142,7 @@ ViewerModel
   // If jpeg2000, add the selected resolution at the end of the file name
   if( isJPEG2000 )
     {
-    unsigned int resolution = 0;
+//     unsigned int resolution = 0;
     otbFilepath += ":";
     std::ostringstream ossRes;
     ossRes << id;
@@ -174,8 +174,8 @@ ViewerModel
     }
   //// If not jpeg2000 or trouble in jpeg2000 quicloock, use a
   //// streaming shrink image filter
-  unsigned int maxSize = std::max( reader->GetOutput()->GetLargestPossibleRegion().GetSize()[0],
-                                   reader->GetOutput()->GetLargestPossibleRegion().GetSize()[1] );
+//   unsigned int maxSize = std::max( reader->GetOutput()->GetLargestPossibleRegion().GetSize()[0],
+//                                    reader->GetOutput()->GetLargestPossibleRegion().GetSize()[1] );
   if (quicklook.IsNull())
     {
     typedef otb::StreamingShrinkImageFilter<ImageType> StreamingShrinkImageFilterType;
diff --git a/Testing/Applications/DisparityMap/CMakeLists.txt b/Testing/Applications/DisparityMap/CMakeLists.txt
index 0657a98cf3..67e56d7118 100644
--- a/Testing/Applications/DisparityMap/CMakeLists.txt
+++ b/Testing/Applications/DisparityMap/CMakeLists.txt
@@ -15,7 +15,7 @@ OTB_TEST_APPLICATION(NAME  apTvDmStereoSensorModelToElevationMapTest
                              -step 1.0
                              -elev dem
                              -elev.dem.path ${INPUTDATA}/DEM/srtm_directory/
-                             -geoid ${INPUTDATA}/DEM/egm96.grd
+                             -elev.dem.geoid ${INPUTDATA}/DEM/egm96.grd
                      VALID   --compare-image ${EPSILON_10}
                              ${BASELINE}/apTvDmStereoSensorModelToElevationMapTest.tif
                              ${TEMP}/apTvDmStereoSensorModelToElevationMapTest.tif)
@@ -33,7 +33,7 @@ OTB_TEST_APPLICATION(NAME  apTvDmStereoSensorModelToElevationMapWithSmoothing
                              -step 1.0
                              -elev dem
                              -elev.dem.path ${INPUTDATA}/DEM/srtm_directory/
-                             -geoid ${INPUTDATA}/DEM/egm96.grd
+                             -elev.dem.geoid ${INPUTDATA}/DEM/egm96.grd
                              -rgs 2.0
                              -sgs 2.0
                      VALID   --compare-image ${EPSILON_10}
-- 
GitLab