mmcfilters
Public API documentation
Loading...
Searching...
No Matches
AttributeComputerRegistry.hpp File Reference

Concepts and canonical family lists for concrete attribute computers. More...

#include "AttributeComputerDomain.hpp"
#include "AttributeComputerFamily.hpp"
#include "AreaComputer.hpp"
#include "BitquadAttributeComputer.hpp"
#include "BoundingBoxComputer.hpp"
#include "ContourSideAttributeComputer.hpp"
#include "FilledShapeAttributeComputer.hpp"
#include "GrayLevelStatsComputer.hpp"
#include "MaxDistComputer.hpp"
#include "MaxDistExactComputer.hpp"
#include "MomentBasedAttributeComputer.hpp"
#include "TreeTopologyComputer.hpp"
#include "VolumeComputer.hpp"
#include <algorithm>
#include <array>
#include <concepts>
#include <cstddef>
#include <cstdint>
#include <string_view>
#include <type_traits>
#include <tuple>
#include <vector>
Include dependency graph for AttributeComputerRegistry.hpp:

Go to the source code of this file.

Concepts

concept  mmcfilters::attributes::computers::AttributeComputerProducesAttributes
 Verifies that a computer declares its canonical output list.
concept  mmcfilters::attributes::computers::AttributeComputer
 Verifies the complete static protocol of one attribute computer.
concept  mmcfilters::attributes::computers::TopologyAttributeComputer
 Computer concept for families that do not read node altitudes.
concept  mmcfilters::attributes::computers::AltitudeAttributeComputer
 Computer concept for families that require a typed altitude span.

Typedefs

using mmcfilters::attributes::computers::TopologyAttributeComputers
 Canonical list of topology/support families known to the backend.
using mmcfilters::attributes::computers::AltitudeAttributeComputers = std::tuple<VolumeComputer, GrayLevelStatsComputer>
 Canonical list of altitude-aware families known to the pipeline.
using mmcfilters::attributes::computers::RegisteredAttributeComputers
 Canonical list used by contract tests to cover every public family.

Functions

template<AttributeComputer Computer>
constexpr bool mmcfilters::attributes::computers::producesAttribute (Attribute attribute) noexcept
 Tests whether Computer is the declared producer of attribute.
template<AttributeComputer Computer>
constexpr std::size_t mmcfilters::attributes::computers::numProducedAttributes () noexcept
 Number of scalar descriptors declared by the family.
template<AttributeComputer Computer>
std::vector< Attribute > mmcfilters::attributes::computers::runtimeProducedAttributes ()
 Materializes a computer's canonical output list as a runtime vector.

Variables

template<class T>
constexpr bool mmcfilters::attributes::computers::detail::IsAttributeArrayV = IsAttributeArray<std::remove_cvref_t<T>>::value
 Convenience value for checking whether a type is a canonical attribute array.

Detailed Description

Concepts and canonical family lists for concrete attribute computers.

Definition in file AttributeComputerRegistry.hpp.

Typedef Documentation

◆ AltitudeAttributeComputers

using mmcfilters::attributes::computers::AltitudeAttributeComputers = std::tuple<VolumeComputer, GrayLevelStatsComputer>

Canonical list of altitude-aware families known to the pipeline.

Definition at line 128 of file AttributeComputerRegistry.hpp.

◆ RegisteredAttributeComputers

Initial value:
Computes the canonical subtree area attribute.
Bitquad scalar computer backed by finite-window computation.
Computes descriptors derived from the axis-aligned bounding box of the node support.
Computes geometric central moments up to third order.
Shape descriptors of the region enclosed by the external boundary.
Computes grey-level statistics derived from subtree aggregation.
Topology-only approximate distance-transform attribute computer.
Topology-only scalar computer for attributes derived from the node EDT.
Computes higher-level shape descriptors derived from second-order central moments.
Computes structural descriptors that depend only on the tree topology.
Computes cumulative grey-level volume descriptors on the hierarchy.

Canonical list used by contract tests to cover every public family.

Definition at line 133 of file AttributeComputerRegistry.hpp.

◆ TopologyAttributeComputers

Function Documentation

◆ numProducedAttributes()

template<AttributeComputer Computer>
std::size_t mmcfilters::attributes::computers::numProducedAttributes ( )
nodiscardconstexprnoexcept

Number of scalar descriptors declared by the family.

Returns
The number of scalar descriptors declared by the family.

Definition at line 106 of file AttributeComputerRegistry.hpp.

◆ producesAttribute()

template<AttributeComputer Computer>
bool mmcfilters::attributes::computers::producesAttribute ( Attribute attribute)
nodiscardconstexprnoexcept

Tests whether Computer is the declared producer of attribute.

Parameters
attributeAttribute requested by the operation.
Returns
True if Computer is the declared producer of attribute; otherwise false.

Definition at line 96 of file AttributeComputerRegistry.hpp.

◆ runtimeProducedAttributes()

template<AttributeComputer Computer>
std::vector< Attribute > mmcfilters::attributes::computers::runtimeProducedAttributes ( )
nodiscard

Materializes a computer's canonical output list as a runtime vector.

Returns
The materialized computer's canonical output list as a runtime vector.

Definition at line 113 of file AttributeComputerRegistry.hpp.

Variable Documentation

◆ IsAttributeArrayV

template<class T>
bool mmcfilters::attributes::computers::detail::IsAttributeArrayV = IsAttributeArray<std::remove_cvref_t<T>>::value
inlineconstexpr

Convenience value for checking whether a type is a canonical attribute array.

Definition at line 49 of file AttributeComputerRegistry.hpp.