|
MorphologicalAttributeFilters
Public API documentation
|
Indexed finite set of translated-sample offsets. More...
#include <FiniteWindowLocalAttributeComputer.hpp>
Public Member Functions | |
| ObservationWindow (std::vector< WindowOffset > offsets) | |
| Creates and validates an ordered window. | |
| ObservationWindow (std::initializer_list< WindowOffset > offsets) | |
| Creates and validates an ordered window. | |
| template<std::size_t N> | |
| ObservationWindow (const std::array< WindowOffset, N > &offsets) | |
| Creates and validates an ordered fixed-size window. | |
| std::size_t | size () const noexcept |
| Returns the number of state coordinates. | |
| const WindowOffset & | operator[] (std::size_t index) const noexcept |
| Returns one offset in semantic coordinate order. | |
| std::span< const WindowOffset > | offsets () const noexcept |
| Returns all offsets in semantic coordinate order. | |
| auto | begin () const noexcept |
| Starts ordered offset iteration. | |
| auto | end () const noexcept |
| Ends ordered offset iteration. | |
Static Public Attributes | |
| static constexpr std::size_t | maxNumOffsets = 32 |
| Maximum coordinate count supported by the visibility mask. | |
Indexed finite set of translated-sample offsets.
The offset order is part of the contract: offset j permanently identifies coordinate j of every BinaryVisibilityState. A valid window contains (0, 0) exactly once, contains no duplicate offsets, and has at most 32 coordinates because visibility is stored in a std::uint32_t mask.
Definition at line 48 of file FiniteWindowLocalAttributeComputer.hpp.
|
inlineexplicit |
Creates and validates an ordered window.
| offsets | Ordered distinct offsets containing zero exactly once. |
Definition at line 54 of file FiniteWindowLocalAttributeComputer.hpp.
|
inline |
Creates and validates an ordered window.
| offsets | Ordered distinct offsets containing zero exactly once. |
Definition at line 57 of file FiniteWindowLocalAttributeComputer.hpp.
|
inlineexplicit |
Creates and validates an ordered fixed-size window.
| N | Number of offsets. |
| offsets | Ordered offset array. |
Definition at line 61 of file FiniteWindowLocalAttributeComputer.hpp.
|
inlinenoexcept |
Starts ordered offset iteration.
Definition at line 70 of file FiniteWindowLocalAttributeComputer.hpp.
|
inlinenoexcept |
Ends ordered offset iteration.
Definition at line 72 of file FiniteWindowLocalAttributeComputer.hpp.
|
inlinenoexcept |
Returns all offsets in semantic coordinate order.
Definition at line 68 of file FiniteWindowLocalAttributeComputer.hpp.
|
inlinenoexcept |
Returns one offset in semantic coordinate order.
| index | Coordinate index. |
index. Definition at line 66 of file FiniteWindowLocalAttributeComputer.hpp.
|
inlinenoexcept |
Returns the number of state coordinates.
Definition at line 64 of file FiniteWindowLocalAttributeComputer.hpp.
|
staticconstexpr |
Maximum coordinate count supported by the visibility mask.
Definition at line 51 of file FiniteWindowLocalAttributeComputer.hpp.