Member of the support class.
imwrite(data, fname, ftype)
Writes data to an image file. The image size cannot exceed 1 megapixel.
| Name | Description | ||||||
| data | Specifies a matrix of real numbers that represent the image content. | ||||||
| fname | Specifies the filename. fname is a string. | ||||||
| ftype | Specifies the file type. ftype is a string that accepts the following values.
|
This function is not supported in the LabVIEW Run-Time Engine. Do not use this function in a stand-alone application or shared library.
z = peaks(30);
imwrite(z, 'ImageTest.jpg', 'JPEG');
z1 = imread('ImageTest.jpg', 'JPEG');
surf(z1)