Aim: Specific iterator to visit all the segments of a greedy segmentation.
More...
#include <DGtal/geometry/curves/GreedySegmentation.h>
template<typename TSegmentComputer>
class DGtal::GreedySegmentation< TSegmentComputer >::SegmentComputerIterator
Aim: Specific iterator to visit all the segments of a greedy segmentation.
Description of template class 'SaturatedSegmentation::SegmentComputerIterator'
Definition at line 169 of file GreedySegmentation.h.
◆ ConstIterator
template<typename TSegmentComputer >
◆ SegmentComputer
template<typename TSegmentComputer >
◆ SegmentComputerIterator() [1/2]
template<typename TSegmentComputer >
DGtal::GreedySegmentation< TSegmentComputer >::SegmentComputerIterator::SegmentComputerIterator |
( |
const GreedySegmentation< TSegmentComputer > * |
aSegmentation, |
|
|
const TSegmentComputer & |
aSegmentComputer, |
|
|
const bool & |
aFlag |
|
) |
| |
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 >
- Returns
- begin iterator on the segment.
◆ 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 >
- Returns
- end iterator on the segment.
◆ get()
template<typename TSegmentComputer >
- Returns
- the current segment.
◆ 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 >
◆ longestSegment()
template<typename TSegmentComputer >
Computes the longest possible segment from [it]
- Parameters
-
Nb: complexity in O(n).
◆ next()
template<typename TSegmentComputer >
Goes to the next segment (if possible).
Nb: complexity in O(n).
◆ 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 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)
◆ GreedySegmentation< 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 201 of file GreedySegmentation.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 208 of file GreedySegmentation.h.
◆ myFlagIsLast
template<typename TSegmentComputer >
A flag equal to TRUE if *this has reached the end, FALSE otherwise
Definition at line 213 of file GreedySegmentation.h.
◆ myFlagIsValid
template<typename TSegmentComputer >
◆ myS
template<typename TSegmentComputer >
◆ mySegmentComputer
template<typename TSegmentComputer >
The documentation for this class was generated from the following file: