18#ifndef itkLabelOverlapMeasuresImageFilter_h
19#define itkLabelOverlapMeasuresImageFilter_h
25#include <unordered_map>
42template <
typename TLabelImage>
66 using SizeType =
typename TLabelImage::SizeType;
74#ifndef ITK_FUTURE_LEGACY_REMOVE
80 using MapType = std::unordered_map<LabelType, LabelOverlapLabelSetMeasures>;
116 std::vector<LabelType>
119 std::vector<LabelType> labels;
123 labels.push_back(kv.first);
139 <<
" is not present in the label set measures map.");
252#ifndef ITK_MANUAL_INSTANTIATION
253# include "itkLabelOverlapMeasuresImageFilter.hxx"
Control indentation during Print() invocation.
typename TLabelImage::PixelType LabelType
RealType GetMeanOverlap() const
typename TLabelImage::ConstPointer LabelImageConstPointer
std::unordered_map< LabelType, LabelOverlapLabelSetMeasures > MapType
typename NumericTraits< LabelType >::RealType RealType
itkSetInputMacro(SourceImage, LabelImageType)
RealType GetJaccardCoefficient(LabelType label) const
RealType GetUnionOverlap() const
SmartPointer< const Self > ConstPointer
ImageSink< TLabelImage > Superclass
RealType GetUnionOverlap(LabelType) const
typename TLabelImage::RegionType RegionType
MapType m_LabelSetMeasures
std::vector< LabelType > GetLabels() const
RealType GetJaccardCoefficient() const
itkSetInputMacro(TargetImage, LabelImageType)
RealType GetFalsePositiveError(LabelType) const
LabelOverlapMeasuresImageFilter Self
TLabelImage LabelImageType
RealType GetFalseDiscoveryRate(LabelType) const
RealType GetFalseNegativeError() const
RealType GetFalseDiscoveryRate() const
RealType GetDiceCoefficient() const
typename TLabelImage::IndexType IndexType
RealType GetFalsePositiveError() const
RealType GetVolumeSimilarity(LabelType) const
typename TLabelImage::SizeType SizeType
RealType GetMeanOverlap(LabelType) const
typename MapType::iterator MapIterator
typename TLabelImage::Pointer LabelImagePointer
void ThreadedStreamedGenerateData(const RegionType &) override
RealType GetTargetOverlap(LabelType) const
void BeforeStreamedGenerateData() override
~LabelOverlapMeasuresImageFilter() override=default
typename NumericTraits< LabelType >::PrintType PrintType
itkGetInputMacro(SourceImage, LabelImageType)
MapType GetLabelSetMeasures()
void PrintSelf(std::ostream &os, Indent indent) const override
RealType GetTotalOverlap() const
RealType GetFalseNegativeError(LabelType) const
typename MapType::const_iterator MapConstIterator
SmartPointer< Self > Pointer
RealType GetVolumeSimilarity() const
LabelOverlapLabelSetMeasures GetMeasureForLabel(LabelType label) const
static constexpr unsigned int ImageDimension
RealType GetDiceCoefficient(LabelType label) const
itkGetInputMacro(TargetImage, LabelImageType)
LabelOverlapMeasuresImageFilter()
void MergeMap(MapType &m1, MapType &m2) const
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Metrics stored per label.