[mmareaopen] [Up] [mmvmax] Connected Operators

mmvmin
Remove basins with volume less than v.

Synopsis

y = mmvmin ( f , v = 1, Bc = NullStrel )

Input

f Image Gray-scale (uint8 or uint16) image

v Double

Volume parameter.

Default: 1 (1)

Bc Structuring Element

Structuring element (connectivity).

Default: NullStrel (3x3 elementary cross)

Output

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

Description

mmvmin This operator removes connected basins with volume less than v. This function is very similar to mmhmin , but instead of using a depth criterion for the basin, it uses a volume criterion.

Examples

Numerical example:
a = uint8([
    [10,   3,   6,  18,  16,  15,  10],
    [10,   9,   6,  18,   6,   7,  10],
    [10,   9,   9,  15,   4,   9,  10],
    [10,  10,  10,  10,  10,  10,  10]])
print mmvmin(a,10,mmsebox())
[[10  8  8 18 16 15 10]
 [10  9  8 18  9  9 10]
 [10  9  9 15  9  9 10]
 [10 10 10 10 10 10 10]]
Signal example:
Image example:
f = mmreadgray('n2538.tif')
mmshow(f)
fb = mmvmin(f,10000)
mmshow(fb)
mmshow(mmregmin(fb))
f fb mmregmin(fb)

See also

mmsebox Create a box structuring element.
mmsecross Diamond structuring element and elementary 3x3 cross.
mmfreedom Control automatic data type conversion.
mmhmin Remove basins with contrast less than h.
mmvdome Obsolete, use mmvmax.
mmareaclose Area closing
mmregmin Regional Minimum (with generalized dynamics).
[mmareaopen] [Up] [mmvmax]