Digital Image Processing
Digital Image Processing
The field of digital image processing refers to processing digital images by means of a digital
computer.
2
3
Filtering
4
Image Enhancement
5
Image Enhancement(contd.)
6
Image Deblurring
7
Medical Imaging
8
Remote Sensing
9
Weather Forecasting
10
Atmospheric Study
11
Astronomy
12
Machine Vision Applications
13
Machine Vision Applications
Automated Inspection
14
Machine Vision Applications(contd.)
Texture Processing
15
Video Sequence Processing
16
17
18
The Origins of Digital Image Processing
• One of the first applications of digital images was in the newspaper industry, when pictures
were first sent by submarine cable between London and New York.
• Specialized printing equipment coded pictures for cable transmission and then reconstructed
19
The printing technique based on photographic reproduction made from
tapes perforated at the telegraph receiving terminal from 1921.
years
Laboratory.
22
What is an image?
An image can be defined as a 2D signal that varies over the spatial coordinates x and
y, and can be written mathematically as f (x, y).
Fig. 1. Digital Image Representation. a) Small Digital Image. b) Equivalent image content
23
in matrix form
What is a Digital Image ?
An image may be defined as a two- dimensional function, f(x,y) where x and y are
spatial (plane) coordinates, and the amplitude of f at any pair of coordinates (x, y)
When x, y, and the amplitude values of f are all finite, discrete quantities, we call
24
Image Representation
Picture elements, Image elements, pels, and pixels
• These elements are referred to as picture elements, image elements, pels, and pixels.
• Pixel is the term most widely used to denote the elements of a digital image.
25
Fundamentals of Image Processing
UNIT-1
Introduction
Fundamental steps in digital image processing
Components of an Image Processing systems
Image sampling and quantization
Basic relationship between pixels
Introduction to Fourier Transform and DFT
Properties of 2D FT
FFT
26
ANALOG VS DIGITAL IMAGE
27
Types of images
Binary images : The binary image as its name suggests, contain only
two pixel elements i.e 0 & 1,where 0 refers to black and 1 refers to
white. A binary image is referred to as a 1-bit image because it takes
only 1 binary digit to represent each pixel.
28
1. Astronomy
2. Medical
3. Biometrics
4. Vehicle Number plates
Recognition.
5. Geographic Information
System
31
31
Fundamental steps in Digital Image Processing
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Representation
Image & Description
Acquisition
Object
Recognition
Problem Domain
Colour Image Image
Processing Compression
32
32
Fundamental steps in Digital Image Processing
33
Image Enhancement:
Image Morphological
It is the process of bringing Restoration Processing
34
Image Restoration:
Image Morphological
Restoration Processing
It is the process of improving
the appearance of an image, Image
Segmentation
Enhancement
image restoration can be
done using mathematical or Representation
Image & Description
probabilistic models. Acquisition
Object
Problem Domain Recognition
Colour Image Image
Processing Compression
35
35
Morphological Processing:
Image Morphological
Restoration Processing
It is the set of processing
operations for morphing Image
Segmentation
Enhancement
images based on their
shapes ,basic morphological
Representation
Image & Description
operations like erosion and Acquisition
dilation .
Object
Problem Domain Recognition
Colour Image Image
Processing Compression
36
36
Image Segmentation:
Object
Problem Domain Recognition
Colour Image Image
Processing Compression
37
37
Representation & Description:
38
Object Recognition:
Image Morphological
Restoration Processing
Recognition assigns a label
to an object based on its
description Image
Segmentation
Enhancement
Representation
Image & Description
Acquisition
Object
Problem Domain Recognition
Colour Image Image
Processing Compression
39
39
Image Compression:
Representation
Image & Description
Acquisition
Object
Problem Domain Recognition
Colour Image Image
Processing Compression
40
40
Colour Image Processing:
Image Morphological
Colour image processing Restoration Processing
Representation
Image & Description
Acquisition
Object
Problem Domain Recognition
Colour Image Image
Processing Compression
41
41
Components of Image Processing System
Network
Image sensors
42
Problem
42
Components of Image Processing System(contd.)
Image sensors:
It consists of two major elements.
1)Physical Device: It produces electrical output proportional to light
energy.
2)Digitizers: It converts the electrical output into digital form.
Image processing hardware:
It usually consists of digitizers & hardware that performs other
primitive operations such as arithmetic & logical operations on entire
images.
Computer:
It is a general purpose computer and can range from pc to super
computer in keeping view of required level of performance.
43
43
Components of Image Processing System(contd.)
Hard copy:
The devices for recording images include laser printers, film cameras,
heat sensitive devices, inkjet devices & digital units.
Image displays:
We are using color and flat screen monitors as image displays.
Monitors are driven by outputs of image & graphics display cards the
are an integral parts of computer system.
Network:
It is almost a default function in any computer system in use today because of
44
Mass storage:
It 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.
45
Image Sampling and Quantization
46
46
Image Sampling and Quantization(contd.)
The samples are shown as block squares super imposed on function the
set of these discrete locations gives the sampled function.
In order to form a digital, the gray level values must also be converted
(quantized) into discrete quantities.
So we divide the gray level scale into eight discrete levels ranging from
black to white.
47
47
Image Sampling and Quantization
48
48
Basic Relationships between pixels
1. Neighbors of a Pixel:
A pixel p at coordinates (x,y) has four horizontal and vertical
neighbors whose coordinates are given by:
(x+1,y), (x-1, y), (x, y+1), (x,y-1)
x,y-1
x-1, y P(x,y) x+1,y
x, y+1
49
Basic Relationships between pixels(contd.)
The four diagonal neighbors of p have coordinates:
x+1, y+1), (x+1, y-1), (x-1, y+1), (x-1, y-1) and are denoted by ND (p).
x-1, y+1 x+1, y-1
P(x,y)
x-1, y-1 x+1, y+1
The points ND (p), together with the 4-neighbors, are called the 8-
neighbors of p, denoted by N8 (p). As before, some of the points in ND (p)
and N8 (p) fall outside the image if (x,y) is on the border of the image.
x-1, y+1 x,y-1 x+1, y-1
x-1, y P(x,y) x+1,y
x-1, y-1 x, y+1 x+1, y+1
As before, some of the points in ND (p) and N8 (p) fall outside the image
50
In a gray-scale image, the idea is the same, but V typically contains more
elements, for example,
V = {180, 181, 182, …, 200}.
If the possible intensity values 0 – 255, V set can be any subset of these
256 values.
51
51
Basic Relationships between pixels(contd.)
Types of Adjacency
52
53
Basic Relationships between pixels(contd.)
So, m-adjacency has eliminated the multiple path connection that has
been generated by the 8-adjacency.
54
54
Basic Relationships between pixels(contd.)
A Digital Path
Return to the previous example:
(a) (b)
(c)
In figure (b) the paths between the top right and bottom right
pixels are 8-paths. And the path between the same 2 pixels in
figure (c) is m-path.
55
55
Basic Relationships between pixels(contd.)
Connectivity
Let S represent a subset of pixels in an image, two pixels p and q are
said to be connected in S if there exists a path between them consisting
entirely of pixels in S.
56
56
Basic Relationships between pixels(contd.)
Region
Let R be a subset of pixels in an image, we call R a region of the
image if R is a connected set.
Boundary
The boundary (also called border or contour) of a region R.
It is the set of pixels in the region that have one or more neighbors
that are not in R.
57
57
Basic Relationships between pixels(contd.)
4. Distance Measures
For pixels p, q and z, with coordinates (x,y), (s,t) and (v,w), respectively,
D is a distance function if:
(a) D (p,q) ≥ 0 (D (p,q) = 0 if (p = q),
(b) D (p,q) = D (q, p), and
(c) D (p,z) ≤ D (p,q) + D (q,z).
Pixels having a distance less than or equal to some value r from (x,y)
form a disk of radius r centered at (x,y).
58
58
Basic Relationships between pixels(contd.)
The D4 distance (also called city-block distance) between p
and q is defined as:
D4 (p,q) = | x – s | + | y – t |
59
Basic Relationships between pixels(contd.)
60
60
Basic Relationships between pixels(contd.)
Dm distance: is defined as the shortest m-path between the points.
In this case, the distance between two pixels will depend on the
values of the pixels along the path, as well as the values of
their neighbors.
Example:
Consider the following arrangement of pixels and assume that p,
p2, and p4 have value 1 and that p1 and p3 can have a value of 0 or
1
Suppose that we consider
the adjacency of pixels
values 1 (i.e. V = {1})
61
61
Basic Relationships between pixels(contd.)
Case1:
If p1 =0 and p3 = 0
The length of the shortest m-path
(the Dm distance) is 2 (p, p2, p4)
Case2:
If p1 =1 and p3 = 0
now, p1 and p will no longer be adjacent
(see m-adjacency definition)
then, the length of the shortest 62
Case3: If p1 =0 and p3 = 1
now, p2 and p4 will no longer be adjacent (see m-
adjacency definition)
Then shortest –m-path will be 3 (p, p2, p3,
p4)
Case4: If p1 =1 and p3 = 1
now, p and p2 will no longer be adjacent (see m-
adjacency definition)
The length of the shortest m-path will be 4
(p, p1 , p2, p3, p4)
63
63
Introduction to Fourier Transform and DFT
67
Fig.1.After Applying DFT
68
69
Fig. Continuous Signal
70
71
72
73
Properties of Fourier Transform
74
75
76
77
78
79
Scaling:
Scaling is the method that is used to the change the range of the
independent variables or features of data.
Linearity:
80
81
Fast Fourier transform (FFT)
A fast Fourier transform (FFT) is a highly optimized implementation
of the discrete Fourier transform (DFT), which convert discrete signals
from the time domain to the frequency domain.
FFT.