Unit 1
Unit 1
• Hands on session
•When x, y, and the amplitude values of f are all finite, discrete quantities, we call the image a
digital image.
•Pixel values typically represent gray levels, colours, heights, opacities etc
• Digitization implies that a digital image is an approximation of a real scene
1 pixel
What is Digital Image Processing?
•The field of Digital Image Processing refers to processing
digital images by means of a digital computer
– Image enhancement/restoration
– Artistic effects
– Medical visualisation
– Industrial inspection
– Law enforcement
– Human computer interfaces
Examples: Image Enhancement
One of the most common uses of DIP techniques:
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Dots per inch: Dots per inch or DPI is usually used in monitors.
Lines per inch: Lines per inch or LPI is usually used in laser
printers.
Pixel per inch: Pixel per inch or PPI is measure for different
devices such as tablets , Mobile phones e.t.c.
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 5.1
inch (DPI) e g apix
M
els
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
128 * 128 64 * 64 32 * 32
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 Intensity
Number of Bits Examples
Levels
1 2 0, 1
2 4 00, 01, 10, 11
4 16 0000, 0101, 1111
8 256 00110011, 01010101
16 65,536 1010101010101010
Intensity Level Resolution (cont…)
256 grey levels (8 bits per pixel) 128 grey levels (7 bpp) 64 grey levels (6 bpp) 32 grey levels (5 bpp)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
16 grey levels (4 bpp) 8 grey levels (3 bpp) 4 grey levels (2 bpp) 2 grey levels (1 bpp)
Intensity resolution and bit depth
Smallest discernible change in the intensity level
Types of Images
Based on Attributes
Color Spaces:
They provide a way to identify colors
that is more intuitive
Colour images
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 Aquisition
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
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
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
Key Stages in Digital Image Processing:
Morphological Processing
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
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
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
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
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
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
Summary
We have looked at:
– What is a digital image?
– What is digital image processing?
– State of the art examples of digital image processing
– Key stages in digital image processing
Basic Relationships between pixels
Neighbors of pixel
Neighbors of pixel contd.
Neighbors of pixel contd.
Connectivity/ Adjacency
a) b) c)
d) e) f)
09/01/2023 COEP Technological University 60
Subtraction
• Subtraction of two image is often used to detect motion.
c) d)
e) f)
Image Subtraction:a) Original scene, b) same scene later, c) subtraction of scene a from
scene b, d) the subtracted image with a threshold of 50, e) the subtracted image with a threshold
of 100, f) the subtracted image with a threshold of 150. Theoretically, only image elements that
have moved should show up in the resultant image. Due to imperfect alignment between the two
images, other artifacts appear. Additionally, if an object that has moved is similar in brightness
to the09/01/2023
background it will cause problems
COEP–Technological
in this example
Universitythe brightness of the car is similar
62 to
the grass.
• Medical imaging often uses this type of operation to
allow the doctor to more readily see changes which
are helpful in the diagnosis.
AND 01011000 2
010010002
a) b) c)
09/01/2023
a) COEP Technological University b) 67