Exercises

Graphic/Image Data Representation

Exercise 1

Briefly explain why we need to be able to have less than 24-bit color and why this makes for a problem.

Generally, what do we need to do to adaptively transform 24-bit color values to 8-bit ones?

Exercise 2

Suppose we decide to quantize an 8-bit grayscale image down to just 2 bits of accuracy. What is the simplest way to do so? What ranges of byte values in the original image are mapped to what quantized values?

Exercise 3

Suppose we have available 24 bits per pixel for a color image. However, we notice that humans are more sensitive to R and G than to B — in fact, 1.5 times more sensitive to R or G than to B.

How could we best make use of the bits available?