OTB  9.0.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Member Functions | List of all members
otb::LabelImageSmallRegionMergingFilter< TInputLabelImage > Class Template Reference

#include <otbLabelImageSmallRegionMergingFilter.h>

+ Inheritance diagram for otb::LabelImageSmallRegionMergingFilter< TInputLabelImage >:
+ Collaboration diagram for otb::LabelImageSmallRegionMergingFilter< TInputLabelImage >:

Public Types

typedef itk::SmartPointer< const SelfConstPointer
 
typedef PersistentFilterStreamingDecorator< PersistentLabelImageSmallRegionMergingFilterTypeLabelImageSmallRegionMergingFilterType
 
typedef PersistentLabelImageSmallRegionMergingFilterType::LabelPopulationType LabelPopulationType
 
typedef PersistentLabelImageSmallRegionMergingFilterType::LabelStatisticType LabelStatisticType
 
typedef PersistentLabelImageSmallRegionMergingFilterType::LUTType LUTType
 
typedef PersistentLabelImageSmallRegionMergingFilter< TInputLabelImage > PersistentLabelImageSmallRegionMergingFilterType
 
typedef itk::SmartPointer< SelfPointer
 
typedef LabelImageSmallRegionMergingFilter Self
 
typedef itk::ProcessObject Superclass
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const char * GetNameOfClass () const
 

Static Public Member Functions

static Pointer New ()
 
LabelImageSmallRegionMergingFilterType::Pointer m_SmallRegionMergingFilter
 
unsigned int m_MinSize
 
virtual unsigned int GetMinSize ()
 
virtual void SetMinSize (unsigned int _arg)
 
void SetInputLabelImage (const TInputLabelImage *labelImage)
 
void SetLabelPopulation (LabelPopulationType const &labelPopulation)
 
LabelPopulationType const & GetLabelPopulation () const
 
void SetLabelStatistic (LabelStatisticType const &labelStatistic)
 
LabelStatisticType const & GetLabelStatistic () const
 
LUTType const & GetLUT () const
 
void Update () override
 
 LabelImageSmallRegionMergingFilter ()
 
 ~LabelImageSmallRegionMergingFilter () override=default
 
void GenerateData () override
 
 LabelImageSmallRegionMergingFilter (const Self &)=delete
 
void operator= (const Self &)=delete
 

Detailed Description

template<class TInputLabelImage>
class otb::LabelImageSmallRegionMergingFilter< TInputLabelImage >

This filter computes from a label image an equivalence table that gives for each pixel, the corresponding label in the merged image. It uses a PersistentFilterStreamingDecorator templated over a PersistentLabelImageSmallRegionMergingFilter to merge the segments recursively from segment of size 1 to segment of a size specified by the attribute MinSize. The equivalence table can be accessed with the method GetLut and used to compute the merged image with a ChangeLabelImageFilterType.

Definition at line 165 of file otbLabelImageSmallRegionMergingFilter.h.

Member Typedef Documentation

◆ ConstPointer

template<class TInputLabelImage >
typedef itk::SmartPointer<const Self> otb::LabelImageSmallRegionMergingFilter< TInputLabelImage >::ConstPointer

Definition at line 172 of file otbLabelImageSmallRegionMergingFilter.h.

◆ LabelImageSmallRegionMergingFilterType

Definition at line 182 of file otbLabelImageSmallRegionMergingFilter.h.

◆ LabelPopulationType

Definition at line 184 of file otbLabelImageSmallRegionMergingFilter.h.

◆ LabelStatisticType

Definition at line 186 of file otbLabelImageSmallRegionMergingFilter.h.

◆ LUTType

Definition at line 188 of file otbLabelImageSmallRegionMergingFilter.h.

◆ PersistentLabelImageSmallRegionMergingFilterType

Definition at line 178 of file otbLabelImageSmallRegionMergingFilter.h.

◆ Pointer

template<class TInputLabelImage >
typedef itk::SmartPointer<Self> otb::LabelImageSmallRegionMergingFilter< TInputLabelImage >::Pointer

Definition at line 171 of file otbLabelImageSmallRegionMergingFilter.h.

◆ Self

template<class TInputLabelImage >
typedef LabelImageSmallRegionMergingFilter otb::LabelImageSmallRegionMergingFilter< TInputLabelImage >::Self

Standard Self typedef

Definition at line 169 of file otbLabelImageSmallRegionMergingFilter.h.

◆ Superclass

template<class TInputLabelImage >
typedef itk::ProcessObject otb::LabelImageSmallRegionMergingFilter< TInputLabelImage >::Superclass

Definition at line 170 of file otbLabelImageSmallRegionMergingFilter.h.

Constructor & Destructor Documentation

◆ LabelImageSmallRegionMergingFilter() [1/2]

template<class TInputLabelImage >
otb::LabelImageSmallRegionMergingFilter< TInputLabelImage >::LabelImageSmallRegionMergingFilter
protected

◆ ~LabelImageSmallRegionMergingFilter()

template<class TInputLabelImage >
otb::LabelImageSmallRegionMergingFilter< TInputLabelImage >::~LabelImageSmallRegionMergingFilter ( )
overrideprotecteddefault

Destructor

◆ LabelImageSmallRegionMergingFilter() [2/2]

template<class TInputLabelImage >
otb::LabelImageSmallRegionMergingFilter< TInputLabelImage >::LabelImageSmallRegionMergingFilter ( const Self )
privatedelete

Set/Get size of polygon to be merged

Member Function Documentation

◆ CreateAnother()

template<class TInputLabelImage >
virtual::itk::LightObject::Pointer otb::LabelImageSmallRegionMergingFilter< TInputLabelImage >::CreateAnother ( void  ) const

◆ GenerateData()

template<class TInputLabelImage >
void otb::LabelImageSmallRegionMergingFilter< TInputLabelImage >::GenerateData
overrideprotected

Generate Data method (Update LabelImageSmallRegionMergingFilterType recursively)

Definition at line 315 of file otbLabelImageSmallRegionMergingFilter.hxx.

◆ GetLabelPopulation()

template<class TInputLabelImage >
LabelImageSmallRegionMergingFilter< TInputLabelImage >::LabelPopulationType const & otb::LabelImageSmallRegionMergingFilter< TInputLabelImage >::GetLabelPopulation

Get the Label population map

Definition at line 284 of file otbLabelImageSmallRegionMergingFilter.hxx.

◆ GetLabelStatistic()

template<class TInputLabelImage >
LabelImageSmallRegionMergingFilter< TInputLabelImage >::LabelStatisticType const & otb::LabelImageSmallRegionMergingFilter< TInputLabelImage >::GetLabelStatistic

Get the Label statistic map

Definition at line 297 of file otbLabelImageSmallRegionMergingFilter.hxx.

◆ GetLUT()

template<class TInputLabelImage >
LabelImageSmallRegionMergingFilter< TInputLabelImage >::LUTType const & otb::LabelImageSmallRegionMergingFilter< TInputLabelImage >::GetLUT

Get the Label statistic map

Definition at line 303 of file otbLabelImageSmallRegionMergingFilter.hxx.

◆ GetMinSize()

template<class TInputLabelImage >
virtual unsigned int otb::LabelImageSmallRegionMergingFilter< TInputLabelImage >::GetMinSize ( )
virtual

Set/Get size of polygon to be merged

◆ GetNameOfClass()

template<class TInputLabelImage >
virtual const char* otb::LabelImageSmallRegionMergingFilter< TInputLabelImage >::GetNameOfClass ( ) const
virtual

Creation through object factory macro

◆ New()

template<class TInputLabelImage >
static Pointer otb::LabelImageSmallRegionMergingFilter< TInputLabelImage >::New ( )
static

Type macro

◆ operator=()

template<class TInputLabelImage >
void otb::LabelImageSmallRegionMergingFilter< TInputLabelImage >::operator= ( const Self )
privatedelete

Set/Get size of polygon to be merged

◆ SetInputLabelImage()

template<class TInputLabelImage >
void otb::LabelImageSmallRegionMergingFilter< TInputLabelImage >::SetInputLabelImage ( const TInputLabelImage *  labelImage)

Set the Label population map

Definition at line 271 of file otbLabelImageSmallRegionMergingFilter.hxx.

◆ SetLabelPopulation()

template<class TInputLabelImage >
void otb::LabelImageSmallRegionMergingFilter< TInputLabelImage >::SetLabelPopulation ( LabelPopulationType const &  labelPopulation)

Set the Label population map

Definition at line 277 of file otbLabelImageSmallRegionMergingFilter.hxx.

◆ SetLabelStatistic()

template<class TInputLabelImage >
void otb::LabelImageSmallRegionMergingFilter< TInputLabelImage >::SetLabelStatistic ( LabelStatisticType const &  labelStatistic)

Set the Label statistic map

Definition at line 290 of file otbLabelImageSmallRegionMergingFilter.hxx.

◆ SetMinSize()

template<class TInputLabelImage >
virtual void otb::LabelImageSmallRegionMergingFilter< TInputLabelImage >::SetMinSize ( unsigned int  _arg)
virtual

Set/Get size of polygon to be merged

◆ Update()

template<class TInputLabelImage >
void otb::LabelImageSmallRegionMergingFilter< TInputLabelImage >::Update
override

Member Data Documentation

◆ m_MinSize

template<class TInputLabelImage >
unsigned int otb::LabelImageSmallRegionMergingFilter< TInputLabelImage >::m_MinSize
private

Set/Get size of polygon to be merged

Definition at line 236 of file otbLabelImageSmallRegionMergingFilter.h.

◆ m_SmallRegionMergingFilter

template<class TInputLabelImage >
LabelImageSmallRegionMergingFilterType::Pointer otb::LabelImageSmallRegionMergingFilter< TInputLabelImage >::m_SmallRegionMergingFilter
private

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