MorphologicalAttributeFilters
Public API documentation
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
mmcfilters::TreeOfShapesProducer Class Reference

Builds trees of shapes (ToS) using a union-find construction. More...

#include <TreeOfShapesProducer.hpp>

Public Member Functions

 TreeOfShapesProducer (TopographicConvention convention={})
 Creates a tree-of-shapes builder.
 
const TopographicConventionconvention () const noexcept
 Returns the immutable topographic convention selected for this producer.
 
 ~TreeOfShapesProducer ()=default
 Destroys TreeOfShapesProducer.
 
TreeOfShapesBuildResult build (const ImageUInt8Ptr &imgPtr) const
 Builds the hierarchy with exact doubled source-level altitudes.
 

Detailed Description

Builds trees of shapes (ToS) using a union-find construction.

The builder interpolates the input image according to the retained TopographicConvention, constructs a max-tree on the interpolated domain, and projects the resulting hierarchy back to the original image domain.

Definition at line 471 of file TreeOfShapesProducer.hpp.

Constructor & Destructor Documentation

◆ TreeOfShapesProducer()

mmcfilters::TreeOfShapesProducer::TreeOfShapesProducer ( TopographicConvention  convention = {})
inlineexplicit

Creates a tree-of-shapes builder.

Parameters
conventionComplete topographic convention.

Definition at line 752 of file TreeOfShapesProducer.hpp.

Member Function Documentation

◆ build()

TreeOfShapesBuildResult mmcfilters::TreeOfShapesProducer::build ( const ImageUInt8Ptr imgPtr) const
inline

Builds the hierarchy with exact doubled source-level altitudes.

Even values represent source gray levels and odd values represent the half levels introduced by self-dual interpolation. No parent-child altitude distinction is lost to quantization.

Parameters
imgPtrImage.
Returns
The resulting hierarchy with exact doubled source-level altitudes.

Definition at line 1476 of file TreeOfShapesProducer.hpp.

◆ convention()

const TopographicConvention & mmcfilters::TreeOfShapesProducer::convention ( ) const
inlinenoexcept

Returns the immutable topographic convention selected for this producer.

Returns
The immutable topographic convention selected for this producer.

Definition at line 760 of file TreeOfShapesProducer.hpp.


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