|
OTB
9.0.0
Orfeo Toolbox
|
Go to the documentation of this file.
21 #ifndef otbConfusionMatrixToMassOfBelief_h
22 #define otbConfusionMatrixToMassOfBelief_h
27 #include "itkConfigure.h"
29 #include "itkProcessObject.h"
54 template <
class TConfusionMatrix = itk::VariableSizeMatrix<
double>,
class TLabel =
int>
93 void Update()
override;
96 itkSetMacro(ConfusionMatrix, ConfusionMatrixType);
97 itkSetMacro(DefinitionMethod, MassOfBeliefDefinitionMethod);
105 m_MapOfClasses = _arg;
106 typename MapOfClassesType::iterator itMapOfClasses;
107 m_MapOfIndices.clear();
108 for (itMapOfClasses = m_MapOfClasses.begin(); itMapOfClasses != m_MapOfClasses.end(); ++itMapOfClasses)
110 m_MapOfIndices[itMapOfClasses->second] = itMapOfClasses->first;
116 return m_MapOfClasses;
124 m_MapOfIndices = _arg;
125 typename MapOfIndicesType::iterator itMapOfIndices;
126 m_MapOfClasses.clear();
127 for (itMapOfIndices = m_MapOfIndices.begin(); itMapOfIndices != m_MapOfIndices.end(); ++itMapOfIndices)
129 m_MapOfClasses[itMapOfIndices->second] = itMapOfIndices->first;
135 return m_MapOfIndices;
141 return m_MapMassOfBelief;
153 void GenerateData(
void)
override;
157 void operator=(
const Self&) =
delete;
172 #ifndef OTB_MANUAL_INSTANTIATION
ConfusionMatrixMeasurementsType::MapOfIndicesType MapOfIndicesType
ConfusionMatrixMeasurementsType::MapOfClassesType MapOfClassesType
ConfusionMatrixMeasurementsType::Pointer m_ConfMatMeasurements
~ConfusionMatrixToMassOfBelief() override
std::map< int, ClassLabelType > MapOfIndicesType
This class converts a confusion matrix into masses of belief for each label.
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
TConfusionMatrix ConfusionMatrixType
MapOfIndicesType m_MapOfIndices
ConfusionMatrixType m_ConfusionMatrix
virtual void SetMapOfIndices(const MapOfIndicesType _arg)
std::map< ClassLabelType, int > MapOfClassesType
virtual void SetMapOfClasses(const MapOfClassesType _arg)
MassOfBeliefDefinitionMethod
LabelMassMapType GetMapMassOfBelief() const
std::map< ClassLabelType, MassType > LabelMassMapType
MapOfIndicesType GetMapOfIndices() const
MassOfBeliefDefinitionMethod m_DefinitionMethod
itk::SmartPointer< const Self > ConstPointer
itk::ProcessObject Superclass
MapOfClassesType GetMapOfClasses() const
otb::ConfusionMatrixMeasurements< ConfusionMatrixType, ClassLabelType > ConfusionMatrixMeasurementsType
MapOfClassesType m_MapOfClasses
ConfusionMatrixToMassOfBelief Self
itk::SmartPointer< Self > Pointer
itk::SmartPointer< Self > Pointer
LabelMassMapType m_MapMassOfBelief