|
mmcfilters
Public API documentation
|
Independently owned ordered contour trace for one tree node. More...
#include <ContourTrace.hpp>
Public Member Functions | |
| ContourTrace (ContourTraceView trace) | |
| Copies a borrowed trace so it can outlive its source traversal. | |
| std::span< const ContourBoundary > | boundaries () const noexcept |
| Returns all ordered boundary descriptors. | |
| ContourBoundary | externalBoundary () const |
| Returns the unique external boundary. | |
| ContourEdgeRange | edges () const noexcept |
| Returns every contour edge in boundary order. | |
| ContourEdgeRange | boundaryEdges (const ContourBoundary &boundary) const |
| Returns the ordered edges of one boundary. | |
| ContourPixelRange | boundaryPixels (const ContourBoundary &boundary) const |
| Returns one support pixel for each ordered boundary edge. | |
| ContourTraceView | view () const noexcept |
| Returns a borrowed view over this owned trace. | |
Friends | |
| class | ContourTraceComputation |
Independently owned ordered contour trace for one tree node.
Returned views, spans, and ranges borrow this trace's storage. Keep that storage alive and unchanged while using them; replacing it by assignment or destroying it invalidates those borrowed objects.
Definition at line 336 of file ContourTrace.hpp.
|
inlineexplicit |
Copies a borrowed trace so it can outlive its source traversal.
| trace | Borrowed source trace. |
Definition at line 344 of file ContourTrace.hpp.
|
inlinenoexcept |
Returns all ordered boundary descriptors.
Definition at line 349 of file ContourTrace.hpp.
|
inline |
Returns the ordered edges of one boundary.
| boundary | Boundary descriptor from this trace. |
Definition at line 366 of file ContourTrace.hpp.
|
inline |
Returns one support pixel for each ordered boundary edge.
| boundary | Boundary descriptor from this trace. |
Definition at line 373 of file ContourTrace.hpp.
|
inlinenoexcept |
Returns every contour edge in boundary order.
Definition at line 359 of file ContourTrace.hpp.
|
inline |
Returns the unique external boundary.
| std::logic_error | If zero or multiple external boundaries exist. |
Definition at line 356 of file ContourTrace.hpp.
|
inlinenoexcept |
Returns a borrowed view over this owned trace.
Definition at line 380 of file ContourTrace.hpp.
|
friend |
Definition at line 383 of file ContourTrace.hpp.