[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]
|
StridedImageIterator< PIXELTYPE > Class Template Reference | ![]() |
Iterator to be used when pixels are to be skipped. More...
#include <vigra/imageiterator.hxx>
Public Member Functions | |
| StridedImageIterator (pointer base, int ystride, int xskip, int yskip) | |
| StridedImageIterator () | |
Public Member Functions inherited from ImageIteratorBase< StridedImageIterator< PIXELTYPE >, PIXELTYPE, PIXELTYPE &, PIXELTYPE *, StridedArrayTag > | |
| bool | operator== (ImageIteratorBase const &rhs) const |
| bool | operator!= (ImageIteratorBase const &rhs) const |
| difference_type | operator- (ImageIteratorBase const &rhs) const |
| StridedImageIterator< PIXELTYPE > | operator- (difference_type const &s) const |
| StridedImageIterator< PIXELTYPE > & | operator+= (difference_type const &s) |
| StridedImageIterator< PIXELTYPE > & | operator-= (difference_type const &s) |
| StridedImageIterator< PIXELTYPE > | operator+ (difference_type const &s) const |
| reference | operator* () const |
| pointer | operator-> () const |
| index_reference | operator[] (Diff2D const &d) const |
| pointer | operator[] (int dy) const |
| index_reference | operator() (int dx, int dy) const |
Iterator to be used when pixels are to be skipped.
This iterator can be used when some pixels shall be automatically skipped, for example if an image is to be sub-sampled: instead of advancing to the next pixel, ++iterator.x jumps to the pixel at a horizontal offset of xskip. Likewise with yskip in vertical direction. Most functions and local types are inherited from ImageIteratorBase.
Usage:
#include <vigra/imageiterator.hxx>
Namespace: vigra
| StridedImageIterator | ( | pointer | base, |
| int | ystride, | ||
| int | xskip, | ||
| int | yskip | ||
| ) |
Construct from raw memory with a vertical stride of <TT>ystride</TT>,
jumping by xskip horizontally and yskip vertically. ystride must be the physical width (row length) of the image.
Default constructor
|
© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) |
html generated using doxygen and Python
|