| [mmmaxleveltype] [Up] [mmisbinary] | Image file I/O |
| User Feedback |
mmreadgray reads the image in filename and stores it in y, an uint8 gray-scale image (without colormap). If the input file is a color RGB image, it is converted to gray-scale using the equation: y = 0.2989 R + 0.587 G + 0.114 B. This functions uses de PIL module.
a=mmreadgray('cookies.tif')
mmshow(a)
![]() |
|
| a |
| [mmmaxleveltype] [Up] [mmisbinary] | |
| User Feedback | |
| Copyright (c) 1998-2008 by SDC Information Systems |