OTB
9.0.0
Orfeo Toolbox
|
#include <otbBandsStatisticsAttributesLabelMapFilter.h>
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 | |
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 |
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.
Definition at line 51 of file otbBandsStatisticsAttributesLabelMapFilter.h.
typedef TFeatureImage::ConstPointer otb::Functor::BandStatsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage >::FeatureImageConstPointer |
Feature image const pointer.
Definition at line 64 of file otbBandsStatisticsAttributesLabelMapFilter.h.
typedef TFeatureImage::PixelType otb::Functor::BandStatsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage >::FeatureType |
Typedef of the feature image type.
Definition at line 58 of file otbBandsStatisticsAttributesLabelMapFilter.h.
typedef TLabelObject otb::Functor::BandStatsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage >::LabelObjectType |
Typedef of the label object.
Definition at line 61 of file otbBandsStatisticsAttributesLabelMapFilter.h.
typedef BandStatsAttributesLabelObjectFunctor otb::Functor::BandStatsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage >::Self |
Definition at line 55 of file otbBandsStatisticsAttributesLabelMapFilter.h.
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.
typedef StatisticsAttributesLabelObjectFunctor<TLabelObject, TFeatureImage> otb::Functor::BandStatsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage >::StatsFunctorType |
Statistics functor.
Definition at line 67 of file otbBandsStatisticsAttributesLabelMapFilter.h.
otb::Functor::BandStatsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage >::BandStatsAttributesLabelObjectFunctor |
Constructor
Definition at line 33 of file otbBandsStatisticsAttributesLabelMapFilter.hxx.
|
virtual |
Destructor
Definition at line 39 of file otbBandsStatisticsAttributesLabelMapFilter.hxx.
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.
void otb::Functor::BandStatsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage >::ClearAllFeatures |
Clear all the features
Definition at line 115 of file otbBandsStatisticsAttributesLabelMapFilter.hxx.
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.
unsigned int otb::Functor::BandStatsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage >::GetNumberOfFeatures |
Get the number of features
Definition at line 122 of file otbBandsStatisticsAttributesLabelMapFilter.hxx.
bool otb::Functor::BandStatsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage >::GetReducedAttributeSet |
Get the reduced attribute set
Definition at line 142 of file otbBandsStatisticsAttributesLabelMapFilter.hxx.
bool otb::Functor::BandStatsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage >::operator!= | ( | const Self & | self | ) |
The comparators
Definition at line 45 of file otbBandsStatisticsAttributesLabelMapFilter.hxx.
|
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.
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.
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.
void otb::Functor::BandStatsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage >::SetReducedAttributeSet | ( | bool | flag | ) |
Set the reduced attribute set
Definition at line 129 of file otbBandsStatisticsAttributesLabelMapFilter.hxx.
Referenced by otb::Functor::BandStatsAttributesLabelObjectFunctor< TImage::LabelObjectType, otb::Image< double, 2 > >::SetReducedAttributeSet().
|
private |
True to compute only a reduced attribute set.
Definition at line 111 of file otbBandsStatisticsAttributesLabelMapFilter.h.
|
private |
The Stat functors map.
Definition at line 114 of file otbBandsStatisticsAttributesLabelMapFilter.h.