Module 1 -21EC732
Module 1 -21EC732
Introduction
M.RAJESWARI
[email protected]
Introduction
1 pixel
set
Global inventory of human
settlement
Not hard to imagine the kind of
analysis that might be done using
this data
slow and
unreliable
Make machines do the
job instead
Industrial vision systems
are used in all kinds of industries
Can we trust them?
Image
Segmentation
Enhancement
Image Object
Acquisition Recognition
Representation
Problem Domain
& Description
Colour Image Image
27 Processing
Digital Image Processing-21EC732 -ETE Compression 10/28/2024
Key Stages in Digital Image Processing:
Image Aquisition
Image Morphological
Restoration Processing
Image
Segmentation
Enhancement
Image Object
Acquisition Recognition
Representation
Problem Domain
& Description
Colour Image Image
28 Processing
Digital Image Processing-21EC732 -ETE Compression 10/28/2024
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
29 Processing
Digital Image Processing-21EC732 -ETE Compression 10/28/2024
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
30 Processing
Digital Image Processing-21EC732 -ETE Compression 10/28/2024
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
31 Processing
Digital Image Processing-21EC732 -ETE Compression 10/28/2024
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
32 Processing
Digital Image Processing-21EC732 -ETE Compression 10/28/2024
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
33 Processing
Digital Image Processing-21EC732 -ETE Compression 10/28/2024
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
34 Processing
Digital Image Processing-21EC732 -ETE Compression 10/28/2024
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
35 Processing
Digital Image Processing-21EC732 -ETE Compression 10/28/2024
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
36 Processing
Digital Image Processing-21EC732 -ETE Compression 10/28/2024
How are images represented
in the computer?
Image sensing, two elements are required to acquire digital images. The first is a physical
device that is sensitive to the energy radiated by the object we wish to image. The
second, called a digitizer, is a device for converting the output of the physical sensing device
into digital form. For instance, in a digital video camera, the sensors produce an
electrical output proportional to light intensity. The digitizer converts these outputs to
digital data
Specialized image processing hardware consists of the digitizer plus hardware that performs
other primitive operations, such as an arithmetic logic unit (ALU), which performs
arithmetic and logical operations in parallel on entire images. One example of how an
ALU is used is in averaging images as quickly as they are digitized, for the purpose of
noise reduction. This type of hardware sometimes is called a front-end subsystem, and its
most distinguishing characteristic is speed. In other words, this unit performs functions
that require fast data throughputs (e.g., digitizing and averaging video images at 30
framess) that the typical main computer cannot handle.
Cornea
Sclera
Choroid
Retina
Iris
Lens
Macula lutea
Fovea:
Blind spot
Rod
Cone
fX
x
Z
fY
y
Z
where
1) i(x,y) the amount of illumination
incident to the scene
0 i ( x, y )
2) r(x,y) the reflectance from the object
0 r ( x, y ) 1
54 Digital Image Processing-21EC732 -ETE 10/28/2024
Image Formation in the Eye
Because digital images are displayed as a discrete set of intensities, the eye’s ability to discriminate
between different intensity levels is an important consideration in presenting image-processing results.
The range of light intensity levels to which the human visual system can adapt is enormous—on the order
of 1010 .
Figure 2.4, a plot of light intensity versus subjective brightness, illustrates this characteristic. The long
solid curve represents the range of intensities to which the visual system can adapt. In photopic vision
alone, the range is about 106. The transition from scotopic to photopic vision is gradual over the
approximate range from 0.001 to 0.1 millilambert (–3 to –1 mL in the log scale),
The essential point in interpreting the impressive dynamic range depicted in Fig. 2.4 is that the visual
system cannot operate over such a range simultaneously.Rather, it accomplishes this large variation by
changes in its overall sensitivity,a phenomenon known as brightness adaptation. The total range of distinct
intensity levels it can discriminate simultaneously is rather small when compared with the total adaptation
range. For any given set of conditions, the current sensitivity level of the visual system is called the
brightness adaptation level, which may correspond, for example, to brightness Ba in Fig. 2.4.The short intersecting
curve represents the range of subjective brightness that the eye can perceive when adapted to this level.
This range is rather restricted, having a level Bb at and below which all stimuli are perceived as indistinguishable
blacks.
58 Digital Image Processing-21EC732 -ETE 10/28/2024
Brightness Adaptation and Discrimination
The ability of the eye to discriminate between changes in light intensity at any specific adaptation
level is also of considerable interest. A classic experiment used to determine the capability of the
human visual system for brightness discrimination
consists of having a subject look at a flat, uniformly illuminated area large enough to occupy the
entire field of view. This area typically is a diffuser,such as opaque glass, that is illuminated from
behind by a light source whose intensity, I, can be varied. To this field is added an increment of
illumination,I, in the form of a short-duration flash that appears as a circle in the center of the
uniformly illuminated field, as Fig. 2.5 shows.
If I is not bright enough, the subject says “no,” indicating no perceivable change.As I gets
stronger, the subject may give a positive response of “yes,” indicating a perceived change. Finally,
when I is strong enough, the subject will give a response of “yes” all the time.The quantity
where is the increment of illumination discriminable 50% of the time with background
illumination I, is called the Weber ratio. A small value of means that a small percentage change in
intensity is discriminable. This represents “good” brightness discrimination. Conversely, a large
value of means that a large percentage
change inDigital
intensity is required. This
Image Processing-21EC732 represents “poor” brightness discrimination. 10/28/2024
-ETE
60
Brightness Adaptation and Discrimination
where
1) i(x,y) the amount of illumination
incident to the scene
0 i ( x, y )
2) r(x,y) the reflectance from the object
0 r ( x, y ) 1
67 Digital Image Processing-21EC732 -ETE 10/28/2024
Image Sensing
• A sensor detects energy radiated by a band of the electro-magnetic spectrum and
converts it into electrical signal.
• Sensor has a material that is responsive to the particular type of energy being detected.
Imaging Sensor
Linear strip
Circular strip
Fixed sensor ring
Rotating X-ray source
Used in CAT, MRI, and PET
– Typical notions of
illumination and scene can
be way off:
• X-rays of a skeleton
• Ultrasound of an
unborn baby
• Electro-microscopic
images of molecules
74 Digital Image Processing-21EC732 -ETE 10/28/2024
Simple image formation model
f(x,y)=i(x,y)r(x,y)
where
1) i(x,y) the amount of illumination
incident to the scene
0 i ( x, y )
2) r(x,y) the reflectance from the object
0 r ( x, y ) 1
75 Digital Image Processing-21EC732 -ETE 10/28/2024
Image sampling and quantization
Convert the continuous sensed data to digital form
Sampling
Spatial transform: spatial coordinates(discrete locations)
Quantization
Amplitude transform: gray levels are converted to discrete values
Each element of this matrix array is called an image element, picture element, pixel, or pel. it is
advantageous to use a more traditional matrix notation to denote a digital image and its
elements: aij=f(x=i, y=j)=f(i, j). Eqs. (2.4-1) and (2.4-2) are identical matrices.
Spatial Resolution
256 128 16 8
64
Digital Image Processing-21EC732 -ETE 32 4 10/28/2024 2
89
Spatial and gray-level resolution
Figure 2.22 (a): The woman’s face; Image with low level of detail.
Figure 2.22 (b): The cameraman; Image with medium level of detail.
Figure 2.22 (c): The crowd picture; Image with a relatively large amount of detail.
Nearest
neighbor
Interpolation
(Pixel
replication)
Bilinear
interpolation
Neighbors of a pixel
There are three kinds of neighbors of a pixel:
N4(p) 4-neighbors: the set of horizontal and vertical neighbors
ND(p) diagonal neighbors: the set of 4 diagonal neighbors
N8(p) 8-neighbors: union of 4-neighbors and diagonal neighbors
O O O O O O
O X O X O X O
O O O O O O
Adjacency, connectivity,regions &boundaries
Connectivity between pixels is a fundamental concept that simplifies the definition of
numerous digital image concepts, such as regions and boundaries.
Connectivity of two pixels: if two pixels are connected, it must be determined
If they are neighbors &If their gray levels satisfy a specified criterion of similarity
Adjacency:
Two pixels that are neighbors and have the same grey-level (or some other specified
similarity criterion) are adjacent
Pixels can be 4-adjacent, diagonally adjacent, 8-adjacent, or m-adjacent.
4-adjacency.
Two pixels p and q with values from V are 4-adjacent if q is in the set N4(p).
8-adjacency.
Two pixels p and q with values from V are 8-adjacent if q is in the set N8(p).
Adjacency,connectivity,regions & boundaries
m-adjacency (mixed adjacency):
Two pixels p and q of the same value (or specified similarity) are m-adjacent if
either
(i) q and p are 4-adjacent, or (ii) p and q are diagonally adjacent and do not
have any common 4-adjacent neighbors. They cannot be both (i) and (ii).
An example of adjacency:
Adjacency,connectivity,regions
&boundaries
Edge: a path of one or more pixels that separate two regions of significantly
different gray levels.
edges are intensity discontinuities and boundaries are closed paths.
Distance Measures
Distance measures
For pixels p, q, and z, with coordinates (x, y), (s, t), and (v, w), respectively,D is a
distance function or metric if IT satisfies three criteria
Distance function: a function of two points, p and q, in space that satisfies
three criteria
( a ) D ( p, q ) 0
(b) D( p, q) D(q, p), and
(c ) D ( p , z ) D ( p , q ) D ( q , z )
De ( p, q) ( x s ) 2 ( y t ) 2
For this distance measure, the pixels having a distance less than or equal to somevalue
r from (x, y) are the points contained in a disk of radius r centered at (x, y)
Distance Measures
the pixels having a D4 distance from (x, y) less than or equal to some value r form a diamond
centered at (x, y). For example, the pixels with D4 distance 2 from (x, y) (the center point)
form the following contours of constant distance:
The pixels with D4=1 are the 4-neighbors of (x, y).
The chessboard distance D8(p, q)
D8 ( p, q) max(| x s |, | y t |)
Distance Measures
the pixels withD8 distance from (x, y) less than or equal to some value r form a square centered
at (x, y). For example, the pixels with D8 distance 2 from (x, y) (the center point) form
the following contours of constant distance The pixels with D8=1 are the 8-neighbors of (x,
y).
Distance Measures
P3 P4
P1 P2
P
0 1 0 1 1 1
0 1 1 1 1 1
1 1 1
Binary images: images having only two possible brightness levels (black and white)
Gray scale images : “black and white” images
Color images: can be described mathematically as three gray scale images
For digital images the minimum gray level is usually 0, but the maximum depends on
number of quantization levels used to digitize an image. The most common is 256
levels, so that the maximum level is 255.
A (digital) path (or curve) from pixel p with coordinates (x, y) to pixel q
with coordinates (s, t) is a sequence of distinct pixels with coordinates
Closed path
4-, 8-, or m-paths
Edge: a path of one or more pixels that separate two regions of significantly
different gray levels.
edges are intensity discontinuities and boundaries are closed paths.
Distance Measures
Distance measures
For pixels p, q, and z, with coordinates (x, y), (s, t), and (v, w), respectively,D is a
distance function or metric if IT satisfies three criteria
Distance function: a function of two points, p and q, in space that satisfies
three criteria
( a ) D ( p, q ) 0
(b) D( p, q) D(q, p), and
(c ) D ( p , z ) D ( p , q ) D ( q , z )
De ( p, q) ( x s ) 2 ( y t ) 2
For this distance measure, the pixels having a distance less than or equal to somevalue
r from (x, y) are the points contained in a disk of radius r centered at (x, y)
Distance Measures
the pixels having a D4 distance from (x, y) less than or equal to some value r form a diamond
centered at (x, y). For example, the pixels with D4 distance 2 from (x, y) (the center point)
form the following contours of constant distance:
The pixels with D4=1 are the 4-neighbors of (x, y).
The chessboard distance D8(p, q)
D8 ( p, q) max(| x s |, | y t |)
Distance Measures
the pixels withD8 distance from (x, y) less than or equal to some value r form a square centered
at (x, y). For example, the pixels with D8 distance 2 from (x, y) (the center point) form
the following contours of constant distance The pixels with D8=1 are the 8-neighbors of (x,
y).
Image operation on a pixel basis
Operation is carried out between corresponding pixels
linear and nonlinear operations
H(af+bg)= aH(f) + b H(g)