| [mmfreedom] [Up] [mmframe] | Data Type Conversion |
| User Feedback |
mmgray converts a binary image into a gray-scale image of a specified data type. The value k1 is assigned to the 1 pixels of f, while the 0 pixels are assigned to the minimum value associated to the specified data type.
b = mmbinary([0, 1, 0, 1]);
Warning: converting image from double to int32
c = mmgray(b)
c =
0 255 0 255
d = mmgray(b,'uint8',100)
d =
0 100 0 100
e = mmgray(b,'uint16')
e =
0 65535 0 65535
format short g
f = mmgray(b,'int32',0)
f = -2147483647 0 -2147483647 0

| mmfreedom | Control automatic data type conversion. |
| mmbinary | Convert a gray-scale image into a binary image |
| mmthreshad | Threshold (adaptive) |
| mmis | Verify if a relationship among images is true or false. |
| [mmfreedom] [Up] [mmframe] | |
| User Feedback | |
| Copyright (c) 1998-2008 by SDC Information Systems |