13 #ifndef VOLUME_CALCULATOR_H_HEADER_INCLUDED 14 #define VOLUME_CALCULATOR_H_HEADER_INCLUDED 17 #include "itkObject.h" 18 #include "itkObjectFactory.h" 38 itkFactorylessNewMacro(
Self);
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);
72 template <
typename TPixel,
unsigned int VImageDimension>
73 void InternalCompute(
const itk::Image<TPixel, VImageDimension> *itkImage);
ImageTimeSelector::Pointer m_TimeSelector
Image::ConstPointer m_Image
DataCollection - Class to facilitate loading/accessing structured data.
std::vector< float > m_Volumes
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.
unsigned long int m_VoxelCount
Calculates the volume of a mitk::Image. The given volume is in milliliters or as a voxel count...