Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
itkDiffusionQballGeneralizedFaImageFilter.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 /*===================================================================
18 
19 This file is based heavily on a corresponding ITK filter.
20 
21 ===================================================================*/
22 #ifndef __itkDiffusionQballGeneralizedFaImageFilter_h_
23 #define __itkDiffusionQballGeneralizedFaImageFilter_h_
24 
25 //#include "MitkDiffusionImagingMBIExports.h"
26 #include "itkImageToImageFilter.h"
27 //#include "vnl/vnl_matrix.h"
28 #include "vnl/vnl_vector_fixed.h"
29 #include "vnl/vnl_matrix.h"
30 #include "vnl/algo/vnl_svd.h"
31 #include "itkVectorContainer.h"
32 #include "itkVectorImage.h"
33 
34 namespace itk{
38 template< class TOdfPixelType,
39  class TGfaPixelType,
40  int NrOdfDirections>
42  public ImageToImageFilter< Image< Vector< TOdfPixelType, NrOdfDirections >, 3 >,
43  Image< TGfaPixelType, 3 > >
44 {
45 
46 public:
47 
49  {
64  };
65 
69  typedef ImageToImageFilter< Image< Vector< TOdfPixelType, NrOdfDirections >, 3 >,
70  Image< TGfaPixelType, 3 > >
72 
74  itkFactorylessNewMacro(Self)
75  itkCloneMacro(Self)
76 
79  ImageToImageFilter);
80 
81  typedef TOdfPixelType OdfComponentType;
82 
83  typedef TGfaPixelType DirectionPixelType;
84 
86 
88 
89  typedef typename Superclass::OutputImageRegionType
91 
92  itkStaticConstMacro(NOdfDirections,int,NrOdfDirections);
93 
94  void SetOdfImage( const InputImageType *image );
95 
96  itkGetMacro(ComputationMethod, GfaComputationMethod);
97  itkSetMacro(ComputationMethod, GfaComputationMethod);
98 
99  itkGetMacro(Param1, double);
100  itkSetMacro(Param1, double);
101 
102  itkGetMacro(Param2, double);
103  itkSetMacro(Param2, double);
104 
105 protected:
106  DiffusionQballGeneralizedFaImageFilter();
107  ~DiffusionQballGeneralizedFaImageFilter() {};
108  void PrintSelf(std::ostream& os, Indent indent) const;
109 
111  void ThreadedGenerateData( const
112  OutputImageRegionType &outputRegionForThread, ThreadIdType);
113 
115 
116  double m_Param1;
117  double m_Param2;
118 
119 };
120 
121 }
122 
123 #ifndef ITK_MANUAL_INSTANTIATION
125 #endif
126 
127 #endif //__itkDiffusionQballGeneralizedFaImageFilter_h_
128 
itkStaticConstMacro(NOdfDirections, int, NrOdfDirections)
ImageToImageFilter< Image< Vector< TOdfPixelType, NrOdfDirections >, 3 >, Image< TGfaPixelType, 3 > > Superclass
void SetOdfImage(const InputImageType *image)
void PrintSelf(std::ostream &os, Indent indent) const
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType)