Lens Model
Our camera contains sensors and a lens. The lens serves to focus light rays from an object and forms an image behind the lens.
We can find the pointโs image at the intersection of a ray going from the object point through the lens center and a ray going parallel to the lens, then through the focal focal point, which is focal length
If
Moreover, if
Note that in a lens model, we must focus the image by placing the image plane exactly
Pinhole Model
The pinhole model simplifies the lens model by assuming that our lens is infinitely small (like a pinhole), only big enough for one ray the travel through the center. Then, thereโs no need for focusing, so we let
Assuming we place the image plane in front (so the image is upright), if
Thus, we can zoom in (increase
Perspective Effects
When projecting the world only our image plane, camera models gives us a variety of interesting perspective effects.
Distortion
Perspective distortion occurs with close objects causing parallel lines in the world to be less parallel the closer they get to the camera.
Conversely, parallel lines look parallel if the object is far from the camera. If we then zoom in by increasing
Dolly Zoom
Dolly zoom is a special application of perspective distortion. It keeps the object size constant while shrinking or stretching the background.
- If parallel lines arenโt parallel, we have small
and small . In other words, weโre close to the object with a small focal length. - If parallel lines are parallel, we have large
and . In other words, weโre far from the object with a large focal length.
If the background shrinks (we see more of it), weโre transitioning from (2) to (1), moving closer to the object while zooming out. Conversely, if the background stretches, we go from (1) to (2), moving farther while zooming in.
Parallelism
In the real world, parallel lines donโt intersect. However, due to the projection onto the image, parallel lines may intersect at vanishing points on the image. On the other hand, intersecting lines in the real world may appear parallel in an image. Both cases are illustrated below.
The vanishing point of two real-world parallel lines is the intersection of a parallel ray from the camera to the image plane.
Real-world intersecting lines appear parallel when their intersection cannot be projected onto the image plane. In other words, they intersect at a point at infinity, and the ray from the camera to the point is parallel to the image plane.