Graphics Previous page   Next Page

8-Bit and 16-Bit Intensity Images

Whereas the range of double image arrays is usually [0, 1], the range of 8-bit intensity images is usually [0, 255] and the range of 16-bit intensity images is usually [0, 65535]. Use the following command to display an 8-bit intensity image with a grayscale colormap.

To convert an intensity image from double to uint16, first multiply by 65535.

Conversely, divide by 65535 after converting a uint16 intensity image to double.


Previous page  8-Bit and 16-Bit Indexed Images 8-Bit and 16-Bit RGB Images Next page

© 1994-2005 The MathWorks, Inc.