





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






2
Introduction
bitmap)
Geometric correction
transformation
transform
polynomial
3
4
http://www.mpi-sb.mpg.de/resources/FAM/demos.html http://w3.impa.br/~morph/
5
Preserve lines and parallel lines
Homogeneous coordinates
General form
Special matrices
!
!
!
"
$
$
$
%
&
0 0 1
21 22 23
11 12 13
a a a
a a a
!
R =
cos " #sin " 0
sin " cos " 0
0 0 1
$
%
&
&
&
'
(
)
)
)
, S =
sx 0 0
0 sy 0
0 0 1
$
%
&
&
&
'
(
)
)
)
, T =
1 0 tx
0 1 ty
0 0 1
$
%
&
&
&
'
(
)
)
)
, H =
1 hx 0
hy 1 0
0 0 1
$
%
&
&
&
'
(
)
)
)
!
u
v
1
"
$
$
$
%
&
'
'
'
=
a 11
a 12
a 13
a
21
a
22
a
23
0 0 1
"
$
$
$
%
&
'
'
'
(
x
y
1
"
$
$
$
%
&
'
'
'
6
10
theta = PI/
theta = PI/
tx = -140, ty = 60
11
11
12
13
21
22
23
31
32
u "
v "
w "
a
11
a
12
a
13
a
21
a
22
a
23
a
31
a
32
x
y
, u =
u "
w "
, v =
v "
w "
31 32
12
8 unknowns, 4-point least squares
u "
v "
w "
a
11
a
12
a
13
a
21
a
22
a
23
a
31
a
32
x
y
, u =
u
w
, v =
v
w
(0,0) (0,255)
(255,0)
(255,255)
(0,0) (0,255)
(255,0)
(511,511)
13
14
8/24/09 15
x-ray sensitive
scintillator
fiber optics
CCD array
1242 x 1152
misalignment greater
than 50 micron
19
Step 1: Choose a set of tie points
i
, y
i
): coordinates of tie points in
the original (or distorted) image
, v i
): coordinates of tie points in
the corrected image
Step 2: Decide on which degree of
polynomial to use to model the
inverse of the distortion, e.g.,
Step 3: Solve the coefficients of
the polynomial using least-squares
approach
Step 4: Use the derived polynomial
model to correct the entire original
image
!
X = x 0
x 1
L x [ 24 ]
T
Y = y 0
y 1
L y [ 24 ]
T
!
x ˆ = r u , v ( )
= a 1
u + a 2
v + a 3
uv + a 4
y ˆ = s u , v ( )
= b
1
u + b
2
v + b
3
uv + b
4
!
W =
u 0
v 0
u 0
v 0
1
u 1
v 1
u 1
v 1
1
M M M M
u 24
v 24
u 24
v 24
1
"
$
$
$
$
%
&
'
'
'
'
!
A = a 1
a 2
a 3
a [ 4 ]
T
B = b 1
b 2
b 3
b 4
[ ]
T
!
A = W
" 1 X , B = W
" 1 Y
W
" 1
= ( W
T
W )
" 1
W
T
For each (u,v) in the corrected image,
find the corresponding (x,y) in the
original image and use its intensity as
the intensity at (u,v).
20
21
Tiepoints are
colors (R, G, B),
instead of spatial
coordinates
22
23
24
From Joey Howell and Cory McKay, ECE472, Fall 2000