Hugintrunk
0.1
|
This class can be used to apply a function when writing to an image. More...
#include <FunctorAccessor.h>
Public Types | |
typedef ValueType | value_type |
Public Member Functions | |
WriteFunctorAccessor (Functor f, Accessor a) | |
template<class Value , class ITERATOR > | |
void | set (Value const &v, ITERATOR const &i) const |
Set functor result. More... | |
template<class Value , class ITERATOR_ , class DIFFERENCE_ > | |
void | set (Value const &v, ITERATOR_ const &i, DIFFERENCE_ d) const |
Set functor result. More... | |
Public Attributes | |
Functor | m_f |
Accessor | m_a |
This class can be used to apply a function when writing to an image.
Can be used to apply point operations temporarily, like scaling, gamma correction etc.
This is a write only accessor, reading is not supported.
Definition at line 84 of file FunctorAccessor.h.
typedef ValueType vigra_ext::WriteFunctorAccessor< Functor, Accessor, ValueType >::value_type |
Definition at line 88 of file FunctorAccessor.h.
|
inline |
Definition at line 90 of file FunctorAccessor.h.
|
inline |
Set functor result.
Definition at line 98 of file FunctorAccessor.h.
References vigra_ext::WriteFunctorAccessor< Functor, Accessor, ValueType >::m_a, and vigra_ext::WriteFunctorAccessor< Functor, Accessor, ValueType >::m_f.
|
inline |
Set functor result.
Definition at line 106 of file FunctorAccessor.h.
References vigra_ext::WriteFunctorAccessor< Functor, Accessor, ValueType >::m_a, and vigra_ext::WriteFunctorAccessor< Functor, Accessor, ValueType >::m_f.
Accessor vigra_ext::WriteFunctorAccessor< Functor, Accessor, ValueType >::m_a |
Definition at line 112 of file FunctorAccessor.h.
Referenced by vigra_ext::WriteFunctorAccessor< Functor, Accessor, ValueType >::set().
Functor vigra_ext::WriteFunctorAccessor< Functor, Accessor, ValueType >::m_f |
Definition at line 111 of file FunctorAccessor.h.
Referenced by vigra_ext::WriteFunctorAccessor< Functor, Accessor, ValueType >::set().