OTB  9.0.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Member Functions | List of all members
otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel > Class Template Reference

#include <otbConfusionMatrixToMassOfBelief.h>

+ Inheritance diagram for otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >:
+ Collaboration diagram for otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >:

Public Types

typedef TLabel ClassLabelType
 
typedef otb::ConfusionMatrixMeasurements< ConfusionMatrixType, ClassLabelTypeConfusionMatrixMeasurementsType
 
typedef TConfusionMatrix ConfusionMatrixType
 
typedef itk::SmartPointer< const SelfConstPointer
 
typedef std::map< ClassLabelType, MassTypeLabelMassMapType
 
typedef ConfusionMatrixMeasurementsType::MapOfClassesType MapOfClassesType
 
typedef ConfusionMatrixMeasurementsType::MapOfIndicesType MapOfIndicesType
 
enum  MassOfBeliefDefinitionMethod {
  PRECISION,
  RECALL,
  ACCURACY,
  KAPPA
}
 
typedef double MassType
 
typedef itk::SmartPointer< SelfPointer
 
typedef ConfusionMatrixToMassOfBelief Self
 
typedef itk::ProcessObject Superclass
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const char * GetNameOfClass () const
 
void Update () override
 

Static Public Member Functions

static Pointer New ()
 
ConfusionMatrixType m_ConfusionMatrix
 
ConfusionMatrixMeasurementsType::Pointer m_ConfMatMeasurements
 
MapOfClassesType m_MapOfClasses
 
MapOfIndicesType m_MapOfIndices
 
MassOfBeliefDefinitionMethod m_DefinitionMethod
 
LabelMassMapType m_MapMassOfBelief
 
virtual void SetConfusionMatrix (ConfusionMatrixType _arg)
 
virtual void SetDefinitionMethod (MassOfBeliefDefinitionMethod _arg)
 
virtual void SetMapOfClasses (const MapOfClassesType _arg)
 
MapOfClassesType GetMapOfClasses () const
 
virtual void SetMapOfIndices (const MapOfIndicesType _arg)
 
MapOfIndicesType GetMapOfIndices () const
 
LabelMassMapType GetMapMassOfBelief () const
 
 ConfusionMatrixToMassOfBelief ()
 
 ~ConfusionMatrixToMassOfBelief () override
 
void GenerateData (void) override
 
 ConfusionMatrixToMassOfBelief (const Self &)=delete
 
void operator= (const Self &)=delete
 

Detailed Description

template<class TConfusionMatrix = itk::VariableSizeMatrix<double>, class TLabel = int>
class otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >

This class converts a confusion matrix into masses of belief for each label.

This class converts a confusion matrix into a std::map<ClassLabelType, MassType> with MassType being the type of the Mass of Belief of each label to be used in the Dempster-Shafer theory.

TConfusionMatrix is the type of the confusion matrix from which the measurements will be computed. N.B.: The confusion matrix indices are expected to be organized the following way: confusionMatrix[itReference][itClassified], with itClassified the indice over the columns representing the classified labels compared to the reference labels (i.e. the reference truth) organized over the lines of the confusion matrix.

The MassOfBeliefDefinitionMethod indicates which parameter of the confusion matrix will stand for the mass of belief of each label (PRECISION, RECALL, ACCURACY, KAPPA).

Definition at line 55 of file otbConfusionMatrixToMassOfBelief.h.

Member Typedef Documentation

◆ ClassLabelType

template<class TConfusionMatrix = itk::VariableSizeMatrix<double>, class TLabel = int>
typedef TLabel otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >::ClassLabelType

Type for the labels

Definition at line 75 of file otbConfusionMatrixToMassOfBelief.h.

◆ ConfusionMatrixMeasurementsType

template<class TConfusionMatrix = itk::VariableSizeMatrix<double>, class TLabel = int>
typedef otb::ConfusionMatrixMeasurements<ConfusionMatrixType, ClassLabelType> otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >::ConfusionMatrixMeasurementsType

Type for the confusion matrix measurements calculator

Definition at line 78 of file otbConfusionMatrixToMassOfBelief.h.

◆ ConfusionMatrixType

template<class TConfusionMatrix = itk::VariableSizeMatrix<double>, class TLabel = int>
typedef TConfusionMatrix otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >::ConfusionMatrixType

Type for the confusion matrix

Definition at line 68 of file otbConfusionMatrixToMassOfBelief.h.

◆ ConstPointer

template<class TConfusionMatrix = itk::VariableSizeMatrix<double>, class TLabel = int>
typedef itk::SmartPointer<const Self> otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >::ConstPointer

Definition at line 62 of file otbConfusionMatrixToMassOfBelief.h.

◆ LabelMassMapType

template<class TConfusionMatrix = itk::VariableSizeMatrix<double>, class TLabel = int>
typedef std::map<ClassLabelType, MassType> otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >::LabelMassMapType

Definition at line 83 of file otbConfusionMatrixToMassOfBelief.h.

◆ MapOfClassesType

template<class TConfusionMatrix = itk::VariableSizeMatrix<double>, class TLabel = int>
typedef ConfusionMatrixMeasurementsType::MapOfClassesType otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >::MapOfClassesType

Definition at line 79 of file otbConfusionMatrixToMassOfBelief.h.

◆ MapOfIndicesType

template<class TConfusionMatrix = itk::VariableSizeMatrix<double>, class TLabel = int>
typedef ConfusionMatrixMeasurementsType::MapOfIndicesType otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >::MapOfIndicesType

Definition at line 80 of file otbConfusionMatrixToMassOfBelief.h.

◆ MassType

template<class TConfusionMatrix = itk::VariableSizeMatrix<double>, class TLabel = int>
typedef double otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >::MassType

Definition at line 82 of file otbConfusionMatrixToMassOfBelief.h.

◆ Pointer

template<class TConfusionMatrix = itk::VariableSizeMatrix<double>, class TLabel = int>
typedef itk::SmartPointer<Self> otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >::Pointer

Definition at line 61 of file otbConfusionMatrixToMassOfBelief.h.

◆ Self

template<class TConfusionMatrix = itk::VariableSizeMatrix<double>, class TLabel = int>
typedef ConfusionMatrixToMassOfBelief otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >::Self

Standard class typedefs

Definition at line 59 of file otbConfusionMatrixToMassOfBelief.h.

◆ Superclass

template<class TConfusionMatrix = itk::VariableSizeMatrix<double>, class TLabel = int>
typedef itk::ProcessObject otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >::Superclass

Definition at line 60 of file otbConfusionMatrixToMassOfBelief.h.

Member Enumeration Documentation

◆ MassOfBeliefDefinitionMethod

template<class TConfusionMatrix = itk::VariableSizeMatrix<double>, class TLabel = int>
enum otb::ConfusionMatrixToMassOfBelief::MassOfBeliefDefinitionMethod
Enumerator
PRECISION 
RECALL 
ACCURACY 
KAPPA 

Definition at line 85 of file otbConfusionMatrixToMassOfBelief.h.

Constructor & Destructor Documentation

◆ ConfusionMatrixToMassOfBelief() [1/2]

template<class TConfusionMatrix , class TLabel >
otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >::ConfusionMatrixToMassOfBelief
protected

Constructor

Definition at line 30 of file otbConfusionMatrixToMassOfBelief.hxx.

◆ ~ConfusionMatrixToMassOfBelief()

template<class TConfusionMatrix = itk::VariableSizeMatrix<double>, class TLabel = int>
otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >::~ConfusionMatrixToMassOfBelief ( )
inlineoverrideprotected

Destructor

Definition at line 150 of file otbConfusionMatrixToMassOfBelief.h.

◆ ConfusionMatrixToMassOfBelief() [2/2]

template<class TConfusionMatrix = itk::VariableSizeMatrix<double>, class TLabel = int>
otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >::ConfusionMatrixToMassOfBelief ( const Self )
privatedelete

Accessors

Member Function Documentation

◆ CreateAnother()

template<class TConfusionMatrix = itk::VariableSizeMatrix<double>, class TLabel = int>
virtual::itk::LightObject::Pointer otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >::CreateAnother ( void  ) const

◆ GenerateData()

template<class TConfusionMatrix , class TLabel >
void otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >::GenerateData ( void  )
overrideprotected

Triggers the computation of the confusion matrix

Definition at line 45 of file otbConfusionMatrixToMassOfBelief.hxx.

◆ GetMapMassOfBelief()

template<class TConfusionMatrix = itk::VariableSizeMatrix<double>, class TLabel = int>
LabelMassMapType otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >::GetMapMassOfBelief ( ) const
inline

Accessors

Definition at line 139 of file otbConfusionMatrixToMassOfBelief.h.

◆ GetMapOfClasses()

template<class TConfusionMatrix = itk::VariableSizeMatrix<double>, class TLabel = int>
MapOfClassesType otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >::GetMapOfClasses ( ) const
inline

Accessors

Definition at line 114 of file otbConfusionMatrixToMassOfBelief.h.

◆ GetMapOfIndices()

template<class TConfusionMatrix = itk::VariableSizeMatrix<double>, class TLabel = int>
MapOfIndicesType otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >::GetMapOfIndices ( ) const
inline

Accessors

Definition at line 133 of file otbConfusionMatrixToMassOfBelief.h.

◆ GetNameOfClass()

template<class TConfusionMatrix = itk::VariableSizeMatrix<double>, class TLabel = int>
virtual const char* otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

◆ New()

template<class TConfusionMatrix = itk::VariableSizeMatrix<double>, class TLabel = int>
static Pointer otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >::New ( )
static

Method for creation through the object factory.

◆ operator=()

template<class TConfusionMatrix = itk::VariableSizeMatrix<double>, class TLabel = int>
void otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >::operator= ( const Self )
privatedelete

Accessors

◆ SetConfusionMatrix()

template<class TConfusionMatrix = itk::VariableSizeMatrix<double>, class TLabel = int>
virtual void otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >::SetConfusionMatrix ( ConfusionMatrixType  _arg)
virtual

Accessors

◆ SetDefinitionMethod()

template<class TConfusionMatrix = itk::VariableSizeMatrix<double>, class TLabel = int>
virtual void otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >::SetDefinitionMethod ( MassOfBeliefDefinitionMethod  _arg)
virtual

Accessors

◆ SetMapOfClasses()

template<class TConfusionMatrix = itk::VariableSizeMatrix<double>, class TLabel = int>
virtual void otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >::SetMapOfClasses ( const MapOfClassesType  _arg)
inlinevirtual

Accessors

Definition at line 103 of file otbConfusionMatrixToMassOfBelief.h.

◆ SetMapOfIndices()

template<class TConfusionMatrix = itk::VariableSizeMatrix<double>, class TLabel = int>
virtual void otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >::SetMapOfIndices ( const MapOfIndicesType  _arg)
inlinevirtual

Accessors

Definition at line 122 of file otbConfusionMatrixToMassOfBelief.h.

◆ Update()

template<class TConfusionMatrix , class TLabel >
void otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >::Update
override

Definition at line 39 of file otbConfusionMatrixToMassOfBelief.hxx.

Member Data Documentation

◆ m_ConfMatMeasurements

template<class TConfusionMatrix = itk::VariableSizeMatrix<double>, class TLabel = int>
ConfusionMatrixMeasurementsType::Pointer otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >::m_ConfMatMeasurements
private

Accessors

Definition at line 160 of file otbConfusionMatrixToMassOfBelief.h.

◆ m_ConfusionMatrix

template<class TConfusionMatrix = itk::VariableSizeMatrix<double>, class TLabel = int>
ConfusionMatrixType otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >::m_ConfusionMatrix
private

Accessors

Definition at line 159 of file otbConfusionMatrixToMassOfBelief.h.

◆ m_DefinitionMethod

template<class TConfusionMatrix = itk::VariableSizeMatrix<double>, class TLabel = int>
MassOfBeliefDefinitionMethod otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >::m_DefinitionMethod
private

Accessors

Definition at line 165 of file otbConfusionMatrixToMassOfBelief.h.

◆ m_MapMassOfBelief

template<class TConfusionMatrix = itk::VariableSizeMatrix<double>, class TLabel = int>
LabelMassMapType otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >::m_MapMassOfBelief
private

Accessors

Definition at line 166 of file otbConfusionMatrixToMassOfBelief.h.

◆ m_MapOfClasses

template<class TConfusionMatrix = itk::VariableSizeMatrix<double>, class TLabel = int>
MapOfClassesType otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >::m_MapOfClasses
private

Accessors

Definition at line 162 of file otbConfusionMatrixToMassOfBelief.h.

◆ m_MapOfIndices

template<class TConfusionMatrix = itk::VariableSizeMatrix<double>, class TLabel = int>
MapOfIndicesType otb::ConfusionMatrixToMassOfBelief< TConfusionMatrix, TLabel >::m_MapOfIndices
private

Accessors

Definition at line 163 of file otbConfusionMatrixToMassOfBelief.h.


The documentation for this class was generated from the following files: