Graphics Previous page   Next Page

Image CData

The CData property of an image object contains the data array. In the commands below, h is the handle of the image object created by image, and the matrices X and Y are the same.

The dimensionality of the CData array controls whether MATLAB displays the image using colormap colors or as an RGB image. If the CData array is two-dimensional, then the image is either an indexed image or an intensity image, and in either case the image is displayed using colormap colors. If, on the other hand, the CData array is m-by-n-by-3, then MATLAB displays it as a truecolor image, ignoring the colormap colors.


Previous page  The Image Object and Its Properties Image CDataMapping Next page

© 1994-2005 The MathWorks, Inc.