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 #ifndef __itkB0ImageExtractionImageFilter_h_
00019 #define __itkB0ImageExtractionImageFilter_h_
00020
00021 #include "itkImageToImageFilter.h"
00022
00023 namespace itk{
00029 template< class TInputImagePixelType,
00030 class TOutputImagePixelType >
00031 class B0ImageExtractionImageFilter :
00032 public ImageToImageFilter< VectorImage<TInputImagePixelType, 3>,
00033 Image< TOutputImagePixelType, 3 > >
00034 {
00035
00036 public:
00037
00038 typedef B0ImageExtractionImageFilter Self;
00039 typedef SmartPointer<Self> Pointer;
00040 typedef SmartPointer<const Self> ConstPointer;
00041 typedef ImageToImageFilter< VectorImage< TInputImagePixelType, 3 >,
00042 Image< TOutputImagePixelType, 3 > >
00043 Superclass;
00044
00046 itkNewMacro(Self);
00047
00049 itkTypeMacro(B0ImageExtractionImageFilter,
00050 ImageToImageFilter);
00051
00052 typedef TInputImagePixelType InputPixelType;
00053
00054 typedef TOutputImagePixelType OutputPixelType;
00055
00056 typedef typename Superclass::InputImageType InputImageType;
00057 typedef typename Superclass::OutputImageType OutputImageType;
00058
00059 typedef typename Superclass::OutputImageRegionType
00060 OutputImageRegionType;
00061
00062 typedef vnl_vector_fixed< double, 3 > GradientDirectionType;
00063
00064 typedef itk::VectorContainer< unsigned int, GradientDirectionType >
00065 GradientDirectionContainerType;
00066
00067 GradientDirectionContainerType::Pointer GetDirections()
00068 { return m_Directions; }
00069 void SetDirections( GradientDirectionContainerType::Pointer directions )
00070 { this->m_Directions = directions; }
00071
00072 protected:
00073
00074 B0ImageExtractionImageFilter();
00075 ~B0ImageExtractionImageFilter() {};
00076
00077 void GenerateData();
00078
00079 GradientDirectionContainerType::Pointer m_Directions;
00080
00081 };
00082
00083 }
00084
00085 #ifndef ITK_MANUAL_INSTANTIATION
00086 #include "itkB0ImageExtractionImageFilter.txx"
00087 #endif
00088
00089 #endif //__itkB0ImageExtractionImageFilter_h_
00090