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

Shape descriptors of the region enclosed by the external boundary. More...

#include <FilledShapeAttributeComputer.hpp>

Static Public Member Functions

template<std::floating_point Real>
static void compute (const AttributeComputeContext< Real > &context)
 Computes requested filled-region descriptors.
 
template<std::floating_point Real, AltitudeValue T>
static void compute (const AltitudeAttributeComputeContext< Real, T > &context)
 Computes descriptors using altitudes to resolve directional connectivity.
 
template<std::floating_point Real>
static void computeUnitRows (const UnitAttributeComputeContext< Real > &context)
 Writes unit-support values in the supplied pixel order.
 

Static Public Attributes

static constexpr std::string_view familyName = "filled-shape"
 Name used in dependency diagnostics.
 
static constexpr AttributeComputerFamily family = AttributeComputerFamily::FilledShape
 Scheduler family.
 
static constexpr AttributeComputerDomain domain = AttributeComputerDomain::Topology
 Support-based computation.
 
static constexpr std::array< Attribute, 13 > producedAttributes
 Canonical output order of the family.
 

Detailed Description

Shape descriptors of the region enclosed by the external boundary.

Holes are filled and each enclosed pixel has unit mass at its center. Computation consumes one incremental trace traversal without storing filled masks or retaining traces. Every live node must have exactly one external boundary. Altitude is used only to select connectivity for lower/upper shapes.

Definition at line 78 of file FilledShapeAttributeComputer.hpp.

Member Function Documentation

◆ compute() [1/2]

template<std::floating_point Real, AltitudeValue T>
static void mmcfilters::attributes::computers::FilledShapeAttributeComputer::compute ( const AltitudeAttributeComputeContext< Real, T > &  context)
inlinestatic

Computes descriptors using altitudes to resolve directional connectivity.

Parameters
contextValued tree, requests, and destination columns.

Definition at line 102 of file FilledShapeAttributeComputer.hpp.

◆ compute() [2/2]

template<std::floating_point Real>
static void mmcfilters::attributes::computers::FilledShapeAttributeComputer::compute ( const AttributeComputeContext< Real > &  context)
inlinestatic

Computes requested filled-region descriptors.

Parameters
contextTree, requests, and destination columns.

Definition at line 91 of file FilledShapeAttributeComputer.hpp.

◆ computeUnitRows()

template<std::floating_point Real>
static void mmcfilters::attributes::computers::FilledShapeAttributeComputer::computeUnitRows ( const UnitAttributeComputeContext< Real > &  context)
inlinestatic

Writes unit-support values in the supplied pixel order.

Area, eccentricity, and circularity are one; the centroid is the pixel coordinate. All remaining descriptors are zero.

Parameters
contextPixel order, requests, and destination columns.

Definition at line 118 of file FilledShapeAttributeComputer.hpp.

Member Data Documentation

◆ domain

constexpr AttributeComputerDomain mmcfilters::attributes::computers::FilledShapeAttributeComputer::domain = AttributeComputerDomain::Topology
staticconstexpr

Support-based computation.

Definition at line 82 of file FilledShapeAttributeComputer.hpp.

◆ family

constexpr AttributeComputerFamily mmcfilters::attributes::computers::FilledShapeAttributeComputer::family = AttributeComputerFamily::FilledShape
staticconstexpr

Scheduler family.

Definition at line 81 of file FilledShapeAttributeComputer.hpp.

◆ familyName

constexpr std::string_view mmcfilters::attributes::computers::FilledShapeAttributeComputer::familyName = "filled-shape"
staticconstexpr

Name used in dependency diagnostics.

Definition at line 80 of file FilledShapeAttributeComputer.hpp.

◆ producedAttributes

constexpr std::array<Attribute, 13> mmcfilters::attributes::computers::FilledShapeAttributeComputer::producedAttributes
inlinestaticconstexpr
Initial value:
{
FilledArea, FilledCentroidRow, FilledCentroidColumn, FilledLengthMajorAxis, FilledLengthMinorAxis,
FilledAxisOrientation, FilledEccentricity, FilledInertia, HoleAreaFraction, FilledCentroidDisplacementNormalized,
FilledCompactness, FilledCircularity, FilledAxisOrientationSigned}

Canonical output order of the family.

Definition at line 85 of file FilledShapeAttributeComputer.hpp.


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