Chapter2 Image Formation
Chapter2 Image Formation
http://www.alexfito.com/
http://www.rowland.harvard.edu/images/ModPurp.jpg
Not all these images are the result of sampling a real-world plenoptic function
• Proposition 1. The primary task of early vision is to deliver a small set of useful
measurements about each observable location in the plenoptic function.
• Goal: to transform the image into other representations (rather than pixel values)
that makes scene information more explicit
Cavanagh, Perception 95
What are “visual features”
Foreshortening factor
Diffuse Reflection
• Also called Lambertian or matte reflection
– Light is scattered uniformly in all directions, i.e.
– BRDF is constant:
vr
cos( s ) (vr si )
Specular Reflection
• Amount of light
– Phone model
– Micro-facet model
The recent advent of programmable pixel shaders makes the use of more complex
models feasible.
Optics
• Lens, sensor
• Ideal pinhole camera
• More complex: focus, exposure, vignetting,
aberation,…,
Thin lens model
Thin lens: low, equal curvature on both sides
Optical axis
Thin lens model
object
Focus plane
Thin lens model
object
Circle of confusion
Pinhole camera
Pinhole Camera Model
object
Pinhole Camera Model
object
Pinhole Camera Model
object
2.3 3D to 2D Projection
book: pp32-60
object
xf
u
z
yf
v
z
Pinhole Camera Model
object
Pinhole Camera Model
• Using homogeneous (projective) coordinate
xf
– u
z
yf
v
z
f 0 0 0 x
u fx / z
0 f 0 0 y
w v z fy / z
1 1 0 0 1 0 z
0
0 0 1 1
wx = Kp
Camera Intrinsics
• Imperfect camera
• image sensor
f s cx
K 0 af c y
0 0 1
e.g ., (cx , c y ) (W / 2, H / 2)
i i Cw R 1t
O j
k
C
k
Extrinsic Parameters
with wx = Kp
wx K[R | t]p w
M K[R | t]
Camera Matrix
2.3 Digital Camera
• Process chart
2.3 Digital Camera
• Process chart
2.3.2 Color
• Light from different parts of the spectrum is
somehow integrated into discrete RGB color
values
wx K[R | t]p w
2.3.2 Color
• Primary and Secondary Colors
• Additive colors (projector, monitor)
• Subtractive colors (printing, printing)
CIE color matching
• Commission Internationale d’Eclairage (CIE)
• Color matching experiments
Bayer RGB pattern: (a) color filter array layout; (b) interpolated pixel values
Bayer Pattern, 1976
• Green filters are twice as many as red and
blue filters
• Human visual system is much more sensitive
to high frequency detail in luminance than
chrominance
• Luminance is mostly determined by green
value
Color Balance
• Move the white point of a given image closer
to pure white (R=G=B)
– Multiply RGB values by a different factor
– Color twist, general 3x3 transform matrix
– Exercise 2.9 (optional)
Gamma
• CRT Monitor: non-linear relationship between
the voltage and the resulting brightness is
determined by gamma
2.2