Medical Imaging Interaction Toolkit
2016.11.0
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 () | |
virtual | ~VolumeCalculator () |
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 37 of file mitkVolumeCalculator.h.
typedef itk::SmartPointer<const Self> mitk::VolumeCalculator::ConstPointer |
Definition at line 40 of file mitkVolumeCalculator.h.
Definition at line 40 of file mitkVolumeCalculator.h.
Definition at line 40 of file mitkVolumeCalculator.h.
typedef itk::Object mitk::VolumeCalculator::Superclass |
Definition at line 40 of file mitkVolumeCalculator.h.
|
protected |
Definition at line 48 of file mitkVolumeCalculator.cpp.
References m_TimeSelector, and mitk::ImageTimeSelector::New().
|
protectedvirtual |
Definition at line 53 of file mitkVolumeCalculator.cpp.
Pointer mitk::VolumeCalculator::Clone | ( | ) | const |
void mitk::VolumeCalculator::ComputeVolume | ( | ) |
Definition at line 62 of file mitkVolumeCalculator.cpp.
References AccessFixedDimensionByItk, InternalCompute(), and Update().
|
static |
Definition at line 118 of file mitkVolumeCalculator.cpp.
void mitk::VolumeCalculator::ComputeVolumeFromImageStatistics | ( | ) |
Definition at line 89 of file mitkVolumeCalculator.cpp.
|
inlinevirtual |
Definition at line 40 of file mitkVolumeCalculator.h.
|
virtual |
|
inlinestatic |
Definition at line 40 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).
Definition at line 57 of file mitkVolumeCalculator.cpp.
|
virtual |
Returns the number of accepted voxels.
|
protected |
Definition at line 24 of file mitkVolumeCalculator.cpp.
References m_Threshold, m_Volume, and m_VoxelCount.
|
static |
Referenced by mitkVolumeCalculatorTest(), and mitk::CalculateVolumetryTool::ProcessOneWorkingData().
|
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.
Referenced by InternalCompute().
|
protected |
Definition at line 80 of file mitkVolumeCalculator.h.
Referenced by VolumeCalculator().
|
protected |
Definition at line 77 of file mitkVolumeCalculator.h.
Referenced by InternalCompute().
|
protected |
Definition at line 79 of file mitkVolumeCalculator.h.
|
protected |
Definition at line 78 of file mitkVolumeCalculator.h.
Referenced by InternalCompute().