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

#include <mln/core/image/dmorph/image2d_h.hh>

Public Member Functions

 image2d_h (int nrows, int ncols, unsigned bdr=border::thickness)
mln::metal::const_< image2d< V >
>::ret
delegatee_ () const
image2d< V > * delegatee_ ()
void destroy ()
const box2d_hdomain () const
bool has (const psite &p) const
bool has (const psite &p) const
void init_ (image2d< V > &ima)
bool is_valid () const
std::size_t nsites () const
rvalue operator() (const typename box2d_h::psite &p) const
lvalue operator() (const typename box2d_h::psite &p)
rvalue operator() (const point2d_h &p) const
lvalue operator() (const point2d_h &p)
hexa< image2d< V > > & rw ()
image2d< V > & unmorph_ ()
mln::metal::const_< image2d< V >
>::ret
unmorph_ () const
const t_eligible_values_setvalues_eligible () const
const t_values_spacevalues_space () const

Protected Attributes

mln::util::tracked_ptr
< internal::data< hexa
< image2d< V > > > > 
data_

Public Types

typedef hexa_bkd_piter_< box2dbkd_piter
typedef Image< void > category
typedef image2d< V > delegatee
typedef box2d_h domain_t
typedef hexa< image2d< V > > exact_t
typedef hexa_fwd_piter_< box2dfwd_piter
typedef image2d< V >::lvalue lvalue
typedef fwd_piter piter
typedef point2d_h psite
typedef image2d< V >::rvalue rvalue
typedef box2d_h::site site
typedef hexa< tag::image_
< image2d< V > > > 
skeleton
typedef mln::value::set
< image2d< V >::value
t_eligible_values_set
typedef mln::value::set
< typename
mln::value::super_value
< image2d< V >::value >::ret
t_values_space
typedef image2d< V > unmorph
typedef image2d< V >::value value

Detailed Description

template<typename V>
struct mln::image2d_h< V >

2d image based on an hexagonal mesh.

Definition at line 51 of file image2d_h.hh.

Constructor & Destructor Documentation

template<typename V>
mln::image2d_h< V >::image2d_h ( int  nrows,
int  ncols,
unsigned  bdr = border::thickness 
)

Constructor with the numbers of rows and columns border thickness.

image2d_h(3,6) will build this hexa image :

   1   3   5
 0   2   4

0| x x x | 2| x x x | 4| x x x

Member Function Documentation

mln::metal::const_< image2d< V > >::ret* mln::internal::image_morpher< image2d< V > , image2d< V >::value , box2d_h , hexa< image2d< V > > >::delegatee_ ( ) const
inherited

INTERNAL_API Return the delegatee_ pointer; default code.

image2d< V > * mln::internal::image_morpher< image2d< V > , image2d< V >::value , box2d_h , hexa< image2d< V > > >::delegatee_ ( )
inherited

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

void mln::internal::image_base< image2d< V >::value , box2d_h , hexa< image2d< V > > >::destroy ( )
inherited

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

const box2d_h& mln::hexa< image2d< V > >::domain ( ) const
inherited

Give the definition domain.

bool mln::internal::image_base< image2d< V >::value , box2d_h , hexa< image2d< V > > >::has ( const psite p) const
inherited

Test if p belongs to the image domain.

bool mln::hexa< image2d< V > >::has ( const psite p) const
inherited

Test if p belongs to the image domain.

void mln::hexa< image2d< V > >::init_ ( image2d< V > &  ima)
inherited

INTERNAL_API Initialization.

bool mln::internal::image_morpher< image2d< V > , image2d< V >::value , box2d_h , hexa< image2d< V > > >::is_valid ( ) const
inherited

Test if this image has been initialized; default impl.

Reimplemented from mln::internal::image_base< image2d< V >::value, box2d_h, hexa< image2d< V > > >.

std::size_t mln::internal::image_base< image2d< V >::value , box2d_h , hexa< image2d< V > > >::nsites ( ) const
inherited

Give the number of sites of the image domain.

rvalue mln::internal::image_domain_morpher< image2d< V > , box2d_h , hexa< image2d< V > > >::operator() ( const typename box2d_h ::psite p) const
inherited

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

lvalue mln::internal::image_domain_morpher< image2d< V > , box2d_h , hexa< image2d< V > > >::operator() ( const typename box2d_h ::psite p)
inherited

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

rvalue mln::hexa< image2d< V > >::operator() ( const point2d_h p) const
inherited

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

lvalue mln::hexa< image2d< V > >::operator() ( const point2d_h p)
inherited

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

hexa< image2d< V > > & mln::internal::image_morpher< image2d< V > , image2d< V >::value , box2d_h , hexa< image2d< V > > >::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.

image2d< V > & mln::internal::image_morpher< image2d< V > , image2d< V >::value , box2d_h , hexa< image2d< V > > >::unmorph_ ( )
inherited

INTERNAL_API Give the morphed image (mutable version).

mln::metal::const_< image2d< V > >::ret& mln::internal::image_morpher< image2d< V > , image2d< V >::value , box2d_h , hexa< image2d< V > > >::unmorph_ ( ) const
inherited

Give the morphed image (const version).

const t_eligible_values_set& mln::internal::image_base< image2d< V >::value , box2d_h , hexa< image2d< V > > >::values_eligible ( ) const
inherited
const t_values_space& mln::internal::image_base< image2d< V >::value , box2d_h , hexa< image2d< V > > >::values_space ( ) const
inherited

Return the value space of the image.

Member Data Documentation

mln::util::tracked_ptr< internal::data<hexa< image2d< V > > > > mln::internal::image_base< image2d< V >::value , box2d_h , hexa< image2d< V > > >::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 hexa_bkd_piter_<box2d> mln::hexa< image2d< V > >::bkd_piter
inherited

FIXME : should it be in box2d_h? Backward Site_Iterator associated type.

Definition at line 145 of file hexa.hh.

typedef Image<void> mln::Image< hexa< image2d< V > > >::category
inherited

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

typedef image2d< V > mln::internal::image_morpher< image2d< V > , image2d< V >::value , box2d_h , hexa< image2d< V > > >::delegatee
inherited

Delegatee associated type.

Definition at line 60 of file image_morpher.hh.

typedef box2d_h mln::internal::image_base< image2d< V >::value , box2d_h , hexa< image2d< V > > >::domain_t
inherited

Site_Set associated type.

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

typedef hexa< image2d< V > > mln::Object< hexa< image2d< V > > >::exact_t
inherited

Definition at line 105 of file object.hh.

typedef hexa_fwd_piter_<box2d> mln::hexa< image2d< V > >::fwd_piter
inherited

FIXME : should it be in box2d_h? Forward Site_Iterator associated type.

Definition at line 141 of file hexa.hh.

typedef image2d< V > ::lvalue mln::hexa< image2d< V > >::lvalue
inherited

Lvalue associated type.

Definition at line 131 of file hexa.hh.

typedef fwd_piter mln::internal::image_base< image2d< V >::value , box2d_h , hexa< image2d< V > > >::piter
inherited

Site_Iterator associated type; default definition is fwd_piter.

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

template<typename V>
typedef point2d_h mln::image2d_h< V >::psite

Point site type.

Definition at line 57 of file image2d_h.hh.

typedef image2d< V > ::rvalue mln::hexa< image2d< V > >::rvalue
inherited

Return type of read-only access.

Definition at line 134 of file hexa.hh.

typedef box2d_h ::site mln::internal::image_base< image2d< V >::value , box2d_h , hexa< image2d< V > > >::site
inherited

Site associated type.

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

typedef hexa< tag::image_<image2d< V > > > mln::hexa< image2d< V > >::skeleton
inherited

Skeleton.

Definition at line 125 of file hexa.hh.

Eligible-value-set associated type.

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

Value space associated type.

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

typedef image2d< V > mln::internal::image_morpher< image2d< V > , image2d< V >::value , box2d_h , hexa< image2d< V > > >::unmorph
inherited

Unmorph image associated type.

Definition at line 72 of file image_morpher.hh.

typedef image2d< V > ::value mln::hexa< image2d< V > >::value
inherited

Value associated type.

Definition at line 128 of file hexa.hh.