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

Image values are computed on the fly. More...

#include <lazy_image.hh>

Inherits mln::internal::image_identity< mln::trait::ch_value< I, F::result >::ret, I::domain_t, lazy_image< I, F, B > >.

Public Types

typedef F::result lvalue
 Return type of read-write access.
 
typedef F::result rvalue
 Return type of read access.
 
typedef lazy_image
< tag::image_< I >, F, B > 
skeleton
 Skeleton.
 

Public Member Functions

const box< typename I::psite > & domain () const
 Return domain of lazyd_image.
 
bool has (const typename I::psite &) const
 Test if a pixel value is accessible at p.
 
 lazy_image ()
 Constructors.
 
 lazy_image (const F &fun, const B &box)
 Constructors.
 
F::result operator() (const typename F::input &x) const
 Read-only access of pixel value at F::input x.
 
F::result operator() (const typename F::input &x)
 Read and "write if possible" access of pixel value at F::input x.
 
rvalue operator() (const typename I::psite &p) const
 Read-only access of pixel value at point site p.
 
lvalue operator() (const typename I::psite &p)
 Read and "write if possible" access of pixel value at point site p.
 

Detailed Description

template<typename I, typename F, typename B>
struct mln::lazy_image< I, F, B >

Image values are computed on the fly.

The parameter I is the type of image. The parameter F is the type of function. The parameter B is the type of box.

This image class tage a functor fun and a box box. Access to ima(p) where p include box return fun(b) lazily.

Definition at line 92 of file lazy_image.hh.

Member Typedef Documentation

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

Return type of read-write access.

Definition at line 104 of file lazy_image.hh.

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

Return type of read access.

Definition at line 101 of file lazy_image.hh.

template<typename I, typename F, typename B>
typedef lazy_image< tag::image_<I>, F, B > mln::lazy_image< I, F, B >::skeleton

Skeleton.

Definition at line 107 of file lazy_image.hh.

Constructor & Destructor Documentation

template<typename I, typename F, typename B>
mln::lazy_image< I, F, B >::lazy_image ( )

Constructors.

template<typename I , typename F, typename B>
lazy_image< I, F, B >::lazy_image ( const F &  fun,
const B &  box 
)
inline

Constructors.

Definition at line 161 of file lazy_image.hh.

Member Function Documentation

template<typename I , typename F , typename B >
const box< typename I::psite > & lazy_image< I, F, B >::domain ( ) const
inline

Return domain of lazyd_image.

Definition at line 226 of file lazy_image.hh.

template<typename I, typename F , typename B >
bool lazy_image< I, F, B >::has ( const typename I::psite &  p) const
inline

Test if a pixel value is accessible at p.

Definition at line 175 of file lazy_image.hh.

template<typename I , typename F, typename B >
F::result lazy_image< I, F, B >::operator() ( const typename F::input &  x) const
inline

Read-only access of pixel value at F::input x.

Definition at line 183 of file lazy_image.hh.

template<typename I , typename F, typename B >
F::result lazy_image< I, F, B >::operator() ( const typename F::input &  x)
inline

Read and "write if possible" access of pixel value at F::input x.

Definition at line 197 of file lazy_image.hh.

template<typename I, typename F, typename B >
lazy_image< I, F, B >::rvalue lazy_image< I, F, B >::operator() ( const typename I::psite &  p) const
inline

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

Definition at line 210 of file lazy_image.hh.

template<typename I, typename F, typename B >
lazy_image< I, F, B >::lvalue lazy_image< I, F, B >::operator() ( const typename I::psite &  p)
inline

Read and "write if possible" access of pixel value at point site p.

Definition at line 218 of file lazy_image.hh.