Professional Documents
Culture Documents
Topic 004 - Image Representation
Topic 004 - Image Representation
Image Representation
|
Introduction
• Image - this is a 2D or 3D
representation of an object
–There are 2 types
• Analog
• Digital
|
Image Representation
• Analog
– Be printed/developed
– Captured using analog camera
• Digital
– A representation usually in 0s and 1s done by computer or any
other digital system
– Graphics is similar even though something considered as
computer generated
|
Image Representation
|
Pixel
|
Bit Color Depth
|
Bit Colour Depth
32 bit.png
1 bit.png 2 bit.png 4 bit.png 8 bit.png
4,294,967,296
2 colours 4 colours 16 colours 256 colours
colours
4 KB (-96%) 6 KB (-94%) 13 KB (-87%) 37 KB (-62%)
98 KB
|
Binary Colour Depth
|
Grey scale Colour Depth
|
Grey scale Colour Depth
• 0 = 00000000
–127 = 01111111
–128 = 10000000
• 255 = 11111111
|
Grey scale Colour Depth
|
Grey scale Colour Depth
• A very limited but true direct color system,
• 3 bits (8 possible levels) for each of the R and G
components, and the two remaining bits in the byte
pixel to the B component (four levels), enabling 256 (8×
8 × 4) different colors.
• The normal human eye is less sensitive to the blue
component than to the red or green (two thirds of the
eye's receptors process the longer wavelengths), so it is
assigned one bit less than the others.
|
Coloured
• Pixel is represented using 24 bits
– 8 bits per color i.e. (red, green, blue)
– The total number of possible colours is given by 224 colours
• They have almost all details – exact colours of the image.
• Occupies large space.
• Examples:
– Photographic images
– Computer generated images
– Scanned images (Computed Tomography)
|
Colour Depth
|
Colour Depth
|
Indexed
• Each pixel will be represented using an index.
• Index points to a location in a map (an array of colour
elements also know as a palette) with the colours
representing that image.
• The map stores only those colors for the image in
consideration.
• Map represented from an image by a number.
– e.g. if the image referring colours 0.12, 0.53, 0.8 in the map.
|
Indexed
• When an image is
encoded in this way,
color information is not
directly carried by the
image pixel data, but
is stored in a separate
piece of data called a
palette
|
Image Size
• Binary:
– Each pixel has 1 bit.
– An eighth of a byte.
– 8 pixels = 1 byte.
– For an image of 64 x 64 pixels
• (64 x 64)/8 = 512 bytes.
• A 600 x 600 image will have 360000 pixels
– No of bits = 360000/8 = 45000 Bytes ~ 45KB ~ 0.043MB
|
Image Size
• Grey scale: • Colours RGB:
– Each pixel has 8 bits = 1 byte. – Each pixel has 24 bits.
– For same image of 64 x 64 – For same image of 64 x 64
pixels. pixels.
• 64 x 64 = 4096 bytes = 4KB. • (64 x 64 x 24)/8 = 12kbs.
• A 600 x 600 image will have 360000 • A 600 x 600 image will have 360000
pixels pixels
• No of bits = 360000x8/8 = 360000 • No of bits = 360000x24/8 =
Bytes ~ 351.56KB ~ 0.34MB 1080000 Bytes ~ 1054.69KB ~
1.03MB
|
Image Resolution
|
Image Resolution
• As the megapixels in a portable device in your camera
increase so does the possible maximum size image you
can produce.
• Cameras are categorized in terms of the no of pixels
there on 1M pixel cameras = 1 million pixels to represent
the image.
• This means that a 5 megapixel camera is capable of
capturing a larger image than a 3 megapixel camera.
|
Image Resolution
• Aspect ratio
– This is the ratio of the width to
the height of an image that can
be produced by a digital
camera.
• E.g.
– 480 : 640, aspect ratio 3:4.
– 8.5 inches by 11 ~ 2:3
|
Image Resolution
• Display/Monitor Resolution
– Number of pixels per inch (ppi) on a monitor
– Windows systems usually have 96ppi resolution.
– Some high resolution video adapters/monitors
support 120ppi.
|
Image Resolution
• Output Resolution
– Refers to number of dots per inch (dpi) on a (hard
copy) output device.
– Many professional printers have 300dpi or 600dpi
resolution.
– High-quality image setters can print at a range
between 1200dpi and 2400dpi, or higher.
|
Image Resolution
|
HSB Colour Model
|
HSB Colour Model
|
HSB Colour Model
|
YUV Colour Model
• A color encoding system used for analog television, such
as NTSC and PAL.
• The YUV color model represents the human perception
of color more closely than the standard RGB model used
in computer graphics hardware.
• In YUV, Y is the luminance (brightness) component while
U and V are the chrominance (color) components
|
YUV Colour Model
|
Gamut
|
Digital Image Processing
|
Digital Image Processing
|
Digital Image Processing
– Image recognition is concerned with the techniques
for recovering information about objects in the image.
A sub-area is character recognition.
– Image enhancement is concerned with the technique
to improve the image and to correct some defects,
such as, colour and tonal adjustment,
Transformations, e.g., scale, rotate, Special effects,
e.g., texture, stylize, blur, sharpen.
|
FUNDAMENTALS STEPS IN IMAGE PROCESSING
• Image Acquisition. (Imaging)
• Image Sampling and Quantization and Compression. (Imaging)
• Image enhancement and restoration.(processing)
• Image Segmentation.
• Image Feature Extraction. (analysis)
• Image Representation. (analysis)
• Image Recognition. (understanding)
|
Questions & Discussion
• https://www.tutorialspoint.com/dip/index.htm
• https://www.youtube.com/watch?v=C2P9iDq-sN0
08/21/2021 |
Ole Sangale Road, Madaraka Estate. PO Box 59857-00200, Nairobi, Kenya
Tel +254 (0)20 606155, 606268, 606380 Fax +254 (0)20 607498
Mobile +254 (0)722 25 428, (0)733 618 135 Email info@strathmore.edu
www.strathmore.edu |