Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkDiffusionImageTransformedCreationFilter.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 DIFFUSIONIMAGETRANSFORMEDCREATIONFILTER_H
18 #define DIFFUSIONIMAGETRANSFORMEDCREATIONFILTER_H
19 
23 
25 
26 
27 namespace mitk
28 {
29 
30 
35 template <typename TTransformType >
37  : public ImageToImageFilter
38 {
39 public:
43 
44  itkNewMacro(Self)
45 
47  {
51  WindowedSinc
52  };
53 
54  typedef std::vector< typename TTransformType::Pointer > TransformContainerType;
55  typedef std::vector< typename TTransformType::ParametersType > TransformParametersContainerType;
56 
58  void SetTransforms( const TransformContainerType& );
59 
61  void SetTransformParameters( const TransformParametersContainerType& );
62 
65  {
66  m_InterpolationLevel = lvl;
67  }
68 
69  void GenerateData() override;
70 
72  {
73  this->m_ResamplingReferenceImage = image;
74  }
75 
77  {
78  this->m_DiffusionReferenceImage = dwimage;
79  }
80 
81  void SetOutputPrefix( std::string prefix )
82 {
83  this->m_OutputPrefix = prefix;
84 }
85 
86  virtual void GenerateOutputInformation() override;
87 
88 protected:
91 
92  DiffusionImageHeaderDescriptor GetTransformedHeaderInformation();
93 
94  TransformContainerType m_InternalTransforms;
95 
97 
99 
101 
103  std::vector< MatrixType > m_RotationMatrices;
104 
105  std::string m_OutputPrefix;
106 
108 };
109 
110 } // end namespace mitk
111 
112 #ifndef ITK_MANUAL_INSTANTIATION
114 #endif
115 
116 #endif // DIFFUSIONIMAGETRANSFORMEDCREATIONFILTER_H
Superclass of all classes generating some kind of mitk::BaseData.
DataCollection - Class to facilitate loading/accessing structured data.
std::vector< typename TTransformType::ParametersType > TransformParametersContainerType
#define MITKDIFFUSIONCORE_EXPORT
DiffusionImageCorrectionFilter::TransformMatrixType MatrixType
vnl_matrix_fixed< double, 3, 3 > TransformMatrixType
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Superclass of all classes having one or more Images as input and generating Images as output...
The DiffusionImageHeaderDescriptor struct bundles the necessary diffusion-weighted image header meta ...
DiffusionImageTransformedCreationFilter extends its superclass ( DiffusionImageCreationFilter ) by pr...
std::vector< typename TTransformType::Pointer > TransformContainerType