Multi Ch-3
Multi Ch-3
3
Image/Graphic Data Representation
• The number of file formats used in multimedia
continues to proliferate/multiply.
• GlF and JPG image file formats are the two
formats that most web browsers can
decompress and display them.
21
Image/Graphic Data Representation
21
Image/Graphic Data Representation
The number of pixels in the image determines the
resolution of the image.
A digital image consists of many picture elements, called
pixels
The number of pixels determines the quality of the
image- image resolution.
Higher resolution always yields better quality.
Types of Images
• There are two basic forms of computer graphics:
bit-maps and
vector graphics.
• The kind you use determines the tools you choose.
• Bitmap formats are the ones used for digital
photographs.
• Vector formats are used only for line drawings.
Bit-map images (also called Raster
Graphics)
• They are formed from pixels – a matrix of dots with
different colors.
• Bitmap images are defined by their dimension in
pixels as well as by the number of colors they
represent.
• For example, a 640X480 image contains 640 pixels
and 480 pixels in horizontal and vertical direction
respectively.
• If you enlarge a small area of a bit-mapped image,
you can clearly see the pixels that are used to create
it.
Vector graphics
21
The Figure shows a 1-bit monochrome image
( “Lena” - a standard image used to illustrate many algorithms).
22
8-bit Gray-Scale Images
• Each pixel is usually stored as a byte (value between 0 to
255).
• The entire image can be thought of as a two dimensional
array of pixel values.
• We refer to such an array as a bitmap, a representation of
the graphics/image data that parallels the manner in
which it is stored in video memory.
• 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. 23
The Figure shows a 8-bit gray-scale image
8-bit Color Images
• One byte for each pixel
• Supports 256 out of the millions possible, acceptable color
quality
• Requires Color Look-Up Tables (LUTs)
• A 640 x 480 8-bit color image requires 307.2 KB of storage
(the same as 8-bit greyscale).
• Examples: GIF
8-bit Color Images cont’
•
24-bit Color Images