Digital Image Processing Introduction
Digital Image Processing Introduction
Digital Image Processing Introduction
Processing
Dr.S.Deepa
Assistant Professor
SRM Institute of Science and Technology
[email protected]
Outline
► Definition
► Image Sampling and Quantization
► Types of Digital Images
► Stages in Digital Image processing
► Applications
2
Digital Image
► A digital image is a representation of a two-dimensional
image as a finite set of digital values, called picture
elements or pixels.
4
Image Acquisition Process
5
Introduction
► What is Digital Image Processing?
Digital Image
— a two-dimensional function f ( x, y )
x and y are spatial coordinates
The amplitude of f is called intensity or gray level at the point (x, y)
Pixel
— the elements of a digital image
6
A Simple Image Formation Model
f ( x, y ) i ( x, y )r ( x, y )
7
Some Typical Ranges of Reflectance
► Reflectance
9
Image Sampling and
Quantization
Digitizing the
amplitude
values
Digitizing the
coordinate
values
10
Image Sampling and Quantization
11
Representing Digital Images
12
Representing Digital Images
13
Representing Digital Images
14
Types of Digital Images
► Intensity image or monochrome image: Each pixel
corresponds to light intensity normally represented in gray
scale.
15
Image Resolution
► Resolution refers to the number of pixels in an image. The
amount of resolution required depends on the amount of
details we are interested in. We will now take a look at
Image and Intensity Resolution of a digital image.
► Spatial resolution: It is a measure of the smallest
discernible detail in an image. Vision specialists state it
with dots (pixels) per unit distance, graphic designers state
it with dots per inch (dpi).
► Intensity Level Resolution: It refers to the number of
intensity levels used to represent the image. The more
intensity levels used, the finer the level of detail
discernable in an image. Intensity level resolution is usually
given in terms of the number of bits used to store each
intensity level. 16
17
18
Representing Digital Images
b=M×N×k
19
20
21
22
Key Stages in Digital Image Processing
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Image Object
Acquisition Recognition
Representation
Problem Domain
& Description
Colour Image Image
Processing Compression 23
Key Stages in Digital Image Processing:
Image Aquisition
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Image Object
Acquisition Recognition
Representation
Problem Domain
& Description
Colour Image Image
Processing Compression 24
25
Key Stages in Digital Image Processing:
Image Enhancement
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Image Object
Acquisition Recognition
Representation
Problem Domain
& Description
Colour Image Image
Processing Compression 26
27
► Image enhancement is the procedure of
improving the quality and information
content of original data before processing.
► For example, you can remove noise,
sharpen, or brighten an image, making it
easier to identify key features.
28
Here are some useful examples and methods of image
enhancement:
► Filtering with morphological operators
► Histogram equalization
► Noise removal using a Wiener filter
► Linear contrast adjustment
► Median filtering
► Unsharp mask filtering
► Contrast-limited adaptive histogram equalization (CLAHE)
► Decorrelation stretch
29
Correcting nonuniform illumination with morphological
operators.
30
Key Stages in Digital Image Processing:
Image Restoration
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Image Object
Acquisition Recognition
Representation
Problem Domain
& Description
Colour Image Image
Processing Compression 31
Image Restoration
► To restore extremely blurred or degraded
image. Images blurred due to many factors
like relative motion between camera and a
moving car (eg. Image of a speeding car).
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Image Object
Acquisition Recognition
Representation
Problem Domain
& Description
Colour Image Image
Processing Compression 34
► Morphology is a broad set of image processing operations
that process images based on shapes. Morphological
operations apply a structuring element to an input image,
creating an output image of the same size.
35
Dilation
Erosion
36
37
Key Stages in Digital Image Processing:
Segmentation
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Image Object
Acquisition Recognition
Representation
Problem Domain
& Description
Colour Image Image
Processing Compression 38
39
Types of Segmentation
► Thresholding Segmentation.
► Edge-Based Segmentation.
► Region-Based Segmentation.
► Watershed Segmentation.
► Clustering-
Based Segmentation Algorithms.
► Neural Networks for Segmentation.
https://www.mathworks.com/discovery/image
-segmentation.html
40
Key Stages in Digital Image Processing:
Object Recognition
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Image Object
Acquisition Recognition
Representation
Problem Domain
& Description
Colour Image Image
Processing Compression 41
42
► https://www.mathworks.com/solutions/imag
e-video-processing/object-recognition.html
43
Key Stages in Digital Image Processing:
Representation & Description
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Image Object
Acquisition Recognition
Representation
Problem Domain
& Description
Colour Image Image
Processing Compression 44
45
46
Key Stages in Digital Image Processing:
Image Compression
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Image Object
Acquisition Recognition
Representation
Problem Domain
& Description
Colour Image Image
Processing Compression 47
48
Key Stages in Digital Image Processing:
Colour Image Processing
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Image Object
Acquisition Recognition
Representation
Problem Domain
& Description
Colour Image Image
Processing Compression 49
50
51
52
53
54
55
Applications
&
Research Topics
56
Document Handling
57
Signature Verification
58
Biometrics
59
Fingerprint Verification /
Identification
60
Object Recognition
61
Object Recognition Research
reference view 1 reference view 2
62
Indexing into Databases
► Shape content
63
Indexing into Databases
(cont’d)
► Color, texture
64
Target Recognition
► Department of Defense (Army, Airforce,
Navy)
65
Interpretation of Aerial
Photography
Interpretation of aerial photography is a problem domain in both
computer vision and registration.
66
Autonomous Vehicles
► Land, Underwater, Space
67
Traffic Monitoring
68
Face Detection
69
Face Recognition
70
Facial Expression Recognition
71
Hand Gesture Recognition
► Smart Human-Computer User Interfaces
► Sign Language Recognition
72
Human Activity Recognition
73
Medical Applications
► skin cancer breast cancer
74
Morphing
75
Inserting Artificial Objects into a Scene
76
Companies In this Field In India
► Sarnoff Corporation
► Kritikal Solutions
► National Instruments
► GE Laboratories
► Ittiam, Bangalore
► Interra Systems, Noida
► Yahoo India (Multimedia Searching)
► nVidia Graphics, Pune (have high requirements)
► Microsoft research
► DRDO labs
► ISRO labs
►… 77
78
Neighborhood Operations in Images
79
Basic Relationships Between Pixels
► Neighborhood
► Adjacency
► Connectivity
► Paths
80
Basic Relationships Between Pixels
► Adjacency
Let V be the set of intensity values
82
Basic Relationships Between Pixels
► Adjacency
Let V be the set of intensity values
(ii) q is in the set ND(p) and the set N4(p) ∩ N4(p) has no pixels whose
values are from V.
83
Basic Relationships Between Pixels
► Path
A (digital) path (or curve) from pixel p with coordinates (x0, y0) to pixel
q with coordinates (xn, yn) is a sequence of distinct pixels with
coordinates
We can define 4-, 8-, and m-paths based on the type of adjacency
used.
84
Examples: Adjacency and Path
V = {1, 2}
0 1 1 0 1 1 0 1 1
0 2 0 0 2 0 0 2 0
0 0 1 0 0 1 0 0 1
85
Examples: Adjacency and Path
V = {1, 2}
0 1 1 0 1 1 0 1 1
0 2 0 0 2 0 0 2 0
0 0 1 0 0 1 0 0 1
8-adjacent
86
Examples: Adjacency and Path
V = {1, 2}
0 1 1 0 1 1 0 1 1
0 2 0 0 2 0 0 2 0
0 0 1 0 0 1 0 0 1
8-adjacent m-adjacent
87
Examples: Adjacency and Path
V = {1, 2}
0 1 1
1,1 1,2 1,3 0 1 1 0 1 1
0 2 0
2,1 2,2 2,3 0 2 0 0 2 0
0 0 1
3,1 3,2 3,3 0 0 1 0 0 1
8-adjacent m-adjacent
The 8-path from (1,3) to (3,3): The m-path from (1,3) to (3,3):
(i) (1,3), (1,2), (2,2), (3,3) (1,3), (1,2), (2,2), (3,3)
(ii) (1,3), (2,2), (3,3)
88
Basic Relationships Between Pixels
► Connected in S
Let S represent a subset of pixels in an image. Two pixels
p with coordinates (x0, y0) and q with coordinates (xn, yn)
are said to be connected in S if there exists a path
Where i, 0 i n, ( xi , yi ) S
89
Basic Relationships Between Pixels
90
Basic Relationships Between Pixels
The boundary of the region R is the set of pixels in the region that
have one or more neighbors that are not in R.
If R happens to be an entire image, then its boundary is defined as the
set of pixels in the first and last rows and columns of the image.
91
Distance Measures
b. D(p, q) = D(q, p)
92
Distance Measures
a. Euclidean Distance :
De(p, q) = [(x-s)2 + (y-t)2]1/2
93
Introduction to Mathematical Operations in
DIP
► Array vs. Matrix Operation
94
Arithmetic Operations
95
Example: Addition of Noisy Images for Noise Reduction
96
97
An Example of Image Subtraction: Mask Mode Radiography
98
99
An Example of Image Multiplication
100
Set and Logical Operations
101
Set and Logical Operations
► Let A be the elements of a gray-scale image
The elements of A are triplets of the form (x, y, z), where
x and y are spatial coordinates and z denotes the intensity
at the point (x, y).
A {( x, y, z ) | z f ( x, y )}
► The complement of A is denoted Ac
Ac {( x, y, K z ) | ( x, y, z ) A}
K 2k 1; k is the number of intensity bits used to represent z
102
Set and Logical Operations
► The union of two gray-scale images (sets) A and B is
defined as the set
A B {max(a, b) | a A, b B}
z
103
Set and Logical Operations
104
Set and Logical Operations
105
Spatial Operations
► Single-pixel operations
Alter the values of an image’s pixels based on the intensity.
s T ( z)
e.g.,
106
Spatial Operations
► Neighborhood operations
107
Spatial Operations
► Neighborhood operations
108
Geometric Spatial Transformations
► Geometric transformation (rubber-sheet transformation)
— A spatial transformation of coordinates
( x, y ) T {(v, w)}
— intensity interpolation that assigns intensity values to the spatially
transformed pixels.
► Affine transform
t11 t12 0
x y 1 v w 1 t21 t22 0
t31 t32 1
109
110
Image Registration
111
Image Registration
x c1v c2 w c3vw c4
y c5v c6 w c7 vw c8
112
Image Registration
113
Image Transform
M 1 N 1
f ( x, y ) T (u , v) s ( x, y, u , v)
u 0 v 0
115
Image Transform
116
Example: Image Denoising by Using DCT Transform
117
Forward Transform Kernel
M 1 N 1
T (u , v) f ( x, y )r ( x, y , u , v )
x 0 y 0
M 1 N 1
T (u , v) f ( x, y )e j 2 ( ux / M vy / N )
x 0 y 0
M 1 N 1
1
f ( x, y )
MN
T (u, v)e
u 0 v 0
j 2 ( ux / M vy / N )
120
Probabilistic Methods
Let zi , i 0, 1, 2, ..., L -1, denote the values of all possible intensities
in an M N digital image. The probability, p( zk ), of intensity level
zk occurring in a given image is estimated as
nk
p ( zk ) ,
MN
where nk is the number of times that intensity zk occurs in the image.
L 1
p( z ) 1
k 0
k
122
Example: Comparison of Standard Deviation
Values
123