|
mmcfilters
Public API documentation
|
Computes higher-level shape descriptors derived from second-order central moments. More...
#include <MomentBasedAttributeComputer.hpp>
Static Public Member Functions | |
| template<std::floating_point Real> | |
| static constexpr Real | maxFiniteEccentricity () noexcept |
| Largest finite eccentricity emitted for degenerate one-dimensional supports. | |
| template<std::floating_point Real> | |
| static void | compute (const AttributeComputeContext< Real > &context) |
| Computes the requested moment-derived descriptors. | |
| template<std::floating_point Real> | |
| static void | computeUnitRows (const UnitAttributeComputeContext< Real > &context) |
| Materializes moment-derived descriptors for one-pixel unit supports. | |
Static Public Attributes | |
| static constexpr std::string_view | familyName = "moment-derived" |
| Family name used in dependency-plan diagnostics. | |
| static constexpr AttributeComputerFamily | family = AttributeComputerFamily::MomentDerived |
| Stable family id used by the scheduler. | |
| static constexpr AttributeComputerDomain | domain = AttributeComputerDomain::Topology |
| Execution domain required by the computer. | |
| static constexpr std::array< Attribute, 7 > | producedAttributes |
| Canonical list of moment-derived descriptors produced by this computer. | |
Computes higher-level shape descriptors derived from second-order central moments.
The descriptors produced here summarise the geometry of the equivalent second-moment ellipse associated with each node support. They include:
The computer consumes mu20, mu02, mu11, and AREA. From those values it builds the 2x2 second-moment matrix, extracts its eigenvalues, and uses them to derive the final descriptors.
Definition at line 582 of file MomentBasedAttributeComputer.hpp.
|
inlinestatic |
Computes the requested moment-derived descriptors.
Requires dependencies for CENTRAL_MOMENT_20, CENTRAL_MOMENT_02, CENTRAL_MOMENT_11, and AREA. The dependencies are resolved by name, then each live node is evaluated independently from the second-order moment matrix.
| context | Operation context or diagnostic label. |
Definition at line 619 of file MomentBasedAttributeComputer.hpp.
|
inlinestatic |
Materializes moment-derived descriptors for one-pixel unit supports.
Eccentricity and circularity are defined as 1 for the degenerate unit support; other descriptors are zero.
| context | Operation context or diagnostic label. |
Definition at line 647 of file MomentBasedAttributeComputer.hpp.
|
inlinestaticconstexprnoexcept |
Largest finite eccentricity emitted for degenerate one-dimensional supports.
Definition at line 598 of file MomentBasedAttributeComputer.hpp.
|
staticconstexpr |
Execution domain required by the computer.
Definition at line 591 of file MomentBasedAttributeComputer.hpp.
|
staticconstexpr |
Stable family id used by the scheduler.
Definition at line 588 of file MomentBasedAttributeComputer.hpp.
|
staticconstexpr |
Family name used in dependency-plan diagnostics.
Definition at line 585 of file MomentBasedAttributeComputer.hpp.
|
inlinestaticconstexpr |
Canonical list of moment-derived descriptors produced by this computer.
Definition at line 605 of file MomentBasedAttributeComputer.hpp.