Introduction_Fundamentals
Introduction_Fundamentals
MULTIMEDIA
Quizzes Weeks 6, 10
Project Week 13
• http://www.imageprocessingplace.com/
• ……
This lecture will cover
• Introduction
• State of the art examples of digital image processing
• Key stages in digital image processing
• Digital Image / Multimedia Processing Fundamentals
Introduction
• What is Digital Image Processing?
Digital Image
— a two-dimensional function
x and y are spatial coordinates
The amplitude of f is called intensity or gray level at the point (x, y)
Pixel
— the elements of a digital image
What is DIP? (cont…)
•The continuum from image processing to computer vision
can be broken up into low-, mid- and high-level processes
Image
Segmentation
Enhancement
Image Object
Acquisition Recognition
Representation
Problem Domain
& Description
Colour Image Image
Processing Compression
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
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
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
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
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
Computer Vision: Some Applications
• Optical character recognition (OCR)
• Face Detection
• Smile Detection
• Login without password using fingerprint scanners and
face recognition systems
• Object recognition in mobiles
• Smart Cars
• Vision in space
Fundamentals in DIP
A Simple Image Formation Model
f (x, y) i(x, y) r(x, y)
• Illumination
Lumen — A unit of light flow or luminous flux
Lumen per square meter (lm/m2) — The metric unit of measure
for illuminance of a surface
• On a cloudy day, the sun may produce less than 10,000 lm/m2 of
illumination on the surface of the Earth
b=M×N×k
Spatial and Intensity Resolution
• Spatial resolution
— A measure of the smallest discernible detail in an
image
— stated with line pairs per unit distance, dots (pixels)
per unit distance, dots per inch (dpi)
• Intensity resolution
— The smallest discernible change in intensity level
— stated with 8 bits, 12 bits, 16 bits, etc.
Spatial and Intensity Resolution
Spatial and Intensity Resolution
Spatial and Intensity Resolution
Image 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)
Image Interpolation:
Bilinear Interpolation
(x,y)
f2 (x, y)
(1 a) (1b) f (l, k) a (1b) f (l 1, k)
(1 a) b f (l, k 1) a b f (l 1, k 1)
l floor(x), k floor( y), a x l,b y k.
Image Interpolation:
Bicubic Interpolation
• The intensity value assigned to point (x,y) is obtained by the
following equation
f3(x, y) aij x y
3 3
i j
i0 j 0
• The sixteen coefficients are determined by using the sixteen
nearest neighbors.
Examples: Interpolation
Examples: Interpolation
Examples: Interpolation
Examples: Interpolation
Examples: Interpolation
Examples: Interpolation
Examples: Interpolation
Examples: Interpolation
Basic Relationships Between Pixels
• Neighborhood
• Adjacency
• Connectivity
• Paths
• Adjacency p
Let V be the set of intensity values
p
• Adjacency
Let V be the set of intensity values
• Path
A (digital) path (or curve) from pixel p with coordinates (x0, y0) to
pixel q with coordinates (xn, yn) is a sequence of distinct pixels with
coordinates
We can define 4-, 8-, and m-paths based on the type of adjacency
used.
Examples: Adjacency and Path
V = {1, 2}
0 1 1 0 1 1 0 1 1
0 2 0 0 2 0 0 2 0
0 0 1 0 0 1 0 0 1
8-adjacent m-adjacent
Examples: Adjacency and Path
V = {1, 2}
01,1 1
1,2 1
1,3 0 1 1 0 1 1
02,1 2
2,2 0
2,3 0 2 0 0 2 0
03,1 0
3,2 1
3,3 0 0 1 0 0 1
`
8-adjacent m-adjacent
The 8-path from (1,3) to (3,3): The m-path from (1,3) to (3,3):
(i) (1,3), (1,2), (2,2), (3,3) (1,3), (1,2), (2,2), (3,3)
(ii) (1,3), (2,2), (3,3)
Basic Relationships Between Pixels
• Connected in S
Let S represent a subset of pixels in an image. Two
pixels p with coordinates (x0, y0) and q with coordinates
(xn, yn) are said to be connected in S if there exists a
path
i,0 i n,(xi , yi ) S
Basic Relationships Between Pixels
The boundary of the region R is the set of pixels in the region that have
one or more neighbors that are not in R.
If R happens to be an entire image, then its boundary is defined as the
set of pixels in the first and last rows and columns of the image.
b. D(p, q) = D(q, p)
a. Euclidean Distance :
De(p, q) = [(x-s)2 + (y-t)2]1/2
p (x,y)
p
c. Chess Board Distance:
D8(p, q) = max(|x-s|, |y-t|)
Introduction to Mathematical Operations in DIP
Matrix
21 21 22 22
a b a b
product
operator
a11b11 a12b21 a11b12 a12b22
A*B
Matrix product
a b a b
21 11 22 21 21 12 22 22
a b a b
Introduction to Mathematical Operations in DIP
ai gi (x, y) aj g j (x, y)
H is said to be a linear operator;
H is said to be a nonlinear operator if it does not meet the above
qualification.
Arithmetic Operations
K i1
f (x, y)
Example: Addition of Noisy Images for Noise Reduction
e.g.,
Spatial Operations
• Neighborhood operations
• Affine transform
t11 t12 0
x y 1 v w 1t21 t22 0
t31 t32 1
Intensity Assignment
• Forward Mapping
• Inverse Mapping
x cv
1 c2w c3vw c4
y c v c w c vw c
5 6 7 8
M1 N1
f (x, y) T(u, v)s(x, y, u, v)
u0 v0
where s(x, y, u, v) is the inverse transformation ker nel,
x = 0, 1, 2, ..., M-1 and y = 0, 1, ..., N-1.
Image Transform
Example: Image Denoising
Forward Transform Kernel
M 1 N1
T(u, v) f (x, y)r(x, y, u, v)
x0 y0
Where j= 1
M 1 N1
T(u, v) f (x, y)e j 2 (ux/ M vy/ N )
x0 y0
1 M1 N1
f (x, y)
MN u0 v0
T(u, v)e j 2 (ux/ M vy/ N )
Probabilistic Methods
Let zi , i 0, 1, 2, ..., L -1, denote the values of all possible intensities
in an M N digital image. The probability, p(zk ), of intensity level
zk occurring in a given image is estimated as
nk
p(zk ) ,
MN
where nk is the number of times that intensity zk occurs in the image.
L1
p(z ) 1
k 0
k
k0
k 0
Example: Comparison of Standard Deviation Values
31.6 49.2