

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!


Homework Set Six ECE 161 Department of Computer and Electrical Engineering University of California, San Diego
Nuno Vasconcelos Spring 2009
Due June 4, 2009
a b c d
x y
e f
a) Assume that we computed the motion between two images and obtained the motion vector field (u(x, y), v(x, y)), where u(x, y) and v(x, y) are the horizontal and vertical components of the displace- ment of pixel (x, y) from the first to the second image. Because motion estimation is a noisy process, the motion vectors do not satisfy exactly the affine equation. What is the least squares estimate of the parameters (a, b, c, d, e) based on the measured motion vectors?
b) Suppose that your least squares parameter estimate satisfies b = −c, and that the motion consisted of a rotation by θ radians, followed by scaling, and translation. Determine expressions for the amounts of rotation, scaling, and translation as a function of the affine parameters.
Transformation parameters Rotation π 4 Translation (10, 15) pixels Scaling (2, 3) times
For translation and scaling, the first value is relative to the x, and the second to the y coordinate. Suppose that when an unknown image was subject to the transformations, the result was lena.
a) For each transformation, hand-in a quiver plot of the associated motion vector field (note: feel free to show only a subset of the motion vectors if that makes the plot more clear).
b) For each transformation hand in a surface plot of the components u(x, y) and v(x, y) of the associated motion vector field. What are these surfaces?
c) For each transformation, hand in a plot of the image that was warped to produce lena. (note: for each pixel determine the corresponding pixel in lena and then use interp2()).
x,y∈R
[I(x − u, y − v, t) − I(x, y, t + 1)]^2
for the motion of the pixels in window R between images t and t + 1, a differential solution will lead to a set of equations of the form
[ u v
x,y∈R I
2 x (x, y)^
∑^ x,y∈R^ Ix(x, y)Iy^ (x, y) x,y∈R Ix(x, y)Iy^ (x, y)^ I 2 y (x, y)
∑^ x,y∈R^ Ix(x, y)It(x, y) x,y∈R Iy^ (x, y)It(x, y)
where Ix, Iy , and It are the partial derivatives in the x, y, and t dimensions. Suppose that instead of just translation we need to recover the six parameters of an affine transformation, i.e. we want to minimize the error ∑
x,y∈R
[I(x − (ax + by + e), y − (cx + dy + f ), t) − I(x, y, t + 1)]^2.
Derive the system of equations whose solution leads to the optimal parameter vector (a, b, c, d, e, f )T^.
a = 0.5; b = 0.25; c = 0.25-a/2; w = [c b a b c]’;
a) Hand-in a plot of the 5 images obtained with a 5-level Gaussian pyramid decomposition of the image lena.jpg.
b) Modify your code to compute the Laplacian pyramid. Hand-in a plot of the 5 images obtained with a 5-level Laplacian pyramid decomposition of the image lena.jpg.
c) Using randn() add Gaussian noise of zero mean and standard deviation σ = 10 to the image. Recompute the Laplacian pyramid for the noisy image. What are the differences with respect to c)? Can you comment on the differences in the distribution of signal energy, through the various frequency bands, between 1) edges and 2) independent Gaussian noise?