| [Top] [Up] [Prev] [Next] | [Up] [Basic Concepts] [Demonstrations] [Functions] | SDC Morphology Toolbox V1.1 15Jan02 |
y = mmgradm( f, Bdil, Bero ) f: Gray-scale (uint8 or uint16) or binary image (logical uint8). Bdil: Structuring element. for the dilation. Default: Elementary cross (mmsecross).Bero: Structuring element. for the erosion. Default: Elementary cross (mmsecross).y: Gray-scale (uint8 or uint16) or binary image (logical uint8). (same type of f).mmgradm creates the image y by the subtraction of the erosion of the image f by Bero of the dilation of f by Bdil.a = mmbinary(mmreadgray('small_bw.tif')); Warning: Converting image from binary uint8 to uint8. b = mmgradm(a); mmshow(a); mmshow(b);
|
c=mmgradm(a,mmsecross(0),mmsecross); d=mmgradm(a,mmsecross,mmsecross(0)); mmshow(a,c); mmshow(a,d);
|
a = mmreadgray('bloodcells.tif'); b = mmgradm(a); mmshow(a); mmshow(b);
|

function y=mmgradm_equ( f, bdil, bero) y = mmsubm(mmdil(f,bdil),mmero(f,bero));
| [Top] [Up] [Prev] [Next] | [Up] [Basic Concepts] [Demonstrations] [Functions] |
|
| Copyright (c) 1998-2002 by SDC Information Systems | ||