Professional Documents
Culture Documents
Course Instructor:
Dr. Jharna Majumdar
Dean R & D
Professor and Head, Department of CSE(PG)
Head. Centre For Robotics Research
Two Methods:
- Nearest Neighbor Interpolation
- Bilinear Interpolation
x4
x2
x1
Example of varying Quantization level (a) 6 bits, (b) 4 bits, (c) 2 bits, (d) 1
bit
256
128
64 32
16 8
4 2
Storage
Size MXN
I58=I47K11+I48K12+I49K13+I57K21+I58K22+I59K
23+I67K31+I68K32+I69K33
Mathematical Formulation
Image size: (M X N)
Kernel size: (m X n)
Size of the output image: (M - m + 1 X N - n + 1 )
i runs from 1 to M - m + 1 and j runs from 1 to N - n + 1.
(x - 1 , y - 1 ) ( x - 1 , y) ( x - 1 , y + 1)
w1 w2 w3
w4 w5 w6 ( x , y - 1) (x,y) (x,y+1)
w7 w8 w9
(x + 1 , y - 1) (x+1,y) (x+1,y+1)
W1, W2, ….. W9 are the mask coefficients for the 8 neighbors of (x, y)
h[ f( x , y ) ] = w1f( x - 1 , y - 1 ) + w2f( x - 1 , y ) + w3f( x - 1 , y + 1) +
w4f( x , y - 1) + w5f( x , y ) + w6f( x , y + 1 ) + w7f( x + 1 , y - 1 ) + w8f(x +
1 , y ) + w9 f(x + 1 , y + 1)
9 10 10 11 12
9 10 10 12 13
9 x 10 13 14
9 10 10 13 13
10 11 11 14 12
N(10)
N (10)
W (9) 10 + 10 + 10 + 9 39
W (9)
X E (10)
⊗= = = 9.7 ≅ 10
E
(10)
4 4
S (10)
N (10)
NW( 9)
NE (10)
W (9) X E (10)
SE (10)
SW (9)
S (10)
10 + 10 + 10 + 10 + 10 + 9 + 9 + 9 77
⊗= = = 9.6 ≅ 10
8 8