22 #ifndef otbConfusionMatrixCalculator_h
23 #define otbConfusionMatrixCalculator_h
57 template <
class TRefListLabel,
class TProdListLabel>
105 itkGetMacro(TruePositiveValue,
double);
106 itkGetMacro(TrueNegativeValue,
double);
107 itkGetMacro(FalsePositiveValue,
double);
108 itkGetMacro(FalseNegativeValue,
double);
109 itkGetMacro(KappaIndex,
double);
110 itkGetMacro(OverallAccuracy,
double);
114 itkGetMacro(Precision,
double);
115 itkGetMacro(Recall,
double);
116 itkGetMacro(FScore,
double);
117 itkGetMacro(NumberOfClasses,
unsigned short);
118 itkGetMacro(NumberOfSamples,
unsigned long);
127 return m_MapOfClasses;
135 return m_MapOfIndices;
143 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
185 #ifndef OTB_MANUAL_INSTANTIATION
itk::SmartPointer< const Self > ConstPointer
std::map< int, ClassLabelType > MapOfIndicesType
MapOfClassesType m_MapOfClasses
ConfusionMatrixMeasurementsType::Pointer m_ConfMatMeasurements
RefListLabelPointerType m_ReferenceLabels
double m_TruePositiveValue
MeasurementType m_TrueNegativeValues
ConfusionMatrixType m_ConfusionMatrix
MeasurementType m_Precisions
TProdListLabel ProdListLabelType
itk::VariableLengthVector< double > MeasurementType
itk::SmartPointer< Self > Pointer
itk::VariableSizeMatrix< unsigned long > ConfusionMatrixType
unsigned short m_NumberOfClasses
void operator=(const Self &)=delete
ProdListLabelPointerType m_ProducedLabels
double m_TrueNegativeValue
otb::ConfusionMatrixMeasurements< ConfusionMatrixType, ClassLabelType > ConfusionMatrixMeasurementsType
double m_FalsePositiveValue
TRefListLabel RefListLabelType
double m_FalseNegativeValue
unsigned long m_NumberOfSamples
MeasurementType m_TruePositiveValues
MapOfClassesType GetMapOfClasses() const
MeasurementType m_Recalls
RefListLabelType::ValueType::ValueType ClassLabelType
MapOfIndicesType m_MapOfIndices
ConfusionMatrixCalculator Self
MeasurementType m_FScores
MeasurementType m_FalseNegativeValues
ProdListLabelType::Pointer ProdListLabelPointerType
MeasurementType m_FalsePositiveValues
RefListLabelType::Pointer RefListLabelPointerType
std::map< ClassLabelType, int > MapOfClassesType
MapOfIndicesType GetMapOfIndices() const
ConfusionMatrixCalculator(const Self &)=delete
~ConfusionMatrixCalculator() override
itk::SmartPointer< Self > Pointer
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.