Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
The Volume class is designed to encapsulate volumetric information and to provide convenience methods for data access and image conversions. More...
#include <mitkPAVolume.h>
Public Member Functions | |
mitkClassMacroItkParent (Volume, itk::LightObject) | |
double | GetData (unsigned int x, unsigned int y, unsigned int z) |
GetData. Returns data at wanted position. For performance reasons, this method will not check, if the specified position it within the array. Please use the GetXDim(), GetYDim() and GetZDim() methods to check for yourself if necessary. More... | |
double * | GetData () const |
void | SetData (double data, unsigned int x, unsigned int y, unsigned int z) |
SetData. More... | |
unsigned int | GetXDim () |
GetXDim. More... | |
unsigned int | GetYDim () |
GetYDim. More... | |
unsigned int | GetZDim () |
GetZDim. More... | |
Image::Pointer | AsMitkImage () |
returns the Volume instance as an mitk image More... | |
Volume::Pointer | DeepCopy () |
DeepCopy. More... | |
long long | GetIndex (unsigned int x, unsigned int y, unsigned int z) |
convenience method to enable consistent access to the dat array More... | |
double | GetSpacing () |
void | SetSpacing (double spacing) |
Static Public Member Functions | |
static Volume::Pointer | New (double *data, unsigned int xDim, unsigned int yDim, unsigned int zDim, double spacing) |
returns smartpointer reference to a new instance of this objects. The given data array will be freed upon calling this constructor. More... | |
static Volume::Pointer | New (mitk::Image::Pointer image) |
Protected Member Functions | |
Volume (double *data, unsigned int xDim, unsigned int yDim, unsigned int zDim, double spacing) | |
Initialize initializes this volume with the given pointer to the data array. It is assumed, that the array is of dimension xDim|yDim|zDim. The Photoacoustic3DVolume will handle memory management of the array and delete it on constructor call. More... | |
Volume (mitk::Image::Pointer image) | |
~Volume () override | |
Protected Attributes | |
const int | NUMBER_OF_SPATIAL_DIMENSIONS |
Image::Pointer | m_InternalMitkImage |
unsigned int | m_XDim |
unsigned int | m_YDim |
unsigned int | m_ZDim |
double * | m_FastAccessDataPointer |
The Volume class is designed to encapsulate volumetric information and to provide convenience methods for data access and image conversions.
Definition at line 30 of file mitkPAVolume.h.
|
protected |
Initialize initializes this volume with the given pointer to the data array. It is assumed, that the array is of dimension xDim|yDim|zDim. The Photoacoustic3DVolume will handle memory management of the array and delete it on constructor call.
data | a pointer to the data array |
xDim | x dimension of the data |
yDim | y dimension of the data |
zDim | z dimension of the data |
Definition at line 18 of file mitkPAVolume.cpp.
References GetData(), m_FastAccessDataPointer, m_InternalMitkImage, m_XDim, m_YDim, m_ZDim, MITK_INFO, mitkThrow, mitk::Image::New(), NUMBER_OF_SPATIAL_DIMENSIONS, and SetSpacing().
|
protected |
Definition at line 45 of file mitkPAVolume.cpp.
References GetData(), image, m_FastAccessDataPointer, m_InternalMitkImage, m_XDim, m_YDim, m_ZDim, MITK_INFO, and mitkThrow.
|
overrideprotected |
Definition at line 73 of file mitkPAVolume.cpp.
References m_InternalMitkImage.
mitk::Image::Pointer mitk::pa::Volume::AsMitkImage | ( | ) |
returns the Volume instance as an mitk image
Definition at line 92 of file mitkPAVolume.cpp.
References m_InternalMitkImage.
mitk::pa::Volume::Pointer mitk::pa::Volume::DeepCopy | ( | ) |
DeepCopy.
Definition at line 97 of file mitkPAVolume.cpp.
References GetData(), GetSpacing(), GetXDim(), GetYDim(), GetZDim(), and New().
double mitk::pa::Volume::GetData | ( | unsigned int | x, |
unsigned int | y, | ||
unsigned int | z | ||
) |
GetData. Returns data at wanted position. For performance reasons, this method will not check, if the specified position it within the array. Please use the GetXDim(), GetYDim() and GetZDim() methods to check for yourself if necessary.
x | |
y | |
z |
Definition at line 106 of file mitkPAVolume.cpp.
References GetIndex(), and m_FastAccessDataPointer.
double * mitk::pa::Volume::GetData | ( | ) | const |
Returns a const reference to the data encapsuled by this class.
Definition at line 131 of file mitkPAVolume.cpp.
References mitk::ImageWriteAccessor::GetData(), and m_InternalMitkImage.
Referenced by DeepCopy(), and Volume().
long long mitk::pa::Volume::GetIndex | ( | unsigned int | x, |
unsigned int | y, | ||
unsigned int | z | ||
) |
double mitk::pa::Volume::GetSpacing | ( | ) |
Definition at line 62 of file mitkPAVolume.cpp.
References m_InternalMitkImage.
Referenced by DeepCopy().
unsigned int mitk::pa::Volume::GetXDim | ( | ) |
GetXDim.
Definition at line 116 of file mitkPAVolume.cpp.
References m_XDim.
Referenced by DeepCopy(), and GetIndex().
unsigned int mitk::pa::Volume::GetYDim | ( | ) |
GetYDim.
Definition at line 121 of file mitkPAVolume.cpp.
References m_YDim.
Referenced by DeepCopy(), and GetIndex().
unsigned int mitk::pa::Volume::GetZDim | ( | ) |
GetZDim.
Definition at line 126 of file mitkPAVolume.cpp.
References m_ZDim.
Referenced by DeepCopy(), and GetIndex().
mitk::pa::Volume::mitkClassMacroItkParent | ( | Volume | , |
itk::LightObject | |||
) |
|
static |
returns smartpointer reference to a new instance of this objects. The given data array will be freed upon calling this constructor.
data | |
xDim | |
yDim | |
zDim | |
spacing |
Definition at line 78 of file mitkPAVolume.cpp.
Referenced by DeepCopy(), mitk::pa::SlicedVolumeGenerator::GetSlicedFluenceImageFromComposedVolume(), mitk::pa::SlicedVolumeGenerator::GetSlicedGroundTruthImageFromComposedVolume(), mitk::pa::SlicedVolumeGenerator::GetSlicedSignalImageFromComposedVolume(), mitk::pa::InSilicoTissueVolume::InSilicoTissueVolume(), mitk::pa::IOUtil::LoadFluenceSimulation(), mitk::pa::IOUtil::LoadInSilicoTissueVolumeFromNrrdFile(), mitk::pa::IOUtil::LoadNrrd(), and mitk::pa::VolumeManipulator::RescaleImage().
|
static |
Definition at line 85 of file mitkPAVolume.cpp.
void mitk::pa::Volume::SetData | ( | double | data, |
unsigned int | x, | ||
unsigned int | y, | ||
unsigned int | z | ||
) |
SetData.
data | |
x | |
y | |
z |
Definition at line 111 of file mitkPAVolume.cpp.
References GetIndex(), and m_FastAccessDataPointer.
void mitk::pa::Volume::SetSpacing | ( | double | spacing | ) |
Definition at line 67 of file mitkPAVolume.cpp.
References m_InternalMitkImage.
Referenced by Volume().
|
protected |
Definition at line 141 of file mitkPAVolume.h.
|
protected |
Definition at line 135 of file mitkPAVolume.h.
Referenced by AsMitkImage(), GetData(), GetSpacing(), SetSpacing(), Volume(), and ~Volume().
|
protected |
Definition at line 138 of file mitkPAVolume.h.
Referenced by GetIndex(), GetXDim(), and Volume().
|
protected |
Definition at line 139 of file mitkPAVolume.h.
Referenced by GetIndex(), GetYDim(), and Volume().
|
protected |
Definition at line 140 of file mitkPAVolume.h.
|
protected |
Definition at line 133 of file mitkPAVolume.h.
Referenced by Volume().