Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

imread (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the support class.

Syntax

a = imread(fname, ftype)

Description

Reads image data from a file. The image size cannot exceed 1 megapixel.

Details

Examples

Inputs

Name Description
fname Specifies the filename. fname is a string.
ftype Specifies the file type. ftype is a string that accepts the following values.

'BMP' BMP image
'JPEG' JPEG image
'PNG' PNG image

Outputs

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.

Details

This function is not supported in the LabVIEW Run-Time Engine. Do not use this function in a stand-alone application or shared library.

Examples

z = peaks(30);
imwrite(z, 'ImageTest.jpg', 'JPEG');
z1 = imread('ImageTest.jpg', 'JPEG');
surf(z1)

Related Topics

imwrite
peaks
surf


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit