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

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

Public Member Functions

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

Public Types

typedef Browsing< void > category
typedef snake_fwd_t exact_t

Detailed Description

Browsing in a snake-way, forward.

This canvas browse all the point of an image 'input' like this :

      ------->
      <------'
      '------>

The fonctor should provide (In addition to 'input') four methods :

  • init() : Will be called at the beginning.
  • down() : Will be called after each moving down. (will also be called once at the first point).
  • fwd() : Will be called after each moving right.
  • bwd() : Will ba called after each moving left.

This methods should acces to the current working point 'p' also provided by the functor.

Warning: This canvas works only on 2D.

F shall feature:

Definition at line 86 of file snake_fwd.hh.

Constructor & Destructor Documentation

mln::canvas::browsing::snake_fwd_t::snake_fwd_t ( )

Member Function Documentation

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

Member Typedef Documentation

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

Definition at line 60 of file browsing.hh.

typedef snake_fwd_t mln::Object< snake_fwd_t >::exact_t
inherited

Definition at line 105 of file object.hh.