Lect 2
Lect 2
FUNDAMENTALS OF MULTIMEDIA
Bit Images
8-Bit Gray-Level Images
Image Data Types
24-Bit Color Images
8-Bit Color Images
Color Lookup Tables (LUTs)
Types of images (1-Bit Images)
3
Each pixel has a gray value between 0 and 255. Each pixel
is represented by a single byte. for example, a dark pixel
might have a value of 10, and a bright one might be 230.
Each pixel is usually stored as a byte (a value between 0 and
255), so a 640 × 480 gray scale image requires 300 kB of
storage (640 × 480 = 307,200).
8-Bit Gray-Level Images cont.
8
B
G Channel
Channel
8-Bit Color Images
11
The most straight forward way to make 8-bit lookup color out of 24-
bit color would be to divide the RGB cube into equal slices in each
dimension.
Then the centers of each of the resulting cubes would serve as the
entries in the color LUT, and simply scaling the RGB ranges 0 .. 255
into the appropriate ranges would generate the 8-bit codes.
Since humans are more sensitive to R and G than to B, we could
shrink the R range and G range 0 .. 255 into the 3-bit
and shrink the B range down to the 2-bit, making a total of 8 bits.
R Center G Center
B Cent.
0 to 31 16 0 to 31 16 0 to 63 32
32 to 63 47 32 to 63 47
64 to 95 78 64 to 95 78 64 to 96
96 to 127 109 96 to 127 109 127
128 to 159 140 128 to 159 140 28 to 160
191
160 to 191 171 160 to 191 171
192 to 204
192 to 223 202 192 to 223 202
255
224 to 255 233 224 to 255 233
After Mapping
19
Blue
Read Green