Chapter_1_Introduction_to_computer_vision_and_image_processing_for
Chapter_1_Introduction_to_computer_vision_and_image_processing_for
1
Digital Image
Processing
Introduction
2
What is an image?
• A projection of a 3D scene to a 2D plane
3
4
What is an image ?
An image is a two-dimensional function f(x,y), where x and y are the
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
level.
5
• Depending on the values of x,y and f, there
are two types of iamges
1. Analogue image
2. Digital image
6
• What is analog image?
• An image is a two-dimensional function f(x,y), where
x and y are the 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
level.
7
What is Digital Image?
• An image is a two-dimensional function f(x,y),
where x and y are the 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 level.
8
What is a 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
9
• What is Digital Image?(Cont.)
– Contains finite number of elements, each of which
has a particular location and value
– These elements are called picture elements ,image
elements or pixels
10
What is a digital image? (Cont.)
• Pixel values typically represent gray levels,
colours, heights, opacities etc
• Remember digitization implies that a digital
image is an approximation of a real scene
1 pixel
11
• Advantages of Digital Images:
– Fast processing, cost effective, effective storage,
efficient transmission and manipulation.
• Disadvantages of Digital Images:
– High memory for good quality images and hence
requires fast processor
12
First Digital Photograph
13
© 2002 R. C. Gonzalez & R. E. Woods
Pixel intensity value
Consider the following
image (2724x2336 pixels)
f(1,1) = 103 to be 2D function or a
matrix with rows and
Pixel location columns
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
14
Remember digitization implies that a digital image is an
approximation of a real scene
One pixel
15
What is Digital Image Processing?
• The analysis and manipulation of a digital
image in order to improve its quality
• Digital image processing deals with
manipulation of digital images through a digital
computer.
• DIP focuses on developing a computer system
that is able to perform processing on an image.
• The input of that system is a digital image and
the system process that image using efficient
algorithms, and gives an image as an output.
16
What is Digital Image Processing?
• Digital image processing focuses on two major
tasks(Motivation for Digital Image Processing)
– Improvement of pictorial information for human
interpretation
– Processing of image data for storage, transmission
and representation for autonomous machine
perception
17
Uses of DIP
– Image enhancement/restoration
– Artistic effects
– Medical visualisation
– Law enforcement
– Human computer interfaces
18
How it works.
19
• There are a wide range of techniques available
for modifying and manipulating images in
various forms
•
20
Applications of Image processing
21
1. Image sharpening and restoration
• Image sharpening and restoration refers here to
process images that have been captured from the
modern camera to make them a better image or to
manipulate those images in way to achieve desired
result.
• This includes Zooming, blurring , sharpening , gray
scale to color conversion, detecting edges and vice
versa , Image retrieval and Image recognition. The
common examples are:
22
• One of the most common uses of DIP techniques:
improve quality, remove noise etc
23
• Image enhancement includes:
– noise filtering
– Adjusting contrast
– Deblurring
– Image Correction, Sharpening, and Resolution
Correction(Zooming, sharpening, edge detection)
24
The original image
25
Blurr image
Sharp image
26
2. Medical Technology
• In the medical field, Image Processing is used for various tasks
like X-Ray Imaging, Medical CT, UV imaging, Cancer Cell Image
processing, and much more. The introduction of Image
Processing to the medical technology field has greatly
improved the diagnostics process
• The image on the left is the original image. The image on the
right is the processed image. We can see that the processed
image is far better and can be used for better diagnostics
27
3. Computer Vision
• One of the most interesting and useful applications of
Image Processing is in Computer Vision.
• Computer Vision is used to make the computer see,
identify things, and process the whole environment as
a whole.
• An important use of Computer Vision is Self Driving
cars, Drones etc.
• Computer Vision helps in obstacle detection, path
recognition, and understanding the environment.
28
4. Pattern recognition:
• Pattern recognition is a part of Image
Processing that involves AI and Machine
Learning.
• Image processing is used to find out various
patterns and aspects in images. Pattern
Recognition is used for Handwriting analysis,
Image recognition, Computer-aided medical
diagnosis, and much more.
29
5. in the field of remote sensing
• In the field of remote sensing , the area of the
earth is scanned by a satellite or from a very
high ground and then it is analyzed to obtain
information about it. One particular
application of digital image processing in the
field of remote sensing is to detect
infrastructure damages caused by an
earthquake.
30
6. Transmission and encoding
• The very first image that has been transmitted
over the wire was from London to New York
via a submarine cable. The picture that was
sent is shown below.
The picture that was sent took three hours to reach from one place to another.
Now just imagine , that today we are able to see live video feed , or live cctv footage
from one continent to another with just a delay of seconds. It means that a lot of work
has been done in this field too. This field doesnot only focus on transmission , but also
on encoding. Many different formats have been developed for high or low bandwith to
encode photos and then stream it over the internet or e.t.c.
31
32
Examples: Artistic Effects
• Artistic effects are used to make images more
visually appealing, to add special effects and
to make composite images
33
Examples: GIS
•Geographic Information Systems
– Digital image processing techniques are used
extensively to manipulate satellite imagery
– Terrain classification
– Meteorology
34
Examples: Law Enforcement
•Image processing techniques are used extensively by law enforcers
– Number plate recognition for speed cameras/automated toll systems
– Fingerprint recognition
35
Examples: HCI
•Try to make human computer interfaces more natural
– Face recognition
– Gesture recognition
36
37
38
(Distorting shape)
39
What is a computer Vision?
• Computer vision is defined as a solution that leverages(uses) artificial
intelligence (AI) to allow computers to obtain meaningful data from
visual inputs.
• The insights gained from computer vision are then used to take
automated actions.
• Computer vision uses computers to emulate human vision, including
learning and being and able to make inferences and take actions based
on visual inputs
• Computer vision is a field of artificial intelligence that trains computers to
interpret and understand the visual world. Using digital images from
cameras and videos and deep learning models, machines can accurately
identify and classify objects — and then react to what they “see.
• Just like AI gives computers the ability to ‘think’, computer vision
allows them to ‘see’.
• Computer vision is a field of artificial
intelligence (AI) that enables computers and
systems to derive meaningful information
from digital images, videos and other visual
inputs — and take actions or make
recommendations based on that information. If
AI enables computers to think, computer
vision enables them to see, observe and
understand.
How does computer vision work?
• Computer vision needs lots of data.
• It runs analyses of data over and over until it
discerns(understands) distinctions and ultimately
recognize images.
• For example, to train a computer to recognize
automobile tires, it needs to be fed vast quantities of
tire images and tire-related items to learn the
differences and recognize a tire, especially one with
no defects.
• Two essential technologies are used to accomplish
this: a type of machine learning called deep learning
and a convolutional neural network (CNN).
45
46
47
48
49
50
51
52
53
Computer Vision Vs image processing
54
Summary:
• Image processing algorithms transform images in many ways,
such as sharpening, smoothing, filtering, enhancing,
restoration, blurring and so on.
55
56
Fundamental Steps in Digital Image Processing:
Wavelets &
Colour Image Image Morphological
Multiresolution
Processing Compression Processing
processing
Image
Restoration
Segmentation
Image
Acquisition Object
Recognition
Problem Domain 57
Fundamental Steps in DIP: (Description)
58
Steps involved:
59
Fundamental Steps in DIP: (Description)
60
Fundamental Steps in DIP: (Description)
61
Fundamental Steps in DIP: (Description)
62
Fundamental Steps in DIP: (Description)
Step 5: Wavelets
Are the foundation of representing images in
various degrees of resolution. It is used for
image data compression.
63
Fundamental Steps in DIP: (Description)
Step 6: Compression
Compression
Compression, as the name implies, deals with
techniques for reducing the storage required to save
an image, or the bandwidth required to transmit it.
Although storage technology has improved
significantly over the past decade, the same cannot be
said for transmission capacity. This is true particularly
in uses of the Internet, which are characterized by
significant pictorial content.
64
Fundamental Steps in DIP: (Description)
65
Fundamental Steps in DIP: (Description)
Step 8: Image Segmentation
• Segmentation procedures partition an image into its
constituent parts or objects.
• Segmentation (partitioning an image into regions or objects)
• Important Tip:
– The more accurate the segmentation, the more likely
recognition is to succeed.
66
Fundamental Steps in DIP: (Description)
67
Fundamental Steps in DIP: (Description)
68
Fundamental Steps in DIP: (Description)
69
Fundamental Steps in DIP: (Description)
70
71
Components of an Image Processing System
Network
Typical general-
Image sensors purpose DIP
Problem Domain system
72
Components of an Image Processing System
1. Image Sensors
– Two elements are required to acquire digital
images.
– The first is the physical device that is sensitive to
the energy radiated by the object we wish to
image (Sensor).
– The second, called a digitizer, is a device for
converting the output of the physical sensing
device into digital form.
73
Components of an Image Processing System
74
Components of an Image Processing System
3. Computer
• 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.
75
Components of an Image Processing System
76
Components of an Image Processing System
77
Components of an Image Processing System
78
Components of an Image Processing System
6. Image Displays
• The displays in use today are mainly color (preferably flat
screen) TV monitors.
• Monitors are driven by the outputs of the image and graphics
display cards that are an integral part of a computer system.
79
Components of an Image Processing System
7. Hardcopy devices
• Used for recording images, include laser printers, film
cameras, heat-sensitive devices, inkjet units and digital units,
such as optical and CD-Rom disks.
80
Components of an Image Processing System
8. 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.
81