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

mmvbasin - Remove basins with volume smaller than v.


Synopsis
y = mmvbasin( f, v, Bc )
Input
f: Gray-scale (uint8 or uint16) image.
v: Volume parameter. Default: 1.
Bc: Structuring element. Structuring element (connectivity). Default: Elementary cross (mmsecross).
Output
y: Gray-scale (uint8 or uint16) or binary image (logical uint8).
Description
mmvbasin This operator removes connected basins with volume smaller than v. This function is very similar to mmhbasin, but instead of using a depth criteria for the basin, it uses a volume criteria.
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 = mmvbasin(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 = mmvbasin(s,20);
plot(s);
plot([s',t']);
image
(s)
image
(t)

Image example:

f = mmreadgray('n2538.tif');
mmshow(f);
fb = mmvbasin(f,10000);
mmshow(fb);
mmshow(mmregmin(fb));
image
(f)
image
(fb)
image
(mmregmin(fb))
See Also
mmareaclose - Area closing
mmfreedom - Control automatic data type conversion.
mmhbasin - Remove basins with contrast smaller than h.
mmregmin - Regional Minimum (with generalized dynamics).
mmsebox - Create a box structuring element.
mmsecross - Cross structuring element.
mmvdome - Remove domes with volume smaller than v.

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