Starting from:

$25

CS549-Homework 7 Solved

1.Singular Value Decomposition (4 pts): This is an important tool that allows us to solve systems of equations 𝐴π‘₯βƒ— ≈ βƒ—0βƒ—,|π‘₯βƒ—| = 1. This is useful in camera calibration, where we get such a system of equations and want a non-zero parameter vector π‘₯βƒ—. See Szeliski for an introduction to SVD.

You can think of the SVD as follows:

It takes the component of input π‘₯βƒ— in the 𝑒1 direction, scales it by 𝜎1 and outputs it in the 𝑣1
Repeat for all 𝑒𝑖, πœŽπ‘–, and 𝑣𝑖.
The output vector is the sum of all the contributions
 

Suppose that 2×2 matrix M has singular value decomposition
π‘ˆ ]]
Without computing M, predict the value of 𝑀π‘₯βƒ— for π‘₯βƒ—  and π‘₯βƒ—  based on the SVD properties. Hint: Note that in both cases 𝑉𝑇π‘₯βƒ— has a simple form, so does

𝐷𝑉𝑇π‘₯βƒ—, and finally, so does π‘ˆπ·π‘‰π‘‡π‘₯βƒ—. Now compute M and use it to verify 𝑀[1] and

1

1 .

                         π‘€[      ]

−1
 

Let matrix 𝑁 have singular value decomposition 𝑁 = π‘ˆπ·π‘‰π‘‡. Show that matrix 𝑁𝑇𝑁 has SVD 𝑁𝑇𝑁 = 𝑉𝐷2𝑉𝑇.
 

Camera Calibration (10 pts): One restriction in camera calibration is that the world points chosen must not lie in a single plane, that is, they cannot be co-planar, otherwise calibration will fail. To see this, suppose that there are K world points π‘₯βƒ—π‘–π‘Š,1 ≤ 𝑖 ≤ 𝐾. We know that we need at least 6 points for calibration, 𝐾. Consider what happens if all world points lie in a single plane represented by 𝑝̃ (π‘Ž,𝑏,𝑐,𝑑), defined by π‘₯Μƒπ‘Š  (Szeliski, eqn.  2.7). 
 

                                             Plane containing π‘₯βƒ—π‘–π‘Š

 

The calibration equation is given by π΄π‘šβƒ—βƒ—βƒ— = βƒ—0βƒ—, written out as

                         π‘₯π‘Š             π‘¦π‘Š π‘§π‘Š                     π‘¦π‘Š π‘₯1𝑃𝑧1π‘Š π‘₯ π‘š

π‘¦π‘Š 𝑦1𝑃𝑧1π‘Š 𝑦

                                                                                                                           π‘¦πΎπ‘Š π‘¦πΎπ‘ƒπ‘§πΎπ‘Š 𝑦𝐾𝑃] π‘š

 

Ideally, there should be a single vector π‘šβƒ—βƒ—βƒ— such that π΄π‘šβƒ—βƒ—βƒ—  (or ).  This is the π‘šβƒ—βƒ—βƒ— that we hope to find through the singular value decomposition of 𝐴. The key concept here is the rank of a matrix, which is the number of independent rows, also the number of independent columns. For this π‘šβƒ—βƒ—βƒ— to exist and be unique, 𝐴 must have rank = 11 (or 12 with a very small value for the smallest singular value 𝜎12.  Show that if all world points are co-planar, then 𝐴 cannot have rank greater than 9 by finding 3 independent non-zero vectors π‘šβƒ—βƒ—βƒ— such that

π΄π‘šβƒ—βƒ—βƒ— = βƒ—0βƒ—. (These independent vectors establish that the nullspace of 𝐴 has rank at least 3; hence 𝐴’s rank cannot exceed 12-3=9.) In this case, it is not possible to find a unique π‘šβƒ—βƒ—βƒ— such that π΄π‘šβƒ—βƒ—βƒ— = βƒ—0βƒ— and the calibration procedure fails.

Hint: The non-zero vectors π‘šβƒ—βƒ—βƒ— are mostly 0s. Use the fact that if all world points are coplanar, then π‘₯Μƒπ‘–π‘Š . 

 

Focus of Expansion (8 pts): Suppose that the viewer (camera) is moving. We can model this in the imaging equations as
2

𝐢 = π‘…π‘‹βƒ—π‘Š +𝑇⃗⃗ and 𝑋⃗𝐼 |𝑓⃗| 𝑋⃗𝐢

𝑋⃗
𝑓⃗𝑋⃗𝐢

by letting R and 𝑇⃗⃗ depend on time, 𝑅 . Assume that the camera is

      translating with velocity 𝑉⃗⃗𝐢 𝑑 𝑇⃗⃗ and that there is no rotation, 𝑑 𝑅(𝑑) = 0 . As we know

𝑑𝑑𝑑𝑑

from experience, points in the image will seem to move. As we saw in class, image points will appear to move with velocity

                                                               πΌ                                  π‘‘ 𝑋⃗𝐼(𝑋⃗𝐼 ×𝑉⃗⃗𝐢)×𝑓⃗).

𝑉⃗⃗

                                                                       π‘‘𝑑               𝑓⃗𝑋⃗𝐢
The Focus of Expansion (FOE) is the point in the image toward which the camera appears to be moving, given by the projection of 𝑉⃗⃗𝐢 into the image.  That is,  

                                                                                         πΌ                       |𝑓⃗|𝑉⃗⃗𝐢.

𝑋⃗ FOE
𝑓⃗𝑉⃗⃗𝐢

Show that for any world point π‘‹βƒ—π‘Š, its image point 𝑋⃗𝐼 will appear to move with velocity

𝑉⃗⃗𝐼 = π‘˜(𝑋⃗𝐼 −𝑋⃗𝐼FOE),

proving that image points appear to move toward or away from the FOE. What is k?

More products