45 template <
typename TSegmentComputer>
54 template <
typename TSegmentComputer>
60 if ( (it != itb)&&(it != ite) )
64 tmpSegmentComputer.init(previousIt);
65 return tmpSegmentComputer.extendForward();
74 template <
typename TSegmentComputer>
79 return this->doesIntersectNext(it);
83 template <
typename TSegmentComputer>
91 tmpSegmentComputer.init(previousIt);
92 return tmpSegmentComputer.extendForward();
96 template <
typename TSegmentComputer>
111 myFlagIntersectNext = doesIntersectNext(
mySegmentComputer.end(), myS->myBegin, myS->myEnd );
115 if ( isNotEmpty<ConstIterator>(myS->myStop, myS->myEnd) ) {
116 if (myS->myMode ==
"Truncate+1") {
119 if (myS->myMode ==
"DoNotTruncate") {
132 template <
typename TSegmentComputer>
140 myFlagIsValid =
false;
144 myFlagIntersectPrevious = myFlagIntersectNext;
147 if (myFlagIntersectPrevious) --it;
158 template <
typename TSegmentComputer>
162 const TSegmentComputer& aSegmentComputer,
163 const bool& aIsValid )
166 myFlagIsValid( aIsValid ),
167 myFlagIntersectNext(
false ),
168 myFlagIntersectPrevious(
false ),
169 myFlagIsLast(
false )
174 if ( isNotEmpty<ConstIterator>(
myS->myStart,
myS->myStop) )
191 template <
typename TSegmentComputer>
205 template <
typename TSegmentComputer>
211 if (
this != &other )
224 template <
typename TSegmentComputer>
234 template <
typename TSegmentComputer>
236 const TSegmentComputer&
242 template <
typename TSegmentComputer>
244 const TSegmentComputer*
251 template <
typename TSegmentComputer>
259 template <
typename TSegmentComputer>
270 template <
typename TSegmentComputer>
273 DGtal::GreedySegmentation<TSegmentComputer>::SegmentComputerIterator::operator==
286 template <
typename TSegmentComputer>
289 DGtal::GreedySegmentation<TSegmentComputer>::SegmentComputerIterator::operator!=
292 return !(*
this == other);
298 template <
typename TSegmentComputer>
303 return myFlagIntersectNext;
306 template <
typename TSegmentComputer>
311 return myFlagIntersectPrevious;
316 template <
typename TSegmentComputer>
324 template <
typename TSegmentComputer>
342 template <
typename TSegmentComputer>
355 template <
typename TSegmentComputer>
366 template <
typename TSegmentComputer>
370 (
const std::string& aMode)
377 template <
typename TSegmentComputer>
384 template <
typename TSegmentComputer>
393 template <
typename TSegmentComputer>
403 template <
typename TSegmentComputer>
408 out <<
"[GreedySegmentation]";
412 template <
typename TSegmentComputer>
425 template <
typename TSegmentComputer>
431 object.selfDisplay( out );