OTB  6.7.0
Orfeo Toolbox
Public Types | Public Member Functions | Private Attributes | 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,
StatsFunctorType
StatsFunctorsMapType
 
typedef
StatisticsAttributesLabelObjectFunctor
< TLabelObject, TFeatureImage > 
StatsFunctorType
 

Public Member Functions

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

Private Attributes

bool m_ReducedAttributeSet
 
StatsFunctorsMapType m_StatsFunctorsMap
 

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

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.

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.

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.

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

Definition at line 55 of file otbBandsStatisticsAttributesLabelMapFilter.h.

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 71 of file otbBandsStatisticsAttributesLabelMapFilter.h.

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

Statistics functor.

Definition at line 68 of file otbBandsStatisticsAttributesLabelMapFilter.h.

Constructor & Destructor Documentation

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

Constructor

Definition at line 34 of file otbBandsStatisticsAttributesLabelMapFilter.hxx.

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

Destructor

Definition at line 41 of file otbBandsStatisticsAttributesLabelMapFilter.hxx.

Member Function Documentation

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

Clear all the features

Definition at line 130 of file otbBandsStatisticsAttributesLabelMapFilter.hxx.

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 116 of file otbBandsStatisticsAttributesLabelMapFilter.hxx.

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

Get the number of features

Definition at line 139 of file otbBandsStatisticsAttributesLabelMapFilter.hxx.

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

Get the reduced attribute set

Definition at line 164 of file otbBandsStatisticsAttributesLabelMapFilter.hxx.

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

The comparators

Definition at line 47 of file otbBandsStatisticsAttributesLabelMapFilter.hxx.

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 70 of file otbBandsStatisticsAttributesLabelMapFilter.hxx.

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

The comparators

Definition at line 59 of file otbBandsStatisticsAttributesLabelMapFilter.hxx.

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 107 of file otbBandsStatisticsAttributesLabelMapFilter.hxx.

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

Set the reduced attribute set

Definition at line 148 of file otbBandsStatisticsAttributesLabelMapFilter.hxx.

Member Data Documentation

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 112 of file otbBandsStatisticsAttributesLabelMapFilter.h.

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

The Stat functors map.

Definition at line 115 of file otbBandsStatisticsAttributesLabelMapFilter.h.


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