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

Transform an image by a given transformation. More...

#include <tr_image.hh>

Inherits mln::internal::image_identity< I, S, tr_image< S, I, T > >.

Public Types

typedef I::value lvalue
 Return type of read-write access.
 
typedef I::psite psite
 Point_Site associated type.
 
typedef I::value rvalue
 Return type of read-only access.
 
typedef I::site site
 Site associated type.
 
typedef tr_image< S,
tag::image_< I >, T > 
skeleton
 Skeleton.
 
typedef I::value value
 Value associated type.
 

Public Member Functions

const S & domain () const
 Return the domain morpher.
 
bool has (const vec_t &v) const
 Test if a pixel value is accessible at v.
 
bool is_valid () const
 Test if this image has been initialized.
 
I::value operator() (const psite &p) const
 Read-only access of pixel value at point site p.
 
void set_tr (T &tr)
 Set the transformation.
 
const T & tr () const
 Return the underlying transformation.
 
 tr_image (const S &s, const I &ima, const T &tr)
 Constructors.
 

Detailed Description

template<typename S, typename I, typename T>
struct mln::tr_image< S, I, T >

Transform an image by a given transformation.

Definition at line 83 of file tr_image.hh.

Member Typedef Documentation

template<typename S, typename I, typename T>
typedef I ::value mln::tr_image< S, I, T >::lvalue

Return type of read-write access.

Definition at line 101 of file tr_image.hh.

template<typename S, typename I, typename T>
typedef I ::psite mln::tr_image< S, I, T >::psite

Point_Site associated type.

Definition at line 92 of file tr_image.hh.

template<typename S, typename I, typename T>
typedef I ::value mln::tr_image< S, I, T >::rvalue

Return type of read-only access.

Definition at line 104 of file tr_image.hh.

template<typename S, typename I, typename T>
typedef I ::site mln::tr_image< S, I, T >::site

Site associated type.

Definition at line 95 of file tr_image.hh.

template<typename S, typename I, typename T>
typedef tr_image< S, tag::image_<I>, T> mln::tr_image< S, I, T >::skeleton

Skeleton.

Definition at line 107 of file tr_image.hh.

template<typename S, typename I, typename T>
typedef I ::value mln::tr_image< S, I, T >::value

Value associated type.

Definition at line 98 of file tr_image.hh.

Constructor & Destructor Documentation

template<typename S , typename I , typename T >
tr_image< S, I, T >::tr_image ( const S &  s,
const I &  ima,
const T &  tr 
)
inline

Constructors.

Definition at line 174 of file tr_image.hh.

Member Function Documentation

template<typename S , typename I , typename T >
const S & tr_image< S, I, T >::domain ( ) const
inline

Return the domain morpher.

Definition at line 247 of file tr_image.hh.

template<typename S , typename I , typename T >
bool tr_image< S, I, T >::has ( const vec_t &  v) const
inline

Test if a pixel value is accessible at v.

Definition at line 200 of file tr_image.hh.

template<typename S , typename I , typename T >
bool tr_image< S, I, T >::is_valid ( ) const
inline

Test if this image has been initialized.

Definition at line 191 of file tr_image.hh.

template<typename S , typename I , typename T >
I::value tr_image< S, I, T >::operator() ( const psite p) const
inline

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

Mutable access is only OK for reading (not writing).

Definition at line 213 of file tr_image.hh.

template<typename S , typename I , typename T >
void tr_image< S, I, T >::set_tr ( T &  tr)
inline

Set the transformation.

Definition at line 231 of file tr_image.hh.

template<typename S , typename I , typename T >
const T & tr_image< S, I, T >::tr ( ) const
inline

Return the underlying transformation.

Definition at line 239 of file tr_image.hh.