OTB
9.0.0
Orfeo Toolbox
|
#include <otbConfusionMatrixMeasurements.h>
Public Types | |
typedef TLabel | ClassLabelType |
typedef TConfusionMatrix | ConfusionMatrixType |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef std::map< ClassLabelType, int > | MapOfClassesType |
typedef std::map< int, ClassLabelType > | MapOfIndicesType |
typedef itk::VariableLengthVector< double > | MeasurementType |
typedef itk::SmartPointer< Self > | Pointer |
typedef ConfusionMatrixMeasurements | Self |
typedef itk::Object | Superclass |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
ConfusionMatrixMeasurements () | |
~ConfusionMatrixMeasurements () override | |
Private Member Functions | |
ConfusionMatrixMeasurements (const Self &)=delete | |
void | operator= (const Self &)=delete |
Private Attributes | |
ConfusionMatrixType | m_ConfusionMatrix |
double | m_FalseNegativeValue |
MeasurementType | m_FalseNegativeValues |
double | m_FalsePositiveValue |
MeasurementType | m_FalsePositiveValues |
double | m_FScore |
MeasurementType | m_FScores |
double | m_KappaIndex |
MapOfClassesType | m_MapOfClasses |
MapOfIndicesType | m_MapOfIndices |
unsigned short | m_NumberOfClasses |
unsigned long | m_NumberOfSamples |
double | m_OverallAccuracy |
double | m_Precision |
MeasurementType | m_Precisions |
double | m_Recall |
MeasurementType | m_Recalls |
double | m_TrueNegativeValue |
MeasurementType | m_TrueNegativeValues |
double | m_TruePositiveValue |
MeasurementType | m_TruePositiveValues |
This class computes measurements on the input confusion matrix.
For a 2 classes problem, the confusion matrix is organized as follows:
Please note that when accessing the confusion matrix values, the first index is the row index (reference samples), and the second is the column index (produced samples).
Some measurements are computed by this class: If we consider true positive (TP), true negative (TN), false positive (FP) and false negative (FP) rates, then in the 2 classes case:
Moreover overall accuracy and
index are computed.
Definition at line 53 of file otbConfusionMatrixMeasurements.h.
typedef TLabel otb::ConfusionMatrixMeasurements< TConfusionMatrix, TLabel >::ClassLabelType |
Definition at line 66 of file otbConfusionMatrixMeasurements.h.
typedef TConfusionMatrix otb::ConfusionMatrixMeasurements< TConfusionMatrix, TLabel >::ConfusionMatrixType |
Type for the confusion matrix
Definition at line 73 of file otbConfusionMatrixMeasurements.h.
typedef itk::SmartPointer<const Self> otb::ConfusionMatrixMeasurements< TConfusionMatrix, TLabel >::ConstPointer |
Definition at line 60 of file otbConfusionMatrixMeasurements.h.
typedef std::map<ClassLabelType, int> otb::ConfusionMatrixMeasurements< TConfusionMatrix, TLabel >::MapOfClassesType |
Definition at line 69 of file otbConfusionMatrixMeasurements.h.
typedef std::map<int, ClassLabelType> otb::ConfusionMatrixMeasurements< TConfusionMatrix, TLabel >::MapOfIndicesType |
Definition at line 70 of file otbConfusionMatrixMeasurements.h.
typedef itk::VariableLengthVector<double> otb::ConfusionMatrixMeasurements< TConfusionMatrix, TLabel >::MeasurementType |
Type for the measurement
Definition at line 76 of file otbConfusionMatrixMeasurements.h.
typedef itk::SmartPointer<Self> otb::ConfusionMatrixMeasurements< TConfusionMatrix, TLabel >::Pointer |
Definition at line 59 of file otbConfusionMatrixMeasurements.h.
typedef ConfusionMatrixMeasurements otb::ConfusionMatrixMeasurements< TConfusionMatrix, TLabel >::Self |
Standard class typedefs
Definition at line 57 of file otbConfusionMatrixMeasurements.h.
typedef itk::Object otb::ConfusionMatrixMeasurements< TConfusionMatrix, TLabel >::Superclass |
Definition at line 58 of file otbConfusionMatrixMeasurements.h.
|
protected |
|
inlineoverrideprotected |
Definition at line 145 of file otbConfusionMatrixMeasurements.h.
|
privatedelete |
void otb::ConfusionMatrixMeasurements< TConfusionMatrix, TLabel >::Compute | ( | void | ) |
Computes the measurements over m_ConfusionMatrix.
Definition at line 46 of file otbConfusionMatrixMeasurements.hxx.
virtual::itk::LightObject::Pointer otb::ConfusionMatrixMeasurements< TConfusionMatrix, TLabel >::CreateAnother | ( | void | ) | const |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inline |
Definition at line 118 of file otbConfusionMatrixMeasurements.h.
|
inline |
Definition at line 138 of file otbConfusionMatrixMeasurements.h.
|
virtual |
Run-time type information (and related methods).
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
static |
Method for creation through the object factory.
Referenced by otb::ConfusionMatrixCalculator< TRefListLabel, TProdListLabel >::ConfusionMatrixCalculator().
|
privatedelete |
|
virtual |
Accessors
|
inlinevirtual |
Definition at line 107 of file otbConfusionMatrixMeasurements.h.
|
inlinevirtual |
Definition at line 127 of file otbConfusionMatrixMeasurements.h.
|
private |
Definition at line 182 of file otbConfusionMatrixMeasurements.h.
Referenced by otb::ConfusionMatrixMeasurements< TConfusionMatrix, TLabel >::ConfusionMatrixMeasurements().
|
private |
Definition at line 167 of file otbConfusionMatrixMeasurements.h.
|
private |
Definition at line 158 of file otbConfusionMatrixMeasurements.h.
|
private |
Definition at line 169 of file otbConfusionMatrixMeasurements.h.
|
private |
Definition at line 160 of file otbConfusionMatrixMeasurements.h.
|
private |
Definition at line 174 of file otbConfusionMatrixMeasurements.h.
|
private |
Definition at line 165 of file otbConfusionMatrixMeasurements.h.
|
private |
Definition at line 155 of file otbConfusionMatrixMeasurements.h.
|
private |
Definition at line 176 of file otbConfusionMatrixMeasurements.h.
|
private |
Definition at line 177 of file otbConfusionMatrixMeasurements.h.
|
private |
Definition at line 179 of file otbConfusionMatrixMeasurements.h.
Referenced by otb::ConfusionMatrixMeasurements< TConfusionMatrix, TLabel >::ConfusionMatrixMeasurements().
|
private |
Definition at line 180 of file otbConfusionMatrixMeasurements.h.
|
private |
Definition at line 156 of file otbConfusionMatrixMeasurements.h.
|
private |
Definition at line 172 of file otbConfusionMatrixMeasurements.h.
|
private |
Definition at line 163 of file otbConfusionMatrixMeasurements.h.
|
private |
Definition at line 173 of file otbConfusionMatrixMeasurements.h.
|
private |
Definition at line 164 of file otbConfusionMatrixMeasurements.h.
|
private |
Definition at line 168 of file otbConfusionMatrixMeasurements.h.
|
private |
Definition at line 159 of file otbConfusionMatrixMeasurements.h.
|
private |
Definition at line 170 of file otbConfusionMatrixMeasurements.h.
|
private |
Definition at line 161 of file otbConfusionMatrixMeasurements.h.