| [Top] [Up] [Prev] [Next] | [Up] [Basic Concepts] [Demonstrations] [Functions] | SDC Morphology Toolbox V1.1 15Jan02 |
y = mmintersec( f1, f2, f3, f4, f5 ) f1: Gray-scale (uint8 or uint16) or binary image (logical uint8). f2: Gray-scale (uint8 or uint16) or binary image (logical uint8). Or constant. f3: Gray-scale (uint8 or uint16) or binary image (logical uint8). Or constant. Default: No parameter.f4: Gray-scale (uint8 or uint16) or binary image (logical uint8). Or constant. Default: No parameter.f5: Gray-scale (uint8 or uint16) or binary image (logical uint8). Or constant. Default: No parameter.f1, f2, f3, f4, f5 must have the same data type.y: Gray-scale (uint8 or uint16) or binary image (logical uint8). mmintersec creates the image y by taking the pixelwise minimum between the images f1, f2, f3, f4, and f5. When f1, f2, f3, f4, and f5 are binary images, y is the intersection of them.
f=uint8([255 255 0 10 0 255 250]);
g=uint8([ 0 40 80 140 250 10 30]);
y1=mmintersec(f,g)
y1 =
0 40 0 10 0 10 30
y2=mmintersec(f,uint8(0))
y2 =
0 0 0 0 0 0 0
|
a = mmreadgray('form-ok.tif'); b = mmreadgray('form-1.tif'); c = mmintersec(a,b); mmshow(a); mmshow(b); mmshow(c);
|
d = mmreadgray('tplayer1.tif'); e = mmreadgray('tplayer2.tif'); f = mmreadgray('tplayer3.tif'); g = mmintersec(d,e,f); mmshow(d); mmshow(e); mmshow(f); mmshow(g);
|


function g = mmintersec_equ(f1, f2) g = min(f1,f2);
| [Top] [Up] [Prev] [Next] | [Up] [Basic Concepts] [Demonstrations] [Functions] |
|
| Copyright (c) 1998-2002 by SDC Information Systems | ||