17 #ifndef _MITK_LABELEDIMAGEVOLUMECALCULATOR_H
18 #define _MITK_LABELEDIMAGEVOLUMECALCULATOR_H
21 #include <itkObject.h>
45 itkFactorylessNewMacro(Self) itkCloneMacro(Self)
47 itkSetConstObjectMacro(
Image,
mitk::Image);
49 virtual
void Calculate();
51 double GetVolume(
unsigned int label) const;
53 const
Point3D &GetCentroid(
unsigned int label) const;
55 const VolumeVector &GetVolumes() const;
57 const PointVector &GetCentroids() const;
62 virtual ~LabeledImageVolumeCalculator();
64 template <typename TPixel,
unsigned int VImageDimension>
65 void _InternalCalculateVolumes(
itk::Image<TPixel, VImageDimension> *image,
66 LabeledImageVolumeCalculator *volumeCalculator,
73 VolumeVector m_VolumeVector;
74 PointVector m_CentroidVector;
80 #endif // #define _MITK_LABELEDIMAGEVOLUMECALCULATOR_H
std::vector< Point3D > PointVector
#define MITKDATATYPESEXT_EXPORT
std::vector< double > VolumeVector
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacroItkParent(className, SuperClassName)
Image class for storing images.
Provides access to a volume at a specific time of the input image.
Class for calculating the volume (or area) for each label in a labeled image.
BaseGeometry Describes the geometry of a data object.