4 #include <itkNumericTraits.h> 53 template<
typename TLabelImage>
89 itkStaticConstMacro(ImageDimension,
unsigned int, TLabelImage::ImageDimension);
92 void SetSourceImage(const LabelImageType* image)
94 this->SetNthInput(0, const_cast<LabelImageType*>(image));
100 this->SetNthInput(1, const_cast<LabelImageType*>(image));
106 return this->GetInput(0);
112 return this->GetInput(1);
118 return this->m_LabelSetMeasures;
146 return this->getUnionOverlap();
151 return this->getMeanOverlap();
156 return this->getMeanOverlap( label );
161 return this->getUnionOverlap( label );
168 void BeforeThreadedGenerateData() ITK_OVERRIDE;
169 void AfterThreadedGenerateData() ITK_OVERRIDE;
172 void DynamicThreadedGenerateData(
const RegionType &) ITK_OVERRIDE;
177 double m_fNbOfPixels;
179 std::vector<MapType> m_LabelSetMeasuresPerThread;
TLabelImage::PixelType LabelType
unsigned long m_SourceComplement
Implements a class to handle thread number in a dynamic way for multithreaded methods needing thread ...
TLabelImage::ConstPointer LabelImageConstPointer
~SegmentationMeasuresImageFilter()
const LabelImageType * GetTargetImage(void)
SegPerfLabelSetMeasures()
RealType GetJaccardCoefficient(LabelType label)
SegmentationMeasuresImageFilter Self
anima::NumberedThreadImageToImageFilter< TLabelImage, TLabelImage > Superclass
void SetTargetImage(const LabelImageType *image)
itk::SmartPointer< Self > Pointer
unsigned long m_Intersection
MapType::const_iterator MapConstIterator
TLabelImage::SizeType SizeType
unsigned long m_TargetComplement
MapType::iterator MapIterator
TLabelImage::RegionType RegionType
RealType GetDiceCoefficient()
itk::SmartPointer< const Self > ConstPointer
RealType GetDiceCoefficient(LabelType label)
TLabelImage LabelImageType
const LabelImageType * GetSourceImage(void)
std::map< LabelType, SegPerfLabelSetMeasures > MapType
TLabelImage::Pointer LabelImagePointer
itk::NumericTraits< LabelType >::RealType RealType
SegPerfLabelSetMeasures & operator=(const SegPerfLabelSetMeasures &l)
TLabelImage::IndexType IndexType
MapType GetLabelSetMeasures()
RealType GetJaccardCoefficient()
unsigned long m_TrueNegative