Classes | Typedefs | Functions

2D windows
[Windows]

Predefined 2D windows. More...

Classes

struct  mln::win::backdiag2d
 Diagonal line window defined on the 2D square grid. More...
struct  mln::win::diag2d
 Diagonal line window defined on the 2D square grid. More...
struct  mln::win::octagon2d
 Octagon window defined on the 2D square grid. More...
struct  mln::win::rectangle2d
 Rectangular window defined on the 2D square grid. More...

Typedefs

typedef ball< grid::square,
def::coord > 
mln::win::disk2d
 2D disk window; precisely, ball-shaped window defined on the 2D square grid.
typedef line< grid::square,
1, def::coord > 
mln::win::hline2d
 Horizontal line window defined on the 2D square grid.
typedef line< grid::square,
0, def::coord > 
mln::win::vline2d
 Vertical line window defined on the 2D square grid.
typedef window< mln::dpoint2dmln::window2d
 Type alias for a window with arbitrary shape, defined on the 2D square grid with integer coordinates.

Functions

const window2d & mln::win_c4p ()
 4-connectivity window on the 2D grid, including the center.
const window2d & mln::win_c8p ()
 8-connectivity window on the 2D grid, including the center.

Detailed Description

Predefined 2D windows.


Typedef Documentation

typedef ball<grid::square, def::coord> mln::win::disk2d

2D disk window; precisely, ball-shaped window defined on the 2D square grid.

Definition at line 49 of file disk2d.hh.

typedef line<grid::square, 1, def::coord> mln::win::hline2d

Horizontal line window defined on the 2D square grid.

An hline2d is centered and symmetric; so its height is 1 and its width (length) is odd.

For instance:

        o o x o o
       

is defined with length = 5.

Definition at line 57 of file hline2d.hh.

typedef line<grid::square, 0, def::coord> mln::win::vline2d

Vertical line window defined on the 2D square grid.

An vline2d is centered and symmetric; so its width is 1 and its height (length) is odd.

For instance:

        o
        x
        o
       

is defined with length = 3.

Definition at line 58 of file vline2d.hh.

typedef window<mln::dpoint2d> mln::window2d

Type alias for a window with arbitrary shape, defined on the 2D square grid with integer coordinates.

Definition at line 49 of file window2d.hh.


Function Documentation

const window2d & mln::win_c4p (  )  [inline]

4-connectivity window on the 2D grid, including the center.

       - o -
       o x o
       - o -
    
Returns:
A window2d.

Definition at line 105 of file window2d.hh.

References mln::window< D >::insert(), and mln::window< D >::size().

const window2d & mln::win_c8p (  )  [inline]

8-connectivity window on the 2D grid, including the center.

       o o o
       o x o
       o o o
    
Returns:
A window2d.

Definition at line 121 of file window2d.hh.

References mln::window< D >::insert(), and mln::window< D >::size().