[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]
MultiCoordinateIterator< N > Class Template Reference |
Iterate over a virtual array where each element contains its coordinate. More...
#include <vigra/multi_iterator.hxx>
Additional Inherited Members | |
Public Types inherited from CoupledScanOrderIterator< N > | |
typedef CoupledHandle < TinyVector< MultiArrayIndex, N >, void > | value_type |
Public Member Functions inherited from CoupledScanOrderIterator< N > | |
CoupledHandleCast < TARGET_INDEX, value_type > ::type::reference | get () |
CoupledHandleCast < TARGET_INDEX, value_type > ::type::const_reference | get () const |
CoupledScanOrderIterator | getEndIterator () const |
Iterate over a virtual array where each element contains its coordinate.
MultiCoordinateIterator behaves like a read-only random access iterator. It moves accross the given region of interest in scan-order (with the first index changing most rapidly), and dereferencing the iterator returns the coordinate (i.e. multi-dimensional index) of the current array element. The functionality is thus similar to a meshgrid in Matlab or numpy.
Internally, it is just a wrapper of a CoupledScanOrderIterator that has been created without any array and whose reference type is not a CoupledHandle, but the coordinate itself.
The iterator supports all functions listed in the STL documentation for Random Access Iterators.
Usage:
#include <vigra/multi_iterator.hxx>
Namespace: vigra
© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) |
html generated using doxygen and Python
|