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 *);
00069
00070 #ifdef ITK_USE_CONCEPT_CHECKING
00071
00072
00073
00075 #endif
00076
00077 protected:
00078 ImageToVectorImageFilter();
00079 ~ImageToVectorImageFilter() {};
00080 void PrintSelf(std::ostream& os, Indent indent) const;
00081
00082 virtual void AllocateOutputs();
00083 virtual void BeforeThreadedGenerateData();
00084 virtual void ThreadedGenerateData( const RegionType &outputRegionForThread, int);
00085 };
00086
00087 }
00088
00089 #ifndef ITK_MANUAL_INSTANTIATION
00090 #include "itkImageToVectorImageFilter.txx"
00091 #endif
00092
00093 #endif
00094