[mmUnion] [Up] [mmSebox] Structuring Elements

mmImg2se
Create a structuring element from a pair of images.

Synopsis

Strel mmImg2se ( const Image& fd , const String& FLAT = "FLAT", const Image& f = NullImage );

Input

fd Image [ Binary image ]

The image is in the matrix format where the origin (0,0) is at the matrix center.

FLAT String

Structuring element: 'FLAT' or 'NON-FLAT'.

Default: "FLAT"

f Image [ Unsigned gray-scale (uint8 or uint16), signed (int32) or binary image ]

Default: NullImage

Description

mmImg2se creates a flat structuring element B from the binary image fd or creates a non-flat structuring element b from the binary image fd and the gray-scale image f. fd represents the domain of b and f represents the image of the points in fd.

Equation

Flat structuring element:
Non-flat structuring element:
H and W are the number of rows and columns of f, respectively.

See also

mmSebox Create a box structuring element.
mmSecross Diamond structuring element and elementary 3x3 cross.
mmSedisk Create a disk or a semi-sphere structuring element.
mmSeline Create a line structuring element.
mmSeshow Display a structuring element as an image.
mmDil Dilate an image by a structuring element.

See also

mmSecross Diamond structuring element and elementary 3x3 cross.
mmSeshow Display a structuring element as an image.
mmDil Dilate an image by a structuring element.
[mmUnion] [Up] [mmSebox]