mmcfilters
Public API documentation
Loading...
Searching...
No Matches
Public Attributes | List of all members
mmcfilters::NativeHierarchyView< T > Struct Template Reference

View of borrowed native hierarchy buffers for internal conversion and validation. More...

#include <NativeHierarchyView.hpp>

Collaboration diagram for mmcfilters::NativeHierarchyView< T >:
Collaboration graph
[legend]

Public Attributes

std::span< const NodeId > parent
 Parent id for every internal-node slot.
 
std::span< const NodeId > smallestNodeMap
 Smallest node containing each pixel.
 
std::span< const T > nodeAltitudes
 Altitude value for every internal-node slot.
 
NodeId root = InvalidNode
 Root node id.
 
std::optional< GridDomain2D > gridDomain2D
 Optional row/column interpretation of pixel ids.
 
MorphologicalTreeSemantics semantics
 Altitude-order and adjacency capabilities of the hierarchy.
 

Detailed Description

template<AltitudeValue T>
struct mmcfilters::NativeHierarchyView< T >

View of borrowed native hierarchy buffers for internal conversion and validation.

The three spans borrow node-parent, pixel-owner, and node-altitude buffers. Those buffers must remain valid while a consumer uses the view. Domain and semantic metadata are stored by value. This descriptor does not provide a public import entry point; external hierarchy import uses the Higra format.

Definition at line 21 of file NativeHierarchyView.hpp.

Member Data Documentation

◆ gridDomain2D

template<AltitudeValue T>
std::optional<GridDomain2D> mmcfilters::NativeHierarchyView< T >::gridDomain2D

Optional row/column interpretation of pixel ids.

Definition at line 31 of file NativeHierarchyView.hpp.

◆ nodeAltitudes

template<AltitudeValue T>
std::span<const T> mmcfilters::NativeHierarchyView< T >::nodeAltitudes

Altitude value for every internal-node slot.

Definition at line 27 of file NativeHierarchyView.hpp.

◆ parent

template<AltitudeValue T>
std::span<const NodeId> mmcfilters::NativeHierarchyView< T >::parent

Parent id for every internal-node slot.

Definition at line 23 of file NativeHierarchyView.hpp.

◆ root

template<AltitudeValue T>
NodeId mmcfilters::NativeHierarchyView< T >::root = InvalidNode

Root node id.

Definition at line 29 of file NativeHierarchyView.hpp.

◆ semantics

template<AltitudeValue T>
MorphologicalTreeSemantics mmcfilters::NativeHierarchyView< T >::semantics

Altitude-order and adjacency capabilities of the hierarchy.

Definition at line 33 of file NativeHierarchyView.hpp.

◆ smallestNodeMap

template<AltitudeValue T>
std::span<const NodeId> mmcfilters::NativeHierarchyView< T >::smallestNodeMap

Smallest node containing each pixel.

Definition at line 25 of file NativeHierarchyView.hpp.


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