DGtal
0.6.devel
|
#include <SaturatedSegmentation.h>
Public Types | |
typedef SaturatedSegmentation::SegmentComputer | SegmentComputer |
typedef SegmentComputer::ConstIterator | ConstIterator |
Public Member Functions | |
SegmentComputerIterator (const SaturatedSegmentation< TSegmentComputer > *aSegmentation, const TSegmentComputer &aSegmentComputer, const bool &aFlag) | |
SegmentComputerIterator (const SegmentComputerIterator &aOther) | |
SegmentComputerIterator & | operator= (const SegmentComputerIterator &aOther) |
~SegmentComputerIterator () | |
bool | isValid () const |
const SegmentComputer & | operator* () const |
SegmentComputer | get () const |
const SegmentComputer * | operator-> () const |
SegmentComputerIterator & | operator++ () |
bool | operator== (const SegmentComputerIterator &aOther) const |
bool | operator!= (const SegmentComputerIterator &aOther) const |
bool | intersectNext () const |
bool | intersectPrevious () const |
const ConstIterator | begin () const |
const ConstIterator | end () const |
Private Member Functions | |
bool | doesIntersectNext (const ConstIterator &it, const ConstIterator &itb, const ConstIterator &ite) |
bool | doesIntersectNext (const ConstIterator &it, const ConstIterator &itb, const ConstIterator &ite, IteratorType) |
bool | doesIntersectNext (const ConstIterator &it, const ConstIterator &itb, const ConstIterator &ite, CirculatorType) |
bool | doesIntersectNext (const ConstIterator &it) |
void | nextMaximalSegment () |
void | initFirstMaximalSegment () |
void | initLastMaximalSegment () |
Private Attributes | |
const SaturatedSegmentation < TSegmentComputer > * | myS |
SegmentComputer | mySegmentComputer |
bool | myFlagIsValid |
ConstIterator | myLastMaximalSegmentBegin |
ConstIterator | myLastMaximalSegmentEnd |
bool | myFlagIntersectNext |
bool | myFlagIntersectPrevious |
bool | myFlagIsLast |
Friends | |
class | SaturatedSegmentation< TSegmentComputer > |
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.
typedef SegmentComputer::ConstIterator DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::ConstIterator |
Definition at line 186 of file SaturatedSegmentation.h.
typedef SaturatedSegmentation::SegmentComputer DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::SegmentComputer |
Definition at line 185 of file SaturatedSegmentation.h.
|
inline |
Constructor.
Nb: complexity in O(n).
aSegmentation | the object that knows the range bounds |
aSegmentComputer | an online segment recognition algorithm |
aFlag | 'true' to build a valid object, 'false' otherwise |
Definition at line 209 of file SaturatedSegmentation.ih.
References DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::doesIntersectNext(), DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::initFirstMaximalSegment(), DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::initLastMaximalSegment(), DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::myFlagIntersectNext, DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::myFlagIntersectPrevious, DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::myFlagIsLast, DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::myFlagIsValid, DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::myLastMaximalSegmentBegin, DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::myLastMaximalSegmentEnd, DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::myS, and DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::mySegmentComputer.
|
inline |
Copy constructor.
other | the iterator to clone. |
Definition at line 253 of file SaturatedSegmentation.ih.
|
inline |
|
inline |
Definition at line 384 of file SaturatedSegmentation.ih.
References DGtal::SaturatedSegmentation< TSegmentComputer >::mySegmentComputer.
Referenced by DGtal::MostCenteredMaximalSegmentEstimator< SegmentComputer, SCEstimator >::endEval(), and DGtal::MostCenteredMaximalSegmentEstimator< SegmentComputer, SCEstimator >::eval().
|
inlineprivate |
Checks if the current segment intersects the next one.
it | end of the current segment |
itb | begin iterator of the underlying range |
ite | end iterator of the underlying range |
Definition at line 51 of file SaturatedSegmentation.ih.
Referenced by DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::SegmentComputerIterator().
|
inlineprivate |
Definition at line 61 of file SaturatedSegmentation.ih.
References DGtal::SaturatedSegmentation< TSegmentComputer >::mySegmentComputer.
|
inlineprivate |
Definition at line 79 of file SaturatedSegmentation.ih.
|
inlineprivate |
Checks if the current segment intersects the next one (if exists).
it | end of the current segment |
NB: no verification
Definition at line 91 of file SaturatedSegmentation.ih.
References DGtal::SaturatedSegmentation< TSegmentComputer >::mySegmentComputer.
|
inline |
Definition at line 392 of file SaturatedSegmentation.ih.
References DGtal::SaturatedSegmentation< TSegmentComputer >::mySegmentComputer.
Referenced by DGtal::MostCenteredMaximalSegmentEstimator< SegmentComputer, SCEstimator >::endEval(), and DGtal::MostCenteredMaximalSegmentEstimator< SegmentComputer, SCEstimator >::eval().
|
inline |
Definition at line 319 of file SaturatedSegmentation.ih.
References DGtal::SaturatedSegmentation< TSegmentComputer >::mySegmentComputer.
|
inlineprivate |
Computes the first maximal segment of the segmentation.
Definition at line 104 of file SaturatedSegmentation.ih.
References DGtal::firstMaximalSegment(), DGtal::lastMaximalSegment(), DGtal::mostCenteredMaximalSegment(), and DGtal::SaturatedSegmentation< TSegmentComputer >::mySegmentComputer.
Referenced by DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::SegmentComputerIterator().
|
inlineprivate |
Computes the last maximal segment of the segmentation.
Definition at line 122 of file SaturatedSegmentation.ih.
References DGtal::firstMaximalSegment(), DGtal::isNotEmpty(), DGtal::lastMaximalSegment(), DGtal::mostCenteredMaximalSegment(), DGtal::SaturatedSegmentation< TSegmentComputer >::mySegmentComputer, DGtal::nextMaximalSegment(), and DGtal::previousMaximalSegment().
Referenced by DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::SegmentComputerIterator().
|
inline |
Definition at line 366 of file SaturatedSegmentation.ih.
Referenced by DGtal::MostCenteredMaximalSegmentEstimator< SegmentComputer, SCEstimator >::endEval().
|
inline |
Definition at line 374 of file SaturatedSegmentation.ih.
Referenced by DGtal::MostCenteredMaximalSegmentEstimator< SegmentComputer, SCEstimator >::endEval().
|
inline |
Checks the validity/consistency of the object.
Definition at line 278 of file SaturatedSegmentation.h.
References DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::myFlagIsValid.
Referenced by DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::operator==().
|
inlineprivate |
Goes to the next maximal segment (if possible).
Definition at line 173 of file SaturatedSegmentation.ih.
References DGtal::SaturatedSegmentation< TSegmentComputer >::mySegmentComputer, and DGtal::nextMaximalSegment().
|
inline |
Inequality operator.
aOther | the iterator to compare with |
Definition at line 354 of file SaturatedSegmentation.ih.
|
inline |
Definition at line 301 of file SaturatedSegmentation.ih.
References DGtal::SaturatedSegmentation< TSegmentComputer >::mySegmentComputer.
|
inline |
Pre-increment. Goes to the next maximal segment (if possible).
Nb: complexity in O(n).
Definition at line 328 of file SaturatedSegmentation.ih.
References DGtal::nextMaximalSegment().
|
inline |
Definition at line 310 of file SaturatedSegmentation.ih.
References DGtal::SaturatedSegmentation< TSegmentComputer >::mySegmentComputer.
|
inline |
Assignment.
aOther | the iterator to copy. |
Definition at line 270 of file SaturatedSegmentation.ih.
References DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::myFlagIntersectNext, DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::myFlagIntersectPrevious, DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::myFlagIsLast, DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::myFlagIsValid, DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::myLastMaximalSegmentBegin, DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::myLastMaximalSegmentEnd, DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::myS, DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::mySegmentComputer, and DGtal::SaturatedSegmentation< TSegmentComputer >::mySegmentComputer.
|
inline |
Equality operator.
aOther | the iterator to compare with |
Definition at line 339 of file SaturatedSegmentation.ih.
References DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::isValid(), DGtal::SaturatedSegmentation< TSegmentComputer >::isValid(), DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::mySegmentComputer, and DGtal::SaturatedSegmentation< TSegmentComputer >::mySegmentComputer.
|
friend |
Definition at line 239 of file SaturatedSegmentation.h.
|
private |
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.
Referenced by DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::operator=(), and DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::SegmentComputerIterator().
|
private |
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.
Referenced by DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::operator=(), and DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::SegmentComputerIterator().
|
private |
A flag equal to TRUE if *this is the last maximal segment, FALSE otherwise
Definition at line 233 of file SaturatedSegmentation.h.
Referenced by DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::operator=(), and DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::SegmentComputerIterator().
|
private |
A flag equal to TRUE if *this is valid, FALSE otherwise
Definition at line 204 of file SaturatedSegmentation.h.
Referenced by DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::isValid(), DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::operator=(), and DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::SegmentComputerIterator().
|
private |
Begin iterator of the last maximal segment of the segmentation
Definition at line 209 of file SaturatedSegmentation.h.
Referenced by DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::operator=(), and DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::SegmentComputerIterator().
|
private |
End iterator of the last maximal segment of the segmentation
Definition at line 213 of file SaturatedSegmentation.h.
Referenced by DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::operator=(), and DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::SegmentComputerIterator().
|
private |
Pointer to the segmentation
Definition at line 194 of file SaturatedSegmentation.h.
Referenced by DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::operator=(), and DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::SegmentComputerIterator().
|
private |
The current segment
Definition at line 199 of file SaturatedSegmentation.h.
Referenced by DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::operator=(), DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::operator==(), and DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::SegmentComputerIterator().