|
Medical Imaging Interaction Toolkit
2018.4.99-389bf124
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 () | |
| ~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 |
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.
| typedef std::vector<Point3D> mitk::LabeledImageVolumeCalculator::PointVector |
Definition at line 38 of file mitkLabeledImageVolumeCalculator.h.
| typedef std::vector<double> mitk::LabeledImageVolumeCalculator::VolumeVector |
Definition at line 37 of file mitkLabeledImageVolumeCalculator.h.
|
protected |
Definition at line 20 of file mitkLabeledImageVolumeCalculator.cpp.
References m_DummyPoint, m_InputTimeSelector, and mitk::ImageTimeSelector::New().
|
overrideprotected |
Definition at line 27 of file mitkLabeledImageVolumeCalculator.cpp.
|
protected |
Definition at line 72 of file mitkLabeledImageVolumeCalculator.cpp.
References mitk::BaseGeometry::GetSpacing(), mitk::BaseGeometry::IndexToWorld(), m_CentroidVector, and m_VolumeVector.
Referenced by Calculate().
|
virtual |
Definition at line 54 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 36 of file mitkLabeledImageVolumeCalculator.cpp.
References m_CentroidVector, and m_DummyPoint.
| const LabeledImageVolumeCalculator::PointVector & mitk::LabeledImageVolumeCalculator::GetCentroids | ( | ) | const |
Definition at line 49 of file mitkLabeledImageVolumeCalculator.cpp.
References m_CentroidVector.
| double mitk::LabeledImageVolumeCalculator::GetVolume | ( | unsigned int | label | ) | const |
Definition at line 28 of file mitkLabeledImageVolumeCalculator.cpp.
References m_VolumeVector.
| const LabeledImageVolumeCalculator::VolumeVector & mitk::LabeledImageVolumeCalculator::GetVolumes | ( | ) | const |
Definition at line 44 of file mitkLabeledImageVolumeCalculator.cpp.
References m_VolumeVector.
| mitk::LabeledImageVolumeCalculator::mitkClassMacroItkParent | ( | LabeledImageVolumeCalculator | , |
| itk::Object | |||
| ) |
|
static |
|
virtual |
|
protected |
Definition at line 70 of file mitkLabeledImageVolumeCalculator.h.
Referenced by _InternalCalculateVolumes(), GetCentroid(), and GetCentroids().
|
protected |
Definition at line 72 of file mitkLabeledImageVolumeCalculator.h.
Referenced by GetCentroid(), and LabeledImageVolumeCalculator().
|
protected |
Definition at line 67 of file mitkLabeledImageVolumeCalculator.h.
Referenced by Calculate().
|
protected |
Definition at line 65 of file mitkLabeledImageVolumeCalculator.h.
Referenced by Calculate(), and LabeledImageVolumeCalculator().
|
protected |
Definition at line 69 of file mitkLabeledImageVolumeCalculator.h.
Referenced by _InternalCalculateVolumes(), GetVolume(), and GetVolumes().