itkImageToVectorImageFilter.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkImageToVectorImageFilter_h
00018 #define __itkImageToVectorImageFilter_h
00019
00020 #include "itkImageToImageFilter.h"
00021 #include "itkVectorContainer.h"
00022 #include "itkVectorImage.h"
00023
00024 namespace itk {
00043 template< class TInputImage >
00044 class ITK_EXPORT ImageToVectorImageFilter :
00045 public ImageToImageFilter< TInputImage,
00046 VectorImage< ITK_TYPENAME TInputImage::InternalPixelType,
00047 ::itk::GetImageDimension<TInputImage>::ImageDimension> >
00048 {
00049 public:
00050
00051 typedef ImageToVectorImageFilter Self;
00052 typedef SmartPointer<Self> Pointer;
00053 typedef SmartPointer<const Self> ConstPointer;
00054 itkNewMacro(Self);
00055 itkTypeMacro(ImageToVectorImageFilter, ImageToImageFilter);
00056
00057 itkStaticConstMacro(Dimension, unsigned int, TInputImage::ImageDimension);
00058
00059 typedef typename TInputImage::InternalPixelType PixelType;
00060 typedef VectorImage< PixelType,
00061 itkGetStaticConstMacro(Dimension) > OutputImageType;
00062 typedef ImageToImageFilter< TInputImage,
00063 OutputImageType > Superclass;
00064 typedef typename Superclass::InputImageType InputImageType;
00065
00066 typedef typename Superclass::InputImageRegionType RegionType;
00067
00068 virtual void SetNthInput(unsigned int idx, const InputImageType * inputImage)
00069 { this->SetInput(idx, inputImage); }
00070
00071 #ifdef ITK_USE_CONCEPT_CHECKING
00072
00073
00074
00076 #endif
00077
00078 protected:
00079 ImageToVectorImageFilter();
00080
00081 virtual void GenerateOutputInformation(void);
00082 virtual void BeforeThreadedGenerateData();
00083 virtual void ThreadedGenerateData( const RegionType &outputRegionForThread, int);
00084 virtual void SetNthInput(unsigned int num, DataObject *input)
00085 {
00086 Superclass::SetNthInput(num, input);
00087 }
00088 private:
00089 ImageToVectorImageFilter(const Self&);
00090 void operator=(const Self&);
00091
00092 };
00093 }
00094
00095 #ifndef ITK_MANUAL_INSTANTIATION
00096 #include "itkImageToVectorImageFilter.txx"
00097 #endif
00098
00099 #endif
00100