[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]
ConstStridedImageIterator< PIXELTYPE > Class Template Reference |
Const iterator to be used when pixels are to be skipped. More...
#include <vigra/imageiterator.hxx>
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
ConstStridedImageIterator | ( | 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.
ConstStridedImageIterator | ( | StridedImageIterator< PIXELTYPE > const & | o | ) |
Copy-construct from mutable iterator
Default constructor
ConstStridedImageIterator& operator= | ( | StridedImageIterator< PIXELTYPE > const & | o | ) |
Assign mutable iterator
© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) |
html generated using doxygen and Python
|