OTB  9.0.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Member Functions | List of all members
otb::LabelMapToSampleListFilter< TInputLabelMap, TOutputSampleList, TMeasurementFunctor > Class Template Reference

#include <otbLabelMapToSampleListFilter.h>

+ Inheritance diagram for otb::LabelMapToSampleListFilter< TInputLabelMap, TOutputSampleList, TMeasurementFunctor >:
+ Collaboration diagram for otb::LabelMapToSampleListFilter< TInputLabelMap, TOutputSampleList, TMeasurementFunctor >:

Public Types

typedef InputLabelMapType::ConstIterator ConstIteratorType
 
typedef itk::SmartPointer< const SelfConstPointer
 
typedef itk::ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
 
typedef Superclass::DataObjectPointer DataObjectPointerType
 
typedef InputLabelMapType::ConstPointer InputLabelMapConstPointerType
 
typedef TInputLabelMap InputLabelMapType
 
typedef InputLabelMapType::LabelObjectType LabelObjectType
 
typedef TMeasurementFunctor MeasurementFunctorType
 
typedef OutputSampleListType::MeasurementVectorType MeasurementVectorType
 
typedef OutputSampleListType::Pointer OutputSampleListPointerType
 
typedef TOutputSampleList OutputSampleListType
 
typedef itk::SmartPointer< SelfPointer
 
typedef LabelMapToSampleListFilter Self
 
typedef itk::ProcessObject Superclass
 

Public Member Functions

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

Static Public Member Functions

static Pointer New ()
 
MeasurementFunctorType m_MeasurementFunctor
 
void SetInputLabelMap (const InputLabelMapType *inputLabelMap)
 
const InputLabelMapTypeGetInputLabelMap () const
 
const OutputSampleListTypeGetOutputSampleList ()
 
void SetMeasurementFunctor (const MeasurementFunctorType &functor)
 
MeasurementFunctorTypeGetMeasurementFunctor ()
 
 LabelMapToSampleListFilter ()
 
 ~LabelMapToSampleListFilter () override
 
void GenerateData () override
 
DataObjectPointerType MakeOutput (DataObjectPointerArraySizeType idx) override
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
 LabelMapToSampleListFilter (const Self &)=delete
 
void operator= (const Self &)=delete
 

Detailed Description

template<class TInputLabelMap, class TOutputSampleList, class TMeasurementFunctor = Functor::AttributesMapMeasurementFunctor<typename TInputLabelMap::LabelObjectType, typename TOutputSampleList::MeasurementVectorType>>
class otb::LabelMapToSampleListFilter< TInputLabelMap, TOutputSampleList, TMeasurementFunctor >

This class converts a LabelObjectMap to a SampleList for learning and classification.

The conversion from label object to measurement vector is made through a functor. This allows supporting any kind of LabelObject via proper redefinition of the functor.

Definition at line 46 of file otbLabelMapToSampleListFilter.h.

Member Typedef Documentation

◆ ConstIteratorType

template<class TInputLabelMap , class TOutputSampleList , class TMeasurementFunctor = Functor::AttributesMapMeasurementFunctor<typename TInputLabelMap::LabelObjectType, typename TOutputSampleList::MeasurementVectorType>>
typedef InputLabelMapType::ConstIterator otb::LabelMapToSampleListFilter< TInputLabelMap, TOutputSampleList, TMeasurementFunctor >::ConstIteratorType

Definition at line 66 of file otbLabelMapToSampleListFilter.h.

◆ ConstPointer

template<class TInputLabelMap , class TOutputSampleList , class TMeasurementFunctor = Functor::AttributesMapMeasurementFunctor<typename TInputLabelMap::LabelObjectType, typename TOutputSampleList::MeasurementVectorType>>
typedef itk::SmartPointer<const Self> otb::LabelMapToSampleListFilter< TInputLabelMap, TOutputSampleList, TMeasurementFunctor >::ConstPointer

Definition at line 53 of file otbLabelMapToSampleListFilter.h.

◆ DataObjectPointerArraySizeType

template<class TInputLabelMap , class TOutputSampleList , class TMeasurementFunctor = Functor::AttributesMapMeasurementFunctor<typename TInputLabelMap::LabelObjectType, typename TOutputSampleList::MeasurementVectorType>>
typedef itk::ProcessObject::DataObjectPointerArraySizeType otb::LabelMapToSampleListFilter< TInputLabelMap, TOutputSampleList, TMeasurementFunctor >::DataObjectPointerArraySizeType

Definition at line 76 of file otbLabelMapToSampleListFilter.h.

◆ DataObjectPointerType

template<class TInputLabelMap , class TOutputSampleList , class TMeasurementFunctor = Functor::AttributesMapMeasurementFunctor<typename TInputLabelMap::LabelObjectType, typename TOutputSampleList::MeasurementVectorType>>
typedef Superclass::DataObjectPointer otb::LabelMapToSampleListFilter< TInputLabelMap, TOutputSampleList, TMeasurementFunctor >::DataObjectPointerType

DataObject typedef

Definition at line 75 of file otbLabelMapToSampleListFilter.h.

◆ InputLabelMapConstPointerType

template<class TInputLabelMap , class TOutputSampleList , class TMeasurementFunctor = Functor::AttributesMapMeasurementFunctor<typename TInputLabelMap::LabelObjectType, typename TOutputSampleList::MeasurementVectorType>>
typedef InputLabelMapType::ConstPointer otb::LabelMapToSampleListFilter< TInputLabelMap, TOutputSampleList, TMeasurementFunctor >::InputLabelMapConstPointerType

Definition at line 63 of file otbLabelMapToSampleListFilter.h.

◆ InputLabelMapType

template<class TInputLabelMap , class TOutputSampleList , class TMeasurementFunctor = Functor::AttributesMapMeasurementFunctor<typename TInputLabelMap::LabelObjectType, typename TOutputSampleList::MeasurementVectorType>>
typedef TInputLabelMap otb::LabelMapToSampleListFilter< TInputLabelMap, TOutputSampleList, TMeasurementFunctor >::InputLabelMapType

template typedefs

Definition at line 59 of file otbLabelMapToSampleListFilter.h.

◆ LabelObjectType

template<class TInputLabelMap , class TOutputSampleList , class TMeasurementFunctor = Functor::AttributesMapMeasurementFunctor<typename TInputLabelMap::LabelObjectType, typename TOutputSampleList::MeasurementVectorType>>
typedef InputLabelMapType::LabelObjectType otb::LabelMapToSampleListFilter< TInputLabelMap, TOutputSampleList, TMeasurementFunctor >::LabelObjectType

Definition at line 64 of file otbLabelMapToSampleListFilter.h.

◆ MeasurementFunctorType

template<class TInputLabelMap , class TOutputSampleList , class TMeasurementFunctor = Functor::AttributesMapMeasurementFunctor<typename TInputLabelMap::LabelObjectType, typename TOutputSampleList::MeasurementVectorType>>
typedef TMeasurementFunctor otb::LabelMapToSampleListFilter< TInputLabelMap, TOutputSampleList, TMeasurementFunctor >::MeasurementFunctorType

Definition at line 72 of file otbLabelMapToSampleListFilter.h.

◆ MeasurementVectorType

template<class TInputLabelMap , class TOutputSampleList , class TMeasurementFunctor = Functor::AttributesMapMeasurementFunctor<typename TInputLabelMap::LabelObjectType, typename TOutputSampleList::MeasurementVectorType>>
typedef OutputSampleListType::MeasurementVectorType otb::LabelMapToSampleListFilter< TInputLabelMap, TOutputSampleList, TMeasurementFunctor >::MeasurementVectorType

Definition at line 70 of file otbLabelMapToSampleListFilter.h.

◆ OutputSampleListPointerType

template<class TInputLabelMap , class TOutputSampleList , class TMeasurementFunctor = Functor::AttributesMapMeasurementFunctor<typename TInputLabelMap::LabelObjectType, typename TOutputSampleList::MeasurementVectorType>>
typedef OutputSampleListType::Pointer otb::LabelMapToSampleListFilter< TInputLabelMap, TOutputSampleList, TMeasurementFunctor >::OutputSampleListPointerType

Definition at line 69 of file otbLabelMapToSampleListFilter.h.

◆ OutputSampleListType

template<class TInputLabelMap , class TOutputSampleList , class TMeasurementFunctor = Functor::AttributesMapMeasurementFunctor<typename TInputLabelMap::LabelObjectType, typename TOutputSampleList::MeasurementVectorType>>
typedef TOutputSampleList otb::LabelMapToSampleListFilter< TInputLabelMap, TOutputSampleList, TMeasurementFunctor >::OutputSampleListType

Definition at line 68 of file otbLabelMapToSampleListFilter.h.

◆ Pointer

template<class TInputLabelMap , class TOutputSampleList , class TMeasurementFunctor = Functor::AttributesMapMeasurementFunctor<typename TInputLabelMap::LabelObjectType, typename TOutputSampleList::MeasurementVectorType>>
typedef itk::SmartPointer<Self> otb::LabelMapToSampleListFilter< TInputLabelMap, TOutputSampleList, TMeasurementFunctor >::Pointer

Definition at line 52 of file otbLabelMapToSampleListFilter.h.

◆ Self

template<class TInputLabelMap , class TOutputSampleList , class TMeasurementFunctor = Functor::AttributesMapMeasurementFunctor<typename TInputLabelMap::LabelObjectType, typename TOutputSampleList::MeasurementVectorType>>
typedef LabelMapToSampleListFilter otb::LabelMapToSampleListFilter< TInputLabelMap, TOutputSampleList, TMeasurementFunctor >::Self

Standard class typedefs.

Definition at line 50 of file otbLabelMapToSampleListFilter.h.

◆ Superclass

template<class TInputLabelMap , class TOutputSampleList , class TMeasurementFunctor = Functor::AttributesMapMeasurementFunctor<typename TInputLabelMap::LabelObjectType, typename TOutputSampleList::MeasurementVectorType>>
typedef itk::ProcessObject otb::LabelMapToSampleListFilter< TInputLabelMap, TOutputSampleList, TMeasurementFunctor >::Superclass

Definition at line 51 of file otbLabelMapToSampleListFilter.h.

Constructor & Destructor Documentation

◆ LabelMapToSampleListFilter() [1/2]

template<class TInputLabelMap , class TOutputListSample , class TMeasurementFunctor >
otb::LabelMapToSampleListFilter< TInputLabelMap, TOutputListSample, TMeasurementFunctor >::LabelMapToSampleListFilter
protected

The functor used to build the measurement vector

Definition at line 30 of file otbLabelMapToSampleListFilter.hxx.

◆ ~LabelMapToSampleListFilter()

template<class TInputLabelMap , class TOutputListSample , class TMeasurementFunctor >
otb::LabelMapToSampleListFilter< TInputLabelMap, TOutputListSample, TMeasurementFunctor >::~LabelMapToSampleListFilter
overrideprotected

The functor used to build the measurement vector

Definition at line 39 of file otbLabelMapToSampleListFilter.hxx.

◆ LabelMapToSampleListFilter() [2/2]

template<class TInputLabelMap , class TOutputSampleList , class TMeasurementFunctor = Functor::AttributesMapMeasurementFunctor<typename TInputLabelMap::LabelObjectType, typename TOutputSampleList::MeasurementVectorType>>
otb::LabelMapToSampleListFilter< TInputLabelMap, TOutputSampleList, TMeasurementFunctor >::LabelMapToSampleListFilter ( const Self )
privatedelete

The functor used to build the measurement vector

Member Function Documentation

◆ CreateAnother()

template<class TInputLabelMap , class TOutputSampleList , class TMeasurementFunctor = Functor::AttributesMapMeasurementFunctor<typename TInputLabelMap::LabelObjectType, typename TOutputSampleList::MeasurementVectorType>>
virtual::itk::LightObject::Pointer otb::LabelMapToSampleListFilter< TInputLabelMap, TOutputSampleList, TMeasurementFunctor >::CreateAnother ( void  ) const

◆ GenerateData()

template<class TInputLabelMap , class TOutputListSample , class TMeasurementFunctor >
void otb::LabelMapToSampleListFilter< TInputLabelMap, TOutputListSample, TMeasurementFunctor >::GenerateData
overrideprotected

The functor used to build the measurement vector

Definition at line 83 of file otbLabelMapToSampleListFilter.hxx.

◆ GetInputLabelMap()

template<class TInputLabelMap , class TOutputListSample , class TMeasurementFunctor >
const LabelMapToSampleListFilter< TInputLabelMap, TOutputListSample, TMeasurementFunctor >::InputLabelMapType * otb::LabelMapToSampleListFilter< TInputLabelMap, TOutputListSample, TMeasurementFunctor >::GetInputLabelMap

The functor used to build the measurement vector

Definition at line 63 of file otbLabelMapToSampleListFilter.hxx.

◆ GetMeasurementFunctor()

template<class TInputLabelMap , class TOutputSampleList , class TMeasurementFunctor = Functor::AttributesMapMeasurementFunctor<typename TInputLabelMap::LabelObjectType, typename TOutputSampleList::MeasurementVectorType>>
MeasurementFunctorType& otb::LabelMapToSampleListFilter< TInputLabelMap, TOutputSampleList, TMeasurementFunctor >::GetMeasurementFunctor ( )
inline

The functor used to build the measurement vector

Definition at line 92 of file otbLabelMapToSampleListFilter.h.

◆ GetNameOfClass()

template<class TInputLabelMap , class TOutputSampleList , class TMeasurementFunctor = Functor::AttributesMapMeasurementFunctor<typename TInputLabelMap::LabelObjectType, typename TOutputSampleList::MeasurementVectorType>>
virtual const char* otb::LabelMapToSampleListFilter< TInputLabelMap, TOutputSampleList, TMeasurementFunctor >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

◆ GetOutputSampleList()

template<class TInputLabelMap , class TOutputListSample , class TMeasurementFunctor >
const LabelMapToSampleListFilter< TInputLabelMap, TOutputListSample, TMeasurementFunctor >::OutputSampleListType * otb::LabelMapToSampleListFilter< TInputLabelMap, TOutputListSample, TMeasurementFunctor >::GetOutputSampleList

Get the output SampleList

Definition at line 76 of file otbLabelMapToSampleListFilter.hxx.

◆ MakeOutput()

template<class TInputLabelMap , class TOutputListSample , class TMeasurementFunctor >
LabelMapToSampleListFilter< TInputLabelMap, TOutputListSample, TMeasurementFunctor >::DataObjectPointerType otb::LabelMapToSampleListFilter< TInputLabelMap, TOutputListSample, TMeasurementFunctor >::MakeOutput ( DataObjectPointerArraySizeType  idx)
overrideprotected

Make Output

Definition at line 45 of file otbLabelMapToSampleListFilter.hxx.

◆ New()

template<class TInputLabelMap , class TOutputSampleList , class TMeasurementFunctor = Functor::AttributesMapMeasurementFunctor<typename TInputLabelMap::LabelObjectType, typename TOutputSampleList::MeasurementVectorType>>
static Pointer otb::LabelMapToSampleListFilter< TInputLabelMap, TOutputSampleList, TMeasurementFunctor >::New ( )
static

Method for creation through the object factory.

◆ operator=()

template<class TInputLabelMap , class TOutputSampleList , class TMeasurementFunctor = Functor::AttributesMapMeasurementFunctor<typename TInputLabelMap::LabelObjectType, typename TOutputSampleList::MeasurementVectorType>>
void otb::LabelMapToSampleListFilter< TInputLabelMap, TOutputSampleList, TMeasurementFunctor >::operator= ( const Self )
privatedelete

The functor used to build the measurement vector

◆ PrintSelf()

template<class TInputLabelMap , class TOutputListSample , class TMeasurementFunctor >
void otb::LabelMapToSampleListFilter< TInputLabelMap, TOutputListSample, TMeasurementFunctor >::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
overrideprotected

The functor used to build the measurement vector

Definition at line 112 of file otbLabelMapToSampleListFilter.hxx.

◆ SetInputLabelMap()

template<class TInputLabelMap , class TOutputListSample , class TMeasurementFunctor >
void otb::LabelMapToSampleListFilter< TInputLabelMap, TOutputListSample, TMeasurementFunctor >::SetInputLabelMap ( const InputLabelMapType inputLabelMap)

Set/Get the input label map

Definition at line 54 of file otbLabelMapToSampleListFilter.hxx.

◆ SetMeasurementFunctor()

template<class TInputLabelMap , class TOutputSampleList , class TMeasurementFunctor = Functor::AttributesMapMeasurementFunctor<typename TInputLabelMap::LabelObjectType, typename TOutputSampleList::MeasurementVectorType>>
void otb::LabelMapToSampleListFilter< TInputLabelMap, TOutputSampleList, TMeasurementFunctor >::SetMeasurementFunctor ( const MeasurementFunctorType functor)
inline

Get a hook on the functor for settings

Definition at line 87 of file otbLabelMapToSampleListFilter.h.

Member Data Documentation

◆ m_MeasurementFunctor

template<class TInputLabelMap , class TOutputSampleList , class TMeasurementFunctor = Functor::AttributesMapMeasurementFunctor<typename TInputLabelMap::LabelObjectType, typename TOutputSampleList::MeasurementVectorType>>
MeasurementFunctorType otb::LabelMapToSampleListFilter< TInputLabelMap, TOutputSampleList, TMeasurementFunctor >::m_MeasurementFunctor
private

The functor used to build the measurement vector

Definition at line 114 of file otbLabelMapToSampleListFilter.h.


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