| [Top] [Up] [Prev] [Next] | [Up] [Basic Concepts] [Demonstrations] [Functions] | SDC Morphology Toolbox V1.1 15Jan02 |
y = mmsupgen( f, INTER ) f: Binary image (logical uint8). INTER: Interval. y: Binary image (logical uint8). mmsupgen creates the binary image y by computing the transformation of the image f by the sup-generating operator characterized by the interval Iab. The sup-generating operator is just a relaxed template matching, where the criteria to keep a shape is that it be inside the interval Iab. Note that we have the classical template matching when a=b. Note yet that the sup-generating operator is equivalent to the classical hit-miss operator.f=mmbinary(uint8([ 0 0 1 0 0 1 1; 0 1 0 0 1 0 0; 0 0 0 1 1 0 0])) f = 0 0 1 0 0 1 1 0 1 0 0 1 0 0 0 0 0 1 1 0 0 i=mmendpoints; mmintershow(i) ans = . . . 0 1 0 0 0 0 g=mmsupgen(f,i) g = 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 |
a=mmbinary(mmreadgray('gear.tif')); Warning: Converting image from binary uint8 to uint8. b=mmsupgen(a,mmendpoints); mmshow(a); mmshow(mmdil(b));
|

function y=mmsupgen_equ( f, A, BC ) y = mmintersec(mmero(f,A),mmero(mmneg(f),BC));
| [Top] [Up] [Prev] [Next] | [Up] [Basic Concepts] [Demonstrations] [Functions] |
|
| Copyright (c) 1998-2002 by SDC Information Systems | ||