From 3823d497ea9bc7aadf8ef073564eae32ba0022a5 Mon Sep 17 00:00:00 2001
From: Emmanuel Christophe <emmanuel.christophe@orfeo-toolbox.org>
Date: Wed, 16 Jan 2008 13:28:50 +0000
Subject: [PATCH] Nettoyage de #include inutiles

---
 Examples/Projections/OrthoRectificationExample.cxx | 12 +++---------
 Examples/Projections/SensorModelExample.cxx        | 11 -----------
 2 files changed, 3 insertions(+), 20 deletions(-)

diff --git a/Examples/Projections/OrthoRectificationExample.cxx b/Examples/Projections/OrthoRectificationExample.cxx
index 5698ac0ef0..0d4d69d19f 100644
--- a/Examples/Projections/OrthoRectificationExample.cxx
+++ b/Examples/Projections/OrthoRectificationExample.cxx
@@ -22,11 +22,10 @@
 
 
 // iostream is used for general output
-#include <iostream>
-#include <iterator>
-#include <stdlib.h>
+// #include <iostream>
+// #include <iterator>
+// #include <stdlib.h>
 
-#include "otbMacro.h"
 #include "otbImage.h"
 #include "otbVectorImage.h"
 #include "otbImageFileReader.h"
@@ -34,8 +33,6 @@
 
 #include "otbPerBandVectorImageFilter.h"
 
-// #include "init/ossimInit.h"
-
 // Software Guide : BeginLatex
 //
 // This example demonstrates the use of the
@@ -61,9 +58,6 @@
 int main( int argc, char* argv[] )
 {
 
-
-  //ossimInit::instance()->initialize(argc, argv);
-
   if(argc!=11)
     {
       std::cout << argv[0] <<" <input_filename> <output_filename>  <utm zone> <hemisphere N/S> <x_ground_upper_left_corner> <y_ground_upper_left_corner> <x_Size> <y_Size> <x_groundSamplingDistance> <y_groundSamplingDistance> (should be negative since origin is upper left)>" 
diff --git a/Examples/Projections/SensorModelExample.cxx b/Examples/Projections/SensorModelExample.cxx
index d6d4bb7a83..f262b8235a 100644
--- a/Examples/Projections/SensorModelExample.cxx
+++ b/Examples/Projections/SensorModelExample.cxx
@@ -19,21 +19,12 @@
 #pragma warning ( disable : 4786 )
 #endif
 
-#include <iostream>
-#include <iterator>
-#include <stdlib.h>
-
-#include "otbMacro.h"
 #include "otbImage.h"
 #include "otbImageFileReader.h"
 #include "otbImageFileWriter.h"
-#include "otbStreamingImageFileWriter.h"
-
 
-#include "itkExceptionObject.h"
 #include "itkExtractImageFilter.h"
 #include "itkRescaleIntensityImageFilter.h"
-#include "itkImageRegionIteratorWithIndex.h"
 #include "itkLinearInterpolateImageFunction.h"
 
 // Software Guide : BeginLatex
@@ -60,8 +51,6 @@
 int main( int argc, char* argv[] )
 {
 
-//   ossimInit::instance()->initialize(argc, argv);//FIXME : est-ce
-                                               //toujours necessaire?
 
   if(argc!=8)
     {
-- 
GitLab