17 #ifndef VOLUME_CALCULATOR_H_HEADER_INCLUDED
18 #define VOLUME_CALCULATOR_H_HEADER_INCLUDED
21 #include "itkObject.h"
22 #include "itkObjectFactory.h"
42 itkFactorylessNewMacro(
Self) itkCloneMacro(
Self) itkSetObjectMacro(
Image, Image);
46 itkSetMacro(Threshold,
int);
52 itkGetMacro(Volume,
float);
56 itkGetMacro(VoxelCount,
unsigned long int);
62 std::vector<
float> GetVolumes();
65 void ComputeVolumeFromImageStatistics();
66 static
float ComputeVolume(
Vector3D spacing,
unsigned int voxelCount);
70 virtual ~VolumeCalculator();
72 template <typename TPixel,
unsigned int VImageDimension>
78 unsigned long int m_VoxelCount;
79 std::vector<
float> m_Volumes;
DataCollection - Class to facilitate loading/accessing structured data.
void InternalCompute(itk::Image< TPixel, VImageDimension > *itkImage, const mitk::HistogramGenerator *mitkHistoGenerator, mitk::HistogramGenerator::HistogramType::ConstPointer &histogram)
#define mitkClassMacroItkParent(className, SuperClassName)
Image class for storing images.
Provides access to a volume at a specific time of the input image.
Calculates the volume of a mitk::Image. The given volume is in milliliters or as a voxel count...