[mmclohole] [Up] [mmareaopen] | Connected Operators |
Implemented in Python.
f | Image Gray-scale (uint8 or uint16) or binary image. |
a | Double non negative integer. |
Bc | Structuring Element ( connectivity). Default:
|
y | Image Same type of
|
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
mmareaopen | Area opening |
mmlabel | Label a binary image. |
mmsebox | Create a box structuring element. |
mmsecross | Diamond structuring element and elementary 3x3 cross. |
mmfreedom | Control automatic data type conversion. |
mmclohole | Close holes of binary and gray-scale images. |
mmregmin | Regional Minimum (with generalized dynamics). |
[mmclohole] [Up] [mmareaopen] | ![]() |
Copyright (c) 2003, Roberto A. Lotufo, UNICAMP-University of Campinas; Rubens C. Machado, CenPRA-Renato Archer Research Center. |