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

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

#include <TreeOfShapesProducer.hpp>

Public Member Functions

detail::ValidatedNativeHierarchy< ToSGrayLevel > 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< ToSGrayLevel > 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

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 use exact doubled gray-level units. Source levels are even; odd values preserve self-dual half levels.

Definition at line 66 of file TreeOfShapesProducer.hpp.

Member Function Documentation

◆ takeValidatedHierarchy()

detail::ValidatedNativeHierarchy< ToSGrayLevel > mmcfilters::TreeOfShapesBuildResult::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 89 of file TreeOfShapesProducer.hpp.

Member Data Documentation

◆ nodeAltitudes

std::vector<ToSGrayLevel> mmcfilters::TreeOfShapesBuildResult::nodeAltitudes

Encoded altitude for every produced internal node.

Definition at line 72 of file TreeOfShapesProducer.hpp.

◆ numColumns

int mmcfilters::TreeOfShapesBuildResult::numColumns = 0

Number of columns in the original pixel domain.

Definition at line 78 of file TreeOfShapesProducer.hpp.

◆ numRows

int mmcfilters::TreeOfShapesBuildResult::numRows = 0

Number of rows in the original pixel domain.

Definition at line 76 of file TreeOfShapesProducer.hpp.

◆ parent

std::vector<NodeId> mmcfilters::TreeOfShapesBuildResult::parent

Parent id for every produced internal node.

Definition at line 68 of file TreeOfShapesProducer.hpp.

◆ root

NodeId mmcfilters::TreeOfShapesBuildResult::root = InvalidNode

Root node id in the produced internal-node domain.

Definition at line 74 of file TreeOfShapesProducer.hpp.

◆ smallestNodeMap

std::vector<NodeId> mmcfilters::TreeOfShapesBuildResult::smallestNodeMap

Direct owning node for every original-domain proper part.

Definition at line 70 of file TreeOfShapesProducer.hpp.

◆ topologyProof

detail::NativeTopologyProof mmcfilters::TreeOfShapesBuildResult::topologyProof

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

Definition at line 80 of file TreeOfShapesProducer.hpp.


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