Typedefs | Functions

2D neighborhoods
[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.

References mln::convert::from_to(), and mln::internal::neighborhood_impl< W, E >::size().

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.

References mln::convert::from_to(), and mln::internal::neighborhood_impl< W, E >::size().

const neighb2d & mln::c4 (  )  [inline]
const neighb2d & mln::c8 (  )  [inline]