mmcfilters
Public API documentation
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
mmcfilters::DistanceTransformComputation Class Reference

Public topology-only computation of node distance fields and profiles. More...

#include <DistanceTransformComputation.hpp>

Static Public Member Functions

static NodeDistanceField computeNodeField (const MorphologicalTree &tree, NodeId node, DistanceTransformAccuracy accuracy=DistanceTransformAccuracy::Exact)
 Materializes the compact field of one live node.
 
static DistanceTransformProfiles computeProfiles (const MorphologicalTree &tree, DistanceTransformAccuracy accuracy=DistanceTransformAccuracy::Exact)
 Computes sorted sparse histograms for every live node.
 

Detailed Description

Public topology-only computation of node distance fields and profiles.

Exact single-node fields use a directed provider that transforms only the requested support bounding box after shared topology indexes are built. Approximate fields and both profile backends retain their hierarchy-wide traversal semantics.

Definition at line 26 of file DistanceTransformComputation.hpp.

Member Function Documentation

◆ computeNodeField()

static NodeDistanceField mmcfilters::DistanceTransformComputation::computeNodeField ( const MorphologicalTree &  tree,
NodeId  node,
DistanceTransformAccuracy  accuracy = DistanceTransformAccuracy::Exact 
)
inlinestatic

Materializes the compact field of one live node.

Parameters
treeRegular 2D morphological-tree topology.
nodeLive internal node to materialize.
accuracyExact or approximate numerical backend.
Returns
Self-contained support pixels and aligned squared distances.

Exact accuracy transforms only the selected node. Approximate accuracy traverses the shared hierarchy-wide DIFT and copies only this node.

Definition at line 45 of file DistanceTransformComputation.hpp.

◆ computeProfiles()

static DistanceTransformProfiles mmcfilters::DistanceTransformComputation::computeProfiles ( const MorphologicalTree &  tree,
DistanceTransformAccuracy  accuracy = DistanceTransformAccuracy::Exact 
)
inlinestatic

Computes sorted sparse histograms for every live node.

Parameters
treeRegular 2D morphological-tree topology.
accuracyExact or approximate numerical backend.
Returns
Self-contained CSR-like all-node sparse profiles.

The approximate backend selects a histogram-only observer, avoiding scalar- and spatial-moment storage and updates.

Definition at line 91 of file DistanceTransformComputation.hpp.


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