Lecture 2 Image Formation¶
Camera and Lens¶
Pinhole Camera¶
A barrier to block off most of the rays. The opening is the aperture 光圈.
Flaws
- Less light gets through.
- Diffraction effects (衍射).
Lens 透镜¶
Focal length \(f\) 焦距¶
If \(o = \infty\), then \(f = i\).
Magnification \(m\) 放大率¶
Field of View (FOV) 视野¶
Factor
- Focal Length.
- Longer focal length, Narrower angle of view. Vice versa.
Note
50mm / 46° (and full frame) is the most similar FOV with human eyes. Thus 50mm lens is called standard lens (标准镜头).
- telephoto lens (长焦镜头,望远镜头): 视野小, 放大率大.
- short focal lens (短焦镜头,广角镜头); 视野大, 放大率小.
- Sensor Size
- Bigger sensor size, Wider angle of view. Vice versa.
Aperture 光圈¶
The representation of aperture is its Diameter \(D\).
F-Number
Lens Defocus¶
Blur Circle Diameter (光斑半径)
Focusing 对焦¶
Depth of Field (DoF) 景深¶
From the equation above, we can find that DoF is almost proportional to \(N\), and thus the Larger aperture, the Smaller F-Number and the Smaller DoF.
How to blur the background¶
- Large aperture.
- Long focal length.
- Near foreground.
- Far background.
Geometric Image Formation(定位)¶
Homogeneous Coordinates / Projective Coordinates¶
Suppose that \(\begin{bmatrix} x \\ y \\ w \end{bmatrix}\) is the same as \(\begin{bmatrix} x/w \\ y/w \\ 1 \end{bmatrix}\), then we get
For convenience of dicussion, we can also put the image plane in front of the camera (opposite to the previous picture).
Perspective Projection¶
- What are Preserevd: Straight lines are still straight.
- What are Lost: Length and Angle.
Vanishing Points¶
Properties
- Any two parallel lines have the same vanishing point \(\bf v\).
- \(\bf v\) can be outside the image frame or at infinity.
- Line from \(\bf C\) to \(\bf v\) is parallel to the lines.
Vanishing Lines¶
Multiple vanishing points compose the vanishing lines.
The direction of the vanishing line tells us the orientation of the plane.
Distortion¶
- Converging verticals.
-
Exterior columns appear bigger. (Due to lens flaws.)
-
Radial distortion. (Due to imperfect lens.)
Solution
Take a photo of a grid at the same point and then use the mathematics to calculate and correct radial distortion.
Orthographic Projection¶
Photometric Image Formation(定颜色/亮度)¶
Image Sensor 传感器¶
- CMOS
- CCD (Charge Coupled Device)
Shutter 快门¶
Shutter speed controls exposure time.
Color Sensing¶
-
Color Spaces
- RGB
- HSV
-
Practical Color Sensing: Bayer Filter
Shading 着色¶
BRDF (Bidirectional Reflectance Distribution Function)¶
Diffuse (Lambertian) Reflection¶
- Shading independent of view direction.
Specular Term¶
- Intensity depends on view direction.
Blinn-Phong Reflection Model¶
创建日期: 2022.11.08 20:35:08 CST