Public Types | Public Member Functions | Public Attributes | Protected Attributes

mln::interpolated< I, F > Struct Template Reference

Makes the underlying image being accessed with floating coordinates. More...

#include <interpolated.hh>

Inheritance diagram for mln::interpolated< I, F >:
Inheritance graph

List of all members.

Public Types

typedef I::domain_t::bkd_piter bkd_piter
 Backward Site_Iterator associated type.
typedef Image< void > category
typedef I delegatee
 Delegatee associated type.
typedef I::domain_t domain_t
 Site_Set associated type.
typedef interpolated< I, F > exact_t
typedef I::domain_t::fwd_piter fwd_piter
 Forward Site_Iterator associated type.
typedef I::lvalue lvalue
 Return type of read-write access.
typedef fwd_piter piter
 Site_Iterator associated type; default definition is fwd_piter.
typedef I::psite psite
 Point_Site associated type.
typedef I::rvalue rvalue
 Return type of read-only access.
typedef I::domain_t::site site
 Site associated type.
typedef interpolated
< tag::image_< I >, F > 
skeleton
 Skeleton.
typedef
mln::internal::image_identity
< I, typename I::domain_t,
interpolated< I, F > > 
super_
typedef mln::value::set< I::value > t_eligible_values_set
 Eligible-value-set associated type.
typedef mln::value::set
< typename
mln::value::super_value
< I::value >::ret
t_values_space
 Value space associated type.
typedef I unmorph
 Unmorph image associated type.
typedef I::value value
 Value associated type.

Public Member Functions

mln::metal::const_< I >::retdelegatee_ () const
 Return the delegatee_ pointer; default code.
I * delegatee_ ()
 Return the delegatee_ pointer (non-const version); default code.
void destroy ()
 Detach data from an image (free it if nobody else hold it).
const I::domain_t & domain () const
template<typename C >
bool has (const mln::algebra::vec< I::psite::dim, C > &v) const
 Test if a pixel value is accessible at v.
bool has (const typename I::psite &p) const
bool has (const psite &p) const
 Test if p belongs to the image domain.
const util::tracked_ptr
< internal::data< interpolated
< I, F > > > & 
hook_data_ () const
 Hook to the image data.
const void * id_ () const
 Give an identifier of this image.
unsigned index_of_point (const P &p) const
 Give the offset of the site p.
void init_ (I &ima)
 Initialize an empty image.
 interpolated ()
 interpolated (I &ima)
 Constructors.
bool is_valid () const
 Test if this image has been initialized.
std::size_t nsites () const
 Give the number of sites of the image domain.
I::value operator() (const mln::algebra::vec< psite::dim, float > &v)
rvalue operator() (const typename I::domain_t::psite &p) const
 Read-only access of pixel value at point site p.
lvalue operator() (const typename I::domain_t::psite &p)
 Read-write access of pixel value at point site p.
I::value operator() (const mln::algebra::vec< psite::dim, float > &v) const
interpolated< I, F > & rw ()
 State that the morpher is writable.
I & unmorph_ ()
 Give the morphed image (mutable version).
mln::metal::const_< I >::retunmorph_ () const
 Give the morphed image (const version).
const t_eligible_values_setvalues_eligible () const
const t_values_spacevalues_space () const
 Return the value space of the image.

Public Attributes

const F< I > fun_

Protected Attributes

util::tracked_ptr
< internal::data< interpolated
< I, F > > > 
data_

Detailed Description

template<typename I, template< class > class F>
struct mln::interpolated< I, F >

Makes the underlying image being accessed with floating coordinates.

Definition at line 84 of file interpolated.hh.


Member Typedef Documentation

typedef I::domain_t ::bkd_piter mln::internal::image_base< I::value , I::domain_t , interpolated< I, F > >::bkd_piter [inherited]

Backward Site_Iterator associated type.

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

typedef Image<void> mln::Image< interpolated< I, F > >::category [inherited]

Reimplemented from mln::Object< interpolated< I, F > >.

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

typedef I mln::internal::image_morpher< I, I::value , I::domain_t , interpolated< I, F > >::delegatee [inherited]

Delegatee associated type.

Definition at line 57 of file image_morpher.hh.

typedef I::domain_t mln::internal::image_base< I::value , I::domain_t , interpolated< I, F > >::domain_t [inherited]

Site_Set associated type.

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

typedef interpolated< I, F > mln::Object< interpolated< I, F > >::exact_t [inherited]

Definition at line 173 of file object.hh.

typedef I::domain_t ::fwd_piter mln::internal::image_base< I::value , I::domain_t , interpolated< I, F > >::fwd_piter [inherited]

Forward Site_Iterator associated type.

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

template<typename I , template< class > class F>
typedef I ::lvalue mln::interpolated< I, F >::lvalue

Return type of read-write access.

Reimplemented from mln::internal::image_identity< I, I::domain_t, interpolated< I, F > >.

Definition at line 98 of file interpolated.hh.

typedef fwd_piter mln::internal::image_base< I::value , I::domain_t , interpolated< I, F > >::piter [inherited]

Site_Iterator associated type; default definition is fwd_piter.

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

template<typename I , template< class > class F>
typedef I ::psite mln::interpolated< I, F >::psite

Point_Site associated type.

Reimplemented from mln::internal::image_base< I::value, I::domain_t, interpolated< I, F > >.

Definition at line 92 of file interpolated.hh.

template<typename I , template< class > class F>
typedef I ::rvalue mln::interpolated< I, F >::rvalue

Return type of read-only access.

Reimplemented from mln::internal::image_identity< I, I::domain_t, interpolated< I, F > >.

Definition at line 101 of file interpolated.hh.

typedef I::domain_t ::site mln::internal::image_base< I::value , I::domain_t , interpolated< I, F > >::site [inherited]

Site associated type.

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

template<typename I , template< class > class F>
typedef interpolated< tag::image_<I>, F > mln::interpolated< I, F >::skeleton

Skeleton.

Definition at line 104 of file interpolated.hh.

template<typename I , template< class > class F>
typedef mln::internal::image_identity< I, typename I ::domain_t, interpolated<I,F> > mln::interpolated< I, F >::super_

Definition at line 89 of file interpolated.hh.

typedef mln::value::set<I::value > mln::internal::image_base< I::value , I::domain_t , interpolated< I, F > >::t_eligible_values_set [inherited]

Eligible-value-set associated type.

Definition at line 91 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 , I::domain_t , interpolated< I, F > >::t_values_space [inherited]

Value space associated type.

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

typedef I mln::internal::image_morpher< I, I::value , I::domain_t , interpolated< I, F > >::unmorph [inherited]

Unmorph image associated type.

Definition at line 68 of file image_morpher.hh.

template<typename I , template< class > class F>
typedef I ::value mln::interpolated< I, F >::value

Value associated type.

Reimplemented from mln::internal::image_identity< I, I::domain_t, interpolated< I, F > >.

Definition at line 95 of file interpolated.hh.


Constructor & Destructor Documentation

template<typename I , template< class > class F>
mln::interpolated< I, F >::interpolated ( I &  ima  )  [inline]

Constructors.

FIXME: don't we want a 'const' here?

Definition at line 156 of file interpolated.hh.

References mln::interpolated< I, F >::init_().

template<typename I , template< class > class F>
mln::interpolated< I, F >::interpolated (  )  [inline]

Definition at line 165 of file interpolated.hh.


Member Function Documentation

mln::metal::const_< I >::ret* mln::internal::image_morpher< I, I::value , I::domain_t , interpolated< I, F > >::delegatee_ (  )  const [inherited]

Return the delegatee_ pointer; default code.

I* mln::internal::image_morpher< I, I::value , I::domain_t , interpolated< I, F > >::delegatee_ (  )  [inherited]

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

void mln::internal::image_base< I::value , I::domain_t , interpolated< I, F > >::destroy (  )  [inherited]

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

const I ::domain_t& mln::internal::image_identity< I, I::domain_t , interpolated< I, F > >::domain (  )  const [inherited]
bool mln::internal::image_identity< I, I::domain_t , interpolated< I, F > >::has ( const typename I::psite &  p  )  const [inherited]
template<typename I , template< class > class F>
template<typename C >
bool mln::interpolated< I, F >::has ( const mln::algebra::vec< I::psite::dim, C > &  v  )  const [inline]

Test if a pixel value is accessible at v.

Definition at line 189 of file interpolated.hh.

References mln::internal::image_base< I::value, I::domain_t, interpolated< I, F > >::data_.

bool mln::internal::image_base< I::value , I::domain_t , interpolated< I, F > >::has ( const psite p  )  const [inherited]

Test if p belongs to the image domain.

const util::tracked_ptr< internal::data<interpolated< I, F > > >& mln::internal::image_base< I::value , I::domain_t , interpolated< I, F > >::hook_data_ (  )  const [inherited]

Hook to the image data.

const void* mln::internal::image_base< I::value , I::domain_t , interpolated< I, F > >::id_ (  )  const [inherited]

Give an identifier of this image.

When several image variables designate the same image, they share the same identifier.

unsigned mln::internal::check::image_fastest_< interpolated< I, F > , mln::metal::equal< mln_trait_image_speed(interpolated< I, F >), trait::image::speed::fastest >::eval >::index_of_point ( const P &  p  )  const [inherited]

Give the offset of the site p.

Parameters:
[in] p A site.
Warning:
This method is final.
Precondition:
The image has to be initialized and to own the point p.
Postcondition:
p == point_at_index(result)
template<typename I , template< class > class F>
void mln::interpolated< I, F >::init_ ( I &  ima  )  [inline]
template<typename I , template< class > class F>
bool mln::interpolated< I, F >::is_valid (  )  const [inline]
std::size_t mln::internal::image_base< I::value , I::domain_t , interpolated< I, F > >::nsites (  )  const [inherited]

Give the number of sites of the image domain.

template<typename I , template< class > class F>
I::value mln::interpolated< I, F >::operator() ( const mln::algebra::vec< psite::dim, float > &  v  )  const [inline]

Definition at line 201 of file interpolated.hh.

template<typename I , template< class > class F>
I::value mln::interpolated< I, F >::operator() ( const mln::algebra::vec< psite::dim, float > &  v  )  [inline]

Definition at line 209 of file interpolated.hh.

rvalue mln::internal::image_identity< I, I::domain_t , interpolated< I, F > >::operator() ( const typename I::domain_t ::psite p  )  const [inherited]

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

lvalue mln::internal::image_identity< I, I::domain_t , interpolated< I, F > >::operator() ( const typename I::domain_t ::psite p  )  [inherited]

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

interpolated< I, F > & mln::internal::image_morpher< I, I::value , I::domain_t , interpolated< I, F > >::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.

mln::metal::const_< I >::ret& mln::internal::image_morpher< I, I::value , I::domain_t , interpolated< I, F > >::unmorph_ (  )  const [inherited]

Give the morphed image (const version).

I& mln::internal::image_morpher< I, I::value , I::domain_t , interpolated< I, F > >::unmorph_ (  )  [inherited]

Give the morphed image (mutable version).

const t_eligible_values_set& mln::internal::image_base< I::value , I::domain_t , interpolated< I, F > >::values_eligible (  )  const [inherited]
const t_values_space& mln::internal::image_base< I::value , I::domain_t , interpolated< I, F > >::values_space (  )  const [inherited]

Return the value space of the image.


Member Data Documentation

util::tracked_ptr< internal::data<interpolated< I, F > > > mln::internal::image_base< I::value , I::domain_t , interpolated< I, F > >::data_ [protected, inherited]
template<typename I , template< class > class F>
const F<I> mln::interpolated< I, F >::fun_

Definition at line 133 of file interpolated.hh.