Hugin trunk 0.1
Loading...
Searching...
No Matches
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) { };.
 
template<class ITERATOR >
Functor::result_type operator() (ITERATOR const &i) const
 Get functor result.
 

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

◆ value_type

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

◆ ReadFunctorAccessor()

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

◆ operator()() [1/2]

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

◆ operator()() [2/2]

template<class Functor , class Accessor >
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, vigra_ext::ReadFunctorAccessor< Functor, Accessor >::m_f, and threshold().

Member Data Documentation

◆ m_a

◆ m_f


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