[ 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>
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, |
| std::ptrdiff_t | ystride, | ||
| std::ptrdiff_t | xskip, | ||
| std::ptrdiff_t | yskip | ||
| ) |
Construct from raw memory with a vertical stride of ystride, 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) |