|
mmcfilters
Public API documentation
|
Self-contained compact per-pixel distance field for one live node. More...
#include <NodeDistanceField.hpp>
Public Member Functions | |
| NodeDistanceField (NodeId node, int rows, int columns, DistanceTransformAccuracy accuracy, std::vector< PixelId > supportPixels, std::vector< std::int64_t > squaredDistances) | |
| Constructs a self-contained compact node field. | |
| NodeId | node () const noexcept |
| Returns the represented live internal node id. | |
| int | rows () const noexcept |
| Returns the original domain height. | |
| int | columns () const noexcept |
| Returns the original domain width. | |
| DistanceTransformAccuracy | accuracy () const noexcept |
| Returns the numerical backend used to produce the field. | |
| std::size_t | size () const noexcept |
| Returns the number of compact support samples. | |
| std::span< const PixelId > | supportPixels () const noexcept |
| Returns the row-major support pixel ids. | |
| std::span< const std::int64_t > | squaredDistances () const noexcept |
Returns squared distances aligned with supportPixels(). | |
| std::vector< std::int64_t > | denseSquaredDistances (std::int64_t outsideValue=-1) const |
Returns a full-domain row-major field with outsideValue off support. | |
Self-contained compact per-pixel distance field for one live node.
Definition at line 14 of file NodeDistanceField.hpp.
|
inline |
Constructs a self-contained compact node field.
| node | Live internal node represented by the samples. |
| rows | Number of rows in the original image domain. |
| columns | Number of columns in the original image domain. |
| accuracy | Numerical backend that produced the samples. |
| supportPixels | Row-major support pixel ids. |
| squaredDistances | Squared distances aligned with supportPixels. |
Definition at line 25 of file NodeDistanceField.hpp.
|
inlinenoexcept |
Returns the numerical backend used to produce the field.
Definition at line 48 of file NodeDistanceField.hpp.
|
inlinenoexcept |
Returns the original domain width.
Definition at line 46 of file NodeDistanceField.hpp.
|
inline |
Returns a full-domain row-major field with outsideValue off support.
| outsideValue | Value assigned to pixels outside the represented support. |
Definition at line 61 of file NodeDistanceField.hpp.
|
inlinenoexcept |
Returns the represented live internal node id.
Definition at line 42 of file NodeDistanceField.hpp.
|
inlinenoexcept |
Returns the original domain height.
Definition at line 44 of file NodeDistanceField.hpp.
|
inlinenoexcept |
Returns the number of compact support samples.
Definition at line 50 of file NodeDistanceField.hpp.
|
inlinenoexcept |
Returns squared distances aligned with supportPixels().
Definition at line 54 of file NodeDistanceField.hpp.
Returns the row-major support pixel ids.
Definition at line 52 of file NodeDistanceField.hpp.