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

#include <otbBandsStatisticsAttributesLabelMapFilter.h>

+ Inheritance diagram for otb::Functor::BandStatsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage >:
+ Collaboration diagram for otb::Functor::BandStatsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage >:

Public Types

typedef TFeatureImage::ConstPointer FeatureImageConstPointer
 
typedef TFeatureImage::PixelType FeatureType
 
typedef TLabelObject LabelObjectType
 
typedef BandStatsAttributesLabelObjectFunctor Self
 
typedef std::map< std::string, StatsFunctorTypeStatsFunctorsMapType
 
typedef StatisticsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage > StatsFunctorType
 

Public Member Functions

 BandStatsAttributesLabelObjectFunctor ()
 
virtual ~BandStatsAttributesLabelObjectFunctor ()
 
bool m_ReducedAttributeSet
 
StatsFunctorsMapType m_StatsFunctorsMap
 
bool operator!= (const Self &self)
 
bool operator== (const Self &self)
 
void operator() (LabelObjectType *lo) const
 
void AddFeature (const std::string &name, const TFeatureImage *img)
 
bool RemoveFeature (const std::string &name)
 
const TFeatureImage * GetFeatureImage (const std::string &name) const
 
void ClearAllFeatures ()
 
unsigned int GetNumberOfFeatures () const
 
void SetReducedAttributeSet (bool flag)
 
bool GetReducedAttributeSet () const
 

Detailed Description

template<class TLabelObject, class TFeatureImage>
class otb::Functor::BandStatsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage >

Functor to compute bands statistics attributes.

For one label object, this functors applies the StatisticsAttributesLabelObjectFunctor one each feature image provided through AddFeature()

As such, it allows computing in one pass statistics related to multiple features. It is used in the BandsStatisticsAttributesLabelMapFilter.

Features can be added, removed or cleared via the appropriate methods.

See also
BandsStatisticsAttributesLabelMapFilter
StatisticsAttributesLabelObjectFunctor

Definition at line 51 of file otbBandsStatisticsAttributesLabelMapFilter.h.

Member Typedef Documentation

◆ FeatureImageConstPointer

template<class TLabelObject , class TFeatureImage >
typedef TFeatureImage::ConstPointer otb::Functor::BandStatsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage >::FeatureImageConstPointer

Feature image const pointer.

Definition at line 64 of file otbBandsStatisticsAttributesLabelMapFilter.h.

◆ FeatureType

template<class TLabelObject , class TFeatureImage >
typedef TFeatureImage::PixelType otb::Functor::BandStatsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage >::FeatureType

Typedef of the feature image type.

Definition at line 58 of file otbBandsStatisticsAttributesLabelMapFilter.h.

◆ LabelObjectType

template<class TLabelObject , class TFeatureImage >
typedef TLabelObject otb::Functor::BandStatsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage >::LabelObjectType

Typedef of the label object.

Definition at line 61 of file otbBandsStatisticsAttributesLabelMapFilter.h.

◆ Self

template<class TLabelObject , class TFeatureImage >
typedef BandStatsAttributesLabelObjectFunctor otb::Functor::BandStatsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage >::Self

Definition at line 55 of file otbBandsStatisticsAttributesLabelMapFilter.h.

◆ StatsFunctorsMapType

template<class TLabelObject , class TFeatureImage >
typedef std::map<std::string, StatsFunctorType> otb::Functor::BandStatsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage >::StatsFunctorsMapType

Map to store the functors.

Definition at line 70 of file otbBandsStatisticsAttributesLabelMapFilter.h.

◆ StatsFunctorType

template<class TLabelObject , class TFeatureImage >
typedef StatisticsAttributesLabelObjectFunctor<TLabelObject, TFeatureImage> otb::Functor::BandStatsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage >::StatsFunctorType

Statistics functor.

Definition at line 67 of file otbBandsStatisticsAttributesLabelMapFilter.h.

Constructor & Destructor Documentation

◆ BandStatsAttributesLabelObjectFunctor()

template<class TLabelObject , class TFeatureImage >
otb::Functor::BandStatsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage >::BandStatsAttributesLabelObjectFunctor

Constructor

Definition at line 33 of file otbBandsStatisticsAttributesLabelMapFilter.hxx.

◆ ~BandStatsAttributesLabelObjectFunctor()

template<class TLabelObject , class TFeatureImage >
otb::Functor::BandStatsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage >::~BandStatsAttributesLabelObjectFunctor
virtual

Destructor

Definition at line 39 of file otbBandsStatisticsAttributesLabelMapFilter.hxx.

Member Function Documentation

◆ AddFeature()

template<class TLabelObject , class TFeatureImage >
void otb::Functor::BandStatsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage >::AddFeature ( const std::string &  name,
const TFeatureImage *  img 
)

Add a feature with the given name

Definition at line 76 of file otbBandsStatisticsAttributesLabelMapFilter.hxx.

◆ ClearAllFeatures()

template<class TLabelObject , class TFeatureImage >
void otb::Functor::BandStatsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage >::ClearAllFeatures

Clear all the features

Definition at line 115 of file otbBandsStatisticsAttributesLabelMapFilter.hxx.

◆ GetFeatureImage()

template<class TLabelObject , class TFeatureImage >
const TFeatureImage * otb::Functor::BandStatsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage >::GetFeatureImage ( const std::string &  name) const

Get the feature image with this name

Definition at line 103 of file otbBandsStatisticsAttributesLabelMapFilter.hxx.

◆ GetNumberOfFeatures()

template<class TLabelObject , class TFeatureImage >
unsigned int otb::Functor::BandStatsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage >::GetNumberOfFeatures

Get the number of features

Definition at line 122 of file otbBandsStatisticsAttributesLabelMapFilter.hxx.

◆ GetReducedAttributeSet()

template<class TLabelObject , class TFeatureImage >
bool otb::Functor::BandStatsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage >::GetReducedAttributeSet

Get the reduced attribute set

Definition at line 142 of file otbBandsStatisticsAttributesLabelMapFilter.hxx.

◆ operator!=()

template<class TLabelObject , class TFeatureImage >
bool otb::Functor::BandStatsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage >::operator!= ( const Self self)

The comparators

Definition at line 45 of file otbBandsStatisticsAttributesLabelMapFilter.hxx.

◆ operator()()

template<class TLabelObject , class TFeatureImage >
void otb::Functor::BandStatsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage >::operator() ( LabelObjectType lo) const
inline

This is the functor implementation Calling the functor on a label object will update its statistics attributes

Definition at line 64 of file otbBandsStatisticsAttributesLabelMapFilter.hxx.

◆ operator==()

template<class TLabelObject , class TFeatureImage >
bool otb::Functor::BandStatsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage >::operator== ( const Self self)

True to compute only a reduced attribute set.

Definition at line 55 of file otbBandsStatisticsAttributesLabelMapFilter.hxx.

◆ RemoveFeature()

template<class TLabelObject , class TFeatureImage >
bool otb::Functor::BandStatsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage >::RemoveFeature ( const std::string &  name)

Remove the feature with this name if it exists

Definition at line 96 of file otbBandsStatisticsAttributesLabelMapFilter.hxx.

◆ SetReducedAttributeSet()

template<class TLabelObject , class TFeatureImage >
void otb::Functor::BandStatsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage >::SetReducedAttributeSet ( bool  flag)

Member Data Documentation

◆ m_ReducedAttributeSet

template<class TLabelObject , class TFeatureImage >
bool otb::Functor::BandStatsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage >::m_ReducedAttributeSet
private

True to compute only a reduced attribute set.

Definition at line 111 of file otbBandsStatisticsAttributesLabelMapFilter.h.

◆ m_StatsFunctorsMap

template<class TLabelObject , class TFeatureImage >
StatsFunctorsMapType otb::Functor::BandStatsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage >::m_StatsFunctorsMap
private

The Stat functors map.

Definition at line 114 of file otbBandsStatisticsAttributesLabelMapFilter.h.


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