Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Public Attributes | List of all members
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>

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
 

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

Member Data Documentation

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

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