vigra_ext::WriteFunctorAccessor< Functor, Accessor, ValueType > Class Template Reference

This class can be used to apply a function when writing to an image. More...

#include <FunctorAccessor.h>

List of all members.

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.
template<class Value, class ITERATOR_, class DIFFERENCE_>
void set (Value const &v, ITERATOR_ const &i, DIFFERENCE_ d) const
 Set functor result.

Public Attributes

Functor m_f
Accessor m_a


Detailed Description

template<class Functor, class Accessor, class ValueType>
class vigra_ext::WriteFunctorAccessor< Functor, Accessor, ValueType >

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.


Member Typedef Documentation

template<class Functor, class Accessor, class ValueType>
typedef ValueType vigra_ext::WriteFunctorAccessor< Functor, Accessor, ValueType >::value_type

Definition at line 88 of file FunctorAccessor.h.


Constructor & Destructor Documentation

template<class Functor, class Accessor, class ValueType>
vigra_ext::WriteFunctorAccessor< Functor, Accessor, ValueType >::WriteFunctorAccessor ( Functor  f,
Accessor  a 
) [inline]

Definition at line 90 of file FunctorAccessor.h.


Member Function Documentation

template<class Functor, class Accessor, class ValueType>
template<class Value, class ITERATOR_, class DIFFERENCE_>
void vigra_ext::WriteFunctorAccessor< Functor, Accessor, ValueType >::set ( Value const &  v,
ITERATOR_ const &  i,
DIFFERENCE_  d 
) const [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.

template<class Functor, class Accessor, class ValueType>
template<class Value, class ITERATOR>
void vigra_ext::WriteFunctorAccessor< Functor, Accessor, ValueType >::set ( Value const &  v,
ITERATOR const &  i 
) const [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.


Member Data Documentation

template<class Functor, class Accessor, class ValueType>
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().

template<class Functor, class Accessor, class ValueType>
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().


The documentation for this class was generated from the following file:
Generated on 5 Dec 2014 for Hugintrunk by  doxygen 1.4.7