DMRITool  v0.1.1-139-g860d86b4
Diffusion MRI Tool
itkScalarMapFromSPFImageFilter.h
Go to the documentation of this file.
1 
12 #ifndef __itkScalarMapFromSPFImageFilter_h
13 #define __itkScalarMapFromSPFImageFilter_h
14 
16 
17 
18 namespace itk
19 {
20 
28 template < class TInputImage, class TOutputImage=Image<double,3> >
29 class ITK_EXPORT ScalarMapFromSPFImageFilter :
30 public FeaturesFromSPFImageFilter<TInputImage, TOutputImage>
31 {
32 public:
36  typedef SmartPointer<Self> Pointer;
37  typedef SmartPointer<const Self> ConstPointer;
38 
40  itkNewMacro(Self);
41 
44 
46 
47  typedef typename Superclass::MatrixType MatrixType;
48  typedef typename Superclass::MatrixPointer MatrixPointer;
49  typedef typename Superclass::VectorType VectorType;
50  typedef typename Superclass::VectorPointer VectorPointer;
51  typedef typename Superclass::BasisType BasisType;
52  typedef typename Superclass::STDVectorType STDVectorType;
53  typedef typename Superclass::STDVectorPointer STDVectorPointer;
54 
55 
56  typedef enum
57  {
59  RTO=0,
61  MSD,
63  PFA
64  } MapType;
65 
66  itkSetMacro(MapType, MapType);
67  itkGetMacro(MapType, MapType);
68 
69 protected:
70  ScalarMapFromSPFImageFilter() : Superclass()
71  {
72  }
73 
75 
77 
78  void GenerateOutputInformation() ITK_OVERRIDE;
79 
80  void BeforeThreadedGenerateData () ITK_OVERRIDE;
81  void ThreadedGenerateData(const typename TOutputImage::RegionType& outputRegionForThread,ThreadIdType threadId ) ITK_OVERRIDE;
82 
83  typename LightObject::Pointer InternalClone() const ITK_OVERRIDE;
84 
85  void PrintSelf(std::ostream& os, Indent indent) const ITK_OVERRIDE;
86 
87  VectorType m_SumWeight;
88  MapType m_MapType;
89 
90 private:
91  ScalarMapFromSPFImageFilter(const Self&); //purposely not implemented
92  void operator=(const Self&); //purposely not implemented
93 
94 };
95 
96 
97 
98 } // end namespace itk
99 
100 
101 #if ITK_TEMPLATE_EXPLICIT
102 # include "Templates/itkScalarMapFromSPFImageFilter+-.h"
103 #endif
104 
105 #if !defined(ITK_MANUAL_INSTANTIATION) && !defined(__itkScalarMapFromSPFImageFilter_hxx)
107 #endif
108 
109 
110 #endif
calculate ODFs from SPF coefficients
#define itkTypedefMaskedImageToImageMacro(Superclass)
Definition: utlITKMacro.h:165
#define ITK_OVERRIDE
Definition: utlITKMacro.h:46
Superclass::STDVectorPointer STDVectorPointer
Compute some features (DWI/EAP profile, ODFs, scalar indices) from SPF coefficients.
FeaturesFromSPFImageFilter< TInputImage, TOutputImage > Superclass