Member of the support class.
a = imread(fname, ftype)
Reads image data from a file. The image size cannot exceed 1 megapixel.
| Name | Description | ||||||
| fname | Specifies the filename. fname is a string. | ||||||
| ftype | Specifies the file type. ftype is a string that accepts the following values.
|
| Name | Description |
| a | Returns the data LabVIEW reads from the file you specify in fname. a is a matrix of 64-bit, double-precision, floating-point numbers. |
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)