CHP - 1 - Fundamentals of Digital Image Min
CHP - 1 - Fundamentals of Digital Image Min
1
FUNDAMENTALS OF DIGITAL IMAGE
Unit structure:
1.0 Objectives
1.1. Introduction
1.1.1. What is Digital Image?
1.1.2. Relation between Pixels
1.1.3. Connectivity between Pixels
1.1.4. Distance Measures
1.2. Types of Image Processing.
1.3. Types of Digital Image
1.3.1. Monochrome Image (Binary image)
1.3.2. Grey Scale Image
1.3.3. Colour Image
1.3.4. Half-toned image
1.4. Fundamental Steps in Digital Image Processing
1.5. Components of an Image Processing System
1.6. Summary
1.7. Unit end exercise
1.8. Further Reading
1.0 OBJECTIVES
www.rocktheit.com www.facebook.com/rocktheit
2 Fundamentals of Digital Image
1.1 INTRODUCTION
Image processing is a method to convert an image into digital form and perform some
operations on it, in order to get an enhanced image or to extract some useful information
from it.
It is a type of signal dispensation in which input is image and output may be image or
characteristics of that image.
Image Processing systems treat images as two dimensional signals and apply signal
processing methods to them.
It is among rapidly growing technologies today, with its applications in various aspects of a
business.
Image Processing forms core research area within engineering and computer science
disciplines.
Image processing basically includes the following three steps.
Importing the image with optical scanner or by digital photography.
Analysing and manipulating the image which includes data compression and image
enhancement.
Output is the last stage in which result can be altered image or report that is based on
image analysis.
Purpose of Image processing:
The purpose of image processing is divided into 5 groups.
They are:
1. Visualization - Observe the objects that are not visible.
2. Image sharpening and restoration - To create a better image.
3. Image retrieval - Seek for the image of interest.
4. Measurement of pattern – Measures various objects in an image.
5. Image Recognition – Distinguish the objects in an image.
www.rocktheit.com www.facebook.com/rocktheit
3 Fundamentals of Digital Image
(0,0)
x
f(x,y)
www.rocktheit.com www.facebook.com/rocktheit
4 Fundamentals of Digital Image
Whenever the image is in digital format, the reproduction of the image is both faster and
cheaper.
When shooting a digital image, one can immediately see if the image is good or not.
Drawbacks of digital Images
A digital file cannot be enlarged beyond a certain size without compromising on quality
The memory required to store and process good quality images is very high.
www.rocktheit.com www.facebook.com/rocktheit
5 Fundamentals of Digital Image
Two image subsets S1 and S2 are adjacent if some pixel in S1 is adjacent to some pixel in
S2.
Path:
A (digital) path (curve) from pixel p with coordinates (x,y) to pixel q with coordinates (s,t) is
a sequence of distinct pixels:(x0,y0), (x1,y1), …, (xn,yn)where (x0,y0) = (x,y), (xn,yn) = (s,t),
and (xi,yi) is adjacent to (xi-1,yi-1), for 1≤i ≤n ; n is the length of the path.
www.rocktheit.com www.facebook.com/rocktheit
6 Fundamentals of Digital Image
If (xo, yo) = (xn, yn) ie. if the start point and end point are same than the path is known as a
closed path.
4-, 8-, m-paths can be defined depending on the type of adjacency specified.
For pixels p,q,z with coordinates (x,y), (s,t), (u,v), D is a distance function or metric if:
D(p,q) ≥ 0 (D(p,q)=0 iff p=q)
D(p,q) = D(q,p) and
D(p,z) ≤ D(p,q) + D(q,z)
Euclidean distance:
De(p,q) = [(x-s)2 + (y-t)2]1/2
D4 distance (city-block distance) between p & q:
D4(p,q) = |x-s| + |y-t|
The pixels having D4 distance from (x,y) less than or equal to some value r form a diamond
centered at (x,y).
e.g. pixels with D4≤2 from p(x,y) (center point).
2
2 1 2
2 1 0 1 2
2 1 2
2
www.rocktheit.com www.facebook.com/rocktheit
7 Fundamentals of Digital Image
D4 and D8 distances between p and q are independent of any paths that exist between the
points because these distances involve only the coordinates of the points (regardless of
whether a connected path exists between them).
However, for m-adjacency: The Dm distance between two points is defined as the shortest
m-path between the points.
The distance between two pixels will depend on the values of the pixels along the path as
well as the values of their neighbors.
e.g. assume p, p2, p4 = 1
p1, p3 = can have either 0 or 1
p3 p4 If only connectivity of pixels valued 1 is allowed,
and p and p are 0, the m-distance between p
1 3
p1 p2 and p is 2.(PP P )
4 2 4
Image processing can be classified in three types : low-level, mid-level and high-level
processing.
Low-level processing :
It’s a first step toward image processing.
Here input and output both are images.
www.rocktheit.com www.facebook.com/rocktheit
8 Fundamentals of Digital Image
Image can be categorised in four types: monochromatic image (binary image), grey scale
image, colour image and half-toned image.
1.3.1 Monochrome Image (Binary image)
It is a black and white image.
Each pixel is represented by either 0 bit or 1 bit.
Here 0 represents black and 1 represents white.
It is also called as bit mapped image.
1.3.2 Grey Scale Image
It’s a grey image with 0 to 255 shades of grey level.
Each pixel is represented by a byte (8 bit, hence 28 = 256 grey shades).
Here 0 represents black and 255 represents white.
1.3.3 Colour Image
Different colours are formed using three basic colours viz: Red, Green and Blue.
Each pixel requires RGB combination and each colour is represented using 8 bits.
1.3.4 Half-Toned Image
These images are also black and white images but it gives illusion of grey scale image.
The technique to achieve this illusion is known as half-toning.
The image matrix is filled with maximum black to get black shade and the level of black
filled blocks changes to get the illusion of grey shades.
This is mostly done as most of the black and white printers have only black cartridge so
grey scale shades can be produce with such printers.
Newspapers use this technique.
www.rocktheit.com www.facebook.com/rocktheit
9 Fundamentals of Digital Image
Fundamental Steps of Digital Image Processing : There are some fundamental steps but
as they are fundamental, all these steps may have sub-steps. The fundamental steps are
described below with a neat diagram.
www.rocktheit.com www.facebook.com/rocktheit
10 Fundamentals of Digital Image
(v) Wavelets and Multiresolution Processing : Wavelets are the foundation for
representing images in various degrees of resolution. Images subdivision successively into
smaller regions for data compression and for pyramidal representation.
(vi) Compression : Compression deals with techniques for reducing the storage required to
save an image or the bandwidth to transmit it. Particularly in the uses of internet it is very much
necessary to compress data.
(vii) Morphological Processing : Morphological processing deals with tools for extracting
image components that are useful in the representation and description of shape.
(viii) Segmentation : Segmentation procedures partition an image into its constituent parts or
objects. In general, autonomous segmentation is one of the most difficult tasks in digital image
processing. A rugged segmentation procedure brings the process a long way toward
successful solution of imaging problems that require objects to be identified individually.
(ix) Representation and Description : Representation and description almost always
follow the output of a segmentation stage, which usually is raw pixel data, constituting either
the boundary of a region or all the points in the region itself. Choosing a representation is only
part of the solution for transforming raw data into a form suitable for subsequent computer
processing. Description deals with extracting attributes that result in some quantitative
information of interest or are basic for differentiating one class of objects from another.
(x) Object recognition : Recognition is the process that assigns a label, such as, “vehicle”
to an object based on its descriptors.
www.rocktheit.com www.facebook.com/rocktheit
11 Fundamentals of Digital Image
Sensors
www.rocktheit.com www.facebook.com/rocktheit
12 Fundamentals of Digital Image
In other words, this unit performs functions that require fast data throughputs (e.g.,
digitizing and averaging video images at 30 frames/s) that the typical main computer
cannot handle.
The Computer
In an image processing system is a general-purpose computer and can range from a PC to
a supercomputer.
In dedicated applications, sometimes specially designed computers are used to achieve a
required level of performance, but our interest here is on general-purpose image
processing systems.
In these systems, almost any well-equipped PC-type machine is suitable for offline image
processing tasks.
Software
Softwares for image processing consists of specialized modules that perform specific tasks.
A well-designed package also includes the capability for the user to write code.
Mass storage
Capability is a must in image processing applications.
An image of size 1024*1024 pixels, in which the intensity of each pixel is an 8-bit quantity,
requires one megabyte of storage space if the image is not compressed.
Digital storage for image processing applications falls into three principal categories:
1. Short term storage for use during processing.
2. On-line storage for relatively fast recall.
3. Archival storage, characterized by infrequent access.
Storage is measured in bytes (eight bits), Kbytes (one thousand bytes), Mbytes (one million
bytes), Gbytes (meaning giga, or one billion, bytes), and T bytes (meaning tera, or one
trillion, bytes).
One method of providing short-term storage is computer memory.
Another is by specialized boards, called frame buffers, that store one or more images and
can be accessed rapidly, usually at video rates (e.g., at 30 complete images per second).
Online storage generally takes the form of magnetic disks or optical-media storage.
Image displays
In use today are mainly color (preferably flat screen) TV monitors.
Hardcopy devices
For recording images include laser printers, inkjet units.
www.rocktheit.com www.facebook.com/rocktheit
13 Fundamentals of Digital Image
Networking
Networking means exchange of information or services (eg through internet) among
individuals, groups, or institutions.
Networking is almost a default function in any computer system in use today.
Because of the large amount of data inherent in image processing applications, the key
consideration in image transmission is bandwidth.
1.6 SUMMARY
Image Processing systems treat images as two dimensional signals and apply signal
processing methods to them.
The purpose of image processing is divided into 5 groups, Visualization ,Image sharpening
and restoration, Image retrieval, Measurement of pattern , Image Recognition.
An image is an array, or a matrix, of square pixels (picture elements) arranged in columns
and rows (hence 2-dimentional).
There are three types of adjency : 4-adjacency, 8-adjacency and m-adjacency (mixed
adjacency)
Euclidean distance:
De(p,q) = [(x-s)2 + (y-t)2]1/2
Image processing can be classified in three types : low-level, mid-level and high-level
processing.
Image can be categorised in four types: monochromatic image (binary image), grey scale
image, colour image and half-toned image.
Fundamental Steps of Digital Image Processing :
Image Acquisition, Image Enhancement , Image Restoration, Colour Image Processing,
Wavelets and Multiresolution Processing, Compression, Morphological Processing,
Segmentation, Representation and Description, Object recognition, Knowledge Base.
www.rocktheit.com www.facebook.com/rocktheit
14 Fundamentals of Digital Image
b. Distance measures
c. Connectivity
d. Region
e. Edge
6) Consider the two image subsets, S1 and S2, shown in the following figure. For V={1},
determine whether these two subsets are
(a) 4-adjacent, (b) 8-adjacent, or (c) m-adjacent.
www.rocktheit.com www.facebook.com/rocktheit
15 Fundamentals of Digital Image
www.rocktheit.com www.facebook.com/rocktheit