17 #ifndef _MITK_AstroStickModel_H
18 #define _MITK_AstroStickModel_H
30 template<
class ScalarType =
double >
76 vnl_matrix<double> sticks;
107 stick[0] = sticks.get(0,i); stick[1] = sticks.get(1,i); stick[2] = sticks.get(2,i);
GradientListType m_Sticks
Stick container.
GradientType GetRandomDirection()
unsigned int GetNumSticks()
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?
unsigned int m_NumSticks
Number of sticks.
PixelType SimulateMeasurement()
void SetNumSticks(unsigned int order)
DataCollection - Class to facilitate loading/accessing structured data.
void SetFiberDirection(GradientType fiberDirection)
ItkRandGenType::Pointer m_RandGen
Random number generator.
GradientListType m_GradientList
Diffusion gradient direction container.
ItkDoubleImgType::Pointer m_VolumeFractionImage
Tissue specific volume fraction for each voxel (only relevant for non fiber compartments) ...
std::vector< GradientType > GradientListType
Abstract class for diffusion signal models.
bool GetRandomizeSticks()
DiffusionSignalModel< ScalarType >::GradientType GradientType
itk::Vector< double, 3 > GradientType
DiffusionSignalModel< ScalarType >::PixelType PixelType
void SetDiffusivity(double diffusivity)
Scalar diffusion constant.
double m_Diffusivity
Scalar diffusion constant.
GradientType GetFiberDirection()
GradientListType GetSticks()
void SetBvalue(double bValue)
b-value used to generate the artificial signal
DiffusionSignalModel< ScalarType >::GradientListType GradientListType
AstroStickModel(AstroStickModel< OtherType > *model)
ItkDoubleImgType::Pointer GetVolumeFractionImage()
GradientListType GetGradientList()
Generates the diffusion signal using a collection of idealised cylinder with zero radius: e^(-bd(ng)²...
void SetGradientList(GradientListType gradientList)
double m_BValue
b-value used to generate the artificial signal
void SetRandomizeSticks(bool randomize=true)
Random stick configuration in each voxel.
double m_T2
Tissue specific transversal relaxation time.
ItkRandGenType::Pointer GetRandomGenerator()