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.

The browser-safe palette forms<br />

a radix-6 number system with<br />

RGB digits valued 0 through 5.<br />

216 6 3<br />

=<br />

fixed, independent of the image, or it may be specific to<br />

the particular image (adaptive or optimized).<br />

A popular choice for a fixed CLUT is the browser safe<br />

palette comprising the 216 colors formed by combinations<br />

of 8-bit R’, G’, and B’ values chosen from the set<br />

{0, 51, 102, 153, 204, 255}. This set of 216 colors fits<br />

nicely within an 8-bit pseudocolor CLUT; the colors are<br />

perceptually distributed throughout the R’G’B’ cube.<br />

Pseudocolor is appropriate for images such as maps,<br />

schematic diagrams, or cartoons, where each color or<br />

combination is either completely present or completely<br />

absent at any point in the image. In a typical CLUT,<br />

adjacent pseudocolor codes are generally completely<br />

unrelated; for example, the color assigned to code 42<br />

has no necessary relationship to the color assigned to<br />

code 43.<br />

Conversion among types<br />

In Figure 4.1, traversal from left to right corresponds to<br />

conversions that can be accomplished without loss.<br />

Disregarding pseudocolor for the moment, data in any<br />

of the other four schemes of Figure 4.1 can be<br />

“widened” to any scheme to the right simply by<br />

assigning the codes appropriately. For example,<br />

a grayscale image can be widened to truecolor by<br />

assigning codes from black to white. Widening adds<br />

bits but not information.<br />

A pseudocolor image can be converted to hicolor or<br />

truecolor through software application of the CLUT.<br />

Conversion to hicolor is subject to the limited number<br />

of colors available in hicolor mode. Conversion to truecolor<br />

can be accomplished without loss, provided that<br />

the truecolor LUTs are sensible.<br />

Concerning conversions in the reverse direction, an<br />

image can be “narrowed” without loss only if it contains<br />

only the colors or shades available in the mode to its<br />

left in Figure 4.1; otherwise, the conversion will involve<br />

loss of shades and/or loss of colors.<br />

CHAPTER 4 RASTER IMAGES IN COMPUTING 39

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

Saved successfully!

Ooh no, something went wrong!