Skip to content
Snippets Groups Projects
Commit e20b383c authored by Thomas Feuvrier's avatar Thomas Feuvrier
Browse files

Remplacement de varaibles itk::Image et itk::ImageFileWriter par otb::.

parent 85374509
Branches
Tags
No related merge requests found
...@@ -21,14 +21,13 @@ ...@@ -21,14 +21,13 @@
#endif #endif
#include "itkExceptionObject.h" #include "itkExceptionObject.h"
#include "itkImage.h"
#include "itkImageFileWriter.h"
#include "itkPolyLineParametricPath.h" #include "itkPolyLineParametricPath.h"
#include "otbImageFileReader.h" #include "otbImage.h"
#include "otbPathListSource.h" #include "otbPathListSource.h"
#include "otbImageToPathListAlignFilter.h" #include "otbImageToPathListAlignFilter.h"
#include "otbDrawPathListFilter.h" #include "otbDrawPathListFilter.h"
#include "otbImageFileReader.h"
#include "otbImageFileWriter.h" #include "otbImageFileWriter.h"
...@@ -44,31 +43,24 @@ int otbDrawPathList( int argc, char * argv[] ) ...@@ -44,31 +43,24 @@ int otbDrawPathList( int argc, char * argv[] )
typedef unsigned char OutputPixelType; typedef unsigned char OutputPixelType;
const unsigned int Dimension = 2; const unsigned int Dimension = 2;
typedef itk::Image< InputPixelType, Dimension > InputImageType; typedef otb::Image< InputPixelType, Dimension > InputImageType;
typedef itk::Image< OutputPixelType, Dimension > OutputImageType; typedef otb::Image< OutputPixelType, Dimension > OutputImageType;
typedef itk::PolyLineParametricPath< Dimension > PathType; typedef itk::PolyLineParametricPath< Dimension > PathType;
typedef PathType::Pointer PathPointerType; typedef PathType::Pointer PathPointerType;
typedef otb::ImageFileReader< InputImageType > ReaderType; 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::DrawPathListFilter<InputImageType,PathType,OutputImageType> DrawPathListFilterType;
typedef otb::ImageToPathListAlignFilter<InputImageType,PathType> PathListType; typedef otb::ImageToPathListAlignFilter<InputImageType,PathType> PathListType;
ReaderType::Pointer reader = ReaderType::New(); ReaderType::Pointer reader = ReaderType::New();
WriterType::Pointer writer = WriterType::New(); WriterType::Pointer writer = WriterType::New();
// InputImageType::Pointer ImageIn = InputImageType::New();
// OutputImageType::Pointer ImageOut = OutputImageType::New();
DrawPathListFilterType::Pointer DrawPath = DrawPathListFilterType::New(); DrawPathListFilterType::Pointer DrawPath = DrawPathListFilterType::New();
// typedef itk::PathSource<PathType> TestType;
// TestType::Pointer test = TestType::New();
PathListType::Pointer testList = PathListType::New(); PathListType::Pointer testList = PathListType::New();
reader->SetFileName( inputFilename ); reader->SetFileName( inputFilename );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment