<< imagesc | Graphics functions | imshow >> |
A = imread(filename) |
[A, map] = imread(filename) |
[A, map, transparency] = imread(filename) |
a row vector characters or scalar string: name of graphics file.
Image data: array.
Colormap: m-by-3 matrix.
Transparency information: matrix.
imread reads the image data from the given file into a matrix.
Format | Description |
---|---|
BMP | Windows Bitmap |
GIF | Graphic Interchange Format (optional) |
JPG | Joint Photographic Experts Group |
JPEG | Joint Photographic Experts Group |
PNG | Portable Network Graphics |
PBM | Portable Bitmap |
PGM | Portable Graymap |
PPM | Portable Pixmap |
XBM | X11 Bitmap |
XPM | X11 Pixmap |
f = figure();
filename = [tempdir, 'ngc6543a.gif'];
websave(filename, 'https://solarviews.com/raw/ds/ngc6543a.gif');
img = imread(filename);
imagesc(img);
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET