Image Processing Toolbox Previous page   Next Page

Summary of Image Types and Numeric Classes

This table summarizes the way MATLAB interprets data matrix elements as pixel colors, depending on the image type and storage class.

Image Type
Storage Class
Interpretation
Binary

logical

Array of zeros (0) and ones (1)
Indexed1
double
Array of integers in the range [1, p]

uint8 or uint16
Array of integers in the range [0, p-1]
Intensity1
double
Array of floating-point values. The typical range of values is [0, 1].

uint8 or uint16
Array of integers. The typical range of values is [0, 255] or [0, 65535].
RGB (Truecolor)
double
m-by-n-by-3 array of floating-point values in the range [0, 1].

uint8 or uint16
m-by-n-by-3 array of integers in the range [0, 255] or [0, 65535].

1. The associated colormap is a p-by-3 array of floating-point values in the range [0, 1]. For intensity images the colormap is typically grayscale.


Previous page  Multiframe Image Arrays Converting Image Types Next page

Learn more about the latest releases of MathWorks products:

 © 1994-2009 The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS