Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::AstroStickModel< ScalarType > Class Template Reference

Generates the diffusion signal using a collection of idealised cylinder with zero radius: e^(-bd(ng)²) More...

#include <mitkAstroStickModel.h>

Inheritance diagram for mitk::AstroStickModel< ScalarType >:
Collaboration diagram for mitk::AstroStickModel< ScalarType >:

Public Types

typedef DiffusionSignalModel< ScalarType >::PixelType PixelType
 
typedef DiffusionSignalModel< ScalarType >::GradientType GradientType
 
typedef DiffusionSignalModel< ScalarType >::GradientListType GradientListType
 
- Public Types inherited from mitk::DiffusionSignalModel< ScalarType >
typedef itk::Image< double, 3 > ItkDoubleImgType
 
typedef itk::VariableLengthVector< ScalarTypePixelType
 
typedef itk::Vector< double, 3 > GradientType
 
typedef std::vector< GradientTypeGradientListType
 
typedef itk::Statistics::MersenneTwisterRandomVariateGenerator ItkRandGenType
 

Public Member Functions

 AstroStickModel ()
 
template<class OtherType >
 AstroStickModel (AstroStickModel< OtherType > *model)
 
 ~AstroStickModel ()
 
PixelType SimulateMeasurement ()
 
ScalarType SimulateMeasurement (unsigned int dir)
 
void SetFiberDirection (GradientType fiberDirection)
 
void SetGradientList (GradientListType gradientList)
 
void SetRandomizeSticks (bool randomize=true)
 Random stick configuration in each voxel. More...
 
bool GetRandomizeSticks ()
 
void SetBvalue (double bValue)
 b-value used to generate the artificial signal More...
 
double GetBvalue ()
 
void SetDiffusivity (double diffusivity)
 Scalar diffusion constant. More...
 
double GetDiffusivity ()
 
void SetNumSticks (unsigned int order)
 
unsigned int GetNumSticks ()
 
GradientListType GetSticks ()
 
- Public Member Functions inherited from mitk::DiffusionSignalModel< ScalarType >
 DiffusionSignalModel ()
 
 ~DiffusionSignalModel ()
 
GradientType GetFiberDirection ()
 
GradientListType GetGradientList ()
 
GradientType GetGradientDirection (int i)
 
void SetT2 (double T2)
 
double GetT2 ()
 
void SetT1 (double T1)
 
double GetT1 ()
 
void SetVolumeFractionImage (ItkDoubleImgType::Pointer img)
 
ItkDoubleImgType::Pointer GetVolumeFractionImage ()
 
void SetRandomGenerator (ItkRandGenType::Pointer randgen)
 
ItkRandGenType::Pointer GetRandomGenerator ()
 
void SetSeed (int s)
 

Protected Member Functions

GradientType GetRandomDirection ()
 

Protected Attributes

double m_BValue
 b-value used to generate the artificial signal More...
 
double m_Diffusivity
 Scalar diffusion constant. More...
 
GradientListType m_Sticks
 Stick container. More...
 
unsigned int m_NumSticks
 Number of sticks. More...
 
bool m_RandomizeSticks
 
- Protected Attributes inherited from mitk::DiffusionSignalModel< ScalarType >
GradientType m_FiberDirection
 Needed to generate anisotropc signal to determin direction of anisotropy. More...
 
GradientListType m_GradientList
 Diffusion gradient direction container. More...
 
double m_T2
 Tissue specific transversal relaxation time. More...
 
double m_T1
 Tissue specific longitudinal relaxation time. More...
 
ItkDoubleImgType::Pointer m_VolumeFractionImage
 Tissue specific volume fraction for each voxel (only relevant for non fiber compartments) More...
 
ItkRandGenType::Pointer m_RandGen
 Random number generator. More...
 

Additional Inherited Members

- Public Attributes inherited from mitk::DiffusionSignalModel< ScalarType >
unsigned int m_CompartmentId
 GUI flag. Which compartment is this model assigned to? More...
 

Detailed Description

template<class ScalarType = double>
class mitk::AstroStickModel< ScalarType >

Generates the diffusion signal using a collection of idealised cylinder with zero radius: e^(-bd(ng)²)

Definition at line 31 of file mitkAstroStickModel.h.

Member Typedef Documentation

Definition at line 55 of file mitkAstroStickModel.h.

template<class ScalarType = double>
typedef DiffusionSignalModel< ScalarType >::GradientType mitk::AstroStickModel< ScalarType >::GradientType

Definition at line 54 of file mitkAstroStickModel.h.

template<class ScalarType = double>
typedef DiffusionSignalModel< ScalarType >::PixelType mitk::AstroStickModel< ScalarType >::PixelType

Definition at line 53 of file mitkAstroStickModel.h.

Constructor & Destructor Documentation

template<class ScalarType >
AstroStickModel::~AstroStickModel ( )

Definition at line 43 of file mitkAstroStickModel.cpp.

Member Function Documentation

template<class ScalarType = double>
double mitk::AstroStickModel< ScalarType >::GetBvalue ( )
inline
template<class ScalarType = double>
unsigned int mitk::AstroStickModel< ScalarType >::GetNumSticks ( )
inline
template<class ScalarType >
AstroStickModel< ScalarType >::GradientType AstroStickModel::GetRandomDirection ( )
protected

Definition at line 84 of file mitkAstroStickModel.cpp.

template<class ScalarType = double>
GradientListType mitk::AstroStickModel< ScalarType >::GetSticks ( )
inline
template<class ScalarType = double>
void mitk::AstroStickModel< ScalarType >::SetBvalue ( double  bValue)
inline

b-value used to generate the artificial signal

Definition at line 68 of file mitkAstroStickModel.h.

References mitk::AstroStickModel< ScalarType >::m_BValue.

template<class ScalarType = double>
void mitk::AstroStickModel< ScalarType >::SetDiffusivity ( double  diffusivity)
inline

Scalar diffusion constant.

Definition at line 71 of file mitkAstroStickModel.h.

References mitk::AstroStickModel< ScalarType >::m_Diffusivity.

Referenced by mitk::FiberfoxParameters< ScalarType >::LoadParameters().

template<class ScalarType = double>
void mitk::AstroStickModel< ScalarType >::SetFiberDirection ( GradientType  fiberDirection)
inlinevirtual
template<class ScalarType = double>
void mitk::AstroStickModel< ScalarType >::SetGradientList ( GradientListType  gradientList)
inlinevirtual
template<class ScalarType = double>
void mitk::AstroStickModel< ScalarType >::SetNumSticks ( unsigned int  order)
inline
template<class ScalarType = double>
void mitk::AstroStickModel< ScalarType >::SetRandomizeSticks ( bool  randomize = true)
inline

Random stick configuration in each voxel.

Definition at line 65 of file mitkAstroStickModel.h.

References mitk::AstroStickModel< ScalarType >::m_RandomizeSticks.

Referenced by mitk::FiberfoxParameters< ScalarType >::LoadParameters().

template<class ScalarType >
AstroStickModel< ScalarType >::PixelType AstroStickModel::SimulateMeasurement ( )
virtual

Actual signal generation

Implements mitk::DiffusionSignalModel< ScalarType >.

Definition at line 95 of file mitkAstroStickModel.cpp.

template<class ScalarType >
ScalarType AstroStickModel::SimulateMeasurement ( unsigned int  dir)
virtual

Implements mitk::DiffusionSignalModel< ScalarType >.

Definition at line 49 of file mitkAstroStickModel.cpp.

Member Data Documentation

template<class ScalarType = double>
double mitk::AstroStickModel< ScalarType >::m_BValue
protected
template<class ScalarType = double>
double mitk::AstroStickModel< ScalarType >::m_Diffusivity
protected
template<class ScalarType = double>
unsigned int mitk::AstroStickModel< ScalarType >::m_NumSticks
protected

The documentation for this class was generated from the following files: