[ VIGRA Homepage | Class Index | Function Index | File Index | Main Page ]
![]() |
VectorElementAccessor Class Template Reference | ![]() |
---|
Accessor for one component of a vector. More...
#include "vigra/accessor.hxx"
Public Types | |
typedef ACCESSOR::component_type | value_type |
Public Methods | |
VectorElementAccessor (int index, ACCESSOR a=ACCESSOR()) | |
template<class ITERATOR> value_type const & | operator() (ITERATOR const &i) const |
template<class ITERATOR, class DIFFERENCE> value_type const & | operator() (ITERATOR const &i, DIFFERENCE const &diff) const |
template<class V, class ITERATOR> void | set (V const &value, ITERATOR const &i) const |
template<class V, class ITERATOR, class DIFFERENCE> void | set (V const &value, ITERATOR const &i, DIFFERENCE const &diff) const |
void | setIndex (int i) |
Detailed Description |
This works like VectorComponentAccessor, only the template paramters differ: Here, we need a vector accessor type , wheras VectorComponentAccessor requires a vector type.
Usage:
vigra::BRGBImage image(w,h);
// init red channel with 255
initImage(destImageRange(image,
VectorElementAccessor<vigra::BRGBImage::Accessor>(0)),
255);
#include "vigra/accessor.hxx"
Namespace: vigra
|
the value_type |
|
determine the component to be accessed |
|
read the data item at an offset (can be 1D or 2D or higher order difference). |
|
read the current data item |
|
Write the data item at an offset (can be 1D or 2D or higher order difference).. The type |
|
Write the current data item. The type |
|
Reset the index to the given number. |
© Ullrich Köthe (koethe@informatik.uni-hamburg.de) |
html generated using doxygen and Python
|