Hugintrunk
0.1
|
define a write only accessor for a virtual Image<TinyVector<Acc1::value_type>, 2> image, which actually consists of two Images. More...
#include <FunctorAccessor.h>
Public Types | |
typedef vigra::TinyVector < typename Acc1::value_type, 2 > | value_type |
the vector's value_type More... | |
typedef value_type::value_type | component_type |
Public Member Functions | |
SplitVector2Accessor (Iter1 i1, Acc1 a1, Iter2 i2, Acc2 a2) | |
Construct from two image iterators and associated accessors. More... | |
template<class V , class ITERATOR > | |
void | setComponent (V const &value, ITERATOR const &i, int idx) const |
scalar & scalar image More... | |
template<class ITERATOR > | |
unsigned int | size (ITERATOR const &i) const |
return the size (Number of Bands) More... | |
Public Attributes | |
Iter1 | i1_ |
Acc1 | a1_ |
Iter2 | i2_ |
Acc2 | a2_ |
define a write only accessor for a virtual Image<TinyVector<Acc1::value_type>, 2> image, which actually consists of two Images.
Useful to split an image into gray and alpha images while loading, like it is shown in the following example:
Definition at line 146 of file FunctorAccessor.h.
typedef value_type::value_type vigra_ext::SplitVector2Accessor< Iter1, Acc1, Iter2, Acc2 >::component_type |
Definition at line 152 of file FunctorAccessor.h.
typedef vigra::TinyVector<typename Acc1::value_type, 2> vigra_ext::SplitVector2Accessor< Iter1, Acc1, Iter2, Acc2 >::value_type |
the vector's value_type
Definition at line 151 of file FunctorAccessor.h.
|
inline |
Construct from two image iterators and associated accessors.
Definition at line 156 of file FunctorAccessor.h.
|
inline |
scalar & scalar image
Definition at line 162 of file FunctorAccessor.h.
References vigra_ext::SplitVector2Accessor< Iter1, Acc1, Iter2, Acc2 >::a1_, vigra_ext::SplitVector2Accessor< Iter1, Acc1, Iter2, Acc2 >::a2_, vigra_ext::SplitVector2Accessor< Iter1, Acc1, Iter2, Acc2 >::i1_, and vigra_ext::SplitVector2Accessor< Iter1, Acc1, Iter2, Acc2 >::i2_.
|
inline |
return the size (Number of Bands)
Definition at line 178 of file FunctorAccessor.h.
Acc1 vigra_ext::SplitVector2Accessor< Iter1, Acc1, Iter2, Acc2 >::a1_ |
Definition at line 184 of file FunctorAccessor.h.
Referenced by vigra_ext::SplitVector2Accessor< Iter1, Acc1, Iter2, Acc2 >::setComponent().
Acc2 vigra_ext::SplitVector2Accessor< Iter1, Acc1, Iter2, Acc2 >::a2_ |
Definition at line 186 of file FunctorAccessor.h.
Referenced by vigra_ext::SplitVector2Accessor< Iter1, Acc1, Iter2, Acc2 >::setComponent().
Iter1 vigra_ext::SplitVector2Accessor< Iter1, Acc1, Iter2, Acc2 >::i1_ |
Definition at line 183 of file FunctorAccessor.h.
Referenced by vigra_ext::SplitVector2Accessor< Iter1, Acc1, Iter2, Acc2 >::setComponent().
Iter2 vigra_ext::SplitVector2Accessor< Iter1, Acc1, Iter2, Acc2 >::i2_ |
Definition at line 185 of file FunctorAccessor.h.
Referenced by vigra_ext::SplitVector2Accessor< Iter1, Acc1, Iter2, Acc2 >::setComponent().