Basics of Image Processing: Dr. Vijaylakshmi Jigajinni
Basics of Image Processing: Dr. Vijaylakshmi Jigajinni
Basics of Image Processing: Dr. Vijaylakshmi Jigajinni
1
What is Image ?
An image is a spatial representation of a
two- dimensional or three-dimensional scene.
An image is an array, or a matrix pixels
(picture elements) arranged in columns and rows.
2
First Digital Photograph
In 8-bit representation
Pixel intensity values
rows columns change between 0 (Black)
and 255 (White)
f(645:650,1323:1328) =
83 82 82 82 82 82
82 82 82 81 81 81
82 82 81 81 80 80
82 82 81 80 80 79
80 79 78 77 77 77
80 79 78 78 77 77
f(2724,2336) = 88
Remember digitization implies that a digital image is an
approximation of a real scene
One pixel
Digital Image Processing
Common image Color-type include:
9
What is Image Processing
1
0
What is Image Processing
1
1
What is Image Processing
1
3
WHAT IS DIGITAL IMAGE PROCESSING?
DIP Definition:
A Discipline in which Both the Input and Output of
a Process are Images.
14
What Is 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) is called
the
intensity or gray level of the image at that point.
Digital Image:
When x, y and the intensity values of f are all finite,
discrete quantities, we call the image a digital image.
Color Image:
r ( x, y)
f ( x , y ) g ( x ,
y) b ( x , y )
g(x , y)
Discretization
g
(
Quantization
i f(i , j) Digital Image
,
10
f(i0 , j0) : Picture Element,
j Image Element, Pel, Pixel
WHAT IS DIGITAL IMAGE PROCESSING?
Image
Processing Image Analysis Vision
Low-Level High-Level
Process Mid-Level Process
Process
• Reduce Noise Making Sense of an
• Segmentation Ensemble of
• Contrast Enhancement
• Classification Recognized Objects
• Image Sharpening
11
The origins of digital image processing
Computer Advances
the invention of the transistor by Bell Labs. in 1948
the development of the high-level programming languages
the invention of the IC at Texas Instruments in 1958
the development of operation systems in the early 1960s
the development of microprocessor by Intel in the early 1970s
introduction by IBM of the personal computer in 1981
Large Scale IC in the late 1970s
VLSI in the 1980s, ULSI present
IC Technology, Mass storage and display systems
Computers have powerful processing capability to process images
The origins of digital image processing
1 pixel
Applications and Research Topics
25
Applications and Research Topics
Document Handling
26
Applications and Research Topics
Signature Verification
27
Applications and Research Topics
Biometrics
28
Applications and Research Topics
Fingerprint Verification / Identification
29
Applications and Research Topics
Object Recognition
30
Applications and Research Topics
Target Recognition
Department of Defense (Army, Air force, Navy)
31
Applications and Research Topics
Interpretation of Aerial Photography
Interpretation of aerial photography is a problem domain in both
computer vision and registration.
32
Applications and Research Topics
Autonomous Vehicles
Land, Underwater, Space
33
Applications and Research Topics
Traffic Monitoring
34
Applications and Research Topics
Traffic Monitoring
35
Applications and Research Topics
Face Detection
36
Applications and Research Topics
Face Recognition
37
Applications and Research Topics
Face Detection/Recognition Research
38
Applications and Research Topics
Facial Expression Recognition
39
Applications and Research Topics
Hand Gesture Recognition
Smart Human-Computer User
Interfaces Sign Language Recognition
40
Applications and Research Topics
Human Activity Recognition
41
Applications and Research Topics
Medical Applications
42
Applications and Research Topics
Morphing
43
Applications and Research Topics
Inserting Artificial Objects into a Scene
44
Agriculture:
Automobiles
Industrial Inspection
Typical applications:
Noise filtering
Content Enhancement
Contrast enhancement
Deblurring
Remote sensing
Filtering
Image Enhancement
Image Deblurring
Electro-Magnetic Spectrum
Imaging types
• Gamma ray Imaging(Nuclear Medicine)
• X-ray imaging(Diagnosis)
• Imaging in Ultrviolet band(industrial inspection,
astronomical observation)
• Imaging in visible & Infra Red band
• Imaging in MicroWave band
• The unique feature of imaging radar is its ability to collect
data over virtually any region at anytime, regardless of
weather or ambient lighting condition
• Imaging in Radio band
• Imaging Modeleties using non EM Spectrum band
IR Imaging (Performance)
72
Fundamental Steps in Digital Image Processing
73
Fundamental Steps in Digital Image Processing
Essential steps when processing digital
images:
Acquisition
Enhancement
Outputs are
Restoration
digital
images
Color image restoration
Wavelets
Morphological processing
Outputs are
Segmentation attributes of the
image
Representation
38
Recognition
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
Key Stages in Digital Image Processing:
Image Acquisition
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Image Object
Acquisition Recognition
Representation
Problem Domain
& Description
Colour Image Image
Processing Compression
Key Stages in Digital Image Processing:
Image Enhancement
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Image Object
Acquisition Recognition
Representation
Problem Domain
& Description
Colour Image Image
Processing Compression
Fundamental Steps in Digital Image Processing
Image enhancement is the process of manipulating an
image so that the result is more suitable than the original
for a specific application.
There is no general “theory” of image enhancement.
When an image is processed for visual interpretation,
the viewer is the ultimate judge of how well a particular
method works.
78
Key Stages in Digital Image Processing:
Image Restoration
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Image Object
Acquisition Recognition
Representation
Problem Domain
& Description
Colour Image Image
Processing Compression
Fundamental Steps in Digital Image Processing
80
Key Stages in Digital Image Processing:
Morphological Processing
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Image Object
Acquisition Recognition
Representation
Problem Domain
& Description
Colour Image Image
Processing Compression
Key Stages in Digital Image Processing:
Segmentation
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Image Object
Acquisition Recognition
Representation
Problem Domain
& Description
Colour Image Image
Processing Compression
Key Stages in Digital Image Processing:
Object Recognition
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Image Object
Acquisition Recognition
Representation
Problem Domain
& Description
Colour Image Image
Processing Compression
Key Stages in Digital Image Processing:
Representation & Description
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Image Object
Acquisition Recognition
Representation
Problem Domain
& Description
Colour Image Image
Processing Compression
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
Summary
Image
Segmentation
Enhancement
Image Object
Acquisition Recognition
Representation
Problem Domain
& Description
Colour Image Image
Processing Compression
Image Processing Basics
90
General Purpose Image Processing System
91
Image Acquisition
The image is captured by a sensor
(e.g. Camera), and digitized if the
output of the camera or sensor is not
already in digital form, using
analogue-to-digital convertor
92
Image Sensors
Two elements are required to acquire digital
images.
First: is the physical device that is sensitive to the
energy radiated by the object we wish to image
(Sensor).
Second: called a digitizer, is a device for converting
the output of the physical sensing device into digital
form.
93
An image sensor is a device that converts an optical
image into an electronic signal. It is used mostly in
digital cameras, camera modules and other imaging
devices. Early analog sensors were video camera tube;
most currently used are digital charge coupled device
(CCD) or complementary metal–oxide–semiconductor
(CMOS) active pixel sensors.
94
• Today, most digital still cameras use either a
CCD image sensor or a CMOS sensor.
• Each cell of a CCD image sensor is an analog
device.
• When light strikes the chip it is held as a small
electrical charge in each photo sensor.
• The charges are converted to voltage one
pixel at a time as they are read from the chip.
• Additional circuitry in the camera converts the
voltage into digital information.
95
General Purpose Image Processing System
96
General Purpose Image Processing System
98
General Purpose Image Processing System
10
2
General Purpose Image Processing System
10
3
Elements of Visual Perception
Structure of the
human eye
Image formation in the eye
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
58
Array of Image Sensors
0 0 0 75 75 75 128 128 128 128
128 128 128 200 200 255 255 200 200 200
75 75 75 35 35 35 0 0 0 35
35 35 35 0 0 0 35 35 35 75
32
64
128
256
512
1024
Sampling
128 64 32
Quantization
13
7
Spatial Resolution
The spatial resolution of an image is determined
by how sampling was carried out
Spatial resolution simply refers to the
smallest discernable detail in an image
Vision specialists will often talk about pixel size
Graphic designers will talk about dots per inch (DPI)
14
3
Spatial Resolution
128 * 128 64 * 64 32 * 32
63 Graphic designers will talk about dots per inch
Intensity Level Resolution
Intensity level resolution 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
Number of
Number of Bits Examples
Intensity Levels
1 2 0, 1
2 4 00, 01, 10, 11
4 16 0000, 0101, 1111
8 256 00110011,
16 65,536 1010011001100110011010
64
1
Intensity Level Resolution
256 grey levels (8 bits per pixe1l)28 grey levels (7 64 grey levels (6 bpp) 32 grey levels (5 bpp)
bpp)
65 16 grey levels (4 bpp) 8 grey levels (3 bpp) 4 grey levels (2 bpp) 2 grey levels (1
bpp)
Resolution: How Much Is Enough?
The big question with resolution is always how much
is enough?
This all depends on what is in the image and what you
would like to do with it
Key questions include
Does the image look aesthetically pleasing?
Can you see what you need to see within the image?
156
Image Interpolation:
Nearest Neighbor Interpolation
f1(x2,y2) = f(x1,y1)
f(round(x2), round(y2))
=f(x1,y1)
f1(x3,y3) =
f(round(x3), round(y3))
=f(x1,y1)
158
Image Interpolation:
Bilinear Interpolation
(x,y)
159
Image Interpolation:
Bicubic Interpolation
The intensity value assigned to point (x,y) is obtained by the
following equation
161
Examples: Interpolation
162
Examples: Interpolation
163
Examples: Interpolation
164
Examples: Interpolation
165
Examples: Interpolation
166
Examples: Interpolation
167
Examples: Interpolation
168
Examples: Interpolation
169
Basic Relationships Between Pixels
Neighborhood
Adjacency
Connectivity
Paths
170
Any Questions?
67