Milena (Olena)  User documentation 2.0a Id
mln::canvas::browsing::dir_struct_elt_incr_update_t Struct Reference

Browsing in a certain direction with a segment. More...

#include <dir_struct_elt_incr_update.hh>

Inheritance diagram for mln::canvas::browsing::dir_struct_elt_incr_update_t:
Inheritance graph

List of all members.


Detailed Description

Browsing in a certain direction with a segment.

This canvas browse all the point of an image 'input' of type 'I', of dimension 'dim' in the direction 'dir' with considering weigh the 'length' nearest points.

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

  • init() : Will be called at the beginning.
  • init_line() : Will be called at the beginning of each line.
  • add_point(q) : Will be called for taking the new point 'q' into account.
  • remove_point(q): Will be called for untaking the new point 'q' into account.
  • next() : Will be called at each point 'p' (also provided by the functor).
  • final() : Will be called at the end.

F shall features :
{
--- as types:
I;
--- as attributes:
dim;
dir; // and test dir < dim
input;
p;
length;
--- as methods:
void init();
void init_line();
void add_point(q)
void remove_point(q)
void next();
void final();
}

Definition at line 87 of file dir_struct_elt_incr_update.hh.

 All Classes Namespaces Functions Variables Typedefs Enumerator