$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::canvas::browsing::backdiagonal2d_t Struct Reference

#include <mln/canvas/browsing/backdiagonal2d.hh>

Public Member Functions

 backdiagonal2d_t ()
void final ()
void init ()
template<typename F >
void operator() (F &f) const

Public Types

typedef Browsing< void > category
typedef backdiagonal2d_t exact_t

Detailed Description

Browsing in a certain direction.

This canvas browse all the point of an image 'input' of type 'I' and of dimension 'dim' in the direction 'dir'.

The functor should provide (In addition to 'input', 'I', 'dim' and 'dir') three methods :

  • init() : Will be called at the beginning.
  • next() : Will be called at each point 'p' (also provided by the fonctor).
  • final(): Will be called at the end.

F shall features :

- As types:
+ I;
- As attributes:
+ dim;
+ dir; // and test dir < dim
+ input;
+ p;
- As methods:
+ void init();
+ void next();
+ void final();

Example :

      ------->
      |  4 7 9
      |  2 5 8
      |  1 3 6

Definition at line 86 of file backdiagonal2d.hh.

Constructor & Destructor Documentation

mln::canvas::browsing::backdiagonal2d_t::backdiagonal2d_t ( )

Member Function Documentation

void mln::Browsing< backdiagonal2d_t >::final ( )
inherited
void mln::Browsing< backdiagonal2d_t >::init ( )
inherited
template<typename F >
void mln::canvas::browsing::backdiagonal2d_t::operator() ( F &  f) const

Member Typedef Documentation

typedef Browsing<void> mln::Browsing< backdiagonal2d_t >::category
inherited

Definition at line 60 of file browsing.hh.

Definition at line 105 of file object.hh.