Professional Documents
Culture Documents
SJCET@2014
Module 1
Introduction to DIP
2D sampling, quantization, resolution, brightness,
contrast
Machband effect
Classification of digital images
Image processing system
Image file format
07/16/15
SJCET@2014
Reference
1.S Jayaraman, S Esakkirajan, Digital image processing TMH.
2.Rafael C Gonzalez, R Woods, Digital image processing
Pearson Education.
3.Anil K Jain, Fundamentals of Digital image processing
Prentice Hall India.
4.Kenneth R Castleman, Digital image processing. Pearson
Education.
07/16/15
SJCET@2014
One picture is
worth more than
ten thousand
words
-Anonymous
07/16/15
SJCET@2014
07/16/15
SJCET@2014
07/16/15
SJCET@2014
07/16/15
SJCET@2014
SJCET@2014
Natures Wonders
1
5
2
3
07/16/15
1.Squirrels View
2.Sharks View
3.Dogs View
4. Cats View
5.Turtle View
SJCET@2014
Head of a Mosquito
World through Bees Eye
07/16/15
SJCET@2014
10
07/16/15
SJCET@2014
11
SJCET@2014
12
07/16/15
SJCET@2014
13
07/16/15
SJCET@2014
14
07/16/15
SJCET@2014
15
Applications
&
Research Topics
07/16/15
SJCET@2014
16
Document Handling
07/16/15
SJCET@2014
17
Signature Verification
07/16/15
SJCET@2014
18
Biometrics
07/16/15
SJCET@2014
19
Fingerprint Verification /
Identification
07/16/15
SJCET@2014
20
Matching
Delaunay Triangulation
07/16/15
SJCET@2014
21
Object Recognition
07/16/15
SJCET@2014
22
reference view 2
07/16/15
SJCET@2014
23
07/16/15
SJCET@2014
24
07/16/15
SJCET@2014
25
Target Recognition
Department of Defense (Army, Airforce,
Navy)
07/16/15
SJCET@2014
26
Interpretation of Aerial
Photography
Interpretation of aerial photography is a problem domain in both computer vision and registration.
07/16/15
SJCET@2014
27
Autonomous Vehicles
Land, Underwater, Space
07/16/15
SJCET@2014
28
Traffic Monitoring
07/16/15
SJCET@2014
29
Face Detection
07/16/15
SJCET@2014
30
Face Recognition
07/16/15
SJCET@2014
31
07/16/15
SJCET@2014
32
07/16/15
SJCET@2014
33
07/16/15
SJCET@2014
34
07/16/15
SJCET@2014
35
Medical Applications
07/16/15
skin cancer
breast cancer
SJCET@2014
36
07/16/15
SJCET@2014
37
Morphing
07/16/15
SJCET@2014
38
SJCET@2014
39
07/16/15
SJCET@2014
40
SJCET@2014
41
Cells
Rods & Cones
Distribution
Blind Spot
Nerve endings
Fovea
Properties
Lens
Ciliary Body and mussels
Viewing distant and nearby object
07/16/15
SJCET@2014
42
07/16/15
SJCET@2014
43
07/16/15
SJCET@2014
44
07/16/15
SJCET@2014
45
07/16/15
SJCET@2014
46
07/16/15
SJCET@2014
47
Machband Effect
An effect where the human brain subconsciously
increases the contrast between two surfaces with
different luminance.
The intensity is uniform over the width of the bar.
However, the visual appearance is that each strip is
darker at its left side than its right side.
The spatial interaction of luminance from an object
and its surrounding creates the Machband effect,
which shows that brightness is not a monotonic
function of luminance.
This was first described by Ernst Mach in 1865.
07/16/15
SJCET@2014
48
07/16/15
SJCET@2014
49
Optical Illusions
Our visual systems
play lots of
interesting tricks on
us
07/16/15
SJCET@2014
50
Optical Illusions
07/16/15
SJCET@2014
51
Optical Illusions
Stare at the cross
in the middle of
the image and
think circles
07/16/15
SJCET@2014
52
SJCET@2014
53
07/16/15
SJCET@2014
54
SJCET@2014
55
What is an Image?
2D array of pixels
Binary image (bitmap)
Pixels are bits
Grayscale image
Pixels are scalars
Typically 8 bits (0..255)
Color images
Pixels are vectors
Order can vary: RGB, BGR
Sometimes includes Alpha
What is an Image?
2D array of pixels
Binary image (bitmap)
Pixels are bits
Grayscale image
Pixels are scalars
Typically 8 bits (0..255)
Color images
Pixels are vectors
Order can vary: RGB, BGR
Sometimes includes Alpha
What is an Image?
2D array of pixels
Binary image (bitmap)
Pixels are bits
Grayscale image
Pixels are scalars
Typically 8 bits (0..255)
Color images
Pixels are vectors
Order can vary: RGB, BGR
Sometimes includes Alpha
What is an Image?
2D array of pixels
Binary image (bitmap)
Pixels are bits
Grayscale image
Pixels are scalars
Typically 8 bits (0..255)
Color images
Pixels are vectors
Order can vary: RGB, BGR
Sometimes includes Alpha
07/16/15
SJCET@2014
61
Image Representation
Before we discuss image acquisition recall that a
digital image is composed of M rows and N columns of
pixels
col
each storing a value
Pixel values are most
often grey levels in the
range 0-255(black-white)
We will see later on
that images can easily
be represented as
matrices
f (row, col)
row
07/16/15
SJCET@2014
62
Matrix Representation
183 160 94 153 194 163 132 165
183 153 116 176 187 166 130 169
179
168
171
182
179
170
131
167
Divide into
8x8 blocks
H=256
07/16/15
W=256
SJCET@2014
63
Image Sensing
Incoming energy lands on a sensor material
responsive to that type of energy and this generates
a voltage
Collections of sensors are arranged to capture
images
Imaging Sensor
07/16/15
SJCET@2014
64
07/16/15
SJCET@2014
65
SJCET@2014
66
07/16/15
SJCET@2014
67
07/16/15
SJCET@2014
68
07/16/15
SJCET@2014
69
07/16/15
SJCET@2014
70
07/16/15
SJCET@2014
71
07/16/15
SJCET@2014
72
Sampling
How many pixels do you capture?
Area the might have
much detail
07/16/15
SJCET@2014
73
Sampling
Each Sample Point is translated into a pixel
Real world image:
Infinite detail
Single Pixel:
Finite detail
07/16/15
SJCET@2014
74
07/16/15
SJCET@2014
75
07/16/15
SJCET@2014
76
07/16/15
SJCET@2014
77
07/16/15
SJCET@2014
78
07/16/15
SJCET@2014
79
07/16/15
2 colors (1-bit)
SJCET@2014
80
07/16/15
4 colors (2-bit)
SJCET@2014
81
07/16/15
8 colors (3-bit)
SJCET@2014
82
07/16/15
16 colors (4-bit)
SJCET@2014
83
07/16/15
32 colors (5-bit)
SJCET@2014
84
07/16/15
64 colors (6-bit)
SJCET@2014
85
07/16/15
SJCET@2014
86
Quantization
A natural image is colored in continuous tones
theoretically has an infinite number of colors.
Binary representation restricts the reproduction
colors and shades.
8 bits can only encode 256 different color values
In image capturing, the process of encoding an
infinite number of possible colors into a finite
number list of colors is called quantization.
07/16/15
SJCET@2014
87
SJCET@2014
88
Tutorial
07/16/15
SJCET@2014
89
07/16/15
SJCET@2014
90
07/16/15
77
79
79
97
120
150
156
SJCET@2014
158
66
61
93
65
81
146
145
166
68
61
84
71
82
112
158
147
67
71
64
75
76
83
125
146
98
61
72
75
72
78
107
153
93
78
76
72
77
62
121
149
79
88
95
95
78
91
95
91
129
81
94
94
111
83
85
86
107
07/16/15
SJCET@2014
92
07/16/15
SJCET@2014
93
Aliasing
When waveforms of two different frequencies are
sampled at a particular rate, it may so happen that
sampled values from the two waveforms at each time
instances are identical. That is, when digitized, two
different waveforms may show same digital output.
This effect is called aliasing.
Undersampling rate determined by Nyquist limit
(Shannons sampling theorem)
07/16/15
SJCET@2014
94
Sampling Theory
Two issues
What sampling rate suffices to allow a given continuous
signal to be reconstructed from a discrete sample
without loss of information?
What signals can be reconstructed without loss for a
given sampling rate?
07/16/15
SJCET@2014
95
Spectral Analysis
Spatial (time) domain:
Frequency domain:
SJCET@2014
96
Fourier Transform
07/16/15
SJCET@2014
97
Fourier Transform
Fourier transform:
F (u ) f ( x)e
i 2xu
dx
f ( x) F (u )e
07/16/15
SJCET@2014
i 2xu
du
98
Sampling theorem
A signal can be reconstructed from its samples if the
signal contains no frequencies above the
sampling frequency.
-Claude Shannon
The minimum sampling rate for a bandlimited
signal is called the Nyquist rate
A signal is bandlimited if all frequencies above a
given finite bound have 0 coefficients, i.e. it
contains no frequencies above this bound.
07/16/15
SJCET@2014
99
Impulse-Train Sampling
Use a periodic impulse train multiplied by the
continuous-time signal x(t)
07/16/15
SJCET@2014
100
07/16/15
SJCET@2014
101
Analysis of Sampling
07/16/15
SJCET@2014
102
07/16/15
SJCET@2014
103
SJCET@2014
104
(Aliasing)
If the function is under-sampled, then ALIASING corrupts the
sampled function.
X (f)
x (t)
t
3000
Aliasing
6000
5000
6000 samples/sec
07/16/15
Under-sampling (<6000)
SJCET@2014
105
07/16/15
SJCET@2014
106
SJCET@2014
107
SJCET@2014
108
07/16/15
SJCET@2014
109
(Aliasing)
07/16/15
SJCET@2014
110
(Aliasing)
07/16/15
SJCET@2014
111
07/16/15
SJCET@2014
112
Resolution
Think of resolution as image quality
Intensity Resolution
Spatial Resolution
07/16/15
SJCET@2014
113
Spatial resolution
Smallest discernible (recognize) detail in an image
Usually expressed as dots per inch (dpi) or pixels
per inch (ppi)
SJCET@2014
114
Spatial resolution
07/16/15
SJCET@2014
115
Spatial resolution
SJCET@2014
116
Spatial resolution
07/16/15
SJCET@2014
117
Intensity Resolution
Smallest discernible change in intensity level.
07/16/15
SJCET@2014
118
Intensity Resolution
k=7
L = 128
k=8
L = 256
k=5
L = 32
k=6
L = 64
07/16/15
SJCET@2014
119
Intensity Resolution
k=4
L = 16
k=3
L=8
k=2
L=4
k=1
L=2
07/16/15
SJCET@2014
120
SJCET@2014
121
As the detail in the image decrease the perceived quality remained the
same in some intervals in which the spatial resolution was increased, but
the number of gray levels actually decreased.
A possible explanation is that a decrease in k tends to increase the apparent
contrast of an image, a visual effect that human often perceive as improved
quality in an image.
07/16/15
SJCET@2014
122
07/16/15
SJCET@2014
123
i) Raster Image
07/16/15
SJCET@2014
124
07/16/15
SJCET@2014
125
07/16/15
SJCET@2014
126
SJCET@2014
127
07/16/15
SJCET@2014
128
07/16/15
SJCET@2014
129
Format/Version identification
Image width and Height
Image Type
Image data format
Compression type
Colourmap(if any)
Pixel value
07/16/15
SJCET@2014
Header
Image Data
130
SJCET@2014
131
Repeated
1 to n times
07/16/15
SJCET@2014
132
Bytes#
Screen width
Screen Height
m
cr
Pixel
Background
0
07/16/15
SJCET@2014
133
2) JPG or JPEG
JPEG is a image compression algorithm
JPEG uses lossy compression scheme
JPG is optimized for photographs and similar
continuous tone images that contain many, many
colors.
It can achieve astounding compression ratios even
while maintaining very high image quality.
It stores information as 24 bit color.
The degree of compression of a JPG is adjustable.
07/16/15
SJCET@2014
134
07/16/15
SJCET@2014
135
SJCET@2014
136
07/16/15
SJCET@2014
137
07/16/15
SJCET@2014
138
07/16/15
SJCET@2014
139
07/16/15
SJCET@2014
140
07/16/15
SJCET@2014
141
Software
Specialized modules perform special tasks
Minimum code
Mass Storage
Short-term storage
On-line storage
Archival storage
07/16/15
SJCET@2014
142
Hardcopy
Laser Print
Film cameras
CDs
Network
Large Bandwidth
07/16/15
SJCET@2014
143
Types of Imaging
Gamma Ray
Imaging
Source is
radioisotope
PET(Positron
Emission
Tomography)
Astronomical
observations
07/16/15
SJCET@2014
144
X-ray Imaging
Medical Diagnostics
X-ray
Angiography
CAT Computerized
Axial Tomography
Industrial Process
Astronomical
Observations
07/16/15
SJCET@2014
145
UV
Fluorescent microscopy
Astronomical
observations
07/16/15
SJCET@2014
146
07/16/15
Remote sensing
Light microscopy
Law enforcement
industry
SJCET@2014
147
07/16/15
SJCET@2014
148
07/16/15
SJCET@2014
149
07/16/15
SJCET@2014
150
Microwaves
Radar
07/16/15
SJCET@2014
151
Radio Waves
MRI
07/16/15
SJCET@2014
152
07/16/15
SJCET@2014
153
Ultrasound Imaging
07/16/15
SJCET@2014
154
Electron Microscopy
07/16/15
SJCET@2014
155
07/16/15
SJCET@2014
156