[Top] [Up] [Prev] [Next] [Up] [Basic Concepts] [Demonstrations] [Functions] SDC Morphology Toolbox V1.1 15Jan02

mmwrite - Write a gray-scale image into a commercial file format.


Synopsis
mmwrite( f, filename )
Input
f: Gray-scale (uint8 or uint16) or binary image (logical uint8).
filename: String. Name of the file. Possible extensions: tif, hdf, jpg, bmp, pcx, xwd.
Description
mmwrite writes the image f in the file filename. This function calls the MATLAB function imwrite. If the format generated is BMP, PCX or XWD, a colormap is created to keep the compatibility with imwrite.
Examples
a= uint8( ones(5,5) );
mmwrite(a, 'ones5.bmp');
b = mmreadgray('ones5.bmp')
uint8 gray-scale image
b =
     1     1     1     1     1
     1     1     1     1     1
     1     1     1     1     1
     1     1     1     1     1
     1     1     1     1     1
See Also
mmreadgray - Read an image from a commercial file format and stores it as a gray-scale image.
Source code
mmwrite.m

[Top] [Up] [Prev] [Next] [Up] [Basic Concepts] [Demonstrations] [Functions] Valid XHTML 1.0!
Copyright (c) 1998-2002 by SDC Information Systems