[mmSecross] [Up] [mmSeline] Structuring Elements

mmSedisk
Create a disk or a semi-sphere structuring element.

Synopsis

Strel mmSedisk ( const Double& r = 3, const String& DIM = "2D", const String& METRIC = "EUCLIDEAN", const String& FLAT = "FLAT", const Double& h = 0 );

Input

r Double [ Non-negative integer. ]

Disk radius.

Default: 3

DIM String

'1D', '2D, or '3D'.

Default: "2D"

METRIC String

'EUCLIDEAN', ' CITY-BLOCK', 'OCTAGON', or ' CHESSBOARD'.

Default: "EUCLIDEAN"

FLAT String

'FLAT' or 'NON-FLAT'.

Default: "FLAT"

h Double

Elevation of the center of the semi-sphere.

Default: 0

Description

mmSedisk creates a flat structuring element B that is disk under the metric METRIC , centered at the origin and with radius r or a non-flat structuring element that is a semi-sphere under the metric METRIC, centered at (0, h) and with radius r. This structuring element can be created on the 1D, 2D or 3D space.

Equation

Flat structuring element:
Euclidean distance:
City block distance (4-connectivity):
Chess board distance (8-connectivity):
Octagon distance:
Non-flat structuring element:
Euclidean distance:
city block distance:
chess board distance:

See also

mmSebox Create a box structuring element.
mmSecross Diamond structuring element and elementary 3x3 cross.
mmSeline Create a line structuring element.
mmImg2se Create a structuring element from a pair of images.
mmSeshow Display a structuring element as an image.
mmDil Dilate an image by a structuring element.
[mmSecross] [Up] [mmSeline]