read image from graphics file
A = imread(filename)
reads the image from the file specified by filename, inferring the format of the file from its contents. If filename is a multi-image file, then imread reads the first image in the file.
filename
imread
Read image from graphics file:
A = imread('ngc6543a.jpg');
imread returns a 650-by-600-by-3 array, A.
A
Display the image.
image(A)
total contributions (2)
read image from graphics file
reads the image from the file specified by
filename
, inferring the format of the file from its contents. Iffilename
is a multi-image file, thenimread
reads the first image in the file.