OTB  6.7.0
Orfeo Toolbox
Public Types | Public Member Functions | Private Attributes | 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)
 
void ClearAttributes ()
 
unsigned int GetNumberOfAttributes ()
 
TMeasurementVector operator() (const TLabelObject *object) const
 
void RemoveAttribute (const char *attr)
 

Private Attributes

AttributesListType m_Attributes
 

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 102 of file otbAttributesMapLabelObject.h.

Member Typedef Documentation

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

Definition at line 105 of file otbAttributesMapLabelObject.h.

Member Function Documentation

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 123 of file otbAttributesMapLabelObject.h.

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

Remove all attributes from the exported attributes list

Definition at line 140 of file otbAttributesMapLabelObject.h.

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

Get The number of exported attributes

Definition at line 146 of file otbAttributesMapLabelObject.h.

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

Definition at line 107 of file otbAttributesMapLabelObject.h.

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 129 of file otbAttributesMapLabelObject.h.

Member Data Documentation

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: