17 #ifndef mitkRegionVoxelCounter_h
18 #define mitkRegionVoxelCounter_h
23 #include "MitkConnectomicsExports.h"
28 template <
typename TPixel,
unsigned int VImageDimension>
32 typedef itk::Image< TPixel, VImageDimension >
ImageType;
34 void SetRegion(
typename ImageType::RegionType);
35 void SetImage(itk::Image<TPixel, VImageDimension> *);
43 typename ImageType::RegionType m_Region;
void SetImage(itk::Image< TPixel, VImageDimension > *)
DataCollection - Class to facilitate loading/accessing structured data.
double PercentageVoxelWithValueZeroExcluded(int value)
Gives back the percentage of the number of voxels with the chosen value in comparison to the number o...
void SetRegion(typename ImageType::RegionType)
itk::Image< TPixel, VImageDimension > ImageType
int VoxelWithValue(int value)
Counts all voxels with the chosen value in the set region.