13 #ifndef _MITK_LABELEDIMAGEVOLUMECALCULATOR_H 14 #define _MITK_LABELEDIMAGEVOLUMECALCULATOR_H 17 #include <itkObject.h> 41 itkFactorylessNewMacro(Self);
45 virtual void Calculate();
47 double GetVolume(
unsigned int label)
const;
49 const Point3D &GetCentroid(
unsigned int label)
const;
51 const VolumeVector &GetVolumes()
const;
53 const PointVector &GetCentroids()
const;
60 template <
typename TPixel,
unsigned int VImageDimension>
61 void _InternalCalculateVolumes(itk::Image<TPixel, VImageDimension> *
image,
76 #endif // #define _MITK_LABELEDIMAGEVOLUMECALCULATOR_H ImageTimeSelector::Pointer m_InputTimeSelector
std::vector< Point3D > PointVector
#define MITKDATATYPESEXT_EXPORT
std::vector< double > VolumeVector
DataCollection - Class to facilitate loading/accessing structured data.
PointVector m_CentroidVector
Image::ConstPointer m_Image
VolumeVector m_VolumeVector
#define mitkClassMacroItkParent(className, SuperClassName)
Image class for storing images.
mitk::Image::Pointer image
Class for calculating the volume (or area) for each label in a labeled image.
BaseGeometry Describes the geometry of a data object.