Exercise 1 -- Digital Representations
Due: Tuesday, October 6, 1998 (in class)
Knowing this, however, one might wonder what ever happened to 16 bits. Being a multiple of 8, it would be a natural candidate for a color image representation scheme, but we never talked about it. Well, it does exist. On some Macs, when you go to configure monitor options, you are given three choices: "256 colors", "thousands of colors" and "millions of colors". The "thousands" option corresponds to 16-bit color. The question is, "How does it work?"
In this question, I won't ask you to figure out how it works, but I would like you to explore ways it might work. The two obvious candidates are that 16-bit color might mimic either 24-bit color or 8-bit color.
If 16-bit color mimics 24-bit color, then the 16 bits would have to be divided up into three sub-pieces: one to describe redness, one for greenness and one for blueness. Unfortunately, 16 doesn't divide in 3 very well, so one would have to waste one bit and use three 5-bit numbers to describe the components of a color (letting the last bit go to waste).
If 16-bit color works like 8-bit color, then each image file would contain both a "pallete" listing the 24-bit color descriptions for all of the distinct colors that appear in the image and a table of containing one 16-bit number for each pixels in the image. Each 16-bit number would be interpreted as the position in the list of 24-bit colors containing the color of the pixel associated with the 16-bit number.
d(t) x c(t)
Where I explained that:
I lied. In most real transmission systems, the signal actually sent is more likely to be described by:
( 1 - d(t)/r) x c(t)
where r is a value greater than or equal to 1. Note, when r equals 1 this is just the opposite of the scheme above. Namely, a "0" bit is encoded by sending the carrier signal and a "1" is encoded by sending nothing.
I'd like you explore how this signal behaves when r is not 1.
If you have questions, you are encouraged to ask them through the discussion area for this homework assignment