Hugintrunk
0.1
|
This class can be used to apply a function when reading the input image. More...
#include <FunctorAccessor.h>
Public Types | |
typedef Functor::result_type | value_type |
Public Member Functions | |
ReadFunctorAccessor (Functor f, Accessor a) | |
template<typename ITERATOR_ , typename DIFFERENCE_ > | |
Functor::result_type | operator() (ITERATOR_ const &i, DIFFERENCE_ d) const |
Get functor result template <class A, class B> void function(A a, B b) { }; More... | |
template<class ITERATOR > | |
Functor::result_type | operator() (ITERATOR const &i) const |
Get functor result. More... | |
Protected Attributes | |
Functor | m_f |
Accessor | m_a |
This class can be used to apply a function when reading the input image.
Can be used to apply point operations temporarily, like scaling, gamma correction etc.
This is a read only accessor, writing is not supported.
Definition at line 41 of file FunctorAccessor.h.
typedef Functor::result_type vigra_ext::ReadFunctorAccessor< Functor, Accessor >::value_type |
Definition at line 44 of file FunctorAccessor.h.
|
inline |
Definition at line 45 of file FunctorAccessor.h.
|
inline |
Get functor result
template <class A, class B> void function(A a, B b) { };
Definition at line 58 of file FunctorAccessor.h.
References vigra_ext::ReadFunctorAccessor< Functor, Accessor >::m_a, and vigra_ext::ReadFunctorAccessor< Functor, Accessor >::m_f.
|
inline |
Get functor result.
Definition at line 66 of file FunctorAccessor.h.
References vigra_ext::ReadFunctorAccessor< Functor, Accessor >::m_a, and vigra_ext::ReadFunctorAccessor< Functor, Accessor >::m_f.
|
protected |
Definition at line 72 of file FunctorAccessor.h.
Referenced by vigra_ext::ReadFunctorAccessor< Functor, Accessor >::operator()().
|
protected |
Definition at line 71 of file FunctorAccessor.h.
Referenced by vigra_ext::ReadFunctorAccessor< Functor, Accessor >::operator()().