Pinhole Cameras
Projection Equation
Let
and
Lenses
Pinhole cameras must balance diffraction (aperture too small) and light ray convergence (aperture too large). Lenses allow far more light to pass through while still allowing light rays to converge on the same point on the sensor plane for light from a specific distance.
The most basic approximation of a lens is the thin lens, which assumes that the lens has zero thickness. More accurate models:
- Assume finite lens thickness
- Use higher-order approximation for
- Take chromatic aberrations, where different wavelengths have different refractive indices and thus focus at different points on the sensor, into account
- Coatings can be used to minimize this
- Consider the impacts of reflection on the lens surface
- Once again, coatings can minimize this and maximize light transmission
- Consider vignetting
Camera Calibration
Used to determine relationship between image coordinates and real-world coordinates - geometric camera calibration.
Intrinsic Parameters
Improvements are needed to the matrix above to consider:
- Scaling: convert real-world coordinates on the sensor to pixel space by multiplying the
values by and , taking into account that the pixels may not be square - Origin: need to translate by
as usually, the center of the sensor is not the origin - Skew: camera pixel axes may be skewed by angle
As a matrix:
In more compact notation: $$ \overrightarrow{p} = \frac{1}{z} \begin{pmatrix} K & \overrightarrow{0} \end{pmatrix} \overrightarrow{P} $$
Where
Then, extrinsic parameters: translation and rotation of the camera frame, must be taken into account, further complicating things: $$ ^C{P} = ^{C}{W}{R} + ^{W}{P} + ^{C}O{W} $$ Combining the two: $$ \overrightarrow{p} = \frac{1}{z} K\begin{pmatrix} {C}{W}{R} & ^{C}O{W} \end{pmatrix} \overrightarrow{P} = \frac{1}{z} M \overrightarrow{P} $$
By using these equations on many features, we can find the value of