Milena (Olena)  User documentation 2.0a Id
 All Classes Namespaces Functions Variables Typedefs Enumerator Groups Pages
2D neighborhoods

Predefined 2D neighborhoods. More...

Typedefs

typedef neighb< window2d > mln::neighb2d
 Type alias for a neighborhood defined on the 2D square grid with integer coordinates.
 

Functions

const neighb2d & mln::c2_col ()
 Vertical 2-connectivity neighborhood on the 2D grid.
 
const neighb2d & mln::c2_row ()
 Horizontal 2-connectivity neighborhood on the 2D grid.
 
const neighb2d & mln::c4 ()
 4-connectivity neighborhood on the 2D grid.
 
const neighb2d & mln::c8 ()
 8-connectivity neighborhood on the 2D grid.
 

Detailed Description

Predefined 2D neighborhoods.

Typedef Documentation

typedef neighb<window2d> mln::neighb2d

Type alias for a neighborhood defined on the 2D square grid with integer coordinates.

Definition at line 51 of file core/alias/neighb2d.hh.

Function Documentation

const neighb2d & mln::c2_col ( )
inline

Vertical 2-connectivity neighborhood on the 2D grid.

   - o -
   - x -
   - o -
Returns
A neighb2d.

Definition at line 190 of file core/alias/neighb2d.hh.

const neighb2d & mln::c2_row ( )
inline

Horizontal 2-connectivity neighborhood on the 2D grid.

   - - -
   o x o
   - - -
Returns
A neighb2d.

Definition at line 176 of file core/alias/neighb2d.hh.

const neighb2d & mln::c4 ( )
inline

4-connectivity neighborhood on the 2D grid.

   - o -
   o x o
   - o -
Returns
A neighb2d.

Definition at line 148 of file core/alias/neighb2d.hh.

const neighb2d & mln::c8 ( )
inline

8-connectivity neighborhood on the 2D grid.

    o o o
    o x o
    o o o
Returns
A neighb2d.

Definition at line 162 of file core/alias/neighb2d.hh.