[mmareaopen] [Up] [mmvmax] Connected Operators

mmvmin
Remove basins with volume less than v.

Synopsis

function y = mmvmin ( f , v , Bc )

Input

f Image Gray-scale (uint8 or uint16) image
v Double

Default: 1

Volume parameter.

Bc Structuring Element

Default: 3x3 elementary cross

Structuring element (connectivity).

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]);
b = mmvmin(a,10,mmsebox)
b =
   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:
f = mmreadgray('r4x2_256.tif');
s=f(10,1:end/2);
t = mmvmin(s,20);
plot(s);
plot([s',t']);
s t
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]