Image Processing Toolbox | ![]() ![]() |
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 |
An array of zeros (0) and ones (1) |
|
Indexed1 |
double |
An array of integers in the range [1, p] |
uint8 or uint16 |
An array of integers in the range [0, p-1] |
|
Intensity1 |
double |
An array of floating-point values. The typical range of values is [0, 1]. |
uint8 or uint16 |
An array of integers. The typical range of values is [0, 255] or [0, 65535]. |
|
RGB (Truecolor) |
double |
An m-by-n-by-3 array of floating-point values in the range [0, 1]. |
uint8 or uint16 |
An 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.
![]() | Multiframe Image Arrays | Converting Image Types | ![]() |