Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
|
Calculates the volume of a mitk::Image. The given volume is in milliliters or as a voxel count. Voxels are counted if their gray value is above a threshold (see SetThreshold), the default threshold is 0. More...
#include <mitkVolumeCalculator.h>
Public Types | |
typedef VolumeCalculator | Self |
typedef itk::Object | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
Public Member Functions | |
virtual std::vector< std::string > | GetClassHierarchy () const |
virtual const char * | GetClassName () const |
Pointer | Clone () const |
virtual void | SetImage (Image *_arg) |
virtual void | SetThreshold (int _arg) |
virtual float | GetVolume () |
virtual unsigned long int | GetVoxelCount () |
std::vector< float > | GetVolumes () |
void | ComputeVolume () |
void | ComputeVolumeFromImageStatistics () |
Static Public Member Functions | |
static const char * | GetStaticNameOfClass () |
static Pointer | New () |
static float | ComputeVolume (Vector3D spacing, unsigned int voxelCount) |
Protected Member Functions | |
VolumeCalculator () | |
~VolumeCalculator () override | |
template<typename TPixel , unsigned int VImageDimension> | |
void | InternalCompute (const itk::Image< TPixel, VImageDimension > *itkImage) |
Protected Attributes | |
Image::ConstPointer | m_Image |
int | m_Threshold |
float | m_Volume |
unsigned long int | m_VoxelCount |
std::vector< float > | m_Volumes |
ImageTimeSelector::Pointer | m_TimeSelector |
Calculates the volume of a mitk::Image. The given volume is in milliliters or as a voxel count. Voxels are counted if their gray value is above a threshold (see SetThreshold), the default threshold is 0.
The filter works for 2D, 3D and 3D+t. In the 3D+t case a vector of volumes is provided (see GetVolumes()).
Definition at line 33 of file mitkVolumeCalculator.h.
typedef itk::SmartPointer<const Self> mitk::VolumeCalculator::ConstPointer |
Definition at line 36 of file mitkVolumeCalculator.h.
Definition at line 36 of file mitkVolumeCalculator.h.
Definition at line 36 of file mitkVolumeCalculator.h.
typedef itk::Object mitk::VolumeCalculator::Superclass |
Definition at line 36 of file mitkVolumeCalculator.h.
|
protected |
|
overrideprotected |
Pointer mitk::VolumeCalculator::Clone | ( | ) | const |
void mitk::VolumeCalculator::ComputeVolume | ( | ) |
|
static |
void mitk::VolumeCalculator::ComputeVolumeFromImageStatistics | ( | ) |
|
inlinevirtual |
Definition at line 36 of file mitkVolumeCalculator.h.
|
virtual |
|
inlinestatic |
Definition at line 36 of file mitkVolumeCalculator.h.
|
virtual |
In case of a 2D image this returns the calculated volume in square cm, in case of 3D images the result is given in cubic cm. For 4D data refer to the GetVolumes() function.
std::vector<float> mitk::VolumeCalculator::GetVolumes | ( | ) |
Returns the volume for 4D images, as a vector where each volume is represented by an item in the vector (in cubic cm).
|
virtual |
Returns the number of accepted voxels.
|
protected |
|
static |
|
virtual |
|
virtual |
Sets threshold, all voxels that are equal or greater are accepted.
|
protected |
Definition at line 75 of file mitkVolumeCalculator.h.
|
protected |
Definition at line 76 of file mitkVolumeCalculator.h.
|
protected |
Definition at line 80 of file mitkVolumeCalculator.h.
|
protected |
Definition at line 77 of file mitkVolumeCalculator.h.
|
protected |
Definition at line 79 of file mitkVolumeCalculator.h.
|
protected |
Definition at line 78 of file mitkVolumeCalculator.h.