|
OTB
9.0.0
Orfeo Toolbox
|
Go to the documentation of this file.
21 #ifndef otbBandsStatisticsAttributesLabelMapFilter_h
22 #define otbBandsStatisticsAttributesLabelMapFilter_h
50 template <
class TLabelObject,
class TFeatureImage>
89 void AddFeature(
const std::string& name,
const TFeatureImage* img);
138 template <
class TImage,
class TFeatureImage>
141 TImage, typename Functor::BandStatsAttributesLabelObjectFunctor<typename TImage::LabelObjectType, otb::Image<double, 2>>>
164 itkStaticConstMacro(ImageDimension,
unsigned int, TImage::ImageDimension);
173 void SetFeatureImage(
const TFeatureImage* input);
179 void SetReducedAttributeSet(
bool flag);
182 bool GetReducedAttributeSet()
const;
184 itkBooleanMacro(ReducedAttributeSet);
195 void AllocateOutputs()
override;
197 void GenerateInputRequestedRegion()
override;
202 void BeforeThreadedGenerateData()
override;
205 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
209 void operator=(
const Self&) =
delete;
215 #ifndef OTB_MANUAL_INSTANTIATION
const TFeatureImage * GetFeatureImage(const std::string &name) const
FeatureImageType::InternalPixelType FeatureInternalPixelType
itk::SmartPointer< Self > Pointer
itk::SmartPointer< const Self > ConstPointer
virtual ~BandStatsAttributesLabelObjectFunctor()
~BandsStatisticsAttributesLabelMapFilter() override
This class applies a functor to compute new features.
bool operator!=(const Self &self)
StatsFunctorsMapType m_StatsFunctorsMap
The Stat functors map.
bool GetReducedAttributeSet() const
double InternalPrecisionType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Creation of an "otb" image which contains metadata.
unsigned int GetNumberOfFeatures() const
bool RemoveFeature(const std::string &name)
void SetReducedAttributeSet(bool flag)
ImageType::RegionType InputImageRegionType
LabelMapFeaturesFunctorImageFilter< ImageType, FunctorType > Superclass
Functor to compute bands statistics attributes.
BandStatsAttributesLabelObjectFunctor()
TFeatureImage FeatureImageType
void operator()(LabelObjectType *lo) const
BandStatsAttributesLabelObjectFunctor Self
bool m_ReducedAttributeSet
True to compute only a reduced attribute set.
bool operator==(const Self &self)
True to compute only a reduced attribute set.
ImageType::Pointer ImagePointer
BandsStatisticsAttributesLabelMapFilter Self
Functor::BandStatsAttributesLabelObjectFunctor< LabelObjectType, InternalImageType > FunctorType
void AddFeature(const std::string &name, const TFeatureImage *img)
StatisticsAttributesLabelObjectFunctor< TLabelObject, TFeatureImage > StatsFunctorType
Statistics functor.
Image< InternalPrecisionType, 2 > InternalImageType
ImageType::LabelObjectType LabelObjectType
std::map< std::string, StatsFunctorType > StatsFunctorsMapType
Map to store the functors.
TLabelObject LabelObjectType
Typedef of the label object.
TFeatureImage::PixelType FeatureType
Typedef of the feature image type.
void EnlargeOutputRequestedRegion(itk::DataObject *) override
TFeatureImage::ConstPointer FeatureImageConstPointer
Feature image const pointer.
This filter computes band statistics attributes for each object.
Functor to compute statistics attributes of one LabelObject.