| [Top] [Up] [Prev] [Next] | [Up] [Basic Concepts] [Demonstrations] [Functions] | SDC Morphology Toolbox V1.1 15Jan02 |
y = mmcenter( f, b ) f: Gray-scale (uint8 or uint16) or binary image (logical uint8). b: Structuring element. Default: Elementary cross (mmsecross).y: Gray-scale (uint8 or uint16) or binary image (logical uint8). mmcenter creates the image y by computing recursively the morphological center, relative to the structuring element b, of the image f .f=mmreadgray('gear.tif'); g=mmcenter(f,mmsedisk(2)); mmshow(f); mmshow(g);
|


function y=mmcenter_equ( f, b ) y = f; diff = 0; while(diff~=1) aux = y; beta1 = mmasf(y,'COC',b,1); beta2 = mmasf(y,'OCO',b,1); y = mmunion(mmintersec(y,beta1),beta2); diff = mmisequal(aux,y); end;
| [Top] [Up] [Prev] [Next] | [Up] [Basic Concepts] [Demonstrations] [Functions] |
|
| Copyright (c) 1998-2002 by SDC Information Systems | ||