OTB  9.0.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
otb::HooverMatrixFilter< TLabelMap > Class Template Reference

#include <otbHooverMatrixFilter.h>

+ Inheritance diagram for otb::HooverMatrixFilter< TLabelMap >:
+ Collaboration diagram for otb::HooverMatrixFilter< TLabelMap >:

Public Types

typedef unsigned long CoefficientType
 
typedef itk::SmartPointer< const SelfConstPointer
 
typedef LabelObjectType::IndexType IndexType
 
typedef TLabelMap LabelMapType
 
typedef LabelMapType::LabelObjectType LabelObjectType
 
typedef LabelObjectType::LabelType LabelType
 
typedef LabelMapType::LabelVectorType LabelVectorType
 
typedef itk::VariableSizeMatrix< CoefficientTypeMatrixType
 
typedef itk::SmartPointer< SelfPointer
 
typedef HooverMatrixFilter Self
 
typedef itk::LabelMapFilter< TLabelMap, TLabelMap > Superclass
 

Public Member Functions

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

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 ~HooverMatrixFilter () override
 

Private Attributes

LabelVectorType m_LabelsGT
 
MatrixType m_Matrix
 
unsigned long m_NumberOfRegionsGT
 
unsigned long m_NumberOfRegionsMS
 
void SetGroundTruthLabelMap (const LabelMapType *gt)
 
void SetMachineSegmentationLabelMap (const LabelMapType *ms)
 
const LabelMapTypeGetGroundTruthLabelMap ()
 
const LabelMapTypeGetMachineSegmentationLabelMap ()
 
 HooverMatrixFilter ()
 
void BeforeThreadedGenerateData () override
 
void ThreadedProcessLabelObject (LabelObjectType *labelObject) override
 

Detailed Description

template<class TLabelMap>
class otb::HooverMatrixFilter< TLabelMap >

This class computes the confusion matrix from two LabelMapObject.

The confusion matrix stores the number of pixel inside the intersection between couples of region. These couples are made from a ground truth segmentation and a machine segmentation. The line number gives the index of the ground truth region. The column number gives the index of the machine segmentation region.

Definition at line 43 of file otbHooverMatrixFilter.h.

Member Typedef Documentation

◆ CoefficientType

template<class TLabelMap >
typedef unsigned long otb::HooverMatrixFilter< TLabelMap >::CoefficientType

Definition at line 67 of file otbHooverMatrixFilter.h.

◆ ConstPointer

template<class TLabelMap >
typedef itk::SmartPointer<const Self> otb::HooverMatrixFilter< TLabelMap >::ConstPointer

Definition at line 50 of file otbHooverMatrixFilter.h.

◆ IndexType

template<class TLabelMap >
typedef LabelObjectType::IndexType otb::HooverMatrixFilter< TLabelMap >::IndexType

Definition at line 64 of file otbHooverMatrixFilter.h.

◆ LabelMapType

template<class TLabelMap >
typedef TLabelMap otb::HooverMatrixFilter< TLabelMap >::LabelMapType

Some convenient typedefs.

Definition at line 56 of file otbHooverMatrixFilter.h.

◆ LabelObjectType

template<class TLabelMap >
typedef LabelMapType::LabelObjectType otb::HooverMatrixFilter< TLabelMap >::LabelObjectType

Definition at line 60 of file otbHooverMatrixFilter.h.

◆ LabelType

template<class TLabelMap >
typedef LabelObjectType::LabelType otb::HooverMatrixFilter< TLabelMap >::LabelType

Definition at line 65 of file otbHooverMatrixFilter.h.

◆ LabelVectorType

template<class TLabelMap >
typedef LabelMapType::LabelVectorType otb::HooverMatrixFilter< TLabelMap >::LabelVectorType

Definition at line 61 of file otbHooverMatrixFilter.h.

◆ MatrixType

template<class TLabelMap >
typedef itk::VariableSizeMatrix<CoefficientType> otb::HooverMatrixFilter< TLabelMap >::MatrixType

Definition at line 68 of file otbHooverMatrixFilter.h.

◆ Pointer

template<class TLabelMap >
typedef itk::SmartPointer<Self> otb::HooverMatrixFilter< TLabelMap >::Pointer

Definition at line 49 of file otbHooverMatrixFilter.h.

◆ Self

template<class TLabelMap >
typedef HooverMatrixFilter otb::HooverMatrixFilter< TLabelMap >::Self

Standard class typedefs.

Definition at line 47 of file otbHooverMatrixFilter.h.

◆ Superclass

template<class TLabelMap >
typedef itk::LabelMapFilter<TLabelMap, TLabelMap> otb::HooverMatrixFilter< TLabelMap >::Superclass

Definition at line 48 of file otbHooverMatrixFilter.h.

Constructor & Destructor Documentation

◆ HooverMatrixFilter()

template<class TLabelMap >
otb::HooverMatrixFilter< TLabelMap >::HooverMatrixFilter
protected

Constructor

Definition at line 31 of file otbHooverMatrixFilter.hxx.

References otb::HooverMatrixFilter< TLabelMap >::m_Matrix.

◆ ~HooverMatrixFilter()

template<class TLabelMap >
otb::HooverMatrixFilter< TLabelMap >::~HooverMatrixFilter ( )
inlineoverrideprotected

Definition at line 92 of file otbHooverMatrixFilter.h.

Member Function Documentation

◆ BeforeThreadedGenerateData()

template<class TLabelMap >
void otb::HooverMatrixFilter< TLabelMap >::BeforeThreadedGenerateData
overrideprotected

Action : Resize the matrix

Definition at line 67 of file otbHooverMatrixFilter.hxx.

◆ CreateAnother()

template<class TLabelMap >
virtual::itk::LightObject::Pointer otb::HooverMatrixFilter< TLabelMap >::CreateAnother ( void  ) const

◆ GetGroundTruthLabelMap()

template<class TLabelMap >
const TLabelMap * otb::HooverMatrixFilter< TLabelMap >::GetGroundTruthLabelMap

Get the ground truth label map

Definition at line 54 of file otbHooverMatrixFilter.hxx.

◆ GetHooverConfusionMatrix()

template<class TLabelMap >
MatrixType& otb::HooverMatrixFilter< TLabelMap >::GetHooverConfusionMatrix ( )
inline

Get the output Hoover confusion matrix

Definition at line 83 of file otbHooverMatrixFilter.h.

◆ GetMachineSegmentationLabelMap()

template<class TLabelMap >
const TLabelMap * otb::HooverMatrixFilter< TLabelMap >::GetMachineSegmentationLabelMap

Get the machine segmentation label map

Definition at line 61 of file otbHooverMatrixFilter.hxx.

◆ GetNameOfClass()

template<class TLabelMap >
virtual const char* otb::HooverMatrixFilter< TLabelMap >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

◆ New()

template<class TLabelMap >
static Pointer otb::HooverMatrixFilter< TLabelMap >::New ( )
static

Standard New method.

◆ SetGroundTruthLabelMap()

template<class TLabelMap >
void otb::HooverMatrixFilter< TLabelMap >::SetGroundTruthLabelMap ( const LabelMapType gt)

Set the ground truth label map

Definition at line 40 of file otbHooverMatrixFilter.hxx.

◆ SetMachineSegmentationLabelMap()

template<class TLabelMap >
void otb::HooverMatrixFilter< TLabelMap >::SetMachineSegmentationLabelMap ( const LabelMapType ms)

Set the machine segmentation label map

Definition at line 47 of file otbHooverMatrixFilter.hxx.

◆ ThreadedProcessLabelObject()

template<class TLabelMap >
void otb::HooverMatrixFilter< TLabelMap >::ThreadedProcessLabelObject ( LabelObjectType labelObject)
overrideprotected

Action : fill the line of the confusion matrix corresponding to the given label object

Definition at line 81 of file otbHooverMatrixFilter.hxx.

Member Data Documentation

◆ m_LabelsGT

template<class TLabelMap >
LabelVectorType otb::HooverMatrixFilter< TLabelMap >::m_LabelsGT
private

List of labels in GT label map

Definition at line 111 of file otbHooverMatrixFilter.h.

◆ m_Matrix

template<class TLabelMap >
MatrixType otb::HooverMatrixFilter< TLabelMap >::m_Matrix
private

Hoover confusion matrix

Definition at line 114 of file otbHooverMatrixFilter.h.

Referenced by otb::HooverMatrixFilter< TLabelMap >::HooverMatrixFilter().

◆ m_NumberOfRegionsGT

template<class TLabelMap >
unsigned long otb::HooverMatrixFilter< TLabelMap >::m_NumberOfRegionsGT
private

Number of label objects found in the ground truth (GT) label maps

Definition at line 105 of file otbHooverMatrixFilter.h.

◆ m_NumberOfRegionsMS

template<class TLabelMap >
unsigned long otb::HooverMatrixFilter< TLabelMap >::m_NumberOfRegionsMS
private

Number of label objects found in the machine segmentation (MS) label maps

Definition at line 108 of file otbHooverMatrixFilter.h.


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