CSE559A Lecture 2
The Geometry of Image Formation
Mapping between image and world coordinates.
Today’s focus:
Pinhole Camera Model
Add a barrier to block off most of the rays.
- Reduce blurring
- The opening known as the aperture
is the focal length.
is the center of the aperture.
Focal length/ Field of View (FOV)/ Zoom
- Focal length: distance between the aperture and the image plane.
- Field of View (FOV): the angle between the two rays that pass through the aperture and the image plane.
- Zoom: the ratio of the focal length to the image plane.
Other types of projection
Beyond the pinhole/perspective camera model, there are other types of projection.
- Radial distortion
- 360-degree camera
- Equirectangular Panoramas
- Random lens
- Rotating sensors
- Photofinishing
- Tiltshift lens
Perspective Geometry
Length and area are not preserved.
Angle is not preserved.
But straight lines are still straight.
Parallel lines in the world intersect at a vanishing point on the image plane.
Vanishing lines: the set of all vanishing points of parallel lines in the world on the same plane in the world.
Vertical vanishing point at infinity.
Camera/Projection Matrix
Linear projection model.
- : image coordinates 2d (homogeneous coordinates)
- : world coordinates 3d (homogeneous coordinates)
- : camera matrix (3x3 and invertible)
- : camera rotation matrix (3x3)
- : camera translation vector (3x1)
Homogeneous coordinates
- 2D:
- 3D:
converting from homogeneous to inhomogeneous coordinates:
- 2D:
- 3D:
When , the point is at infinity.
Homogeneous coordinates are invariant under scaling (non-zero scalar).
A convenient way to represent a point at infinity is to use a unit vector.
Line equation:
Append a 1 to pixel coordinates to get homogeneous coordinates.
Line given by cross product of two points:
Intersection of two lines given by cross product of the lines:
Pinhole Camera Projection Matrix
Intrinsic Assumptions:
- Unit aspect ratio
- No skew
- Optical center at (0,0)
Extrinsic Assumptions:
- No rotation
- No translation (camera at world origin)
Removing the assumptions:
Intrinsic assumptions:
- Unit aspect ratio
- No skew
Extrinsic assumptions:
- No rotation
- No translation
Adding skew:
Finally, adding camera rotation and translation:
What is the degrees of freedom of the camera matrix?
- rotation: 3
- translation: 3
- camera matrix: 5
Total: 11