Docsity

Midterm Sample Solutions - Computer Vision | CS 4495, Papers of Computer Science

Toggle sidebar
bg1
CS4495/7495 Computer Vision “Mid-Term” Sample Solutions
Answer each of the 4 questions. They are worth 25 points each. Show your work, and mostly show your
thoughts. If you can’t do a problem completely, do it as well as you can.
1. (10 pt) This concerns the motion equations of Adiv’s paper and that we did in class. Suppose some point
in
the world is moving with velocity
where

where

is the vector from the camera origin to the point
,
 !#"$
is the translation
vector, and
%&'()
is the rotation vector.
(a) Remembering that
*
and
+
in the image are
-,.
and
/,.
respectively (Assuming focal length
0
is one),
show that:
1
*2&3*4+356'87:9;5<*4=?>@A(B+C5D7EA"3*F>,.
1
+G2&87:9H5<+I=?>J5K'L*M+L5K(B*G5N7OPQ"3+R>,.
Solution
S
TU
V
V
V
V
V
V
W
X
W
Y
W
Z
& ' (
V
V
V
V
V
V
P7['6A(>
W
X
5D7O(B\A&]>
W
Y
5D7[&CPA'C^>
W
Z
;^_``
ab
A'K5K(
A(Bc56&L
]"DA&UD5K'L
de
ab
1
1
1
de
1
*`
1
^6
1
=
1
1
1
*
1
56'BQ(
*
7f"656&CA'U^>
56'BQ(B+
"
*!<&3*4+C5'U*4=
2&3*M+C5K'-7:9;5<*4=?>@Q(B+U5N7OA"3*F> ,g
1
+h
1
G6Q
1
=
1
1
1
+
1
5K(
<&N+
7O"i5&UQ'L^>
5K(B*!<&D
"
+A&C+I=;5K'C*4+
2&87:9H5<+ =>j5'U*M+U5K(B*G5N7OPQ"3+R>,.
pf3
pf4
Discount

On special offer

Partial preview of the text

Download Midterm Sample Solutions - Computer Vision | CS 4495 and more Papers Computer Science in PDF only on Docsity!

CS4495/7495 Computer Vision “Mid-Term” Sample Solutions

Answer each of the 4 questions. They are worth 25 points each. Show your work, and mostly show your thoughts. If you can’t do a problem completely, do it as well as you can.

  1. (10 pt) This concerns the motion equations of Adiv’s paper and that we did in class. Suppose some point

in the world is moving with velocity  where

  

where  is the vector from the camera origin to the point

,  !#"$ is the translation vector, and %&'() is the rotation vector.

(a) Remembering that * and + in the image are -,. and /,. respectively (Assuming focal length 0 is one), show that: 1

 2&34+356'87:9;5<4=?>@A(B+C5D7EA"3F>,. 1 +G2&87:9H5<+I=?>J5K'LM+L5K(B*G5N7OPQ"3+R>,.

Solution

S TU

V

V

V

VV

V

W

X

W

Y

W

Z

V

V

V

VV

V

P7['6A(>

W

X

5 D7O(B\A&]>

W

Y

5 D7[&CPA'C^>

W

Z

;^ _ 

a b  A'K5K( A(Bc56&L ]"DA&UD5K'L

d e



a b 

d e

*`

^6 

6'BQ(

f"656&CA'U^>  

5 6'BQ(B+

!<&34+C5'U*4=

 2&3M+C5K'-7:9;5<4=?>@Q(B+U5N7OA"3*F> ,g

+h

G6Q

K(

<&N +

O"i5&UQ'L^>  

5 K(B*!<&D

+A&C+I=;5K'C*4+

 2&87:9H5<+ =>j5'UM+U5K(BG5N7OPQ"3+R>,.

(b) Consider the following from an intuitive perspective: “With a XXXXXX focal length lens it is difficult to tell rotation from translation.” (Think about translation along * vs rotation about +.) Is XXXXXX ‘long’ or ‘short’; why?

(c) Now explain your answer to (b) using the derived equations in (a). (Hint: this has something to do with 0 — the quantity you assumed was 1. What is the effect of 0 on (a)? If you want, you could re-do (a) using a non-unity 0 but that’s a lot of work.)

Problems 1 b) and c) are worth a total of (5 points). Additional +10 points were given to everybody for these two problems.

  1. (25 pt) Morphology question

See additional file on class the web page.

  1. In our discussions of edge detection, we discussed a variety of operators. Each was a mask of some sort, typically named after the inventor! We also talked about the Marr and Hildreth operator which looked at the zero crossings of the second derivative of a Gaussian filtering of the image.

(a) (12 pt) Explain why the second derivative of a Gaussian might be a good edge detector? (Draw pictures if you like, and think in 1D if 2D is too hard.)

First, if you Gaussian blur an ideal edge you get a nicely rounded slope up. The 2nd^ derivative starts out zero, goes positive then back to zero at the inflection point, then negative and then back to zero. Zeros are easy to find and thresholding on the first derivative magnitude makes it easy to mask off the uninteresting ones. Next, because convolution and differentiation are linear, one can just convolve the image with the second derivative of a Gaussian instead of taking the numerical derivative of the Gaussian blurred image. This is much better than doing numerical approximation of a local derivative. Third, in 2D the second derivative of a Gaussian is the “Laplacian” operator which is a symmetric operator — so no directional bias in detecting edges.

(b) (8 pt) What can you say about the density of edges in the image such an operator might give you? Assume that you threshold the edge finding so that you only accept zero-crossings of sufficient slope.

Because you’ve blurred the image you control how much “high frequency” remains (more tech- nically you dramatically reduce the power of the high frequencies). What high frequency really means is oscillations over a short distance in the image; oscillations are what give edges. Thus by blurring with the Gaussian you can control how dense the edges are: For a given threshold of edge, the bigger the Gaussian the lower the frequency that can have enough power to make it above threshold. Thus the less dense the image edges.

(c) (5 pt) One typically cannot say much about the density of edges many ad-hoc operators might give you (like Sobel). Why can you say more about the edges of something designed like Marr-Hildreth than say Sobel or Prewitt?

The Marr-Hildreth operator is based upon real image processing principles and therefore one can do frequency analysis. In particular, because convolution with a derivative of a Gaussian function is equivalent to multiplication with a different analytic function in the frequency domain, you can model precisely what will happen. If you don’t know about frequency analysis you should still be able to realize that blurring allows control over high frequency power, and that the linearity of the operations permits convolving with an analytic function so that you can state precisely what will happen to an image.