From e20b383c289f1b3fb9ef627d3763da3bb863fd80 Mon Sep 17 00:00:00 2001
From: Thomas Feuvrier <thomas.feuvrier@c-s.fr>
Date: Wed, 21 Feb 2007 17:21:31 +0000
Subject: [PATCH] Remplacement de varaibles itk::Image et itk::ImageFileWriter
 par otb::.

---
 .../Code/FeatureExtraction/otbDrawPathList.cxx | 18 +++++-------------
 1 file changed, 5 insertions(+), 13 deletions(-)

diff --git a/Testing/Code/FeatureExtraction/otbDrawPathList.cxx b/Testing/Code/FeatureExtraction/otbDrawPathList.cxx
index 3684d6374d..5673027ba6 100644
--- a/Testing/Code/FeatureExtraction/otbDrawPathList.cxx
+++ b/Testing/Code/FeatureExtraction/otbDrawPathList.cxx
@@ -21,14 +21,13 @@
 #endif
 
 #include "itkExceptionObject.h"
-#include "itkImage.h"
-#include "itkImageFileWriter.h"
 #include "itkPolyLineParametricPath.h"
 
-#include "otbImageFileReader.h"
+#include "otbImage.h"
 #include "otbPathListSource.h"
 #include "otbImageToPathListAlignFilter.h"
 #include "otbDrawPathListFilter.h"
+#include "otbImageFileReader.h"
 #include "otbImageFileWriter.h"
 
 
@@ -44,31 +43,24 @@ int otbDrawPathList( int argc, char * argv[] )
         typedef unsigned char   	                        OutputPixelType;
         const   unsigned int        	                        Dimension = 2;
 
-        typedef itk::Image< InputPixelType,  Dimension >	InputImageType;
-        typedef itk::Image< OutputPixelType, Dimension >        OutputImageType;
+        typedef otb::Image< InputPixelType,  Dimension >	InputImageType;
+        typedef otb::Image< OutputPixelType, Dimension >        OutputImageType;
 
 	typedef itk::PolyLineParametricPath< Dimension >	PathType;
 	typedef PathType::Pointer                               PathPointerType;	
 
         typedef otb::ImageFileReader< InputImageType  >         ReaderType;  
-        typedef itk::ImageFileWriter< OutputImageType >         WriterType;
+        typedef otb::ImageFileWriter< OutputImageType >         WriterType;
 	
-//	typedef otb::ImageToPathListAlignFilter<InputImageType,PathType> ListAlignFilterType;
-//	typedef ListAlignFilterType::OutputPathListType   ListAlignFilterOutputPathListType;	
 	typedef otb::DrawPathListFilter<InputImageType,PathType,OutputImageType> DrawPathListFilterType;
 
         typedef otb::ImageToPathListAlignFilter<InputImageType,PathType>  PathListType;
 
         ReaderType::Pointer reader         = ReaderType::New();
         WriterType::Pointer writer         = WriterType::New();
-//	InputImageType::Pointer  ImageIn   = InputImageType::New();
-//	OutputImageType::Pointer ImageOut  = OutputImageType::New();
 	
 	DrawPathListFilterType::Pointer DrawPath = DrawPathListFilterType::New();
 
-//        typedef itk::PathSource<PathType>  TestType;
-//	TestType::Pointer test = TestType::New();
-	
 	PathListType::Pointer testList = PathListType::New();
 	
         reader->SetFileName( inputFilename  );
-- 
GitLab