|
mmcfilters
Public API documentation
|
Total order over the pixels of one construction domain. More...
#include <ResidualEvolution.hpp>

Public Member Functions | |
| SpatialOrder (std::vector< PixelId > pixelsInOrder) | |
| Creates an explicit total spatial order. | |
| bool | isRowMajor () const noexcept |
| Returns whether the order uses implicit row-major ranks. | |
| void | validateDomainSize (std::size_t numPixels) const |
| Validates that this order covers a construction domain. | |
| bool | precedes (PixelId lhs, PixelId rhs) const |
Returns whether lhs precedes rhs. | |
| PixelId | spatialMinimum (std::span< const PixelId > support) const |
| Returns the least pixel of a non-empty support. | |
Protected Member Functions | |
| SpatialOrder ()=default | |
| Creates the implicit row-major order. | |
Total order over the pixels of one construction domain.
An explicit order is represented by a permutation of all pixel identifiers. The default row-major specialization avoids storing that permutation and uses the dense pixel identifier itself as its rank.
Definition at line 31 of file ResidualEvolution.hpp.
|
inlineexplicit |
Creates an explicit total spatial order.
| pixelsInOrder | Pixel identifiers from first to last. |
| std::invalid_argument | if the sequence is not a permutation of [0,n). |
Definition at line 38 of file ResidualEvolution.hpp.
|
inlinenoexcept |
Returns whether the order uses implicit row-major ranks.
true for the implicit row-major order. Definition at line 57 of file ResidualEvolution.hpp.
Returns whether lhs precedes rhs.
| lhs | First pixel. |
| rhs | Second pixel. |
true when lhs has a lower spatial rank than rhs. Definition at line 75 of file ResidualEvolution.hpp.
|
inline |
Returns the least pixel of a non-empty support.
| support | Pixel support whose spatial minimum is requested. |
support with the lowest configured spatial rank. Definition at line 84 of file ResidualEvolution.hpp.
|
inline |
Validates that this order covers a construction domain.
| numPixels | Number of pixels in the domain. |
Definition at line 63 of file ResidualEvolution.hpp.