| [mmsymdif] [Up] [mmimg2se] | Operations |
| User Feedback |
| f1 | Image Gray-scale (uint8 or uint16) or binary image |
| f2 | Image Gray-scale (uint8 or uint16) or binary image
Or constant |
| f3 | Image Gray-scale (uint8 or uint16) or binary image
Default: Or constant. |
| f4 | Image Gray-scale (uint8 or uint16) or binary image
Default: Or constant. |
| f5 | Image Gray-scale (uint8 or uint16) or binary image
Default: Or constant. |
| y | Image |
mmunion creates the image y by taking the pixelwise maximum between the images f1, f2, f3, f4, and f5. When f1, f2, f3, f4, and f5 are binary images, y represents the union of them.
f=uint8([255 255 0 10 0 255 250]);
g=uint8([ 0 40 80 140 250 10 30]);
y1=mmunion(f,g)
y1 = 255 255 80 140 250 255 250
y2=mmunion(f, 255)
Warning: converting image from scalar to uint8 y2 = 255 255 255 255 255 255 255
a = mmreadgray('form-ok.tif');
b = mmreadgray('form-1.tif');
c = mmunion(a,b);
mmshow(a);
mmshow(b);
mmshow(c);
![]() |
![]() |
|
| a | b |
![]() |
|
| c |


function g = mmunion_equ(f1, f2) g = max(f1,f2);
| mmfreedom | Control automatic data type conversion. |
| mmintersec | Intersection of images. |
| [mmsymdif] [Up] [mmimg2se] | |
| User Feedback | |
| Copyright (c) 1998-2008 by SDC Information Systems |