Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Protected Attributes | List of all members
vigra_ext::ReadFunctorAccessor< Functor, Accessor > Class Template Reference

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
 

Detailed Description

template<class Functor, class Accessor>
class vigra_ext::ReadFunctorAccessor< Functor, Accessor >

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.

Member Typedef Documentation

template<class Functor, class Accessor>
typedef Functor::result_type vigra_ext::ReadFunctorAccessor< Functor, Accessor >::value_type

Definition at line 44 of file FunctorAccessor.h.

Constructor & Destructor Documentation

template<class Functor, class Accessor>
vigra_ext::ReadFunctorAccessor< Functor, Accessor >::ReadFunctorAccessor ( Functor  f,
Accessor  a 
)
inline

Definition at line 45 of file FunctorAccessor.h.

Member Function Documentation

template<class Functor, class Accessor>
template<typename ITERATOR_ , typename DIFFERENCE_ >
Functor::result_type vigra_ext::ReadFunctorAccessor< Functor, Accessor >::operator() ( ITERATOR_ const &  i,
DIFFERENCE_  d 
) const
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.

template<class Functor, class Accessor>
template<class ITERATOR >
Functor::result_type vigra_ext::ReadFunctorAccessor< Functor, Accessor >::operator() ( ITERATOR const &  i) const
inline

Member Data Documentation

template<class Functor, class Accessor>
Accessor vigra_ext::ReadFunctorAccessor< Functor, Accessor >::m_a
protected
template<class Functor, class Accessor>
Functor vigra_ext::ReadFunctorAccessor< Functor, Accessor >::m_f
protected

The documentation for this class was generated from the following file: