| [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])
print b
[False True False True]
c=mmgray(b)
print c
[ 0 255 0 255]
d=mmgray(b,'uint8',100)
print d
[ 0 100 0 100]
e=mmgray(b,'uint16')
print e
[ 0 65535 0 65535]
f=mmgray(b,'int32',0)
print 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 |