



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Notes; Professor: Beveridge; Class: Image Computation; Subject: Computer Science; University: Colorado State University; Term: Spring 2009;
Typology: Study notes
1 / 5
This page cannot be seen from the preview
Don't miss anything!




©^
Bruce A. Draper & J. Ross Beveridge, March 2 2009
CS510 -CS
- Computer Graphics, Spring 2009Computer Graphics, Spring 2009
Increase complexity by the factor R
-^
Only accurate if R is fairly large
z
So how do you measure the orientation of a pixel?
-^
What does it even mean?
©^
Bruce A. Draper & J. Ross Beveridge, March 2 2009
CS510 -CS
- Computer Graphics, Spring 2009Computer Graphics, Spring 2009
For every (x,y) pixel location, the intensity can be thought of asthe z (height) value.
z
Color images are 5D surfaces - too hard to think about. z
Color can also be thought of as 3 3D surfaces
-^
Pretend the surface is continuous
z
©^
Bruce A. Draper & J. Ross Beveridge, March 2 2009
CS510CS510 -
- Computer Graphics, Spring 2009
Computer Graphics, Spring 2009
Again, this assumes a continuous surface
z
dx(x,y) = I(x,y) - I(x-1,y)
-^
dy(x,y) = I(x,y) - I(x,y-1)
z
z
2
2
−
2
2
1
cos
dy
dx
dy
©^
Bruce A. Draper & J. Ross Beveridge, March 2 2009
CS510CS510 -
- Computer Graphics, Spring 2009Computer Graphics, Spring 2009
Measure it’s orientation
z
compute edge orientation at pixel
-^
rotate template until pixel edge matches the orientation of thetemplate edge
z
rotate using bilinear interpolation
-^
correlate template with image
z
If edge direction estimates are accurate
©^
Bruce A. Draper & J. Ross Beveridge, March 2 2009
CS510CS510 -
- Computer Graphics, Spring 2009Computer Graphics, Spring 2009
(^
)^
(
)^
(^
)^
(
)
©^
Bruce A. Draper & J. Ross Beveridge, March 2 2009
- Computer Graphics, Spring 2009
Computer Graphics, Spring 2009
z
-^
The partial derivatives dx & dy
z
z
x f h x f h x f h x
f^
2
1
©^
Bruce A. Draper & J. Ross Beveridge, March 2 2009
CS510 -CS
- Computer Graphics, Spring 2009Computer Graphics, Spring 2009
z
z
x
f
h
x f h
x f
h
x f^
(^
)
( )
( )
( )
x
f
h
x f h
x f
h
x f^
(^
)^
(^
)^
( )
x f h h x f h x
f^
( )
(^
)^
(^
)^
h
h
x f
h
x f
x f^
©^
Bruce A. Draper & J. Ross Beveridge, March 2 2009
CS510 -CS
- Computer Graphics, Spring 2009Computer Graphics, Spring 2009
z
(^
)^
(^
)^
(^
)
y
x f y x f y x
f
d dx
(^
)^
(^
)^
(^
)
(^
)^
(^
)
y x f y x f y x
f y x f y x f
d dx
©^
Bruce A. Draper & J. Ross Beveridge, March 2 2009
- Computer Graphics, Spring 2009
Computer Graphics, Spring 2009
z
z
Dx
Dy
©^
Bruce A. Draper & J. Ross Beveridge, March 2 2009
CS510CS510 -
- Computer Graphics, Spring 2009Computer Graphics, Spring 2009
z
z
-^
cross-correlation compensates for translation
-^
rotation-free cross-correlation compensates for rotation too
-^
both are expensive
z
-^
Implement simple cross-correlation
-^
Add rotation
-^
Build machinery for appling image transformations to templates
-^
Where score is good, search for scale changes that improve it.
©^
Bruce A. Draper & J. Ross Beveridge, March 2 2009
CS510CS510 -
- Computer Graphics, Spring 2009Computer Graphics, Spring 2009
z
z
©^
Bruce A. Draper & J. Ross Beveridge, March 2 2009
- Computer Graphics, Spring 2009
Computer Graphics, Spring 2009
©^
Bruce A. Draper & J. Ross Beveridge, March 2 2009
CS510 -CS
- Computer Graphics, Spring 2009Computer Graphics, Spring 2009
z
-^
(^
) 0
0 ,
2
1
1
vy ux i e
v u
F v u F
v u
F v u F
π
=
©^
Bruce A. Draper & J. Ross Beveridge, March 2 2009
CS510 -CS
- Computer Graphics, Spring 2009Computer Graphics, Spring 2009
z
0
z
z
©^
Bruce A. Draper & J. Ross Beveridge, March 2 2009
- Computer Graphics, Spring 2009
Computer Graphics, Spring 2009
z
Will Fourier matching work? z
Why or why not?
©^
Bruce A. Draper & J. Ross Beveridge, March 2 2009
CS510CS510 -
- Computer Graphics, Spring 2009Computer Graphics, Spring 2009
z
z
z
∞ ∞−
∞ ∞−
=^
df f H
dx x h
2
2
©^
Bruce A. Draper & J. Ross Beveridge, March 2 2009
CS510CS510 -
- Computer Graphics, Spring 2009Computer Graphics, Spring 2009
z
z
-^
image rotation?
Yes
-^
image scaling?
Yes
-^
perspective distortion?
No
z
©^
Bruce A. Draper & J. Ross Beveridge, March 2 2009
- Computer Graphics, Spring 2009
Computer Graphics, Spring 2009
z
z
Remember that the Polar Coordinates of a point in 2D are itsdistance from the origin
d
and the angle of the vector from the
origin to the point
φ
©^
Bruce A. Draper & J. Ross Beveridge, March 2 2009
CS510 -CS
- Computer Graphics, Spring 2009Computer Graphics, Spring 2009
©^
Bruce A. Draper & J. Ross Beveridge, March 2 2009
CS510 -CS
- Computer Graphics, Spring 2009Computer Graphics, Spring 2009
Why convert into polar coordinates?–
z
z
©^
Bruce A. Draper & J. Ross Beveridge, March 2 2009
- Computer Graphics, Spring 2009
Computer Graphics, Spring 2009
z
z
-^
Just like Polar Coordinates, except that the distance coordinate isexpressed by its logarithm
z
z
©^
Bruce A. Draper & J. Ross Beveridge, March 2 2009
CS510CS510 -
- Computer Graphics, Spring 2009Computer Graphics, Spring 2009
z
z
z
-^
Assume no translation, find rotation & scale shift, apply it
-^
Assume no rotation/scale, find translation, apply it
-^
Repeat until peak in shift theorem reaches a threshold, or fails toimprove