Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef _vtkKWEITKFilterModuleStencilOutput_h
00023 #define _vtkKWEITKFilterModuleStencilOutput_h
00024
00025 #include "vtkKWEITKFilterModule.h"
00026 #include "vtkImageStencilData.h"
00027 #include "vtkImageData.h"
00028 #include "vtkImageIterator.h"
00029
00030 namespace vtkitk
00031 {
00032
00033 template <class TFilterType >
00034 class FilterModuleStencilOutput : public FilterModule< TFilterType >
00035 {
00036 public:
00037
00038
00039 typedef TFilterType FilterType;
00040 typedef typename FilterType::InputImageType InputImageType;
00041 typedef typename FilterType::OutputImageType OutputImageType;
00042 typedef typename InputImageType::PixelType InputPixelType;
00043 typedef typename OutputImageType::PixelType OutputPixelType;
00044
00045 itkStaticConstMacro( Dimension, unsigned int,
00046 itk::GetImageDimension< InputImageType >::ImageDimension );
00047
00048 typedef itk::VTKImageToImageFilter< InputImageType >
00049 ImportFilterType;
00050 typedef itk::ImageToVTKImageFilter< OutputImageType >
00051 ExportFilterType;
00052
00053 typedef typename InputImageType::SizeType SizeType;
00054 typedef typename InputImageType::IndexType IndexType;
00055 typedef typename InputImageType::RegionType RegionType;
00056
00058 FilterModuleStencilOutput();
00059 virtual ~FilterModuleStencilOutput();
00060
00062 int GetOutputAsStencil( vtkImageStencilData *stencilData );
00063
00069 int GetSphereBoundedOutputAsStencil( vtkImageStencilData *stencilData,
00070 int center[3], double radius[3] );
00071
00072 };
00073
00074 }
00075
00076 #include "vtkKWEITKFilterModuleStencilOutput.txx"
00077
00078 #endif