|
mmcfilters
Public API documentation
|
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 TopographicConvention & | convention () const noexcept |
| Returns the immutable topographic convention selected for this producer. | |
| ~TreeOfShapesProducer ()=default | |
Destroys TreeOfShapesProducer. | |
| template<class Altitude = std::uint8_t> | |
| TreeOfShapesBuildResult< Altitude > | build (const ImageUInt8Ptr &imgPtr) const |
| Builds the hierarchy in the altitude scale declared by the convention. | |
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 529 of file TreeOfShapesProducer.hpp.
|
inlineexplicit |
Creates a tree-of-shapes builder.
| convention | Complete topographic convention. |
Definition at line 825 of file TreeOfShapesProducer.hpp.
|
inline |
Builds the hierarchy in the altitude scale declared by the convention.
Under TopographicAltitudeEncoding::UInt8 the published altitudes are unchanged source gray levels. This encoding is exact for a complementary-grid immersion and for a self-dual span immersion without an exterior ring. Under TopographicAltitudeEncoding::ExactDoubled, even values represent source gray levels and odd values represent half levels introduced by self-dual interpolation. Neither encoding loses a parent-child altitude distinction to quantization.
| Altitude | Published node-altitude type, which must match the altitude encoding declared by the convention. |
| imgPtr | Image. |
Definition at line 1564 of file TreeOfShapesProducer.hpp.
|
inlinenoexcept |
Returns the immutable topographic convention selected for this producer.
Definition at line 833 of file TreeOfShapesProducer.hpp.