DMRITool  v0.1.1-139-g860d86b4
Diffusion MRI Tool
itkVectorImageToMultiVolumeImageFilter.h
Go to the documentation of this file.
1 
18 #ifndef __itkVectorImageToMultiVolumeImageFilter_h
19 #define __itkVectorImageToMultiVolumeImageFilter_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< VectorImage<TOutputPixelType, VImageDimension>, Image<TInputPixelType, VImageDimension+1> >
36 {
37 
38 public:
39 
40  itkStaticConstMacro (VectorImageDimension, unsigned int, VImageDimension);
41  itkStaticConstMacro (MultiVolumeImageDimension, unsigned int, VImageDimension+1);
42 
43  typedef VectorImage<TOutputPixelType,VectorImageDimension> InputImageType;
44  typedef Image<TInputPixelType,MultiVolumeImageDimension> 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(VectorImageToMultiVolumeImageFilter, 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  VectorImageToMultiVolumeImageFilter(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(__itkVectorImageToMultiVolumeImageFilter_hxx)
88 #endif
89 
90 #endif
91 
ImageToImageFilter< InputImageType, OutputImageType > Superclass
#define ITK_OVERRIDE
Definition: utlITKMacro.h:46
convert VectorImage<TOutputPixelType, VImageDimension> to Image<TInputPixelType, VImageDimension+1> ...
VectorImage< TOutputPixelType, VectorImageDimension > InputImageType
Image< TInputPixelType, MultiVolumeImageDimension > OutputImageType