[mmstats] [Up] [mmglblshow] Measurements

mmpatspec
Pattern spectrum (also known as granulometric size density).

Synopsis

h = mmpatspec ( f , type = 'OCTAGON', n = 65535, Bc = NullStrel, Buser = NullStrel )

Input

f Image Binary image

type String

Disk family: 'OCTAGON', 'CHESSBOARD', 'CITY-BLOCK', 'LINEAR-V', 'LINEAR-H', 'LINEAR-45R', 'LINEAR-45L', 'USER'.

Default: 'OCTAGON' ('OCTAGON')

n Double

Maximum disk radii.

Default: 65535 (65535)

Bc Structuring Element

Connectivity for the reconstructive granulometry. Used if '-REC' suffix is appended in the 'type' string.

Default: NullStrel (3x3 elementary cross)

Buser Structuring Element

User disk, used if 'type' is 'USER'.

Default: NullStrel (3x3 elementary cross)

Output

h Image Gray-scale (uint8 or uint16) or binary image

a uint16 vector.

Description

Compute the Pattern Spectrum of a binary image. See [Mar89]. The pattern spectrum is the histogram of the open transform, not taking the zero values.

Equation

See also

mmopen Morphological opening.
mmopentransf Open transform.
mmsedisk Create a disk or a semi-sphere structuring element.
[mmstats] [Up] [mmglblshow]