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;
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;
172 #ifndef OTB_MANUAL_INSTANTIATION
std::map< ClassLabelType, int > MapOfClassesType
itk::SmartPointer< Self > Pointer
std::map< int, ClassLabelType > MapOfIndicesType
This class converts a confusion matrix into masses of belief for each label.
itk::SmartPointer< Self > Pointer
otb::ConfusionMatrixMeasurements< ConfusionMatrixType, ClassLabelType > ConfusionMatrixMeasurementsType
ConfusionMatrixMeasurementsType::Pointer m_ConfMatMeasurements
MapOfClassesType GetMapOfClasses() const
MapOfIndicesType m_MapOfIndices
MapOfClassesType m_MapOfClasses
virtual void SetMapOfClasses(const MapOfClassesType _arg)
ConfusionMatrixMeasurementsType::MapOfClassesType MapOfClassesType
void operator=(const Self &)=delete
ConfusionMatrixToMassOfBelief Self
itk::SmartPointer< const Self > ConstPointer
virtual void SetMapOfIndices(const MapOfIndicesType _arg)
itk::ProcessObject Superclass
LabelMassMapType m_MapMassOfBelief
std::map< ClassLabelType, MassType > LabelMassMapType
ConfusionMatrixType m_ConfusionMatrix
~ConfusionMatrixToMassOfBelief() override
MassOfBeliefDefinitionMethod m_DefinitionMethod
MassOfBeliefDefinitionMethod
ConfusionMatrixMeasurementsType::MapOfIndicesType MapOfIndicesType
ConfusionMatrixToMassOfBelief(const Self &)=delete
TConfusionMatrix ConfusionMatrixType
LabelMassMapType GetMapMassOfBelief() const
MapOfIndicesType GetMapOfIndices() const
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.