|
mmcfilters
Public API documentation
|
Computes the seven Hu invariant moments. More...
#include <MomentBasedAttributeComputer.hpp>
Static Public Member Functions | |
| template<std::floating_point Real> | |
| static void | compute (const AttributeComputeContext< Real > &context) |
| Computes the requested Hu invariant moments. | |
| template<std::floating_point Real> | |
| static void | computeUnitRows (const UnitAttributeComputeContext< Real > &context) |
| Materializes Hu moments for one-pixel unit supports. | |
Static Public Attributes | |
| static constexpr std::string_view | familyName = "hu-moments" |
| Family name used in dependency-plan diagnostics. | |
| static constexpr AttributeComputerFamily | family = AttributeComputerFamily::HuMoments |
| 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 Hu moments produced together. | |
Computes the seven Hu invariant moments.
Hu moments are derived from normalised central moments and provide descriptors that are invariant to translation, scale, and rotation. This computer expects the central moments and AREA to have been materialised by upstream computers, then evaluates the seven classical Hu combinations for each live node independently.
Definition at line 490 of file MomentBasedAttributeComputer.hpp.
|
inlinestatic |
Computes the requested Hu invariant moments.
Requires one dependency source containing all central moments and another containing AREA. Sources are resolved semantically through context.dependencies, so their order in the dependency span is not part of the contract.
| context | Operation context or diagnostic label. |
Definition at line 518 of file MomentBasedAttributeComputer.hpp.
|
inlinestatic |
Materializes Hu moments for one-pixel unit supports.
The degenerate one-pixel support uses zero for all Hu invariants in the exported unit path.
| context | Operation context or diagnostic label. |
Definition at line 547 of file MomentBasedAttributeComputer.hpp.
|
staticconstexpr |
Execution domain required by the computer.
Definition at line 499 of file MomentBasedAttributeComputer.hpp.
|
staticconstexpr |
Stable family id used by the scheduler.
Definition at line 496 of file MomentBasedAttributeComputer.hpp.
|
staticconstexpr |
Family name used in dependency-plan diagnostics.
Definition at line 493 of file MomentBasedAttributeComputer.hpp.
|
inlinestaticconstexpr |
Canonical list of Hu moments produced together.
Definition at line 504 of file MomentBasedAttributeComputer.hpp.