OTB  9.0.0
Orfeo Toolbox
Public Types | Public Member Functions | List of all members
otb::Functor::AttributesMapMeasurementFunctor< TLabelObject, TMeasurementVector > Class Template Reference

#include <otbAttributesMapLabelObject.h>

+ Inheritance diagram for otb::Functor::AttributesMapMeasurementFunctor< TLabelObject, TMeasurementVector >:
+ Collaboration diagram for otb::Functor::AttributesMapMeasurementFunctor< TLabelObject, TMeasurementVector >:

Public Types

typedef std::vector< std::string > AttributesListType
 

Public Member Functions

void AddAttribute (const char *attr)
 
TMeasurementVector operator() (const TLabelObject *object) const
 
AttributesListType m_Attributes
 
void RemoveAttribute (const char *attr)
 
void ClearAttributes ()
 
unsigned int GetNumberOfAttributes ()
 

Detailed Description

template<class TLabelObject, class TMeasurementVector>
class otb::Functor::AttributesMapMeasurementFunctor< TLabelObject, TMeasurementVector >

This class allows building a measurement vector from an AttributesMapLabelObject.

It Allows selecting only a subset of the available attributes.

Definition at line 106 of file otbAttributesMapLabelObject.h.

Member Typedef Documentation

◆ AttributesListType

template<class TLabelObject , class TMeasurementVector >
typedef std::vector<std::string> otb::Functor::AttributesMapMeasurementFunctor< TLabelObject, TMeasurementVector >::AttributesListType

Definition at line 109 of file otbAttributesMapLabelObject.h.

Member Function Documentation

◆ AddAttribute()

template<class TLabelObject , class TMeasurementVector >
void otb::Functor::AttributesMapMeasurementFunctor< TLabelObject, TMeasurementVector >::AddAttribute ( const char *  attr)
inline

Add an attribute to the exported attributes list

Definition at line 127 of file otbAttributesMapLabelObject.h.

◆ ClearAttributes()

template<class TLabelObject , class TMeasurementVector >
void otb::Functor::AttributesMapMeasurementFunctor< TLabelObject, TMeasurementVector >::ClearAttributes ( )
inline

Remove all attributes from the exported attributes list

Definition at line 144 of file otbAttributesMapLabelObject.h.

◆ GetNumberOfAttributes()

template<class TLabelObject , class TMeasurementVector >
unsigned int otb::Functor::AttributesMapMeasurementFunctor< TLabelObject, TMeasurementVector >::GetNumberOfAttributes ( )
inline

Get The number of exported attributes

Definition at line 150 of file otbAttributesMapLabelObject.h.

◆ operator()()

template<class TLabelObject , class TMeasurementVector >
TMeasurementVector otb::Functor::AttributesMapMeasurementFunctor< TLabelObject, TMeasurementVector >::operator() ( const TLabelObject *  object) const
inline

Definition at line 111 of file otbAttributesMapLabelObject.h.

◆ RemoveAttribute()

template<class TLabelObject , class TMeasurementVector >
void otb::Functor::AttributesMapMeasurementFunctor< TLabelObject, TMeasurementVector >::RemoveAttribute ( const char *  attr)
inline

Remove an attribute from the exported attributes list

Definition at line 133 of file otbAttributesMapLabelObject.h.

Member Data Documentation

◆ m_Attributes

template<class TLabelObject , class TMeasurementVector >
AttributesListType otb::Functor::AttributesMapMeasurementFunctor< TLabelObject, TMeasurementVector >::m_Attributes
private

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