Classes | Typedefs | Functions

3D windows
[Windows]

Predefined 3D windows. More...

Classes

struct  mln::win::cube3d
 Cube window defined on the 3D grid. More...
struct  mln::win::cuboid3d
 Cuboid defined on the 3-D square grid. More...

Typedefs

typedef line< grid::cube,
0, def::coord > 
mln::win::sline3d
 Depth line window defined on the 3D cubic grid.
typedef ball< grid::cube,
def::coord > 
mln::win::sphere3d
 3D sphere window; precisely, ball-shaped window defined on the 3D cubic grid.
typedef window< mln::dpoint3dmln::window3d
 Type alias for a window with arbitrary shape, defined on the 3D square grid with integer coordinates.

Functions

const window3d & mln::win_c4p_3d ()
 4-connectivity window on the 3D grid, including the center.
const window3d & mln::win_c8p_3d ()
 8-connectivity window on the 3D grid, including the center.

Detailed Description

Predefined 3D windows.


Typedef Documentation

typedef line<grid::cube, 0, def::coord> mln::win::sline3d

Depth line window defined on the 3D cubic grid.

An sline3d is centered and symmetric; so its height and its width are 1 and its depth is odd.

For instance:

         . . .
        . o .
       . . .

         . . .
        . x .
       . . .

         . . .
        . o .
       . . .

       

is defined with length = 3.

Definition at line 68 of file sline3d.hh.

typedef ball<grid::cube, def::coord> mln::win::sphere3d

3D sphere window; precisely, ball-shaped window defined on the 3D cubic grid.

Definition at line 47 of file sphere3d.hh.

typedef window<mln::dpoint3d> mln::window3d

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

Definition at line 48 of file window3d.hh.


Function Documentation

const window3d & mln::win_c4p_3d (  )  [inline]

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


       - - -
      - - -
     - - -

       - o -
      o x o
     - o -

       - - -
      - - -
     - - -
    
Returns:
A window3d.

Definition at line 119 of file window3d.hh.

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

const window3d & mln::win_c8p_3d (  )  [inline]

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

       - - -
      - - -
     - - -

       o o o
      o x o
     o o o

       - - -
      - - -
     - - -
    
Returns:
A window3d.

Definition at line 135 of file window3d.hh.

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