ENCMP100 Study Guide - Final Guide: Color Mapping, Colour Look-Up Table, Grayscale
Document Summary
Matlab includes two basic function for displaying images stored as a. Other useful functions imread (read image from graphic file) imfinfo (get information about an image) It"s convenient to think of image data as a matrix. Each element of this matrix represents a pixel of an image, and its value representing this pixel"s intensity (for grayscale images) or color. This matrix represents an image 3 x 9 pixels. For an indexed image, each of the values is mapped into a color based on a color map. It is a color look-up table: it may have any number of rows, but it must have exactly three columns. Each row is interpreted as a colour, with the first element specifying the intensity of red, the second the green and the third the blue. Rgb color intensity can be specified on the interval of 0 to 1: colormap returns the current color map.