Docsity

Assignment Solutions for CAP5416: Image Processing and Computer Vision, Assignments of Computer Science

Toggle sidebar
bg1
CAP5416: Assignment #3, Due Date: Nov. 14th
Make sure that you writing is legible, or else, type your answers using your
favourite text formatter.
1. In template matching, we define the MSE (mean-squared error) at any
position (m, n) in a picture as:
MSE(m, n) = X
iX
j
(f(i, j)−g(i, j ))2=X
iX
j
[f2(i, j) +
g2(i−m, j −n)−2f(i, j)g(i−m, j −n)]
Where fis a template and gis the image function, (i, j) such that (i−
m, j −n) are in the domain of definition of the template. If the template
is of a smaller spatial extent than the image (they usually are), the im-
age energy in the template window PPg2in general varies with (m, n).
Suggest a way in which this effect can be normalized.
2. Given a set of sample measurements of a one dimensional function f(x),
what is the purpose of minimizing the following functional:
C(S) = Z{λ(S00(x))2+ (f(x)−S(x))2X
k
δ(x−xk)}dx
Write down the Euler-Lagrange equation for this minimization problem.
3. Find the shortest path between two points A and B in a plane using polar
coordiantes. Use calculus of variations to solve this problem. Note that
you have to first write down the equation of the differential element of an
arc in polar coordinates and then minimize the integral of this differential
element between A and B.
4. The area of a surface Z(x, y) is given by
E(A) = Z Z (1 + p2+q2)dxdy (1)
where p=∂Z/∂ x and q=∂Z/∂ y. Find the necessary condition for
minimizing E(A) in (1).
5. Problem 13.1 from Horn’s book
6. Problem 13.16 from Horn’s book
7. Given a set of surface normal constraints, N(xi, yi), i= 1, ..., N and the
depth constraints, d(xi, yi). Write down the variational principle you can
use to compute the underlying surface f(x, y). Also, write down the Euler
Lagrange equation for the same and the discrete form using finite differ-
ences. Comment on how you would numerically solve it.
1

Partial preview of the text

Download Assignment Solutions for CAP5416: Image Processing and Computer Vision and more Assignments Computer Science in PDF only on Docsity!

CAP5416: Assignment #3, Due Date: Nov. 14th

Make sure that you writing is legible, or else, type your answers using your favourite text formatter.

  1. In template matching, we define the MSE (mean-squared error) at any position (m, n) in a picture as:

M SE(m, n) =

i

j

(f (i, j) − g(i, j))^2 =

i

j

[f 2 (i, j) +

g^2 (i − m, j − n) − 2 f (i, j)g(i − m, j − n)]

Where f is a template and g is the image function, (i, j) such that (i − m, j − n) are in the domain of definition of the template. If the template is of a smaller spatial extent than the image (they usually are), the im- age energy in the template window

g^2 in general varies with (m, n). Suggest a way in which this effect can be normalized.

  1. Given a set of sample measurements of a one dimensional function f (x), what is the purpose of minimizing the following functional:

C(S) =

{λ(S′′(x))^2 + (f (x) − S(x))^2

k

δ(x − xk)}dx

Write down the Euler-Lagrange equation for this minimization problem.

  1. Find the shortest path between two points A and B in a plane using polar coordiantes. Use calculus of variations to solve this problem. Note that you have to first write down the equation of the differential element of an arc in polar coordinates and then minimize the integral of this differential element between A and B.
  2. The area of a surface Z(x, y) is given by

E(A) =

(1 + p^2 + q^2 )dxdy (1)

where p = ∂Z/∂x and q = ∂Z/∂y. Find the necessary condition for minimizing E(A) in (1).

  1. Problem 13.1 from Horn’s book
  2. Problem 13.16 from Horn’s book
  3. Given a set of surface normal constraints, N(xi, yi), i = 1, ..., N and the depth constraints, d(xi, yi). Write down the variational principle you can use to compute the underlying surface f (x, y). Also, write down the Euler Lagrange equation for the same and the discrete form using finite differ- ences. Comment on how you would numerically solve it.