|
MorphologicalAttributeFilters
Public API documentation
|
Lightweight iterator over the currently configured traversal. More...
#include <AdjacencyRelation.hpp>
Public Types | |
| using | iterator_category = std::input_iterator_tag |
| Input-iterator category for range-based traversal. | |
| using | value_type = int |
| Linear pixel index yielded by the iterator. | |
Public Member Functions | |
| IteratorAdjacency (AdjacencyRelation *obj, int id) | |
Creates an iterator over obj at stencil position id. | |
| AdjacencyRelation * | getInstance () |
| Returns the adjacency relation currently being traversed. | |
| IteratorAdjacency & | operator++ () |
| Advances to the next valid neighbour in the current traversal. | |
| bool | operator== (const IteratorAdjacency &other) const |
| Returns true when both iterators point to the same stencil position. | |
| bool | operator!= (const IteratorAdjacency &other) const |
| Returns true when the iterators point to different stencil positions. | |
| int | operator* () const |
| Returns the current neighbour as a linear pixel index. | |
Lightweight iterator over the currently configured traversal.
The iterator yields linear pixel indices and respects both image bounds and the optional forward-only mask.
Iterators hold a pointer to the parent AdjacencyRelation; incrementing any iterator advances the parent's mutable traversal cursor.
Definition at line 410 of file AdjacencyRelation.hpp.
| using mmcfilters::AdjacencyRelation::IteratorAdjacency::iterator_category = std::input_iterator_tag |
Input-iterator category for range-based traversal.
Definition at line 417 of file AdjacencyRelation.hpp.
Linear pixel index yielded by the iterator.
Definition at line 420 of file AdjacencyRelation.hpp.
|
inline |
Creates an iterator over obj at stencil position id.
Definition at line 425 of file AdjacencyRelation.hpp.
|
inline |
Returns the adjacency relation currently being traversed.
Definition at line 430 of file AdjacencyRelation.hpp.
|
inline |
Returns true when the iterators point to different stencil positions.
Definition at line 450 of file AdjacencyRelation.hpp.
|
inline |
Returns the current neighbour as a linear pixel index.
Definition at line 457 of file AdjacencyRelation.hpp.
|
inline |
Advances to the next valid neighbour in the current traversal.
Definition at line 435 of file AdjacencyRelation.hpp.
|
inline |
Returns true when both iterators point to the same stencil position.
Definition at line 443 of file AdjacencyRelation.hpp.