[mmGrain] [Up] [mmStats] Measurements

mmLabelflat
Label the flat zones of gray-scale images.

Synopsis

Image mmLabelflat ( const Image& f , const Strel& Bc = NullStrel, const Double& _lambda = 0 );

Input

f Image [ Gray-scale (uint8 or uint16) or binary image ]

Bc Structuring Element

( connectivity).

Default: NullStrel (3x3 elementary cross)

_lambda Double []

Connectivity given by |f(q)-f(p)|<=_lambda.

Default: 0

Output

y Image

If number of labels is less than 65535, the data type is uint16, otherwise it is int32.

Description

mmLabelflat creates the image y by labeling the flat zones of f, according to the connectivity defined by the structuring element Bc. A flat zone is a connected region of the image domain in which all the pixels have the same gray-level (lambda=0). When lambda is different than zero, a quasi-flat zone is detected where two neighboring pixels belong to the same region if their difference gray-levels is smaller or equal lambda. The minimum label of the output image is 1 and the maximum is the number of flat-zones in the image.

Equation

See also

mmLabel Label a binary image.
mmSebox Create a box structuring element.
mmSecross Diamond structuring element and elementary 3x3 cross.
mmGrain Gray-scale statistics for each labeled region.
mmBlob Blob measurements from a labeled image.
[mmGrain] [Up] [mmStats]