![]() |
OTB
9.1.1
Orfeo Toolbox
|
#include <otbLabelImageSmallRegionMergingFilter.h>
Inheritance diagram for otb::PersistentLabelImageSmallRegionMergingFilter< TInputLabelImage >:
Collaboration diagram for otb::PersistentLabelImageSmallRegionMergingFilter< TInputLabelImage >:Public Types | |
| typedef itk::SmartPointer< const Self > | ConstPointer |
| typedef itk::SmartPointer< Self > | Pointer |
| typedef PersistentLabelImageSmallRegionMergingFilter | Self |
| typedef PersistentImageFilter< TInputLabelImage, TInputLabelImage > | Superclass |
Public Types inherited from otb::PersistentImageFilter< TInputLabelImage, TInputLabelImage > | |
| typedef itk::SmartPointer< const Self > | ConstPointer |
| typedef TInputLabelImage | InputImageType |
| typedef TInputLabelImage | OutputImageType |
| typedef itk::SmartPointer< Self > | Pointer |
| typedef PersistentImageFilter | Self |
| typedef itk::ImageToImageFilter< TInputLabelImage, TInputLabelImage > | Superclass |
| typedef TInputLabelImage | InputImageType |
| typedef InputImageType::Pointer | InputImagePointerType |
| typedef InputImageType::PixelType | InputLabelType |
| typedef InputImageType::SizeType | InputSizeType |
| typedef InputImageType::PointType | PointType |
| typedef InputImageType::RegionType | RegionType |
| typedef itk::VariableLengthVector< double > | RealVectorPixelType |
| typedef std::unordered_map< InputLabelType, std::set< InputLabelType > > | NeighboursMapType |
| typedef std::unordered_map< InputLabelType, RealVectorPixelType > | LabelStatisticType |
| typedef std::unordered_map< InputLabelType, double > | LabelPopulationType |
| typedef std::unordered_map< InputLabelType, InputLabelType > | LUTType |
| unsigned int | m_Size |
| LabelPopulationType | m_LabelPopulation |
| LabelStatisticType | m_LabelStatistic |
| std::vector< NeighboursMapType > | m_NeighboursMapsTmp |
| LUTType | m_LUT |
| virtual const char * | GetNameOfClass () const |
| virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
| virtual unsigned int | GetSize () |
| virtual void | SetSize (unsigned int _arg) |
| void | SetLabelPopulation (LabelPopulationType const &labelPopulation) |
| LabelPopulationType const & | GetLabelPopulation () const |
| void | SetLabelStatistic (LabelStatisticType const &labelStatistic) |
| LabelStatisticType const & | GetLabelStatistic () const |
| LUTType const & | GetLUT () const |
| virtual void | Reset (void) override |
| virtual void | Synthetize (void) override |
| static Pointer | New () |
| void | GenerateInputRequestedRegion () override |
| void | ThreadedGenerateData (const RegionType &outputRegionForThread, itk::ThreadIdType threadId) override |
| InputLabelType | FindCorrespondingLabel (InputLabelType label) |
| PersistentLabelImageSmallRegionMergingFilter () | |
| ~PersistentLabelImageSmallRegionMergingFilter () override=default | |
| void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
| PersistentLabelImageSmallRegionMergingFilter (const Self &)=delete | |
| void | operator= (const Self &)=delete |
Additional Inherited Members | |
Public Member Functions inherited from otb::PersistentImageFilter< TInputLabelImage, TInputLabelImage > | |
| virtual const char * | GetNameOfClass () const |
Protected Member Functions inherited from otb::PersistentImageFilter< TInputLabelImage, TInputLabelImage > | |
| PersistentImageFilter () | |
| void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
| ~PersistentImageFilter () override | |
This class can be used to merge each segments of a given size in a label image to the connected segment with the closest radiometry (in the sense of the euclidean squared distance). This persistent filter should be used as template parameter of a PersistentFilterStreamingDecorator. It computes from an input label image an equivalence table that gives for each pixel, the corresponding label in the merged image. The merged image can then be computed using a ChangeLabelImageFilter.
This filter can be updated several times for different values of size, the output equivalence table will be the results of all computations.
Definition at line 51 of file otbLabelImageSmallRegionMergingFilter.h.
| typedef itk::SmartPointer<const Self> otb::PersistentLabelImageSmallRegionMergingFilter< TInputLabelImage >::ConstPointer |
Definition at line 58 of file otbLabelImageSmallRegionMergingFilter.h.
| typedef InputImageType::Pointer otb::PersistentLabelImageSmallRegionMergingFilter< TInputLabelImage >::InputImagePointerType |
Template parameters typedefs
Definition at line 68 of file otbLabelImageSmallRegionMergingFilter.h.
| typedef TInputLabelImage otb::PersistentLabelImageSmallRegionMergingFilter< TInputLabelImage >::InputImageType |
Template parameters typedefs
Definition at line 62 of file otbLabelImageSmallRegionMergingFilter.h.
| typedef InputImageType::PixelType otb::PersistentLabelImageSmallRegionMergingFilter< TInputLabelImage >::InputLabelType |
Template parameters typedefs
Definition at line 69 of file otbLabelImageSmallRegionMergingFilter.h.
| typedef InputImageType::SizeType otb::PersistentLabelImageSmallRegionMergingFilter< TInputLabelImage >::InputSizeType |
Template parameters typedefs
Definition at line 70 of file otbLabelImageSmallRegionMergingFilter.h.
| typedef std::unordered_map<InputLabelType, double> otb::PersistentLabelImageSmallRegionMergingFilter< TInputLabelImage >::LabelPopulationType |
Template parameters typedefs
Definition at line 79 of file otbLabelImageSmallRegionMergingFilter.h.
| typedef std::unordered_map<InputLabelType, RealVectorPixelType> otb::PersistentLabelImageSmallRegionMergingFilter< TInputLabelImage >::LabelStatisticType |
Template parameters typedefs
Definition at line 78 of file otbLabelImageSmallRegionMergingFilter.h.
| typedef std::unordered_map<InputLabelType, InputLabelType> otb::PersistentLabelImageSmallRegionMergingFilter< TInputLabelImage >::LUTType |
Template parameters typedefs
Definition at line 80 of file otbLabelImageSmallRegionMergingFilter.h.
| typedef std::unordered_map<InputLabelType, std::set<InputLabelType> > otb::PersistentLabelImageSmallRegionMergingFilter< TInputLabelImage >::NeighboursMapType |
Template parameters typedefs
Definition at line 76 of file otbLabelImageSmallRegionMergingFilter.h.
| typedef itk::SmartPointer<Self> otb::PersistentLabelImageSmallRegionMergingFilter< TInputLabelImage >::Pointer |
Definition at line 57 of file otbLabelImageSmallRegionMergingFilter.h.
| typedef InputImageType::PointType otb::PersistentLabelImageSmallRegionMergingFilter< TInputLabelImage >::PointType |
Template parameters typedefs
Definition at line 71 of file otbLabelImageSmallRegionMergingFilter.h.
| typedef itk::VariableLengthVector<double> otb::PersistentLabelImageSmallRegionMergingFilter< TInputLabelImage >::RealVectorPixelType |
Template parameters typedefs
Definition at line 74 of file otbLabelImageSmallRegionMergingFilter.h.
| typedef InputImageType::RegionType otb::PersistentLabelImageSmallRegionMergingFilter< TInputLabelImage >::RegionType |
Template parameters typedefs
Definition at line 72 of file otbLabelImageSmallRegionMergingFilter.h.
| typedef PersistentLabelImageSmallRegionMergingFilter otb::PersistentLabelImageSmallRegionMergingFilter< TInputLabelImage >::Self |
Standard class typedef
Definition at line 55 of file otbLabelImageSmallRegionMergingFilter.h.
| typedef PersistentImageFilter<TInputLabelImage, TInputLabelImage> otb::PersistentLabelImageSmallRegionMergingFilter< TInputLabelImage >::Superclass |
Definition at line 56 of file otbLabelImageSmallRegionMergingFilter.h.
|
protected |
Constructor
Definition at line 32 of file otbLabelImageSmallRegionMergingFilter.hxx.
|
overrideprotecteddefault |
Destructor
|
privatedelete |
Template parameters typedefs
| virtual::itk::LightObject::Pointer otb::PersistentLabelImageSmallRegionMergingFilter< TInputLabelImage >::CreateAnother | ( | void | ) | const |
Template parameters typedefs
|
protected |
Use the LUT recursively to find the label corresponding to the input label
Definition at line 165 of file otbLabelImageSmallRegionMergingFilter.hxx.
|
overrideprotected |
The input requested region should be padded by a radius of 1 to use the neighbourhood iterator
Definition at line 178 of file otbLabelImageSmallRegionMergingFilter.hxx.
| PersistentLabelImageSmallRegionMergingFilter< TInputLabelImage >::LabelPopulationType const & otb::PersistentLabelImageSmallRegionMergingFilter< TInputLabelImage >::GetLabelPopulation |
Get the Label population
Definition at line 50 of file otbLabelImageSmallRegionMergingFilter.hxx.
| PersistentLabelImageSmallRegionMergingFilter< TInputLabelImage >::LabelStatisticType const & otb::PersistentLabelImageSmallRegionMergingFilter< TInputLabelImage >::GetLabelStatistic |
Get the label statistic
Definition at line 64 of file otbLabelImageSmallRegionMergingFilter.hxx.
| PersistentLabelImageSmallRegionMergingFilter< TInputLabelImage >::LUTType const & otb::PersistentLabelImageSmallRegionMergingFilter< TInputLabelImage >::GetLUT |
Get the LUT
Definition at line 71 of file otbLabelImageSmallRegionMergingFilter.hxx.
|
virtual |
Type macro
|
virtual |
Set/Get size of segments to be merged
|
static |
Template parameters typedefs
|
privatedelete |
Template parameters typedefs
|
overrideprotected |
PrintSelf method
Definition at line 259 of file otbLabelImageSmallRegionMergingFilter.hxx.
|
overridevirtual |
Template parameters typedefs
Implements otb::PersistentImageFilter< TInputLabelImage, TInputLabelImage >.
Definition at line 77 of file otbLabelImageSmallRegionMergingFilter.hxx.
| void otb::PersistentLabelImageSmallRegionMergingFilter< TInputLabelImage >::SetLabelPopulation | ( | LabelPopulationType const & | labelPopulation | ) |
Set the Label population and initialize the LUT
Definition at line 37 of file otbLabelImageSmallRegionMergingFilter.hxx.
| void otb::PersistentLabelImageSmallRegionMergingFilter< TInputLabelImage >::SetLabelStatistic | ( | LabelStatisticType const & | labelStatistic | ) |
Set the label statistic
Definition at line 57 of file otbLabelImageSmallRegionMergingFilter.hxx.
|
virtual |
Template parameters typedefs
|
overridevirtual |
Template parameters typedefs
Implements otb::PersistentImageFilter< TInputLabelImage, TInputLabelImage >.
Definition at line 84 of file otbLabelImageSmallRegionMergingFilter.hxx.
|
overrideprotected |
Threaded Generate Data : find the neighbours of each segments of size m_Size for each tile and store them in an accumulator
Definition at line 218 of file otbLabelImageSmallRegionMergingFilter.hxx.
|
private |
Map containing at key i the population of the segment labelled i
Definition at line 136 of file otbLabelImageSmallRegionMergingFilter.h.
|
private |
Map containing at key i the mean of element of the segment labelled i
Definition at line 139 of file otbLabelImageSmallRegionMergingFilter.h.
|
private |
LUT giving correspondence between labels in the original segmentation and the merged labels
Definition at line 146 of file otbLabelImageSmallRegionMergingFilter.h.
|
private |
Neighbours maps for each thread
Definition at line 142 of file otbLabelImageSmallRegionMergingFilter.h.
|
private |
Size of the segments to be merged
Definition at line 133 of file otbLabelImageSmallRegionMergingFilter.h.
1.8.17