| [mmdatatype] [Up] [mmwrite] | 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 function calls the MATLAB function imread.
a=mmreadgray('cookies.tif');
mmshow(a);
![]() |
|
| a |
| mmwrite | Write a gray-scale image into a commercial file format. |
| [mmdatatype] [Up] [mmwrite] | |
| User Feedback | |
| Copyright (c) 1998-2008 by SDC Information Systems |