Page 208 - MATLAB Recipes for Earth Sciences
P. 208
8.3 Importing, Processing and Exporting Images 203
Fig. 8.2 Grayscale image. After converting the RGB image stored in a 729x713x3 array
into a grayscale image stored in a 729x713 array, the result is displayed using imshow.
Original image courtesy of NASA/GSFC/METI/ERSDAC/JAROS and U.S./Japan ASTER
Science Team.
The display of the image
imshow(unconform1),figure,imshow(x,map)
clearly shows the difference between the original 24-bit RGB image
3
(256 ca. 16.7 million different colors) and a color image of only 16 differ-
ent colors (Fig. 8.1 and 8.3).