Iterator to the runs of a coded element. More...
Public Member Functions | |
| None | __init__ (self, eVision.ECodedElement codedElement) |
| Constructs an iterator to the runs of a coded element. | |
| None | __init__ (self, eVision.EObjectRunsIterator other) |
| Constructs an iterator to the runs of a coded element. | |
| None | First (self) |
| Rewinds to the first run of the coded element. | |
| bool | IsDone (self) |
| Tests whether all the runs have been spanned. | |
| None | Next (self) |
| Advance to the next run in the iterator. | |
Properties | |
| Y = property(_Y__getter, None) | |
| Returns the ordinate (Y-coordinate) of the run the iterator is currently over. | |
| StartX = property(_StartX__getter, None) | |
| Returns the abscissa (X-coordinate) of the leftmost pixel of the run the iterator is currently over. | |
| EndX = property(_EndX__getter, None) | |
| Returns the abscissa (X-coordinate) of the rightmost pixel of the run the iterator is currently over. | |
| Length = property(_Length__getter, None) | |
| Returns the lengths of the run the iterator is currently over. | |
Iterator to the runs of a coded element.
Remarks:
This class is responsible for the sequential access to the individual runs of a coded element.
A run is defined as a maximal sequence of consecutive pixels on the same run, that all belong to the same coded element.
License(s): EasyObject
| None eVision.EObjectRunsIterator.__init__ | ( | self, | |
| eVision.ECodedElement | codedElement ) |
Constructs an iterator to the runs of a coded element.
| codedElement | The coded element of interest, in the case the iterator is to be constructed from a given coded element. |
| None eVision.EObjectRunsIterator.__init__ | ( | self, | |
| eVision.EObjectRunsIterator | other ) |
Constructs an iterator to the runs of a coded element.
| other | The iterator to be copied, in the case of the copy constructor. |
| None eVision.EObjectRunsIterator.First | ( | self | ) |
Rewinds to the first run of the coded element.
| bool eVision.EObjectRunsIterator.IsDone | ( | self | ) |
Tests whether all the runs have been spanned.
| None eVision.EObjectRunsIterator.Next | ( | self | ) |
Advance to the next run in the iterator.
Remarks:
An exception is thrown if the iterator has reached its end. Use eVision.EObjectRunsIterator.IsDone to check this condition.
|
static |
Returns the abscissa (X-coordinate) of the rightmost pixel of the run the iterator is currently over.
Remarks:
An exception is thrown if the iterator has reached its end. Use eVision.EObjectRunsIterator.IsDone to check this condition.
|
static |
Returns the lengths of the run the iterator is currently over.
Remarks:
An exception is thrown if the iterator has reached its end. Use eVision.EObjectRunsIterator.IsDone to check this condition.
|
static |
Returns the abscissa (X-coordinate) of the leftmost pixel of the run the iterator is currently over.
Remarks:
An exception is thrown if the iterator has reached its end. Use eVision.EObjectRunsIterator.IsDone to check this condition.
|
static |
Returns the ordinate (Y-coordinate) of the run the iterator is currently over.
Remarks:
An exception is thrown if the iterator has reached its end. Use eVision.EObjectRunsIterator.IsDone to check this condition.