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

Incremental side-level contour extraction and boundary-loop tracing. More...

#include <ContourTraceComputation.hpp>

Classes

struct  IncrementalContourTraces
 Lazy result for side-level contour traces. More...
 

Static Public Member Functions

static int packEdge (PixelId pixel, ContourTraceSide side)
 Packs one pixel-side edge into a compact integer id.
 
static ContourTraceEdge unpackEdge (int packedEdge)
 Unpacks one compact edge id.
 
static IncrementalContourTraces extract (const MorphologicalTree &tree)
 Runs incremental side-level contour extraction and returns lazy traces.
 
template<AltitudeValue T>
static IncrementalContourTraces extract (const ValuedMorphologicalTreeView< T > &tree)
 Runs incremental side-level contour extraction on a valued-tree view.
 

Detailed Description

Incremental side-level contour extraction and boundary-loop tracing.

Boundary primitives are oriented grid edges. Edges are materialized lazily per node, then traced into ordered loops on demand. The orientation convention keeps the support pixel on the right side of each directed edge in image coordinates, where rows grow downward and columns grow rightward. With this convention, external loops have positive doubled signed area and internal loops have negative doubled signed area.

Definition at line 75 of file ContourTraceComputation.hpp.

Member Function Documentation

◆ extract() [1/2]

static IncrementalContourTraces mmcfilters::ContourTraceComputation::extract ( const MorphologicalTree tree)
inlinestatic

Runs incremental side-level contour extraction and returns lazy traces.

Parameters
treeTree topology.
Returns
Result produced by running incremental side-level contour extraction and returns lazy traces.

Definition at line 1634 of file ContourTraceComputation.hpp.

◆ extract() [2/2]

template<AltitudeValue T>
static IncrementalContourTraces mmcfilters::ContourTraceComputation::extract ( const ValuedMorphologicalTreeView< T > &  tree)
inlinestatic

Runs incremental side-level contour extraction on a valued-tree view.

Parameters
treeTree topology.
Returns
Result produced by running incremental side-level contour extraction on a valued-tree view.

Definition at line 1646 of file ContourTraceComputation.hpp.

◆ packEdge()

static int mmcfilters::ContourTraceComputation::packEdge ( PixelId  pixel,
ContourTraceSide  side 
)
inlinestatic

Packs one pixel-side edge into a compact integer id.

Parameters
pixelPixel identifier.
sideSide selected by the operation.
Returns
The packed pixel-side edge into a compact integer id.

Definition at line 88 of file ContourTraceComputation.hpp.

◆ unpackEdge()

static ContourTraceEdge mmcfilters::ContourTraceComputation::unpackEdge ( int  packedEdge)
inlinestatic

Unpacks one compact edge id.

Parameters
packedEdgePacked boundary-edge identifier.
Returns
The unpacked compact edge id.

Definition at line 96 of file ContourTraceComputation.hpp.


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