Milena (Olena)  User documentation 2.0a Id
 All Classes Namespaces Functions Variables Typedefs Enumerator Groups Pages
mln::fun_image< F, I > Struct Template Reference

Image read through a function. More...

#include <fun_image.hh>

Inherits mln::internal::image_value_morpher< I, F::result, fun_image< F, I > >.

Public Types

typedef F::result lvalue
 Return type of read-write access.
 
typedef F::result rvalue
 Return type of read-only access.
 
typedef fun_image< tag::value_
< typename F::result >
, tag::image_< I > > 
skeleton
 Skeleton.
 
typedef F::result value
 Value associated type.
 

Public Member Functions

 fun_image ()
 Constructor.
 
 fun_image (const Function_v2v< F > &f, const Image< I > &ima)
 Constructor.
 
 fun_image (const Image< I > &ima)
 Constructor.
 
F::result operator() (const typename I::psite &p) const
 Read-only access of pixel value at point site p.
 
F::result operator() (const typename I::psite &p)
 Mutable access is for reading only.
 

Detailed Description

template<typename F, typename I>
struct mln::fun_image< F, I >

Image read through a function.

Definition at line 101 of file fun_image.hh.

Member Typedef Documentation

template<typename F, typename I>
typedef F ::result mln::fun_image< F, I >::lvalue

Return type of read-write access.

Definition at line 111 of file fun_image.hh.

template<typename F, typename I>
typedef F ::result mln::fun_image< F, I >::rvalue

Return type of read-only access.

Definition at line 108 of file fun_image.hh.

template<typename F, typename I>
typedef fun_image< tag::value_<typename F ::result>, tag::image_<I> > mln::fun_image< F, I >::skeleton

Skeleton.

Definition at line 115 of file fun_image.hh.

template<typename F, typename I>
typedef F ::result mln::fun_image< F, I >::value

Value associated type.

Definition at line 105 of file fun_image.hh.

Constructor & Destructor Documentation

template<typename F , typename I >
fun_image< F, I >::fun_image ( )
inline

Constructor.

Definition at line 177 of file fun_image.hh.

template<typename F , typename I >
fun_image< F, I >::fun_image ( const Function_v2v< F > &  f,
const Image< I > &  ima 
)
inline

Constructor.

Definition at line 184 of file fun_image.hh.

template<typename F , typename I >
fun_image< F, I >::fun_image ( const Image< I > &  ima)
inline

Constructor.

Definition at line 191 of file fun_image.hh.

Member Function Documentation

template<typename F , typename I >
F::result fun_image< F, I >::operator() ( const typename I::psite &  p) const
inline

Read-only access of pixel value at point site p.

Definition at line 209 of file fun_image.hh.

template<typename F , typename I >
F::result fun_image< F, I >::operator() ( const typename I::psite &  p)
inline

Mutable access is for reading only.

Definition at line 218 of file fun_image.hh.