| [Top] [Up] [Prev] [Next] | [Up] [Basic Concepts] [Demonstrations] [Functions] | SDC Morphology Toolbox V1.1 15Jan02 |
y = mmvbasin( f, v, Bc ) f: Gray-scale (uint8 or uint16) image. v: Volume parameter. Default: 1.Bc: Structuring element. Structuring element (connectivity). Default: Elementary cross (mmsecross).y: Gray-scale (uint8 or uint16) or binary image (logical uint8). 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.
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
|
f = mmreadgray('r4x2_256.tif'); s=f(10,1:end/2); t = mmvbasin(s,20); plot(s); plot([s',t']);
|
f = mmreadgray('n2538.tif'); mmshow(f); fb = mmvbasin(f,10000); mmshow(fb); mmshow(mmregmin(fb));
|
| [Top] [Up] [Prev] [Next] | [Up] [Basic Concepts] [Demonstrations] [Functions] |
|
| Copyright (c) 1998-2002 by SDC Information Systems | ||