08.01.2013 Views

DigitalVideoAndHDTVAlgorithmsAndInterfaces.pdf

DigitalVideoAndHDTVAlgorithmsAndInterfaces.pdf

DigitalVideoAndHDTVAlgorithmsAndInterfaces.pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 4.5 Pseudocolor<br />

(8-bit) graphics systems<br />

use a limited number of<br />

integers, usually 0<br />

through 255, to represent<br />

colors. Each pixel<br />

value is processed<br />

through a color lookup<br />

table (CLUT) to obtain<br />

red, green, and blue<br />

output values to be<br />

delivered to the monitor.<br />

Pseudocolor In a pseudocolor (or indexed color, or colormapped)<br />

system, several bits – usually 8 – comprise each pixel in<br />

an image or framebuffer. This provides a moderate<br />

number of unique codes – usually 256 – for each pixel.<br />

Pseudocolor involves “painting by numbers,” where the<br />

number of colors is rather small. In an 8-bit pseudocolor<br />

system, any particular image, or the content of<br />

the framebuffer at any instant in time, is limited to<br />

a selection of just 2 8 (or 256) colors from the universe<br />

of available colors.<br />

I reserve the term CLUT for<br />

pseudocolor. In grayscale and<br />

truecolor systems, the LUTs store<br />

transfer functions, not colors. In<br />

Macintosh, pseudocolor CLUT<br />

values are roughly, but not<br />

optimally, perceptually coded.<br />

8 bits (code 0…255)<br />

0<br />

…<br />

42 37 71<br />

…<br />

255<br />

Each code value is used as an index into a color lookup<br />

table (CLUT, colormap, or palette) that retrieves R’G’B’<br />

components; the DAC translates these linearly into<br />

voltage levels that are applied to the monitor. (Macintosh<br />

is an exception: Image data read from the CLUT is<br />

in effect passed through a second LUT.) Pseudocolor<br />

CLUT values are effectively perceptually coded.<br />

The CLUT and DACs of an 8-bit pseudocolor system are<br />

sketched in Figure 4.5 above. A typical lookup table<br />

retrieves 8-bit values for each of red, green, and blue,<br />

so each of the 256 different colors can be chosen from<br />

a universe of 2 24 , or 16777216, colors. (The CLUT may<br />

return 4, 6, or more than 8 bits for each component.)<br />

Pseudocolor image data is always accompanied by the<br />

associated colormap (or palette). The colormap may be<br />

38 DIGITAL VIDEO AND HDTV ALGORITHMS AND INTERFACES<br />

D<br />

A<br />

D<br />

A<br />

D<br />

243<br />

A<br />

CLUT<br />

R’<br />

G’<br />

B’

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!