[mmcloserecth] [Up] [mmgradm] Residues

mmcloseth
Closing Top Hat.

Synopsis

function y = mmcloseth ( f , b )

Input

f Image Gray-scale (uint8 or uint16) or binary image
b Structuring Element

Default: 3x3 elementary cross

Output

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

(Same type of f).

Description

mmcloseth creates the image y by subtracting the image f of its morphological closing by the structuring element b.

Examples

a = mmreadgray('danaus.tif');
mmshow(a);
b = mmcloseth(a,mmsebox(5));
mmshow(b); 
a b

Equation

Algorithm

function y=mmcloseth_equ( f, b)
  y = mmsubm(mmclose(f, b),f); 

See also

mmfreedom Control automatic data type conversion.
mmopenth Opening Top Hat.
mmcloserecth Close-by-Reconstruction Top-Hat.
mmgradm Morphological gradient.
mmclose Morphological closing.
[mmcloserecth] [Up] [mmgradm]