$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::tr_image< S, I, T > Struct Template Reference

#include <mln/core/image/imorph/tr_image.hh>

Public Member Functions

 tr_image (const S &s, const I &ima, const T &tr)
 tr_image ()
mln::metal::const_< I >::retdelegatee_ () const
I * delegatee_ ()
void destroy ()
const S & domain () const
bool has (const psite &p) const
bool has (const vec_t &v) const
bool has (const typename I::psite &p) const
void init_ (const S &s, const I &ima, const T &tr)
bool is_valid () const
std::size_t nsites () const
I::value operator() (const psite &p) const
I::value operator() (const psite &p)
rvalue operator() (const typename S::psite &p) const
lvalue operator() (const typename S::psite &p)
tr_image< S, I, T > & rw ()
void set_tr (T &tr)
const Ttr () const
I & unmorph_ ()
mln::metal::const_< I >::retunmorph_ () const
const t_eligible_values_setvalues_eligible () const
const t_values_spacevalues_space () const

Protected Attributes

mln::util::tracked_ptr
< internal::data< tr_image< S,
I, T > > > 
data_

Public Types

enum  { dim_ = site::dim }
typedef S::bkd_piter bkd_piter
typedef Image< void > category
typedef I delegatee
typedef S domain_t
typedef tr_image< S, I, Texact_t
typedef S::fwd_piter fwd_piter
typedef I::value lvalue
typedef fwd_piter piter
typedef I::psite psite
typedef I::value rvalue
typedef I::site site
typedef tr_image< S,
tag::image_< I >, T
skeleton
typedef
mln::internal::image_identity
< I, S, tr_image< S, I, T > > 
super_
typedef mln::value::set< I::value > t_eligible_values_set
typedef mln::value::set
< typename
mln::value::super_value
< I::value >::ret
t_values_space
typedef I unmorph
typedef I::value value
typedef mln::algebra::vec
< dim_, float
vec_t

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 86 of file tr_image.hh.

Constructor & Destructor Documentation

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

Constructors.

template<typename S , typename I , typename T >
mln::tr_image< S, I, T >::tr_image ( )

Member Function Documentation

mln::metal::const_< I >::ret* mln::internal::image_morpher< I, I::value , S, tr_image< S, I, T > >::delegatee_ ( ) const
inherited

INTERNAL_API Return the delegatee_ pointer; default code.

I* mln::internal::image_morpher< I, I::value , S, tr_image< S, I, T > >::delegatee_ ( )
inherited

Return the delegatee_ pointer (non-const version); default code.

void mln::internal::image_base< I::value , S, tr_image< S, I, T > >::destroy ( )
inherited

Detach data from an image (free it if nobody else hold it).

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

Return the domain morpher.

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

bool mln::internal::image_base< I::value , S, tr_image< S, I, T > >::has ( const psite p) const
inherited

Test if p belongs to the image domain.

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

Test if a pixel value is accessible at v.

bool mln::internal::image_identity< I, S, tr_image< S, I, T > >::has ( const typename I::psite &  p) const
inherited
template<typename S , typename I , typename T >
void mln::tr_image< S, I, T >::init_ ( const S &  s,
const I &  ima,
const T tr 
)

INTERNAL_API Initialize an empty image.

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

Test if this image has been initialized.

Reimplemented from mln::internal::image_morpher< I, I::value, S, tr_image< S, I, T > >.

std::size_t mln::internal::image_base< I::value , S, tr_image< S, I, T > >::nsites ( ) const
inherited

Give the number of sites of the image domain.

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

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

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

template<typename S , typename I , typename T >
I ::value mln::tr_image< S, I, T >::operator() ( const psite p)
rvalue mln::internal::image_identity< I, S, tr_image< S, I, T > >::operator() ( const typename S::psite &  p) const
inherited

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

lvalue mln::internal::image_identity< I, S, tr_image< S, I, T > >::operator() ( const typename S::psite &  p)
inherited

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

tr_image< S, I, T > & mln::internal::image_morpher< I, I::value , S, tr_image< S, I, T > >::rw ( )
inherited

State that the morpher is writable.

This allows for C++ to use it as a mutable object even if it is a temporary object.

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

Set the transformation.

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

Return the underlying transformation.

I& mln::internal::image_morpher< I, I::value , S, tr_image< S, I, T > >::unmorph_ ( )
inherited

INTERNAL_API Give the morphed image (mutable version).

mln::metal::const_< I >::ret& mln::internal::image_morpher< I, I::value , S, tr_image< S, I, T > >::unmorph_ ( ) const
inherited

Give the morphed image (const version).

const t_eligible_values_set& mln::internal::image_base< I::value , S, tr_image< S, I, T > >::values_eligible ( ) const
inherited
const t_values_space& mln::internal::image_base< I::value , S, tr_image< S, I, T > >::values_space ( ) const
inherited

Return the value space of the image.

Member Data Documentation

mln::util::tracked_ptr< internal::data<tr_image< S, I, T > > > mln::internal::image_base< I::value , S, tr_image< S, I, T > >::data_
protectedinherited

INTERNAL_API Internal data, sharable by several images.

Definition at line 176 of file core/internal/image_base.hh.

Member Typedef Documentation

typedef S ::bkd_piter mln::internal::image_base< I::value , S, tr_image< S, I, T > >::bkd_piter
inherited

Backward Site_Iterator associated type.

Definition at line 122 of file core/internal/image_base.hh.

typedef Image<void> mln::Image< tr_image< S, I, T > >::category
inherited

Definition at line 78 of file core/concept/image.hh.

typedef I mln::internal::image_morpher< I, I::value , S, tr_image< S, I, T > >::delegatee
inherited

Delegatee associated type.

Definition at line 60 of file image_morpher.hh.

typedef S mln::internal::image_base< I::value , S, tr_image< S, I, T > >::domain_t
inherited

Site_Set associated type.

Definition at line 109 of file core/internal/image_base.hh.

typedef tr_image< S, I, T > mln::Object< tr_image< S, I, T > >::exact_t
inherited

Definition at line 105 of file object.hh.

typedef S ::fwd_piter mln::internal::image_base< I::value , S, tr_image< S, I, T > >::fwd_piter
inherited

Forward Site_Iterator associated type.

Definition at line 119 of file core/internal/image_base.hh.

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 104 of file tr_image.hh.

typedef fwd_piter mln::internal::image_base< I::value , S, tr_image< S, I, T > >::piter
inherited

Site_Iterator associated type; default definition is fwd_piter.

Definition at line 127 of file core/internal/image_base.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 95 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 107 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 98 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 110 of file tr_image.hh.

template<typename S , typename I , typename T >
typedef mln::internal::image_identity< I, S, tr_image<S,I,T> > mln::tr_image< S, I, T >::super_

Super type.

Definition at line 92 of file tr_image.hh.

typedef mln::value::set<I::value > mln::internal::image_base< I::value , S, tr_image< S, I, T > >::t_eligible_values_set
inherited

Eligible-value-set associated type.

Definition at line 95 of file core/internal/image_base.hh.

typedef mln::value::set< typename mln::value::super_value<I::value >::ret > mln::internal::image_base< I::value , S, tr_image< S, I, T > >::t_values_space
inherited

Value space associated type.

Definition at line 102 of file core/internal/image_base.hh.

typedef I mln::internal::image_morpher< I, I::value , S, tr_image< S, I, T > >::unmorph
inherited

Unmorph image associated type.

Definition at line 72 of file image_morpher.hh.

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

Value associated type.

Definition at line 101 of file tr_image.hh.

template<typename S , typename I , typename T >
typedef mln::algebra::vec<dim_, float> mln::tr_image< S, I, T >::vec_t

Definition at line 135 of file tr_image.hh.

Member Enumeration Documentation

template<typename S , typename I , typename T >
anonymous enum
Enumerator:
dim_ 

Definition at line 134 of file tr_image.hh.