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::dpoint2d > | mln::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. |
Predefined 2D windows.
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.
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.
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.
typedef window<mln::dpoint2d> mln::window2d |
Type alias for a window with arbitrary shape, defined on the 2D square grid with integer coordinates.
const window2d & mln::win_c4p | ( | ) | [inline] |
4-connectivity window on the 2D grid, including the center.
- o - o x o - o -
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
References mln::window< D >::insert(), and mln::window< D >::size().