Medical Imaging Interaction Toolkit
2024.06.00
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
13 #ifndef mitkLabelStatisticsImageFilter_h
14 #define mitkLabelStatisticsImageFilter_h
18 #include <itkCompensatedSummation.h>
19 #include <itkHistogram.h>
20 #include <itkImageSink.h>
21 #include <itkNumericTraits.h>
22 #include <itkSimpleDataObjectDecorator.h>
25 #include <unordered_map>
32 template <
typename TInputImage>
41 itkFactorylessNewMacro(
Self);
46 using SizeType =
typename TInputImage::SizeType;
53 using RealType =
typename itk::NumericTraits<PixelType>::RealType;
76 itk::CompensatedSummation<RealType>
m_Sum;
94 using MapType = std::unordered_map<LabelPixelType, LabelStatistics>;
102 const std::unordered_map<LabelPixelType, unsigned int>& sizes,
103 const std::unordered_map<LabelPixelType, RealType>& lowerBounds,
104 const std::unordered_map<LabelPixelType, RealType>& upperBounds);
145 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
156 bool m_ComputeHistograms;
157 std::unordered_map<LabelPixelType, unsigned int> m_HistogramSizes;
158 std::unordered_map<LabelPixelType, RealType> m_HistogramLowerBounds;
159 std::unordered_map<LabelPixelType, RealType> m_HistogramUpperBounds;
165 #ifndef ITK_MANUAL_INSTANTIATION
166 #include <mitkLabelStatisticsImageFilter.hxx>
itk::ProcessObject ProcessObject
itk::SizeValueType GetCount(LabelPixelType label) const
itk::SizeValueType m_CountOfPositivePixels
RealType GetSumOfQuadruples(LabelPixelType label) const
BoundingBoxType GetBoundingBox(LabelPixelType label) const
void ThreadedStreamedGenerateData(const RegionType &) override
std::vector< LabelPixelType > ValidLabelValuesContainerType
RealType GetSumOfSquares(LabelPixelType label) const
itk::SimpleDataObjectDecorator< RealType > RealObjectType
PixelType GetMaximum(LabelPixelType label) const
std::unordered_map< LabelPixelType, LabelStatistics > MapType
itk::CompensatedSummation< RealType > m_Sum
RealType GetEntropy(LabelPixelType label) const
RealType GetSigma(LabelPixelType label) const
RealType GetSkewness(LabelPixelType label) const
typename TInputImage::SizeType SizeType
~LabelStatisticsImageFilter()
typename TInputImage::RegionType RegionType
HistogramPointer GetHistogram(LabelPixelType label) const
RealType GetKurtosis(LabelPixelType label) const
itk::CompensatedSummation< RealType > m_SumOfCubes
unsigned int GetNumberOfLabels() const
RegionType GetRegion(LabelPixelType label) const
itk::CompensatedSummation< RealType > m_SumOfQuadruples
RealType GetVariance(LabelPixelType label) const
RealType GetMPP(LabelPixelType label) const
bool HasLabel(LabelPixelType label) const
static constexpr unsigned int ImageDimension
Find image slices visible on a given plane.
itk::CompensatedSummation< RealType > m_SumOfSquares
typename MapType::iterator MapIterator
typename itk::NumericTraits< PixelType >::RealType RealType
BoundingBoxType m_BoundingBox
typename TInputImage::IndexType IndexType
typename MapType::const_iterator MapConstIterator
LabelStatisticsImageFilter()
RealType GetMean(LabelPixelType label) const
itk::Statistics::Histogram< RealType > HistogramType
typename TInputImage::PixelType PixelType
HistogramPointer m_Histogram
itk::SizeValueType m_Count
unsigned int GetNumberOfObjects() const
PixelType GetMinimum(LabelPixelType label) const
itk::CompensatedSummation< RealType > m_SumOfPositivePixels
RealType GetUniformity(LabelPixelType label) const
std::vector< itk::IndexValueType > BoundingBoxType
RealType GetUPP(LabelPixelType label) const
void PrintSelf(std::ostream &os, itk::Indent indent) const override
RealType GetSumOfCubes(LabelPixelType label) const
itk::ImageSink< TInputImage > Superclass
typename HistogramType::Pointer HistogramPointer
void AfterStreamedGenerateData() override
RealType GetSum(LabelPixelType label) const
void SetHistogramParameters(const std::unordered_map< LabelPixelType, unsigned int > &sizes, const std::unordered_map< LabelPixelType, RealType > &lowerBounds, const std::unordered_map< LabelPixelType, RealType > &upperBounds)
const ValidLabelValuesContainerType & GetValidLabelValues() const
itkGetInputMacro(LabelInput, LabelImageType)
RealType GetMedian(LabelPixelType label) const
itk::Image< LabelPixelType, ImageDimension > LabelImageType
void BeforeStreamedGenerateData() override
itkSetInputMacro(LabelInput, LabelImageType)
typename mitk::Label::PixelType LabelPixelType
typename itk::DataObject::Pointer DataObjectPointer