Medical Imaging Interaction Toolkit  2018.4.99-b20efe7f
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 ()
 
 ~LabeledImageVolumeCalculator () override
 
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 34 of file mitkLabeledImageVolumeCalculator.h.

Member Typedef Documentation

◆ PointVector

◆ VolumeVector

Definition at line 37 of file mitkLabeledImageVolumeCalculator.h.

Constructor & Destructor Documentation

◆ LabeledImageVolumeCalculator()

mitk::LabeledImageVolumeCalculator::LabeledImageVolumeCalculator ( )
protected

◆ ~LabeledImageVolumeCalculator()

mitk::LabeledImageVolumeCalculator::~LabeledImageVolumeCalculator ( )
overrideprotected

Definition at line 27 of file mitkLabeledImageVolumeCalculator.cpp.

Member Function Documentation

◆ _InternalCalculateVolumes()

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

◆ Calculate()

void mitk::LabeledImageVolumeCalculator::Calculate ( )
virtual

◆ Clone()

Pointer mitk::LabeledImageVolumeCalculator::Clone ( ) const

◆ GetCentroid()

const Point3D & mitk::LabeledImageVolumeCalculator::GetCentroid ( unsigned int  label) const

Definition at line 36 of file mitkLabeledImageVolumeCalculator.cpp.

References m_CentroidVector, and m_DummyPoint.

◆ GetCentroids()

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

Definition at line 49 of file mitkLabeledImageVolumeCalculator.cpp.

References m_CentroidVector.

◆ GetVolume()

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

Definition at line 28 of file mitkLabeledImageVolumeCalculator.cpp.

References m_VolumeVector.

◆ GetVolumes()

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

Definition at line 44 of file mitkLabeledImageVolumeCalculator.cpp.

References m_VolumeVector.

◆ mitkClassMacroItkParent()

mitk::LabeledImageVolumeCalculator::mitkClassMacroItkParent ( LabeledImageVolumeCalculator  ,
itk::Object   
)

◆ New()

static Pointer mitk::LabeledImageVolumeCalculator::New ( )
static

◆ SetImage()

virtual void mitk::LabeledImageVolumeCalculator::SetImage ( const mitk::Image _arg)
virtual

Member Data Documentation

◆ m_CentroidVector

PointVector mitk::LabeledImageVolumeCalculator::m_CentroidVector
protected

◆ m_DummyPoint

Point3D mitk::LabeledImageVolumeCalculator::m_DummyPoint
protected

Definition at line 72 of file mitkLabeledImageVolumeCalculator.h.

Referenced by GetCentroid(), and LabeledImageVolumeCalculator().

◆ m_Image

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

Definition at line 67 of file mitkLabeledImageVolumeCalculator.h.

Referenced by Calculate().

◆ m_InputTimeSelector

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

Definition at line 65 of file mitkLabeledImageVolumeCalculator.h.

Referenced by Calculate(), and LabeledImageVolumeCalculator().

◆ m_VolumeVector

VolumeVector mitk::LabeledImageVolumeCalculator::m_VolumeVector
protected

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