IMREAD

 

 Read an image file.

  IMREAD('imagefile.raw') reads a "raw" image file produced by the

  Image Alchemy program from Handmade Software, Inc.

  [X,map] = IMREAD('imagefile.raw') returns both the image and a

  color map, so that

          [X,map] = imread('imagefile.raw');

          image(X)

          colormap(map)

  will display the result with the proper colors.

 

 

  Image Alchemy can be used to convert a GIF file, for example, with

          alchemy -r -c 128 -z 4 imagefile.gif

  The relevant options are:

          -r      Produce a "raw" file.

          -c 128  Limit the color map length to 128 colors.

          -z 4    Sort color map by luminance, so colormap(gray)

                  works pretty well.

 

 

  See also IMWRITE1EEUQXN, IMAGEGB9V8W, COLORMAPBOEE9I.