|[mmclohole] [Up] [mmareaopen]||Connected Operators|
Implemented in Python.
|y||Image Gray-scale (uint8 or uint16) or binary image.|
mmareaclose removes any pore (i.e., background connected component) with area less than
a of a binary image
f. The connectivity is given by the structuring element
Bc. This operator is generalized to gray-scale images by applying the binary operator successively on slices of
f taken from higher threshold levels to lower threshold levels.
The structuring elements allowed are the elementary cross (4-connected) and the elementary box (8-connected).
def mmareaclose(f, a, Bc=None): if Bc is None: Bc = mmsecross() y = mmneg(mmareaopen(mmneg(f),a,Bc)) return y
|[mmclohole] [Up] [mmareaopen]|
|Copyright (c) 2003, Roberto A. Lotufo, UNICAMP-University of Campinas; Rubens C. Machado, CenPRA-Renato Archer Research Center.|