Typedefs | Functions

3D neighborhoods
[Neighborhoods]

Predefined 3D neighborhoods. More...

Typedefs

typedef neighb< window3d > mln::neighb3d
 Type alias for a neighborhood defined on the 3D square grid with integer coordinates.

Functions

const neighb3d & mln::c18 ()
 18-connectivity neighborhood on the 3D grid.
const neighb3d & mln::c26 ()
 26-connectivity neighborhood on the 3D grid.
const neighb3d & mln::c2_3d_sli ()
 depth 2-connectivity neighborhood on the 3D grid.
const neighb3d & mln::c4_3d ()
 4-connectivity neighborhood on the 3D grid.
const neighb3d & mln::c6 ()
 6-connectivity neighborhood on the 3D grid.
const neighb3d & mln::c8_3d ()
 8-connectivity neighborhood on the 3D grid.

Detailed Description

Predefined 3D neighborhoods.


Typedef Documentation

typedef neighb<window3d> mln::neighb3d

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

Definition at line 50 of file neighb3d.hh.


Function Documentation

const neighb3d & mln::c18 (  )  [inline]

18-connectivity neighborhood on the 3D grid.


      . o .
     o o o
    . o .

      o o o
     o x o
    o o o

      . o .
     o o o
    . o .

    
Returns:
A neighb3d.

Definition at line 288 of file neighb3d.hh.

References mln::c6(), mln::internal::neighb_base< W, E >::hook_win_(), mln::window< D >::insert(), mln::internal::neighborhood_impl< W, E >::size(), and mln::win::sym().

Referenced by mln::c26().

const neighb3d & mln::c26 (  )  [inline]

26-connectivity neighborhood on the 3D grid.


      o o o
     o o o
    o o o

      o o o
     o x o
    o o o

      o o o
     o o o
    o o o

    
Returns:
A neighb3d.

Definition at line 309 of file neighb3d.hh.

References mln::c18(), mln::internal::neighb_base< W, E >::hook_win_(), mln::window< D >::insert(), mln::internal::neighborhood_impl< W, E >::size(), and mln::win::sym().

const neighb3d & mln::c2_3d_sli (  )  [inline]

depth 2-connectivity neighborhood on the 3D grid.


     . . .
    . o .
   . . .

     . . .
    . x .
   . . .

     . . .
    . o .
   . . .

    
Returns:
A neighb3d.

Definition at line 226 of file neighb3d.hh.

References mln::internal::neighb_base< W, E >::hook_win_(), mln::window< D >::insert(), and mln::internal::neighborhood_impl< W, E >::size().

const neighb3d & mln::c4_3d (  )  [inline]

4-connectivity neighborhood on the 3D grid.


     . . .
    . . .
   . . .

     . o .
    o x o
   . o .

     . . .
    . . .
   . . .

    
Returns:
A neighb3d.

Definition at line 241 of file neighb3d.hh.

References mln::internal::neighb_base< W, E >::hook_win_(), mln::window< D >::insert(), mln::internal::neighborhood_impl< W, E >::size(), and mln::win::sym().

const neighb3d & mln::c6 (  )  [inline]
const neighb3d & mln::c8_3d (  )  [inline]

8-connectivity neighborhood on the 3D grid.


       . . .
      . . .
     . . .

       o o o
      o x o
     o o o

       . . .
      . . .
     . . .

    
Returns:
A neighb3d.

Definition at line 257 of file neighb3d.hh.

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