OTB
9.0.0
Orfeo Toolbox
|
#include <otbHooverMatrixFilter.h>
Public Types | |
typedef unsigned long | CoefficientType |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef LabelObjectType::IndexType | IndexType |
typedef TLabelMap | LabelMapType |
typedef LabelMapType::LabelObjectType | LabelObjectType |
typedef LabelObjectType::LabelType | LabelType |
typedef LabelMapType::LabelVectorType | LabelVectorType |
typedef itk::VariableSizeMatrix< CoefficientType > | MatrixType |
typedef itk::SmartPointer< Self > | Pointer |
typedef HooverMatrixFilter | Self |
typedef itk::LabelMapFilter< TLabelMap, TLabelMap > | Superclass |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
MatrixType & | GetHooverConfusionMatrix () |
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 LabelMapType * | GetGroundTruthLabelMap () |
const LabelMapType * | GetMachineSegmentationLabelMap () |
HooverMatrixFilter () | |
void | BeforeThreadedGenerateData () override |
void | ThreadedProcessLabelObject (LabelObjectType *labelObject) override |
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.
typedef unsigned long otb::HooverMatrixFilter< TLabelMap >::CoefficientType |
Definition at line 67 of file otbHooverMatrixFilter.h.
typedef itk::SmartPointer<const Self> otb::HooverMatrixFilter< TLabelMap >::ConstPointer |
Definition at line 50 of file otbHooverMatrixFilter.h.
typedef LabelObjectType::IndexType otb::HooverMatrixFilter< TLabelMap >::IndexType |
Definition at line 64 of file otbHooverMatrixFilter.h.
typedef TLabelMap otb::HooverMatrixFilter< TLabelMap >::LabelMapType |
Some convenient typedefs.
Definition at line 56 of file otbHooverMatrixFilter.h.
typedef LabelMapType::LabelObjectType otb::HooverMatrixFilter< TLabelMap >::LabelObjectType |
Definition at line 60 of file otbHooverMatrixFilter.h.
typedef LabelObjectType::LabelType otb::HooverMatrixFilter< TLabelMap >::LabelType |
Definition at line 65 of file otbHooverMatrixFilter.h.
typedef LabelMapType::LabelVectorType otb::HooverMatrixFilter< TLabelMap >::LabelVectorType |
Definition at line 61 of file otbHooverMatrixFilter.h.
typedef itk::VariableSizeMatrix<CoefficientType> otb::HooverMatrixFilter< TLabelMap >::MatrixType |
Definition at line 68 of file otbHooverMatrixFilter.h.
typedef itk::SmartPointer<Self> otb::HooverMatrixFilter< TLabelMap >::Pointer |
Definition at line 49 of file otbHooverMatrixFilter.h.
typedef HooverMatrixFilter otb::HooverMatrixFilter< TLabelMap >::Self |
Standard class typedefs.
Definition at line 47 of file otbHooverMatrixFilter.h.
typedef itk::LabelMapFilter<TLabelMap, TLabelMap> otb::HooverMatrixFilter< TLabelMap >::Superclass |
Definition at line 48 of file otbHooverMatrixFilter.h.
|
protected |
Constructor
Definition at line 31 of file otbHooverMatrixFilter.hxx.
References otb::HooverMatrixFilter< TLabelMap >::m_Matrix.
|
inlineoverrideprotected |
Definition at line 92 of file otbHooverMatrixFilter.h.
|
overrideprotected |
Action : Resize the matrix
Definition at line 67 of file otbHooverMatrixFilter.hxx.
virtual::itk::LightObject::Pointer otb::HooverMatrixFilter< TLabelMap >::CreateAnother | ( | void | ) | const |
const TLabelMap * otb::HooverMatrixFilter< TLabelMap >::GetGroundTruthLabelMap |
Get the ground truth label map
Definition at line 54 of file otbHooverMatrixFilter.hxx.
|
inline |
Get the output Hoover confusion matrix
Definition at line 83 of file otbHooverMatrixFilter.h.
const TLabelMap * otb::HooverMatrixFilter< TLabelMap >::GetMachineSegmentationLabelMap |
Get the machine segmentation label map
Definition at line 61 of file otbHooverMatrixFilter.hxx.
|
virtual |
Run-time type information (and related methods).
|
static |
Standard New method.
void otb::HooverMatrixFilter< TLabelMap >::SetGroundTruthLabelMap | ( | const LabelMapType * | gt | ) |
Set the ground truth label map
Definition at line 40 of file otbHooverMatrixFilter.hxx.
void otb::HooverMatrixFilter< TLabelMap >::SetMachineSegmentationLabelMap | ( | const LabelMapType * | ms | ) |
Set the machine segmentation label map
Definition at line 47 of file otbHooverMatrixFilter.hxx.
|
overrideprotected |
Action : fill the line of the confusion matrix corresponding to the given label object
Definition at line 81 of file otbHooverMatrixFilter.hxx.
|
private |
List of labels in GT label map
Definition at line 111 of file otbHooverMatrixFilter.h.
|
private |
Hoover confusion matrix
Definition at line 114 of file otbHooverMatrixFilter.h.
Referenced by otb::HooverMatrixFilter< TLabelMap >::HooverMatrixFilter().
|
private |
Number of label objects found in the ground truth (GT) label maps
Definition at line 105 of file otbHooverMatrixFilter.h.
|
private |
Number of label objects found in the machine segmentation (MS) label maps
Definition at line 108 of file otbHooverMatrixFilter.h.