Aim: Specific iterator to visit all the maximal segments of a saturated segmentation.
More...
#include <DGtal/geometry/curves/SaturatedSegmentation.h>
template<typename TSegmentComputer>
class DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator
Aim: Specific iterator to visit all the maximal segments of a saturated segmentation.
Description of template class 'SaturatedSegmentation::SegmentComputerIterator'
Definition at line 179 of file SaturatedSegmentation.h.
◆ ConstIterator
template<typename TSegmentComputer >
◆ SegmentComputer
template<typename TSegmentComputer >
◆ SegmentComputerIterator() [1/2]
template<typename TSegmentComputer >
Constructor.
Nb: complexity in O(n).
- Parameters
-
aSegmentation | the object that knows the range bounds |
aSegmentComputer | an online segment recognition algorithm |
aFlag | 'true' to build a valid object, 'false' otherwise |
◆ SegmentComputerIterator() [2/2]
template<typename TSegmentComputer >
Copy constructor.
- Parameters
-
aOther | the iterator to clone. |
◆ ~SegmentComputerIterator()
template<typename TSegmentComputer >
Destructor. Does nothing.
◆ begin()
template<typename TSegmentComputer >
◆ doesIntersectNext() [1/4]
template<typename TSegmentComputer >
Checks if the current segment intersects the next one (if exists).
- Parameters
-
it | end of the current segment |
- Returns
- 'true' if –it and it form a valid segment, false otherwise
NB: no verification
◆ doesIntersectNext() [2/4]
template<typename TSegmentComputer >
Checks if the current segment intersects the next one.
- Parameters
-
it | end of the current segment |
itb | begin iterator of the underlying range |
ite | end iterator of the underlying range |
- Returns
- 'true' if it != itb and it != ite and –it and it form a valid segment, false otherwise
◆ doesIntersectNext() [3/4]
template<typename TSegmentComputer >
◆ doesIntersectNext() [4/4]
template<typename TSegmentComputer >
◆ end()
template<typename TSegmentComputer >
◆ get()
template<typename TSegmentComputer >
- Returns
- the current segment.
◆ initFirstMaximalSegment()
template<typename TSegmentComputer >
Computes the first maximal segment of the segmentation.
◆ initLastMaximalSegment()
template<typename TSegmentComputer >
Computes the last maximal segment of the segmentation.
◆ intersectNext()
template<typename TSegmentComputer >
- Returns
- TRUE if the current segment intersects the next one, FALSE otherwise.
◆ intersectPrevious()
template<typename TSegmentComputer >
- Returns
- TRUE if the current segment intersects the previous one, FALSE otherwise.
◆ isValid()
template<typename TSegmentComputer >
◆ nextMaximalSegment()
template<typename TSegmentComputer >
Goes to the next maximal segment (if possible).
◆ operator!=()
template<typename TSegmentComputer >
Inequality operator.
- Parameters
-
aOther | the iterator to compare with |
- Returns
- 'true' if their current positions differs. (different front and back iterators)
◆ operator*()
template<typename TSegmentComputer >
- Returns
- a constant reference to the current segment
◆ operator++()
template<typename TSegmentComputer >
Pre-increment. Goes to the next maximal segment (if possible).
Nb: complexity in O(n).
◆ operator->()
template<typename TSegmentComputer >
- Returns
- a constant pointer to the current segment
◆ operator=()
template<typename TSegmentComputer >
Assignment.
- Parameters
-
aOther | the iterator to copy. |
- Returns
- a reference on 'this'.
◆ operator==()
template<typename TSegmentComputer >
Equality operator.
- Parameters
-
aOther | the iterator to compare with |
- Returns
- 'true' if their current positions coincide. (same front and back iterators)
◆ SaturatedSegmentation< TSegmentComputer >
template<typename TSegmentComputer >
◆ myFlagIntersectNext
template<typename TSegmentComputer >
A flag equal to TRUE if the current segment intersects the next one, FALSE otherwise (and FALSE if the current segment is the last one)
Definition at line 220 of file SaturatedSegmentation.h.
◆ myFlagIntersectPrevious
template<typename TSegmentComputer >
A flag equal to TRUE if the current segment intersects the previous one, FALSE otherwise (and FALSE if the current segment is the first one)
Definition at line 227 of file SaturatedSegmentation.h.
◆ myFlagIsLast
template<typename TSegmentComputer >
A flag equal to TRUE if *this is the last maximal segment, FALSE otherwise
Definition at line 233 of file SaturatedSegmentation.h.
◆ myFlagIsValid
template<typename TSegmentComputer >
◆ myLastMaximalSegmentBegin
template<typename TSegmentComputer >
◆ myLastMaximalSegmentEnd
template<typename TSegmentComputer >
◆ myS
template<typename TSegmentComputer >
◆ mySegmentComputer
template<typename TSegmentComputer >
The documentation for this class was generated from the following file: