15 #ifndef __vtkITKImageToImageFilterUSUL_h 16 #define __vtkITKImageToImageFilterUSUL_h 18 #include "vtkImageAlgorithm.h" 20 #include "itkImageToImageFilter.h" 21 #include "itkVTKImageExport.h" 22 #include "itkVTKImageImport.h" 33 Superclass::PrintSelf ( os, indent );
40 typedef itk::Image<unsigned short, 3> InputImageType;
48 typedef itk::ImageToImageFilter<InputImageType,OutputImageType>
FilterType;
55 this->itkImporter = ImageImportType::New();
56 this->itkExporter = ImageExportType::New();
61 m_Filter->SetInput ( this->itkImporter->GetOutput() );
62 this->itkExporter->SetInput ( m_Filter->GetOutput() );
63 this->vtkCast->SetOutputScalarTypeToUnsignedShort();
void ConnectPipelines(ITK_Exporter exporter, VTK_Importer *importer)
void PrintSelf(ostream &os, vtkIndent indent)
vtkITKImageToImageFilterUSUL(FilterType *filter)
ImageImportType::Pointer itkImporter
itk::ImageToImageFilter< InputImageType, OutputImageType > FilterType
Abstract base class for connecting ITK and VTK.
~vtkITKImageToImageFilterUSUL()
itk::VTKImageImport< InputImageType > ImageImportType
static vtkITKImageToImageFilterUSUL * New()
FilterType::Pointer m_Filter
itk::Image< unsigned long, 3 > OutputImageType
itk::VTKImageExport< OutputImageType > ImageExportType
void LinkITKProgressToVTKProgress(itk::ProcessObject *process)
BTX.
ImageExportType::Pointer itkExporter