Medical Imaging Interaction Toolkit  2018.4.99-07c45cb1
Medical Imaging Interaction Toolkit
mitk::pa::InSilicoTissueVolume Class Reference

#include <mitkPAInSilicoTissueVolume.h>

Inheritance diagram for mitk::pa::InSilicoTissueVolume:
Collaboration diagram for mitk::pa::InSilicoTissueVolume:

Public Types

enum  SegmentationType {
  AIR, BACKGROUND, VESSEL, FAT,
  SKIN
}
 

Public Member Functions

 mitkClassMacroItkParent (InSilicoTissueVolume, itk::LightObject)
 
 mitkNewMacro2Param (Self, TissueGeneratorParameters::Pointer, std::mt19937 *)
 
mitk::Image::Pointer ConvertToMitkImage ()
 ConvertToMitkImage. More...
 
void SetVolumeValues (int x, int y, int z, double absorption, double scattering, double anisotropy, SegmentationType segmentType)
 SetVolumeValues sets the values for aborption, scattering and anisotropy at the specified voxel location. More...
 
void SetVolumeValues (int x, int y, int z, double absorption, double scattering, double anisotropy)
 SetVolumeValues sets the values for aborption, scattering and anisotropy at the specified voxel location. More...
 
bool IsInsideVolume (int x, int y, int z)
 IsInsideVolume. More...
 
void AddDoubleProperty (std::string label, double value)
 AddDoubleProperty adds a persistent property to the volume, which will be exported to the mitk image. More...
 
void AddIntProperty (std::string label, int value)
 AddIntProperty adds a persistent property to the volume, which will be exported to the mitk image. More...
 
Volume::Pointer GetAbsorptionVolume ()
 
Volume::Pointer GetScatteringVolume ()
 
Volume::Pointer GetAnisotropyVolume ()
 
Volume::Pointer GetSegmentationVolume ()
 
void SetAbsorptionVolume (Volume::Pointer volume)
 
void SetScatteringVolume (Volume::Pointer volume)
 
void SetAnisotropyVolume (Volume::Pointer volume)
 
void SetSegmentationVolume (Volume::Pointer volume)
 
double GetSpacing ()
 
void SetSpacing (double spacing)
 
void FinalizeVolume ()
 
virtual TissueGeneratorParameters::Pointer GetTissueParameters ()
 
virtual unsigned int GetTDim ()
 

Static Public Member Functions

static InSilicoTissueVolume::Pointer New (mitk::pa::Volume::Pointer absorptionVolume, Volume::Pointer scatteringVolume, Volume::Pointer anisotropyVolume, Volume::Pointer segmentationVolume, TissueGeneratorParameters::Pointer tissueParameters, mitk::PropertyList::Pointer propertyList)
 

Protected Member Functions

 InSilicoTissueVolume (TissueGeneratorParameters::Pointer parameters, std::mt19937 *rng)
 
 InSilicoTissueVolume (Volume::Pointer absorptionVolume, Volume::Pointer scatteringVolume, Volume::Pointer anisotropyVolume, Volume::Pointer segmentationVolume, TissueGeneratorParameters::Pointer tissueParameters, mitk::PropertyList::Pointer propertyList)
 
 ~InSilicoTissueVolume () override
 
void RandomizeTissueCoefficients (long rngSeed, bool useRngSeed, double percentage)
 

Protected Attributes

mitk::pa::Volume::Pointer m_AbsorptionVolume
 
mitk::pa::Volume::Pointer m_ScatteringVolume
 
mitk::pa::Volume::Pointer m_AnisotropyVolume
 
mitk::pa::Volume::Pointer m_SegmentationVolume
 
TissueGeneratorParameters::Pointer m_TissueParameters
 
unsigned int m_TDim
 
double m_InitialBackgroundAbsorption
 
std::mt19937 * m_Rng
 
mitk::PropertyList::Pointer m_PropertyList
 

Detailed Description

Definition at line 28 of file mitkPAInSilicoTissueVolume.h.

Member Enumeration Documentation

◆ SegmentationType

Enumerator
AIR 
BACKGROUND 
VESSEL 
FAT 
SKIN 

Definition at line 34 of file mitkPAInSilicoTissueVolume.h.

Constructor & Destructor Documentation

◆ InSilicoTissueVolume() [1/2]

mitk::pa::InSilicoTissueVolume::InSilicoTissueVolume ( TissueGeneratorParameters::Pointer  parameters,
std::mt19937 *  rng 
)
protected

◆ InSilicoTissueVolume() [2/2]

mitk::pa::InSilicoTissueVolume::InSilicoTissueVolume ( Volume::Pointer  absorptionVolume,
Volume::Pointer  scatteringVolume,
Volume::Pointer  anisotropyVolume,
Volume::Pointer  segmentationVolume,
TissueGeneratorParameters::Pointer  tissueParameters,
mitk::PropertyList::Pointer  propertyList 
)
protected

◆ ~InSilicoTissueVolume()

mitk::pa::InSilicoTissueVolume::~InSilicoTissueVolume ( )
overrideprotected

Member Function Documentation

◆ AddDoubleProperty()

void mitk::pa::InSilicoTissueVolume::AddDoubleProperty ( std::string  label,
double  value 
)

AddDoubleProperty adds a persistent property to the volume, which will be exported to the mitk image.

Parameters
label
value

Definition at line 120 of file mitkPAInSilicoTissueVolume.cpp.

References mitk::IPropertyPersistence::AddInfo(), mitk::CoreServices::GetPropertyPersistence(), m_PropertyList, and mitk::PropertyPersistenceInfo::New().

Referenced by InSilicoTissueVolume().

◆ AddIntProperty()

void mitk::pa::InSilicoTissueVolume::AddIntProperty ( std::string  label,
int  value 
)

AddIntProperty adds a persistent property to the volume, which will be exported to the mitk image.

Parameters
label
value

Definition at line 126 of file mitkPAInSilicoTissueVolume.cpp.

References mitk::IPropertyPersistence::AddInfo(), mitk::CoreServices::GetPropertyPersistence(), m_PropertyList, and mitk::PropertyPersistenceInfo::New().

Referenced by InSilicoTissueVolume().

◆ ConvertToMitkImage()

mitk::Image::Pointer mitk::pa::InSilicoTissueVolume::ConvertToMitkImage ( )

ConvertToMitkImage.

Returns
a pointer to an mitk image containing this volume.

Definition at line 132 of file mitkPAInSilicoTissueVolume.cpp.

References mitk::Image::CopyMemory, m_AbsorptionVolume, m_AnisotropyVolume, m_PropertyList, m_ScatteringVolume, m_SegmentationVolume, m_TDim, m_TissueParameters, and mitk::Image::New().

◆ FinalizeVolume()

◆ GetAbsorptionVolume()

mitk::pa::Volume::Pointer mitk::pa::InSilicoTissueVolume::GetAbsorptionVolume ( )

Definition at line 219 of file mitkPAInSilicoTissueVolume.cpp.

References m_AbsorptionVolume.

◆ GetAnisotropyVolume()

mitk::pa::Volume::Pointer mitk::pa::InSilicoTissueVolume::GetAnisotropyVolume ( )

Definition at line 375 of file mitkPAInSilicoTissueVolume.cpp.

References m_AnisotropyVolume.

◆ GetScatteringVolume()

mitk::pa::Volume::Pointer mitk::pa::InSilicoTissueVolume::GetScatteringVolume ( )

Definition at line 370 of file mitkPAInSilicoTissueVolume.cpp.

References m_ScatteringVolume.

◆ GetSegmentationVolume()

mitk::pa::Volume::Pointer mitk::pa::InSilicoTissueVolume::GetSegmentationVolume ( )

Definition at line 224 of file mitkPAInSilicoTissueVolume.cpp.

References m_SegmentationVolume.

◆ GetSpacing()

double mitk::pa::InSilicoTissueVolume::GetSpacing ( )

Definition at line 104 of file mitkPAInSilicoTissueVolume.cpp.

References m_AbsorptionVolume.

◆ GetTDim()

virtual unsigned int mitk::pa::InSilicoTissueVolume::GetTDim ( )
virtual

◆ GetTissueParameters()

virtual TissueGeneratorParameters::Pointer mitk::pa::InSilicoTissueVolume::GetTissueParameters ( )
virtual

◆ IsInsideVolume()

bool mitk::pa::InSilicoTissueVolume::IsInsideVolume ( int  x,
int  y,
int  z 
)

IsInsideVolume.

Parameters
x
y
z
Returns
true if the voxel location is inside the volume

Definition at line 212 of file mitkPAInSilicoTissueVolume.cpp.

References m_TissueParameters.

Referenced by FinalizeVolume(), and SetVolumeValues().

◆ mitkClassMacroItkParent()

mitk::pa::InSilicoTissueVolume::mitkClassMacroItkParent ( InSilicoTissueVolume  ,
itk::LightObject   
)

◆ mitkNewMacro2Param()

mitk::pa::InSilicoTissueVolume::mitkNewMacro2Param ( Self  ,
TissueGeneratorParameters::Pointer  ,
std::mt19937 *   
)

◆ New()

mitk::pa::InSilicoTissueVolume::Pointer mitk::pa::InSilicoTissueVolume::New ( mitk::pa::Volume::Pointer  absorptionVolume,
Volume::Pointer  scatteringVolume,
Volume::Pointer  anisotropyVolume,
Volume::Pointer  segmentationVolume,
TissueGeneratorParameters::Pointer  tissueParameters,
mitk::PropertyList::Pointer  propertyList 
)
static

◆ RandomizeTissueCoefficients()

void mitk::pa::InSilicoTissueVolume::RandomizeTissueCoefficients ( long  rngSeed,
bool  useRngSeed,
double  percentage 
)
protected

◆ SetAbsorptionVolume()

void mitk::pa::InSilicoTissueVolume::SetAbsorptionVolume ( Volume::Pointer  volume)

Definition at line 380 of file mitkPAInSilicoTissueVolume.cpp.

References m_AbsorptionVolume.

◆ SetAnisotropyVolume()

void mitk::pa::InSilicoTissueVolume::SetAnisotropyVolume ( Volume::Pointer  volume)

Definition at line 390 of file mitkPAInSilicoTissueVolume.cpp.

References m_AnisotropyVolume.

◆ SetScatteringVolume()

void mitk::pa::InSilicoTissueVolume::SetScatteringVolume ( Volume::Pointer  volume)

Definition at line 385 of file mitkPAInSilicoTissueVolume.cpp.

References m_ScatteringVolume.

◆ SetSegmentationVolume()

void mitk::pa::InSilicoTissueVolume::SetSegmentationVolume ( Volume::Pointer  volume)

Definition at line 395 of file mitkPAInSilicoTissueVolume.cpp.

References m_SegmentationVolume.

◆ SetSpacing()

void mitk::pa::InSilicoTissueVolume::SetSpacing ( double  spacing)

◆ SetVolumeValues() [1/2]

void mitk::pa::InSilicoTissueVolume::SetVolumeValues ( int  x,
int  y,
int  z,
double  absorption,
double  scattering,
double  anisotropy,
SegmentationType  segmentType 
)

SetVolumeValues sets the values for aborption, scattering and anisotropy at the specified voxel location.

Parameters
x
y
z
absorption
scattering
anisotropy
segmentType

Definition at line 198 of file mitkPAInSilicoTissueVolume.cpp.

References IsInsideVolume(), m_AbsorptionVolume, m_AnisotropyVolume, m_ScatteringVolume, and m_SegmentationVolume.

◆ SetVolumeValues() [2/2]

void mitk::pa::InSilicoTissueVolume::SetVolumeValues ( int  x,
int  y,
int  z,
double  absorption,
double  scattering,
double  anisotropy 
)

SetVolumeValues sets the values for aborption, scattering and anisotropy at the specified voxel location.

Parameters
x
y
z
absorption
scattering
anisotropy

Definition at line 188 of file mitkPAInSilicoTissueVolume.cpp.

References IsInsideVolume(), m_AbsorptionVolume, m_AnisotropyVolume, and m_ScatteringVolume.

Member Data Documentation

◆ m_AbsorptionVolume

mitk::pa::Volume::Pointer mitk::pa::InSilicoTissueVolume::m_AbsorptionVolume
protected

◆ m_AnisotropyVolume

mitk::pa::Volume::Pointer mitk::pa::InSilicoTissueVolume::m_AnisotropyVolume
protected

◆ m_InitialBackgroundAbsorption

double mitk::pa::InSilicoTissueVolume::m_InitialBackgroundAbsorption
protected

Definition at line 143 of file mitkPAInSilicoTissueVolume.h.

Referenced by FinalizeVolume(), and InSilicoTissueVolume().

◆ m_PropertyList

mitk::PropertyList::Pointer mitk::pa::InSilicoTissueVolume::m_PropertyList
protected

◆ m_Rng

std::mt19937* mitk::pa::InSilicoTissueVolume::m_Rng
protected

Definition at line 145 of file mitkPAInSilicoTissueVolume.h.

Referenced by FinalizeVolume(), and InSilicoTissueVolume().

◆ m_ScatteringVolume

mitk::pa::Volume::Pointer mitk::pa::InSilicoTissueVolume::m_ScatteringVolume
protected

◆ m_SegmentationVolume

mitk::pa::Volume::Pointer mitk::pa::InSilicoTissueVolume::m_SegmentationVolume
protected

◆ m_TDim

unsigned int mitk::pa::InSilicoTissueVolume::m_TDim
protected

Definition at line 141 of file mitkPAInSilicoTissueVolume.h.

Referenced by ConvertToMitkImage(), and InSilicoTissueVolume().

◆ m_TissueParameters

TissueGeneratorParameters::Pointer mitk::pa::InSilicoTissueVolume::m_TissueParameters
protected

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