[Top] [Up] [Prev] [Next] [Up] [Basic Concepts] [Demonstrations] [Functions] SDC Morphology Toolbox V1.1 15Jan02

mmclohole - Close holes of binary and gray-scale images.


Synopsis
y = mmclohole( f, Bc )
Input
f: Gray-scale (uint8 or uint16) or binary image (logical uint8).
Bc: Structuring element. ( connectivity). Default: Elementary cross (mmsecross).
Output
y: Gray-scale (uint8 or uint16) or binary image (logical uint8). (same as f).
Description
mmclohole creates the image y by closing the holes of the image f, according with the connectivity defined by the structuring element Bc.The images can be either binary or gray-scale.
Examples

Binary image:

a = mmreadgray('pcb1bin.tif');
b = mmclohole(a);
mmshow(a);
mmshow(b);
image
(a)
image
(b)

Gray-scale image:

a = mmreadgray('boxdrill-B.tif');
b = mmclohole(a);
mmshow(a);
mmshow(b);
image
(a)
image
(b)
Equation

equation

Algorithm
function y=mmclohole_equ( f, bc)
  delta_f = mmframe(f);
  y = mmneg(mminfrec(delta_f,mmneg(f),bc)); 
See Also
mmareaclose - Area closing
mmframe - Create a frame image.
mmfreedom - Control automatic data type conversion.
mminfrec - Inf-reconstruction.
mmsebox - Create a box structuring element.
mmsecross - Cross structuring element.

[Top] [Up] [Prev] [Next] [Up] [Basic Concepts] [Demonstrations] [Functions] Valid XHTML 1.0!
Copyright (c) 1998-2002 by SDC Information Systems