A = imread(filename)
[A, map] = imread(filename)
[A, map, transparency] = imread(filename)
| Paramètre | Description |
|---|---|
| filename | a vecteur ligne de caractères ou chaîne scalaire : nom du fichier graphique. |
| Paramètre | Description |
|---|---|
| A | Données d'image : tableau. |
| map | Colormap : matrice m-by-3. |
| transparency | Information de transparence : matrice. |
imread lit les données d'image du fichier donné et les charge dans une matrice.
| Format | Description |
|---|---|
| BMP | Windows Bitmap |
| GIF | Graphic Interchange Format (optionnel) |
| JPG | Joint Photographic Experts Group |
| TIFF | Tagged Image File Format |
| JPEG | Joint Photographic Experts Group |
| PCX | PiCture eXchange |
| 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 | version initiale |
| 1.13.0 | pcx, tiff formats added |