Classes |
class | mln::neighb2d |
| Type alias for a neighborhood defined on the 2D square grid with integer coordinates. More...
|
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
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