Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkDotModel.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 _MITK_DotModel_H
18 #define _MITK_DotModel_H
19 
21 
22 namespace mitk {
23 
29 template< class ScalarType = double >
30 class DotModel : public DiffusionSignalModel< ScalarType >
31 {
32 public:
33 
34  DotModel();
35  template< class OtherType >DotModel(DotModel<OtherType>* model)
36  {
37  this->m_CompartmentId = model->m_CompartmentId;
38  this->m_T2 = model->GetT2();
39  this->m_FiberDirection = model->GetFiberDirection();
40  this->m_GradientList = model->GetGradientList();
42  this->m_RandGen = model->GetRandomGenerator();
43  }
44  ~DotModel();
45 
49 
51  PixelType SimulateMeasurement();
52  ScalarType SimulateMeasurement(unsigned int dir);
53 
54  void SetFiberDirection(GradientType fiberDirection){ this->m_FiberDirection = fiberDirection; }
55  void SetGradientList(GradientListType gradientList) { this->m_GradientList = gradientList; }
56 
57 protected:
58 
59 };
60 
61 }
62 
63 #include "mitkDotModel.cpp"
64 
65 #endif
66 
GradientType m_FiberDirection
Needed to generate anisotropc signal to determin direction of anisotropy.
unsigned int m_CompartmentId
GUI flag. Which compartment is this model assigned to?
double ScalarType
DiffusionSignalModel< ScalarType >::PixelType PixelType
Definition: mitkDotModel.h:46
DataCollection - Class to facilitate loading/accessing structured data.
ItkRandGenType::Pointer m_RandGen
Random number generator.
GradientListType m_GradientList
Diffusion gradient direction container.
Generates constant direction independent signal.
Definition: mitkDotModel.h:30
ItkDoubleImgType::Pointer m_VolumeFractionImage
Tissue specific volume fraction for each voxel (only relevant for non fiber compartments) ...
DotModel(DotModel< OtherType > *model)
Definition: mitkDotModel.h:35
std::vector< GradientType > GradientListType
Abstract class for diffusion signal models.
void SetGradientList(GradientListType gradientList)
Definition: mitkDotModel.h:55
itk::Vector< double, 3 > GradientType
DiffusionSignalModel< ScalarType >::GradientListType GradientListType
Definition: mitkDotModel.h:48
PixelType SimulateMeasurement()
void SetFiberDirection(GradientType fiberDirection)
Definition: mitkDotModel.h:54
ItkDoubleImgType::Pointer GetVolumeFractionImage()
DiffusionSignalModel< ScalarType >::GradientType GradientType
Definition: mitkDotModel.h:47
double m_T2
Tissue specific transversal relaxation time.
ItkRandGenType::Pointer GetRandomGenerator()