Quiz: the pinhole camera and calibration

Short questions to test your understanding. Try each on paper first, then open the answer. Convention: camera coordinates x right, y down, z forward; pixels u right, v down.


Q1. A camera has f = 800 px and principal point (320, 240). Where does the point (0, 0, 5) (camera coordinates, metres) land? And (0.4, 0.3, 2)?

u = f X/Z + c_x, v = f Y/Z + c_y.

(0, 0, 5) lies on the optical axis: it lands on the principal point (320, 240), at any depth. (0.4, 0.3, 2): u = 800 \cdot 0.2 + 320 = 480, v = 800 \cdot 0.15 + 240 = 360.


Q2. Which of these change the intrinsics K of a camera, and which the extrinsics? (a) Zooming in. (b) Walking two steps forward. (c) Turning the camera to the left. (d) Refocusing on something closer. (e) Binning the pixels 2 × 2.

Intrinsics: the camera and lens. Extrinsics: where the camera is and where it looks.

Intrinsics: (a) zoom (focal length), (d) focus (moves the lens: focal length and distortion change a little), (e) binning (pixels twice as large: f and the principal point in pixels halve). Extrinsics: (b) translation and (c) rotation.


Q3. Zooming in by 2× and walking to half the distance both make the object in the middle of the image twice as large. What is different between the two pictures?

What happens to things in front of and behind the object?

Zooming scales the whole image by 2: the perspective (how fast things shrink with distance) is unchanged. Walking closer changes the perspective: things in front of the object grow much more than things behind it, and parallel lines converge more steeply. Perspective depends only on the camera’s position.


Q4. A camera image of a straight wall edge shows a line that bulges outwards towards the image border. Barrel or pincushion distortion? Is k_1 positive or negative?

With barrel distortion, points move towards the centre, more so far from it.

Barrel distortion, k_1 < 0: the ends of the edge (far from the centre) are pulled inwards more than its middle, so the line looks bowed outwards in the middle relative to its ends, like the sides of a barrel.


Q5. Why does the DLT need at least 6 points, and why must they not all lie on one plane?

Count the unknowns in P; then ask which entries of P a plane can “see”.

P is a 3 \times 4 matrix up to scale: 11 unknowns. Each point gives 2 equations, so 6 points (12 equations) are needed. Points on one plane never test the part of P that multiplies the coordinate perpendicular to the plane, so a whole family of matrices fits them equally well.


Q6. You calibrate with a flat checkerboard. Why should the board be photographed tilted in several directions rather than always facing the camera?

Can you tell a board twice as far away, seen with twice the focal length, from the original?

Seen face-on, doubling the distance and doubling the focal length give the same image: the focal length cannot be separated from the distance. Tilted boards show foreshortening, which depends on the focal length, and each tilt adds independent equations on K.


Q7. After calibrating, the reprojection residuals point outwards everywhere, and they are largest in the image corners. What do you do?

Noise points in random directions.

A systematic pattern means the model is missing something, here radial distortion (or too little of it). Add k_1 (and k_2) to the model and refine again; the RMS should drop to the level of the corner-detection noise and the arrows should become random.


Q8. (math) Show that the camera centre \mathbf c = -R^\top\mathbf t is the null vector of P = K[R \mid \mathbf t] (in homogeneous form).

Compute P(\mathbf c, 1)^\top.

P\binom{\mathbf c}{1} = K(R\mathbf c + \mathbf t) = K(-RR^\top\mathbf t + \mathbf t) = K \cdot \mathbf 0 = \mathbf 0, since RR^\top = I.


Q9. A camera has 1000 pixels across and a horizontal field of view of 53.1°. What is its focal length in pixels? An object 2 m tall at 10 m: how many pixels tall is it (with f from before)?

Half the image width over f is the tangent of half the field of view.

\tan(26.55°) = 0.5 = 500/f, so f = 1000 px. The object: 1000 \cdot 2/10 = 200 px tall.