DMRITool  v0.1.1-139-g860d86b4
Diffusion MRI Tool
itkMultiVolumeImageToVectorImageFilter.h
Go to the documentation of this file.
1 
18 #ifndef __itkMultiVolumeImageToVectorImageFilter_h
19 #define __itkMultiVolumeImageToVectorImageFilter_h
20 
21 #include "itkVectorImage.h"
22 #include "itkImageToImageFilter.h"
23 
24 namespace itk
25 {
26 
33 template < class TInputPixelType, class TOutputPixelType, unsigned int VImageDimension = 3>
35  public ImageToImageFilter< Image<TInputPixelType,VImageDimension+1>, VectorImage<TOutputPixelType, VImageDimension> >
36 {
37 
38 public:
39 
40  itkStaticConstMacro (VectorImageDimension, unsigned int, VImageDimension);
41  itkStaticConstMacro (MultiVolumeImageDimension, unsigned int, VImageDimension+1);
42 
43  typedef Image<TInputPixelType,MultiVolumeImageDimension> InputImageType;
44  typedef VectorImage<TOutputPixelType,VectorImageDimension> OutputImageType;
45 
48  typedef ImageToImageFilter<InputImageType,OutputImageType> Superclass;
49  typedef SmartPointer<Self> Pointer;
50  typedef SmartPointer<const Self> ConstPointer;
51 
53  itkNewMacro(Self);
54 
56  itkTypeMacro(MultiVolumeImageToVectorImageFilter, ImageToImageFilter);
57 
58 
59  typedef typename InputImageType::Pointer InputImagePointer;
60  typedef typename InputImageType::ConstPointer InputImageConstPointer;
61  typedef typename InputImageType::RegionType InputImageRegionType;
62  typedef typename InputImageType::PixelType InputImagePixelType;
63 
64  typedef typename OutputImageType::Pointer OutputImagePointer;
65  typedef typename OutputImageType::PixelType OutputImagePixelType;
66 
67 protected:
70 
71  void PrintSelf(std::ostream& os, Indent indent) const ITK_OVERRIDE;
72 
74  virtual void GenerateData() ITK_OVERRIDE;
75 
76  virtual void GenerateOutputInformation() ITK_OVERRIDE;
77 
78 private:
79  MultiVolumeImageToVectorImageFilter(const Self&); //purposely not implemented
80  void operator=(const Self&); //purposely not implemented
81 
82 };
83 
84 }
85 
86 #if !defined(ITK_MANUAL_INSTANTIATION) && !defined(__itkMultiVolumeImageToVectorImageFilter_hxx)
88 #endif
89 
90 #endif
91 
VectorImage< TOutputPixelType, VectorImageDimension > OutputImageType
convert Image<TInputPixelType, VImageDimension+1> to VectorImage<TOutputPixelType, VImageDimension>
Image< TInputPixelType, MultiVolumeImageDimension > InputImageType
#define ITK_OVERRIDE
Definition: utlITKMacro.h:46
ImageToImageFilter< InputImageType, OutputImageType > Superclass