Documente Academic
Documente Profesional
Documente Cultură
Application Area
Medical image analysis (MRI/PET/CT/X-ray tumor
detection/classification)
Face, fingerprint, and other object recognition
Document Image Analysis
Image and/or video compression
Image segmentation and/or denoising
Digital image/video watermarking/steganography
and detection
Introduction
f ( x, y )
a two-dimensional function
x and y are spatial coordinates
The amplitude of f is called
intensity
or
Pixel
the elements of a digital image
Low Level
Source- Image
Output- Image
Operations- Image processing to reduce noise, contrast enhancement, sharpening etc.
Mid Level
Source- Image
Output- Different attributes like edges, contour, segments of soure Image
Operations- Segmentation, classification etc.
High Level
Source- Image
Output- Some useful information which will be used for machine vision
Operations- Image analysis algorithms to extract useful information from image
Sent by submarine
cable between London
and New York, the
transportation time
was reduced to less
than three hours from
more than a week
Major uses
2003
USA 1993
Results of
automated
reading of the
plate content
by the system
The area in
which the
imaging
system
detected the
plate
Improving
the
appearance
Result is
more
suitable than
the original
Partition an image
into its constituent
parts or objects
Extracting
image
components
E h , h : Planck's constant.
Image Acquisition
Transform
illumination
energy into
digital
images
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
Reflectance
0.01 for black velvet
0.65 for stainless steel
0.80 for flat-white wall paint
0.90 for silver-plated metal
0.93 for snow
Digitizing
the
coordinate
values
Digitizing
the
amplitude
values
representation of an MN
numerical array as
f ( x, y )
f (0, 0)
f (1, 0)
...
f ( M 1, 0)
f (0,1)
f (1,1)
...
f ( M 1,1)
...
...
...
...
f (0, N 1)
f (1, N 1)
...
f ( M 1, N 1)
representation of an MN
numerical array as
a0,0
a
1,0
A
...
aM 1,0
a0,1
a1,1
...
aM 1,1
... a0, N 1
... a1, N 1
...
...
... aM 1, N 1
representation of an MN
numerical array in MATLAB
f (1,1)
f (2,1)
f ( x, y )
...
f ( M ,1)
f (1, 2)
f (2, 2)
...
f ( M , 2)
...
...
...
...
f (1, N )
f (2, N )
...
f ( M , N )
resolution
Intensity
resolution
Image Interpolation
Interpolation
Interpolation
(sometimes called
resampling) an imaging method to increase
(or decrease) the number of pixels in a digital
image.
Image Interpolation:
Nearest Neighbor Interpolation
f1(x2,y2) =
f(round(x2),
round(y2))
=f(x1,y1)
f1(x3,y3) =
f(round(x3),
round(y3))
=f(x1,y1)
f(x1,y1)
Image Interpolation:
Bilinear Interpolation
(x,y)
f 2 ( x, y )
(1 a)g(1 b)gf (l , k ) a g(1 b)gf (l 1, k )
(1 a)gbgf (l , k 1) a gbgf (l 1, k 1)
l floor ( x), k floor ( y ), a x l , b y k .
Image Interpolation:
Bicubic Interpolation
f 3 ( x, y ) aij x y
i
i 0 j 0
Examples: Interpolation
Examples: Interpolation
Examples: Interpolation
Examples: Interpolation
Examples: Interpolation
Examples: Interpolation
Examples: Interpolation
Examples: Interpolation
Neighborhood
Adjacency
Connectivity
Paths
Adjacency
Let V be the set of intensity values
Adjacency
Let V be the set of intensity values
Path
A (digital) path (or curve) from pixel p with coordinates (x 0, y0)
to pixel q with coordinates (xn, yn) is a sequence of distinct
pixels with coordinates
(x0, y0), (x1, y1), , (xn, yn)
Where (xi, yi) and (xi-1, yi-1) are adjacent for 1 i n.
0 1
1
0 2
0
0 0
1
0 1 1
0 1
0 2 0
0 2
0 0 1
0 0
0 1
1
0 2
0
0 0
1
0 1 1
0 1
0 2 0
0 2
8-adjacent
0 0 1
0 0
0 1
1
0 2
0
0 0
1
0 1 1
0 1
0 2 0
0 2
8-adjacent
0 0 1
m-adjacent
0 0
0 1 1
0 1 1
0 1
1
0 2 0
0 2 0
0 2
0
m-adjacent
8-adjacent
0 0 1
0 0 1
0 0
The 8-path from (1,3) to (3,3):
The m-path from (1,3) to (3,3):
1
(i) (1,3), (1,2), (2,2), (3,3)
(1,3), (1,2), (2,2), (3,3)
1,1
1,2
1,3
2,1
2,2
2,3
3,1
3,2
3,3
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
(x0, y0), (x1, y1), , (xn, yn)
i, 0 i n, ( xi , yi ) S
Where
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.
Question 1
1
0
1
0
1
1
1
1
0
1
1
1
Region 1
Region 2
Question 2
1
0
1
0
1
1
1
1
0
1
1
1
Part 1
Part 2
1
0
1
0
1
1
1
1
0
1
1
1
Region 1
Region 2
1
0
1
0
1
1
1
1
0
1
1
1
foregroun
d
background
Question 3
0
1
1
1
1
0
0
1
1
1
1
0
0
0
0
1
1
0
0
0
0
0
0
0
Question 4
0
1
1
1
1
0
0
1
1
1
1
0
0
0
0
1
1
0
0
0
0
0
0
0
Distance Measures
a.
D(p, q) 0
b.
D(p, q) = D(q, p)
c.
[D(p, q) = 0, iff p = q]
Distance Measures
The following are the different Distance measures:
a. Euclidean Distance :
De(p, q) = [(x-s)2 + (y-t)2]1/2
b. City Block Distance:
D4(p, q) = |x-s| + |y-t|
c. Chess Board Distance:
D8(p, q) = max(|x-s|, |y-t|)
Question 5
0
0
1
1
0
0
0
1
1
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
Question 6
0
0
1
1
0
0
0
1
1
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
Question 7
0
0
1
1
0
0
0
1
1
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
Question 8
0
0
0
1
0
0
0
1
1
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
Array
product
operator
a11
A
a21
a11b11
A .* B
a21b21
Matrix
product
operator
a12
a22
a12b12
a22b22
b11 b12
B
b
b
21 22
Array
product
a
b
a
b
a
b
a
b
21 11 22 21 21 12 22 22
Matrix
product
H f ( x, y ) g ( x, y )
H ai f i ( x, y ) a j f j ( x, y )
H ai f i ( x, y ) H a j f j ( x, y )
ai H f i ( x, y ) a j H f j ( x, y )
ai gi ( x, y ) a j g j ( x, y )
Additivity
Homogeneit
y
Arithmetic Operations
g ( x, y )
g ( x, y )
K
i 1
1
g ( x, y )
K
1
E g ( x, y ) E
K
1
E
K
g ( x, y )
g i ( x, y )
i 1
f ( x, y) ni ( x, y )
i 1
1 K
f ( x, y ) E
ni ( x, y )
K i 1
i 1
g ( x,y ) 2 K
1
gi ( x , y )
K i 1
f ( x, y )
2
1 K
ni ( x , y )
K i 1
1 2
n( x, y )
K
A {( x, y, z ) | z f ( x, y )}
Ac {( x, y, K z ) | ( x, y , z ) A}
K 2k 1; k is the number of intensity bits used to represent z
A B {max(a, b) | a A, b B}
z
Spatial Operations
Single-pixel operations
Alter the values of an images pixels based on the intensity.
s T ( z)
e.g.,
Spatial Operations
Neighborhood operations
Spatial Operations
Neighborhood operations
transformation)
A spatial transformation of coordinates
( x, y ) T {(v, w)}
t11 t12
y 1 v w 1 t21 t22
t31 t32
Affine transform
0
0
Intensity Assignment
Forward Mapping
( x, y ) T {(v, w)}
Its possible that two or more pixels can be transformed to
the same location in the output image.
Inverse Mapping
(v, w) T 1{( x, y )}
Image Registration
Image Registration
x c1v c2 w c3vw c4
y c5v c6 w c7 vw c8
Where (v, w) and ( x, y ) are the coordinates of
tie points in the input and reference images.
Image Registration
Image Transform
T (u , v ) f ( x, y )r ( x, y , u , v )
x 0 y 0
Image Transform
f ( x, y ) T (u , v) s ( x, y, u, v)
u 0 v 0
Image Transform
T (u, v) f ( x, y )r ( x, y, u , v )
x 0 y 0
j 2 ( ux / M vy / N )
Where j = 1
The inverse kernel
1 j 2 (ux / M vy / N )
s ( x, y , u , v )
e
MN
T (u , v) f ( x, y )e
j 2 ( ux / M vy / N )
x 0 y 0
1
f ( x, y )
MN
M 1 N 1
T (u, v)e
u 0 v 0
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.
L 1
p( z ) 1
k
k 0
L 1
z
k 0
p( z k )
Probabilistic Methods
The variance of the intensities is given by
2 =
L 1
2
(
z
m
)
p( zk )
k
k 0
L 1
(z
k 0
m) p ( z k )
n
14.3
31.6
49.2