mmcfilters
Public API documentation
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
mmcfilters::TreeOfShapesBuildResult< Altitude > Struct Template Reference

Native representation produced by a Tree-of-Shapes producer. More...

#include <TreeOfShapesProducer.hpp>

Public Member Functions

detail::ValidatedNativeHierarchy< Altitude > takeValidatedHierarchy (MorphologicalTreeSemantics semantics) &&
 Transfers the producer-owned buffers together with their generic topology proof.
 

Public Attributes

std::vector< NodeIdparent
 Parent id for every produced internal node.
 
std::vector< NodeIdsmallestNodeMap
 Direct owning node for every original-domain proper part.
 
std::vector< Altitude > nodeAltitudes
 Encoded altitude for every produced internal node.
 
NodeId root = InvalidNode
 Root node id in the produced internal-node domain.
 
int numRows = 0
 Number of rows in the original pixel domain.
 
int numColumns = 0
 Number of columns in the original pixel domain.
 
detail::NativeTopologyProof topologyProof
 Move-only proof that the producer established the topology invariants.
 

Detailed Description

template<class Altitude>
struct mmcfilters::TreeOfShapesBuildResult< Altitude >

Native representation produced by a Tree-of-Shapes producer.

Unlike a pixel-parent image, this representation can preserve a virtual root (or another branching projected node) whose direct proper part is empty. Node altitudes are published in the scale declared by the topographic convention: unchanged 8-bit source levels, or exact doubled gray-level units where source levels are even and odd values preserve self-dual half levels.

Template Parameters
AltitudePublished node-altitude type.

Definition at line 124 of file TreeOfShapesProducer.hpp.

Member Function Documentation

◆ takeValidatedHierarchy()

template<class Altitude >
detail::ValidatedNativeHierarchy< Altitude > mmcfilters::TreeOfShapesBuildResult< Altitude >::takeValidatedHierarchy ( MorphologicalTreeSemantics  semantics) &&
inline

Transfers the producer-owned buffers together with their generic topology proof.

Parameters
semanticsHierarchy semantics validated by the operation.
Returns
The transferred producer-owned buffers together with their generic topology proof.

Definition at line 147 of file TreeOfShapesProducer.hpp.

Member Data Documentation

◆ nodeAltitudes

template<class Altitude >
std::vector<Altitude> mmcfilters::TreeOfShapesBuildResult< Altitude >::nodeAltitudes

Encoded altitude for every produced internal node.

Definition at line 130 of file TreeOfShapesProducer.hpp.

◆ numColumns

template<class Altitude >
int mmcfilters::TreeOfShapesBuildResult< Altitude >::numColumns = 0

Number of columns in the original pixel domain.

Definition at line 136 of file TreeOfShapesProducer.hpp.

◆ numRows

template<class Altitude >
int mmcfilters::TreeOfShapesBuildResult< Altitude >::numRows = 0

Number of rows in the original pixel domain.

Definition at line 134 of file TreeOfShapesProducer.hpp.

◆ parent

template<class Altitude >
std::vector<NodeId> mmcfilters::TreeOfShapesBuildResult< Altitude >::parent

Parent id for every produced internal node.

Definition at line 126 of file TreeOfShapesProducer.hpp.

◆ root

template<class Altitude >
NodeId mmcfilters::TreeOfShapesBuildResult< Altitude >::root = InvalidNode

Root node id in the produced internal-node domain.

Definition at line 132 of file TreeOfShapesProducer.hpp.

◆ smallestNodeMap

template<class Altitude >
std::vector<NodeId> mmcfilters::TreeOfShapesBuildResult< Altitude >::smallestNodeMap

Direct owning node for every original-domain proper part.

Definition at line 128 of file TreeOfShapesProducer.hpp.

◆ topologyProof

template<class Altitude >
detail::NativeTopologyProof mmcfilters::TreeOfShapesBuildResult< Altitude >::topologyProof

Move-only proof that the producer established the topology invariants.

Definition at line 138 of file TreeOfShapesProducer.hpp.


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