| [mmtoggle] [Up] [mmintersec] | Operations |
| User Feedback |
mmaddm creates the image y by pixelwise addition of images f1 and f2. When the addition of the values of two pixels saturates the image data type considered, the greatest value of this type is taken as the result of the addition.
f = uint8([255, 255, 0, 10, 0, 255, 250])
g = uint8([ 0, 40, 80, 140, 250, 10, 30])
y1 = mmaddm(f,g)
print y1
[255 255 80 150 250 255 255]
y2 = mmaddm(g, 100)
Warning: upcasting image from scalar to uint8
print y2
[100 140 180 240 255 110 130]

| [mmtoggle] [Up] [mmintersec] | |
| User Feedback | |
| Copyright (c) 1998-2008 by SDC Information Systems |