Chapter Two
Chapter Two
1. Monochrome/Bit-Map Images
• Each pixel is stored as a single bit (0 or 1)
• The value of the bit indicates whether it is light or dark
• A 640 x 480 monochrome image requires 37.5 KB of storage
Fig 2.2: Monochrome 1-bit Lena image
2. Grayscale Images
• Each pixel is usually stored as a byte (value between 0 to 255)
• This value indicates the degree of brightness of that point. This
brightness goes from black to white
• A 640 x 480 grayscale image requires over 300 KB of storage.
Fig 2.3: Grayscale image of Lena
3. 8-bit Color Images
• One byte for each pixel
• Supports 256 out of the millions possible, acceptable color quality
• Requires Color Look-Up Tables (CLUTs)
Basically, the image stores not color, but instead just a set of bytes, each of
which is actually an index into a table with 3-byte values that specify the color
for a pixel with that lookup table index.
• A 640 x 480 8-bit color image requires 300 KB of storage (the same
as 8-bit grayscale)
Color Look-up Tables (LUTs)
• The idea used in 8-bit color images is to store only the index, or code
value, for each pixel. Then, e.g., if a pixel stores the value 25, the
meaning is to go to row 25 in a color look-up table (LUT).
➢For 25, R= 00011110, G=10111110 ,and B= 00111100
• GIF87a is the original format for indexed color images. It uses LZW
compression and has the option for being interlaced.
• GIF89a is the same, but also includes transparency and animation
capabilities.
• Interlaced (of video image) means scanned in such a way that
alternate lines form one sequence which is followed by the other
lines in a second sequence.
PNG
• Stands for Portable Network Graphics
• It is intended as a replacement for GIF in the WWW and image editing
tools.
• PNG uses unpatented zip technology for compression
• PNG-24 is another version of PNG, with 24-bit color support, allowing
ranges of color to a high color JPG
JPEG/JPG
• A standard for photographic image compression
• Created by the Joint Photographic Experts Group
• Intended for encoding and compression of photographs and similar
images
• Takes advantage of limitations in the human vision system to achieve
high rates of compression
• Uses complex lossy compression which allows user to set the desired
level of quality (compression). A compression setting of about 60%
will result in the optimum balance of quality and file size.
• Though JPGs can be interlaced, they do not support animation and
transparency unlike GIF
TIFF
• Stands for Tagged Image File Format.
• The support for attachment of additional information (referred to as
“tags”) provides a great deal of flexibility.
c) For gray, R′ = G′ = B′, the luminance Y′ equals to that gray, since 0.299+0.587+0.114
= 1.0. And for a gray (“black and white”) image, the chrominance (U, V ) is zero.
Fig 2.7: Y ′UV decomposition of color image.
Top image (a) is original color image;
(b) is Y ′; (c,d) are (U, V)
YIQ color model
• YIQ is used in NTSC color TV broadcasting. Again, gray pixels generate
zero (I, Q) chrominance signal.
(a) I and Q are a rotated version of U and V .
(b) Y ′ in YIQ is the same as in YUV; U and V are rotated by 33°: