Milena (Olena)  User documentation 2.0a Id
 All Classes Namespaces Functions Variables Typedefs Enumerator Groups Pages
mln::image2d_h< V > Struct Template Reference

2d image based on an hexagonal mesh. More...

#include <image2d_h.hh>

Inheritance diagram for mln::image2d_h< V >:
Inheritance graph

Public Types

typedef hexa_bkd_piter_< box2dbkd_piter
 FIXME : should it be in box2d_h? Backward Site_Iterator associated type.
 
typedef hexa_fwd_piter_< box2dfwd_piter
 FIXME : should it be in box2d_h? Forward Site_Iterator associated type.
 
typedef image2d< V >::lvalue lvalue
 Lvalue associated type.
 
typedef point2d_h psite
 Point site type.
 
typedef image2d< V >::rvalue rvalue
 Return type of read-only access.
 
typedef hexa< tag::image_
< image2d< V > > > 
skeleton
 Skeleton.
 
typedef image2d< V >::value value
 Value associated type.
 

Public Member Functions

const box2d_hdomain () const
 Give the definition domain.
 
bool has (const psite &p) const
 Test if p belongs to the image domain.
 
 image2d_h (int nrows, int ncols, unsigned bdr=border::thickness)
 Constructor with the numbers of rows and columns border thickness.
 
rvalue operator() (const point2d_h &p) const
 Read-only access of pixel value at hexa point site p.
 
lvalue operator() (const point2d_h &p)
 Read-write access of pixel value at hexa point site p.
 

Detailed Description

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

2d image based on an hexagonal mesh.

Definition at line 50 of file image2d_h.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 141 of file hexa.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 137 of file hexa.hh.

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

Lvalue associated type.

Definition at line 127 of file hexa.hh.

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

Point site type.

Definition at line 56 of file image2d_h.hh.

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

Return type of read-only access.

Definition at line 130 of file hexa.hh.

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

Skeleton.

Definition at line 121 of file hexa.hh.

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

Value associated type.

Definition at line 124 of file hexa.hh.

Constructor & Destructor Documentation

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

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

Definition at line 82 of file image2d_h.hh.

Member Function Documentation

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

Give the definition domain.

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

Test if p belongs to the image domain.

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.