Camera Matrix in Computer Vision
- 30Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
Why are real cameras too complicated for direct mathematical modeling, and what simplification is used instead?
30 questions
- 1
Why are real cameras too complicated for direct mathematical modeling, and what simplification is used instead?
Model answer
Real cameras have large apertures and multiple lenses that are complex to analyze; the pinhole camera model simplifies this by using an infinitesimally small aperture.
Explanation
The pinhole model assumes a single point aperture, so each sensor point receives light from a single direction, making the geometry simple.
- 2
What problem arises when a camera aperture is larger than a pinhole, and how do real cameras compensate?
Model answer
A larger aperture allows light from many directions to reach each sensor point, causing blur. Real cameras use lenses to focus light and reduce blur.
Explanation
Lenses bend light rays to converge on the sensor, preventing the blur that would occur with a large aperture alone.
- 3
Name two types of distortion introduced by lenses that are not captured by the pinhole model, and state which one can be corrected.
Model answer
Radial distortion and tangential distortion. Radial distortion can be corrected, while tangential distortion is usually small enough to ignore.
Explanation
Lenses introduce radial distortion (often barrel or pincushion) which can be calibrated and corrected; tangential distortion due to misalignment is minimal for quality lenses.
- 4
In the camera coordinate system used in the video, where is the aperture placed and along which axis does the camera look?
Model answer
The aperture is placed at the origin, and the camera looks along the positive z-axis (optical axis).
Explanation
The sensor is aligned with the x- and y-axes, and the optical axis (z-axis) goes through the center of the image plane.
- 5
What is the rule used to derive the relationship between a 3D point's coordinates and its image coordinates in the pinhole model?
Model answer
The rule of similar triangles: the ratio of image coordinates to focal length equals the ratio of world coordinates to depth.
Explanation
From similar triangles, −U/−F=X/Z gives U=F∗X/Z.
- 6
The video mentions that multiple pinhole cameras can produce the same image. What condition must be satisfied for two pinhole cameras to yield identical images?
Model answer
The ratio of focal length to sensor width (F/W) must be the same; equivalently, the product of focal length and pixels per millimeter is constant.
Explanation
If you double both focal length and sensor width, the angle of view and image content remain unchanged.
- 7
In the intrinsic camera matrix, how is the focal length converted from millimeters to pixels?
Model answer
Multiply the focal length in millimeters by the number of pixels per millimeter: fx=F⋅(w/W), where w is sensor width in pixels and W in millimeters.
Explanation
The scaling factor k=w/W gives pixels per millimeter, and fx=kF.
- 8
What does the principal point (u0,v0) represent in the intrinsic matrix?
Model answer
It represents the pixel coordinates of the optical axis's intersection with the image plane, accounting for sensor misalignment.
Explanation
If the sensor is offset, the principal point shifts; u0 and v0 correct this offset in the projection equations.
- 9
Write the equation for the image x-coordinate u in pixels in terms of a 3D point (X,Y,Z) in camera coordinates, with focal length in pixels fx, principal point u0, and assuming no shear.
Model answer
u=fx⋅ZX+u0
Explanation
Derived from similar triangles with pixel scaling, adding the principal point offset.
- 10
What does the shear parameter s in the intrinsic matrix represent? Is it typically present for an ideal pinhole camera?
Model answer
The shear parameter s models the skew of the image plane (non-rectangular pixels). For an ideal pinhole camera, s is not a factor (usually zero).
Explanation
Shear can occur if the sensor is not perfectly aligned, but it's not part of the ideal pinhole model.
- 11
Write the 3×3 intrinsic camera matrix K for a camera with focal lengths fx and fy, principal point (u0,v0), and shear s.
Model answer
K=fx00sfy0u0v01
Explanation
This matrix encodes the intrinsic parameters in homogeneous form.
- 12
In the conversion of the intrinsic projection to homogeneous coordinates, what does the tilde (∼) mean between the left and right sides?
Model answer
The tilde means the two expressions are equivalent up to an unknown scale factor.
Explanation
Homogeneous coordinates are unique only up to scale, so equality is replaced by proportionality.
- 13
Write the homogeneous equation relating image point [u;v;1] to a 3D camera point [X;Y;Z;1] using the intrinsic matrix K and depth Z.
Model answer
s⋅uv1=K⋅XYZ1, where s=Z is the scale factor.
Explanation
Alternatively, [u;v;1]≈K[X/Z;Y/Z;1], but the homogeneous form includes scale.
- 14
In the video, the formula u=fx⋅X/Z+u0 is derived. Explain how the sensor offset u0 affects the image coordinate when the sensor is misaligned.
Model answer
If the sensor is offset by u0 pixels to the right, the image coordinate becomes more negative by u0, so we add u0 back to obtain the correct coordinate.
Explanation
The offset shifts the entire image; adding u0 compensates for that shift.
- 15
What is the main advantage of using homogeneous coordinates over Cartesian coordinates for representing points in projective geometry?
Model answer
Homogeneous coordinates can represent points at infinity and allow rotation and translation to be combined into a single matrix multiplication.
Explanation
In 3D, a 4x4 homogeneous matrix can encode both rotation and translation, simplifying transformations.
- 16
Given Cartesian coordinates (x,y)=(3,2), give an example of homogeneous coordinates (a,b,c) that represent the same point.
Model answer
One example is (3,2,1). Any non-zero scalar multiple also works, e.g., (6,4,2).
Explanation
Homogeneous coordinates are given by (xS,yS,S) for any non-zero S.
- 17
How can you recover Cartesian coordinates from homogeneous coordinates (a,b,c)?
Model answer
Divide the first two components by the third: (x,y)=(a/c,b/c).
Explanation
This reverses the homogeneous scaling.
- 18
How do homogeneous coordinates represent a point at infinity?
Model answer
A point at infinity in a given direction is represented by (a,b,0) where (a,b) is the direction vector. Setting the third coordinate to zero moves the point to infinity.
Explanation
As the third component approaches zero, the point moves further away; at exactly zero, it is at infinity.
- 19
In the context of 3D computer vision, why are homogeneous coordinates used for the extrinsic camera matrix?
Model answer
They allow rotation and translation to be combined into a single 4×4 matrix, so a point can be transformed from world to camera coordinates with one matrix multiplication.
Explanation
Without homogeneous coordinates, you would need to separately apply rotation and translation.
- 20
Write the homogeneous representation of a 3D Cartesian point (X,Y,Z).
Model answer
(X,Y,Z,1) or any non-zero scalar multiple.
Explanation
Adding a 1 as the fourth coordinate extends to homogeneous form.
- 21
What is the extrinsic camera matrix, and what does it do?
Model answer
The extrinsic matrix (world-to-camera) transforms points from world coordinates to camera coordinates. It encodes rotation and translation between the two coordinate systems.
Explanation
It allows projecting a world point into the camera's reference frame before intrinsic projection.
- 22
Given the camera's position and orientation in world coordinates, how do you obtain the world-to-camera matrix?
Model answer
Construct the camera-to-world matrix from the camera's rotation and translation, then invert it to get the world-to-camera matrix.
Explanation
Transforming the coordinate system one way is equivalent to transforming points the inverse way.
- 23
In the 2D example, rotating the world coordinate system counter-clockwise by 90∘ caused the point's coordinates to change. How did the point appear to rotate?
Model answer
The point's coordinates rotated clockwise by 90∘ (the inverse of the coordinate system rotation).
Explanation
Rotating the coordinate system CCW is equivalent to rotating the point CW by the same angle.
- 24
What is the structure of the camera-to-world matrix in homogeneous form (rotation R and translation t)?
Model answer
It is a 4×4 matrix: [R0t1], where R is a 3×3 rotation matrix and t is a 3×1 translation vector.
Explanation
The bottom row is [0,0,0,1] to preserve homogeneous scaling.
- 25
What is the formula for the inverse of a camera-to-world transformation matrix [R∣t]?
Model answer
The inverse is [RT0−RTt1].
Explanation
Since the matrix is a rigid transformation, the inverse reverses the translation and uses the transpose of the rotation.
- 26
In the video, the world-coordinates of a point are given and the world-to-camera matrix is applied. Why can the last row of the homogeneous coordinates be dropped after transformation?
Model answer
Because the last entry of the homogeneous coordinates is 1 (the point is a Cartesian point, not scaled), and the third coordinate (Z) after transformation is not zero, so no scaling is needed. The equation simplifies.
Explanation
The transformation yields a homogeneous point with fourth component 1, equivalent to Cartesian coordinates.
- 27
Write the full camera matrix equation that relates a world point to its image pixel coordinates.
Model answer
s⋅uv1=K⋅[R∣t]⋅XYZ1
Explanation
This combines extrinsic and intrinsic transformations into one equation.
- 28
How is the complete camera matrix defined in terms of intrinsic and extrinsic parameters?
Model answer
The camera matrix P=K[R∣t], where K is the 3×3 intrinsic matrix and [R∣t] is the 3×4 extrinsic (world-to-camera) matrix.
Explanation
This single 3×4 matrix encapsulates full projection from world to image.
- 29
Why does the video state that the camera matrix tells us how a point in world space gets mapped onto an image?
Model answer
It combines the extrinsic transformation from world to camera coordinates and the intrinsic projection onto the image plane into a single matrix.
Explanation
The matrix performs both coordinate system change and perspective projection.
- 30
In the derivation, the intrinsic equation uses camera coordinates, and the extrinsic equation converts world to camera. What is the combined homogeneous equation?
Model answer
s⋅uv1=K⋅[R∣t]⋅XwYwZw1
Explanation
The extrinsic matrix [R∣t] transforms world to camera, then K projects to image.

Ask anything
We've read this whole study set, so questions about it get the best answers.