Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
itkDwiGradientLengthCorrectionFilter.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 #ifndef _itk_DwiGradientLengthCorrectionFilter_h_
18 #define _itk_DwiGradientLengthCorrectionFilter_h_
19 
20 #include <itkProcessObject.h>
21 #include <vnl/vnl_vector_fixed.h>
22 #include <itkVectorContainer.h>
24 
25 namespace itk
26 {
27 
29 {
30 
31 public:
35  typedef ProcessObject Superclass;
36 
37  typedef vnl_vector_fixed< double, 3 > GradientDirectionType;
38  typedef itk::VectorContainer< unsigned int, GradientDirectionType > GradientDirectionContainerType;
39 
41  itkFactorylessNewMacro(Self)
42  itkCloneMacro(Self)
43  itkTypeMacro(DwiGradientLengthCorrectionFilter,ProcessObject)
44 
45  void GenerateData() override;
46 
47  virtual void Update() override{
48  this->GenerateData();
49  }
50 
51  // input
52  itkSetMacro(RoundingValue, int)
53  itkSetMacro(ReferenceBValue, double)
54  itkSetMacro(ReferenceGradientDirectionContainer, GradientDirectionContainerType::Pointer)
55 
56  // output
57  itkGetMacro(OutputGradientDirectionContainer, GradientDirectionContainerType::Pointer)
58  itkGetMacro(NewBValue, double)
59 
60  protected:
62  ~DwiGradientLengthCorrectionFilter();
63 
64  double m_NewBValue;
65  double m_ReferenceBValue;
66  int m_RoundingValue;
67 
68  GradientDirectionContainerType::Pointer m_ReferenceGradientDirectionContainer;
69  GradientDirectionContainerType::Pointer m_OutputGradientDirectionContainer;
70 };
71 
72 
73 } // end of namespace
74 
75 #endif
static void Update(vtkPolyData *)
Definition: mitkSurface.cpp:35
#define MITKDIFFUSIONCORE_EXPORT
itk::VectorContainer< unsigned int, GradientDirectionType > GradientDirectionContainerType