$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
2D neighborhoods

Classes

class  mln::neighb2d
 Type alias for a neighborhood defined on the 2D square grid with integer coordinates. More...

Functions

const neighb2d & mln::c2_col ()
const neighb2d & mln::c2_row ()
const neighb2d & mln::c4 ()
neighb< win::multiple
< window2d,
mln::fun::p2b::chess > > 
mln::c6_2d ()
const neighb2d & mln::c8 ()

Detailed Description

Predefined 2D neighborhoods.

Function Documentation

const neighb2d& mln::c2_col ( )

Vertical 2-connectivity neighborhood on the 2D grid.

   - o -
   - x -
   - o -
Returns
A neighb2d.
See Also
neighb2d
const neighb2d& mln::c2_row ( )

Horizontal 2-connectivity neighborhood on the 2D grid.

   - - -
   o x o
   - - -
Returns
A neighb2d.
See Also
neighb2d
const neighb2d& mln::c4 ( )

4-connectivity neighborhood on the 2D grid.

   - o -
   o x o
   - o -
Returns
A neighb2d.
See Also
neighb2d
neighb< win::multiple<window2d, mln::fun::p2b::chess> > mln::c6_2d ( )

Double neighborhood using a 6-connectivity.

According to the current central point coordinates, this neighborhood will use one of the following neighboords:

   even coordinates  odd coordinates
      o o -               - o o
      o x o               o x o
      - o o               o o -
Returns
A neighb2d.
See Also
neighb2d
const neighb2d& mln::c8 ( )

8-connectivity neighborhood on the 2D grid.

    o o o
    o x o
    o o o
Returns
A neighb2d.
See Also
neighb2d