1 - UNIT DIP
1 - UNIT DIP
S
Associate Professor and HoD
Department of Computer Science and
Engineering
JSS Science and Technology University
Mysore
Digital Image Processing and
Analysis (22SCE161)
Course Outcomes
Study Materials:
Contents of this PPT are extracted from the
below listed books and web sites
About my place : Mysore
Palace
f(x,y)
y
Two Dimensional Representation of an Image
Memory Requirement?
Types of Images
• Analog Image :
– In f(x,y), where x,y and f all have continuous
range of values, representing position and
intensity image then it is called Analog Image.
• Digital Image
– In f(x,y), whre x,y and f all have discrite
quqntities, representing position and intensity
image, then it is called Digital Image.
Example: Analog and Digital
Image
PIXEL
• Digital image which contains finite number
of elements each of which has a particular
location and value. These elements are
called “Picture Element”, “Image element”,
“pels” or “Pixel”
What is Digital Image
Processing
• The analysis and manipulation of a
digitized image especially in order to
improve its quality.
What is done in Digital Image
Processing?
transmission service
– Images were transferred by submarine cable
between London and New York
– Pictures were coded for cable transfer and
reconstructed at the receiving end on a
History of DIP (cont…)
•Mid to late 1920s: Improvements to the
Bartlane system resulted in higher quality
images
– New reproduction
processes based
on photographic
techniques
– Increased number
of tones in Improved
Early 15 tone digital
reproduced images. digital image
image
– Summary is faster transmission of digital data
achieved
History of DIP (cont…)
•1960s: Improvements in computing
technology and the onset of the space race
led to a surge of work in digital image
processing
Image
Segmentation
Enhancement
Image Object
Acquisition Recognition
Representation
Problem Domain
& Description
Colour Image Image
Processing Compression
Fundamental Steps 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
Image Acquisition
• Image will be acquired from a source that
is usually a hardware.
• For example capture or acquire a image
using digital camera.
Fundamental Steps 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
Image Enhancement
• It is the process of adjusting the digital
image, so that results are more suitable for
display.
• Example: Sharpening, Brightness and
contrast adjustment and removal of noise
ect.
• Here images are modified so that it is
more pleasing for visibility.
•
Fundamental Steps 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
Image Restoration
• It is the process of recovering an image
which is degraded.
• Image restoration is objective in nature,
which means it depends on the amount of
degradation.
Fundamental Steps 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
Morphological Processing
• It deals with extracting image components
that are useful in representation and
description of shapes.
Image
Segmentation
Enhancement
Image Object
Acquisition Recognition
Representation
Problem Domain
& Description
Colour Image Image
Processing Compression
Segmentation
• It is the process of partitioning of image
into multiple segments.
Image
Segmentation
Enhancement
Image Object
Acquisition Recognition
Representation
Problem Domain
& Description
Colour Image Image
Processing Compression
Object Recognition
• It is the process of assigning a label to an
object in an image.
• If the image is consisting of car, this stage
should process an image assigns the label
as car.
Fundamental Steps 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
Representation and description
• It deals with converting the data into a suitable
form for the computer processing
• Boundary representation. This is followed when
the shape is important
• Regional representation when the focus is on
the internal properties like texture of an image
• Description deals with extracting some
attributes.
• These attributes are the results of quantitative
information of the image. They are used to
classify one class of object with another
Fundamental Steps 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
Fundamental Steps 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
Image Sub-Sampling
• Image sub-sampling. The key idea in
image sub-sampling is to throw away
every other row and column to create a
half-size image.
Image Resampling
• Changing the pixel dimensions of an
image is called resampling. Resampling
can degrade image quality.
High
Low Contrast Image
It’s Histogram
Stretched Histogram
Images after processing
Low quality images
Equalization
Star treck team
Encrypted Image Decrypted Image
Water
marking
application Enhanced to a
color image
Autonomous Machine Perception
A Robot
Region to be inspected
(Picture of a tunnel)
In a continuous production
process, all dried roof tiles
are automatically inspected
for cracks, deformations,
dimensional correctness, and
color.
Quality Assurance
Medical Diagnosis
Deciphered Image
Oblitered Image
Median Filtering
Forensic
Application
Enhanced Image
Number plate identification
The vehicle approached the secured area, and starts the cycle
by stepping over a magnetic loop detector (which is the most
popular vehicle sensor). The loop detector senses the car and
its presence is signaled to the LPR unit.
The LPR unit activates the illumination (invisible Infra-
red in most cases) and takes pictures of the front or rear
plates from the LPR camera (shown at the left side of
the gate). The images of the vehicle include the plate
and the pixel information is read by the LPR unit's
image processing hardware (the frame grabber).
The LPR unit analyzes the image with different image
processing software algorithms, enhances the image, detects
the plate position, extracts the plate string, and identifies the
fonts using special artificial intelligence methods (such as
Neural Networks)
The LPR unit checks if the vehicle appears on a predefined
list of authorized cars, and if found - it signals to open the
gate by activating its relay. The unit can also switch on a
green "go-ahead" light or red "stop" light. The unit can also
display a Welcome! message with personalized data.
The authorized vehicle enters into the secured
area. After passing the gate its detector closes the
gate. Now the system waits for the next vehicle to
approach the secured area
A Number Plate Recognition
system
The plate number is used to produce a violation
fine on speed or red-light systems The manual
process of preparing a violation fine is replaced by
an automated process which reduces the time. The
fines can be viewed and paid on-line.
Image Formats
• Image capturing formats: the format in which image is
created
Neighbors of pixel pi
1. Four Neighbors : N4(pi) = {(x, y-1), (x+1, y), (x, y+1), (x-1, y)}
2. Diagonal Neighbors : ND(pi) = {(x+1, y-1), (x+1, y+1), (x-1, y+1),
(x-1, y-1)}
3. Eight Neighbors : N8(pi) = N4(pi) ND(pi)
Adjacency or connectivity
• Two pixels that are neighbors that have
the same gray level are adjacent.
When v={1}, where V is the value under
consideration, 4 and 8 adjacency can be:
4 and 8 adjacency in Gray scale
Mixed Adjacency
M-adjacency
• Answer : Only 8 and m- adjacent
Path and Length
Pixel Connectivity: Summary
0 1 1 0 1 1 0 1 1
0 1 0 0 1 0 0 1 0
0 0 1 0 0 1 0 0 1
Components of Digital Image
Processing System
Image Sensor
• Image sensor : It senses the energy
reflected from the object which is to be
picturized. (Camera).
•
Image Processing Hardware
• Special Hardware for processing the
captured image.
• Normal computer will not have this.
Computer and Image
processing software
• Digital Computer is an essential part of
Digital image processing
• Image processing software is the next
block where we can develop some
algorithms to process the data obtained
from the image sensor.
Mass Storage
• After the processing of data, we need
space for storing the data.
• Ex: Hard disk, SSD
Image Display and Hardcopy
• Image will be displayed using Monitor
• We can print the image on the paper or
film.
Network
• If the image is to be transferred to a
remote place, network is the component to
be used with suitable bandwidth.
Elements of visual Perception
Structure of Human Eye
• The lens focuses the light reflected from
different objects onto the retina which is
composed of photoreceptors-rods and
cones.