Medical Imaging Interaction Toolkit
2023.04.00
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
12 #ifndef mitkImageStatisticsHolder_h
13 #define mitkImageStatisticsHolder_h
19 #ifndef __itkHistogram_h
20 #include <itkHistogram.h>
47 virtual const HistogramType *GetScalarHistogram(
int t = 0,
unsigned int = 0);
51 virtual ScalarType GetScalarValueMin(
int t = 0,
unsigned int component = 0);
55 virtual ScalarType GetScalarValueMax(
int t = 0,
unsigned int component = 0);
61 virtual ScalarType GetScalarValue2ndMin(
int t = 0,
unsigned int component = 0);
67 if (t < m_ScalarMin.size())
68 return m_ScalarMin[t];
70 return itk::NumericTraits<ScalarType>::max();
78 if (t < m_Scalar2ndMin.size())
79 return m_Scalar2ndMin[t];
81 return itk::NumericTraits<ScalarType>::max();
87 virtual ScalarType GetScalarValue2ndMax(
int t = 0,
unsigned int component = 0);
94 if (t < m_ScalarMax.size())
95 return m_ScalarMax[t];
97 return itk::NumericTraits<ScalarType>::NonpositiveMin();
104 if (t < m_Scalar2ndMax.size())
105 return m_Scalar2ndMax[t];
107 return itk::NumericTraits<ScalarType>::NonpositiveMin();
112 mitk::ScalarType GetCountOfMinValuedVoxels(
int t = 0,
unsigned int component = 0);
116 mitk::ScalarType GetCountOfMaxValuedVoxels(
int t = 0,
unsigned int component = 0);
122 if (t < m_CountOfMaxValuedVoxels.size())
123 return m_CountOfMaxValuedVoxels[t];
132 if (t < m_CountOfMinValuedVoxels.size())
133 return m_CountOfMinValuedVoxels[t];
138 bool IsValidTimeStep(
int t)
const;
140 template <
typename ItkImageType>
141 friend void _ComputeExtremaInItkImage(
const ItkImageType *itkImage,
145 template <
typename ItkImageType>
146 friend void _ComputeExtremaInItkVectorImage(
const ItkImageType *itkImage,
149 unsigned int component);
152 virtual void ResetImageStatistics();
154 virtual void ComputeImageStatistics(
int t = 0,
unsigned int component = 0);
156 virtual void Expand(
unsigned int timeSteps);
Class holding the statistics information about a single mitk::Image.
itk::Object::Pointer m_HistogramGeneratorObject
std::vector< ScalarType > m_ScalarMax
itk::Statistics::Histogram< double > HistogramType
virtual unsigned int GetCountOfMaxValuedVoxelsNoRecompute(unsigned int t=0)
Get the count of voxels with the largest scalar value in the dataset.
itk::TimeStamp m_LastRecomputeTimeStamp
Image class for storing images.
std::vector< ScalarType > m_Scalar2ndMax
std::vector< ScalarType > m_Scalar2ndMin
DataCollection - Class to facilitate loading/accessing structured data.
virtual mitk::ScalarType GetScalarValue2ndMaxNoRecompute(unsigned int t=0)
Get the second largest value for scalar images, but do not recompute it first.
virtual mitk::ScalarType GetScalarValueMaxNoRecompute(unsigned int t=0)
Get the largest value for scalar images, but do not recompute it first.
virtual mitk::ScalarType GetScalarValue2ndMinNoRecompute(unsigned int t=0) const
Get the second smallest value for scalar images, but do not recompute it first.
std::vector< ScalarType > m_ScalarMin
std::vector< unsigned int > m_CountOfMinValuedVoxels
itk::Object::Pointer m_TimeSelectorForExtremaObject
virtual mitk::ScalarType GetScalarValueMinNoRecompute(unsigned int t=0) const
Get the smallest value for scalar images, but do not recompute it first.
std::vector< unsigned int > m_CountOfMaxValuedVoxels
virtual unsigned int GetCountOfMinValuedVoxelsNoRecompute(unsigned int t=0) const
Get the count of voxels with the smallest scalar value in the dataset.