Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Class for calculating the volume (or area) for each label in a labeled image. More...
#include <mitkLabeledImageVolumeCalculator.h>
Public Types | |
typedef std::vector< double > | VolumeVector |
typedef std::vector< Point3D > | PointVector |
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 Point3D & | GetCentroid (unsigned int label) const |
const VolumeVector & | GetVolumes () const |
const PointVector & | GetCentroids () 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 |
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.
typedef std::vector<Point3D> mitk::LabeledImageVolumeCalculator::PointVector |
Definition at line 42 of file mitkLabeledImageVolumeCalculator.h.
typedef std::vector<double> mitk::LabeledImageVolumeCalculator::VolumeVector |
Definition at line 41 of file mitkLabeledImageVolumeCalculator.h.
|
protected |
Definition at line 24 of file mitkLabeledImageVolumeCalculator.cpp.
References m_DummyPoint, m_InputTimeSelector, and mitk::ImageTimeSelector::New().
|
protectedvirtual |
Definition at line 31 of file mitkLabeledImageVolumeCalculator.cpp.
|
protected |
Definition at line 76 of file mitkLabeledImageVolumeCalculator.cpp.
References mitk::BaseGeometry::GetSpacing(), mitk::BaseGeometry::IndexToWorld(), m_CentroidVector, and m_VolumeVector.
Referenced by Calculate().
|
virtual |
Definition at line 58 of file mitkLabeledImageVolumeCalculator.cpp.
References _InternalCalculateVolumes(), AccessByItk_2, m_Image, and m_InputTimeSelector.
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 |
|
virtual |
|
protected |
Definition at line 74 of file mitkLabeledImageVolumeCalculator.h.
Referenced by _InternalCalculateVolumes(), GetCentroid(), and GetCentroids().
|
protected |
Definition at line 76 of file mitkLabeledImageVolumeCalculator.h.
Referenced by GetCentroid(), and LabeledImageVolumeCalculator().
|
protected |
Definition at line 71 of file mitkLabeledImageVolumeCalculator.h.
Referenced by Calculate().
|
protected |
Definition at line 69 of file mitkLabeledImageVolumeCalculator.h.
Referenced by Calculate(), and LabeledImageVolumeCalculator().
|
protected |
Definition at line 73 of file mitkLabeledImageVolumeCalculator.h.
Referenced by _InternalCalculateVolumes(), GetVolume(), and GetVolumes().