Geoscience Reference
In-Depth Information
which opens a new Figure Window showing an RGB composite of the image
(Fig. 8.1). In contrast to the RGB image, a grayscale image needs only a single
array to store all the necessary information. We therefore convert the RGB
image into a grayscale image using the command rgb2gray (RGB to gray):
I2 = rgb2gray(I1);
h e new workspace listing now reads
Name Size Bytes Class Attributes
I1 729x713x3 1559331 uint8
Fig. 8.1 RGB true color image contained in the i le unconform.jpg . At er decompressing and
reading the JPEG i le into a 729-by-713-by-3 array, MATLAB interprets and displays the RGB
composite using the function imshow . See detailed description of the image on the NASA
TERRA-ASTER webpage: http://asterweb.jpl.nasa.gov. Original image courtesy of NASA/
GSFC/METI/ERSDAC/JAROS and U.S./Japan ASTER Science Team.
Search WWH ::




Custom Search