Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::LabeledImageVolumeCalculator Class Reference

Class for calculating the volume (or area) for each label in a labeled image. More...

#include <mitkLabeledImageVolumeCalculator.h>

Inheritance diagram for mitk::LabeledImageVolumeCalculator:
Collaboration diagram for mitk::LabeledImageVolumeCalculator:

Public Types

typedef std::vector< double > VolumeVector
 
typedef std::vector< Point3DPointVector
 

Public Member Functions

 mitkClassMacroItkParent (LabeledImageVolumeCalculator, itk::Object)
 
Pointer Clone () const
 
virtual void SetImage (const mitk::Image *_arg)
 
virtual void Calculate ()
 
double GetVolume (unsigned int label) const
 
const Point3DGetCentroid (unsigned int label) const
 
const VolumeVectorGetVolumes () const
 
const PointVectorGetCentroids () const
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 LabeledImageVolumeCalculator ()
 
virtual ~LabeledImageVolumeCalculator ()
 
template<typename TPixel , unsigned int VImageDimension>
void _InternalCalculateVolumes (itk::Image< TPixel, VImageDimension > *image, LabeledImageVolumeCalculator *volumeCalculator, BaseGeometry *geometry)
 

Protected Attributes

ImageTimeSelector::Pointer m_InputTimeSelector
 
Image::ConstPointer m_Image
 
VolumeVector m_VolumeVector
 
PointVector m_CentroidVector
 
Point3D m_DummyPoint
 

Detailed Description

Class for calculating the volume (or area) for each label in a labeled image.

Labels are expected to be of an unsigned integer type.

TODO: Extend class for time resolved images

Definition at line 38 of file mitkLabeledImageVolumeCalculator.h.

Member Typedef Documentation

Definition at line 41 of file mitkLabeledImageVolumeCalculator.h.

Constructor & Destructor Documentation

mitk::LabeledImageVolumeCalculator::LabeledImageVolumeCalculator ( )
protected
mitk::LabeledImageVolumeCalculator::~LabeledImageVolumeCalculator ( )
protectedvirtual

Definition at line 31 of file mitkLabeledImageVolumeCalculator.cpp.

Member Function Documentation

template<typename TPixel , unsigned int VImageDimension>
void mitk::LabeledImageVolumeCalculator::_InternalCalculateVolumes ( itk::Image< TPixel, VImageDimension > *  image,
LabeledImageVolumeCalculator volumeCalculator,
BaseGeometry geometry 
)
protected
void mitk::LabeledImageVolumeCalculator::Calculate ( )
virtual
Pointer mitk::LabeledImageVolumeCalculator::Clone ( ) const
const Point3D & mitk::LabeledImageVolumeCalculator::GetCentroid ( unsigned int  label) const

Definition at line 40 of file mitkLabeledImageVolumeCalculator.cpp.

References m_CentroidVector, and m_DummyPoint.

const LabeledImageVolumeCalculator::PointVector & mitk::LabeledImageVolumeCalculator::GetCentroids ( ) const

Definition at line 53 of file mitkLabeledImageVolumeCalculator.cpp.

References m_CentroidVector.

double mitk::LabeledImageVolumeCalculator::GetVolume ( unsigned int  label) const

Definition at line 32 of file mitkLabeledImageVolumeCalculator.cpp.

References m_VolumeVector.

const LabeledImageVolumeCalculator::VolumeVector & mitk::LabeledImageVolumeCalculator::GetVolumes ( ) const

Definition at line 48 of file mitkLabeledImageVolumeCalculator.cpp.

References m_VolumeVector.

mitk::LabeledImageVolumeCalculator::mitkClassMacroItkParent ( LabeledImageVolumeCalculator  ,
itk::Object   
)
static Pointer mitk::LabeledImageVolumeCalculator::New ( )
static
virtual void mitk::LabeledImageVolumeCalculator::SetImage ( const mitk::Image _arg)
virtual

Member Data Documentation

PointVector mitk::LabeledImageVolumeCalculator::m_CentroidVector
protected
Point3D mitk::LabeledImageVolumeCalculator::m_DummyPoint
protected

Definition at line 76 of file mitkLabeledImageVolumeCalculator.h.

Referenced by GetCentroid(), and LabeledImageVolumeCalculator().

Image::ConstPointer mitk::LabeledImageVolumeCalculator::m_Image
protected

Definition at line 71 of file mitkLabeledImageVolumeCalculator.h.

Referenced by Calculate().

ImageTimeSelector::Pointer mitk::LabeledImageVolumeCalculator::m_InputTimeSelector
protected

Definition at line 69 of file mitkLabeledImageVolumeCalculator.h.

Referenced by Calculate(), and LabeledImageVolumeCalculator().

VolumeVector mitk::LabeledImageVolumeCalculator::m_VolumeVector
protected

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