Geometric Optics and Camera, Practically - Hlavác
Geometric Optics and Camera, Practically - Hlavác
Václav Hlaváč
Why are lenses needed? Lenses.
Geometric optics as a simplified model. Lenses abberations.
Lens from a physical point of view. Camera, radiometric image formation.
Entire image acquisition chain, overview
2/1
A look at an entire chain: from the observed property of interest through radiance L and
irradiance E to an electrical signal and finally to a digital image.
aperture. Composed from several optical
Computer converting raw image data to
lenses, single optical elements.
a viewable representation.
Shutter. Mechanic or electronic.
Optical viewer (absent with cheaper stands for Liquid Crystal Display.
cameras).
Memory medium, often removable.
Matrix of light sensitive sensors. CCD
or CMOS.
battery.
Amplifier modifying the signal from
sensors.
Improving parts/functions of the camera
5/1
Automatic exposition setting, i.e. joint setting of the diaphragm opening and shutter speed.
Built-in flash.
The camera contains a processor dealing with basic image processin/analysis operations, e.g,
human face detection which serves for automatic selection of image points used for automatic
focusing.
The job of a (photographic) lens
6/1
The optical system (photographic lens) focuses the incoming energy (photons) and creates
Assumptions:
The involved wavelengths of the electromagnetic irradiation (here a frequency sub-band of it
= light) are very small as compared to sizes of used optical and mechanical elements.
The energy of photons (from the quantum theory point of view) are small with respect to
Geometric optics is a rough approximation. Geometric optics is important for daily life technology.
It is also interesting from the point of view of the historic development of opinions in physics.
Recommended reading: Feynman R.P, Leighton R.B., Sands M.: Feynman Lectures on
Physics, 3 volumes, (1963-1965).
A pin-hole camera
8/1
15th century, the architect Filippo Brunelleschi from Italian Florence (1377-1446),
1822 The Frenchman J.-N. Niepce added a photographic plate to the pinhole camera ⇒ the
(str
aigh
t lin
e) r
a y
pinhole
three-dimensional
scene image p
lane
a. The bigger hole passes more light but blurs the image.
b. The small hole causes diffraction and the image will be blurred too.
c. The optimum exists, in which the image is least blurred. Example: For f =100 [mm] and λ=500
[nm], the optimal diameter of the hole is 0.32 [mm].
a b c
Why are lenses used?
10/1
The pin-hole camera:
Collects only a few photons (light).
No abberations (almost).
The lens:
Collects more photons (light).
Have to be in focus.
van Roijen Snell (1580–1626), who formulated the light refraction law on
the boundary of separation of two contacting substances in the year 1621. a1
n1 sin α2
n= = , where n is the refractive index. n1
n2 sin α1
n2
n for a yellow light λ=589 [nm] on the boundary between the vacuum and
X:
X = air 1,0002; water 1.333; crown glass (a small diffusion of light, a a2
small refraction index) 1.517; lead optical glass 1.655; diamond 2.417.
There is an elegant derivation of the Snell’s refraction law, which uses
(approximate) Fermatt’s principle of the shortest time from the year 1650,
see Feynman’s Lectures on Physics.
Lens
12/1
A lens forms an image by focusing light from the scene.
Different rays of an incident light beam are refracted through different angles, so that an
entire beam of parallel rays can be caused to converge on, or to appear to diverge from, a
single point.
The lens, mathematical model
13/1
object focal
point
z f f z’
principal plane
1 1 1
The thin lens equation in a Newtonian form = +
f z0 + f f + z
or rewritten to a simpler expression f 2 = z z 0
A single lens, derivation, idea: similar 4
14/1
y y
y’ y’
z f f z’ z f f z’
y0 z0 + f y0 z0
= =
y z+f y f
By connecting the two equations:
z0 + f z0
=
z+f f
0 0
f (z + f ) = z (z + f )
0 2 0 0
fz + f = zz + f z
2 0
f = zz
Ray diagrams
15/1
Ray diagrams simplify lens operation by It is useful to distinguish between two categories of images (also in
considering three distinct cases: ray diagrams):
Real images - are produced from actual rays of light coming
to a focus (e.g. a film projected onto a screen);
Virtual images - are produced from where rays of light appear
to be coming from (e.g. a magnifying glass image).
A. A ray passing through the optical centre of We will show diagrams representing image formation from an object
the lens; positioned. Let F be the focal point on the object side (left).
B. A ray parallel to the principal axis, which
object positioned between F and the lens
refracts through the lens, passing through
the principal focus; object positioned at F
C. A ray passing through the principal focus
object positioned between F and 2F
lens; virtual, upright, magnified
Similar image to the image above. This time the
Object at F ; parallel rays, image at infinity = no image is the same distance behind the lens as the
usually F .
Normal lens, wide-angle lens, telephoto lens.
Arrangements, telescope, microscope
17/1
Refracting astronomical telescope Compound microscope
Used to see large and distant objects. Large Used to see close, very small objects. Small
objective aperture. objective aperture.
Focal length of the eye piece lens is smaller than Focal length of the eye piece lens is grater than
focal length of the objective. focal length of the objective.
Objective focal length of the objective is large for Objective focal length of the objective is large for
higher magnification. higher magnification.
Thick (composed) lens
the approximation of the optical system 18/1
image
focal point
object
focal point
z f f z’
principal plane 1 principal plane 2
A compound lens, implementation example
19/1
Useful when measured object changes its position or the object is ‘thick’ because
Collimator
Chip
Object in
a scene
Physical object
aperture
f2.8 f8 f22
Depth of focus
23/1
Depth of focus explains, why is it possible to shift the image plane to the right a little in the
direction of optical axis in the image space and still have the image in focus. It is because of a
finite size of one pixel on a sensor or a definite size of the grain in the film.
The dispersive circle has a diameter ε.
aperture
stop
field of focus
principal
point
d
image
focal point
f z
Depth of field determines the range of distances from the center of projection in the object space,
in which the objects are shown in focus. This is the parameter, which is of practical interest for the
photographer.
aperture stop
depth of field
circle of the
admissible defocus
a large aperture, a small depth of field a small aperture, a large depth of field
Aperture stop influence to the field of focus (2)
26/1
f =1,8 f =8 f =22
Lens connecting
C – the distance between the back of the lens and the chip
is approx. 17 mm.
CS – approx 12 mm, the other parameters are the same.
image
plane
named natural vignetting.
The derivation of the related Irradiance equation can be
found in the lecture about image capturing from the f
physics point of view.
The natural vignetting phenomenon describes the
This property is desired in the prism for the light decomposition. However, it is undesirable for lenses.
The lens brings different colors (wavelength) to a focus at different points on optical axis.
Two types: Longitudial/axial (Fig. line 1) and lateral/traverse (Fig. line 2). The aberration is more pronounced at
the lens.
A pair of doublets is used as a building element,
to the optical axis (sagittal = horizontal; tangential = vertical) have different foci.
This causes blur in one direction that is absent in the other direction. If we focus the sensor
for the sagittal plane, we see circles become ellipses in the tangential direction and vice versa.
Courtesy http://www.opto-e.com/
Coma
38/1
Coma (from Latin comet) applies to rays entering the lens at an slanted angle. These rays do
directs to sun, the projected sun is circular. If the optical axis is tilted the projected sun has
elongated shape, like a comet.
Coma is positive when off-axis rays focus furthest from the axis, and negative when they are
closest.
Courtesy http://www.opto-e.com/
Spherical aberration
39/1
Spherical lenses are very common because they are relatively easy to manufacture.
The spherical shape is not ideal for perfect imaging. Collimated rays entering the lens at
different distances from the optical axis will converge to different points at optical axis,
causing an overall loss of focus.
The blur effect increases towards the edge of the lens.
Courtesy http://www.opto-e.com/
Petzvald field curvature
40/1
Field curvature aberration describes the fact that parallel rays reaching the lens from different
directions do not focus on a plane, but rather on a curved (Petzval) surface (rotational
paraboloid).
This causes radial defocusing, i.e. for a given sensor position, only a circular crown will be in
focus. The aberration manifests itself as geometric radial distortion described next.
Courtesy http://www.opto-e.com/
Radial (geometric) distortion
41/1
It is the prevalent distortion. It is pronounced more
(x,y)
of the even order (why?), often only 2nd order. (x’,y’) Dy
Dx
r
(x0 ,y0 )
∆x = (x0 − x0) (κ1r2 + κ2r4 + κ3r6) , x
Incoming radiation (photons) in converted in the semiconductor mass into charge couples,
electron-hole.
The semiconductor is in a static electric field. The Electron-hole couples are converted into a
Cross cut of two main principles for current generation and storing the charge.
CCD architectures
47/1
CCD chip, properties of the technology
48/1
+ Linearity: CCD sensors explore conversion of a photon to the couple electron-hole. The
obtained charge is integrated in a capacitor.
+ Low noise: is given by the integral character of the measurement. Uncooled chip with TV
read-out has SNR approx. 60 dB.
+ Efficiency: Current sensors have hight energetic efficiency approx. 40%, i.e. every third
photon generates one couple electron-hole.
– Read-out: only from the whole chip at once.
– Limited range of intensities: is given by the maximal capacity of individual capacitors..
CMOS chip, properties of the technology
49/1
AGC: Automatic Gain Control; yes/no, can be switched off?, manual control of gain.
Format: size of the photosensitive chip. Given either in inches of the equivalent vidicon tube
black). Compensates intensity conversion function of the CRT (Cathode Ray Tube) and
adjusts it to the sensitivity of a human eye.
Lens thread: C mount / CS mount.
Interlaced/non-interlaced scanning
52/1
1 768 1 768
1 1
2 2
3 3
4 4
574 574
575 575
576 576
Interlaced. Non-interlaced.
Signal, interlaced/non-interlaced scanning
53/1
… ~ … …
1 3 5 575 2 4 6 576 1 2 3 576
Interlaced. Non-interlaced.
Electronic shutter
54/1
Shortened exposition is used either if there is too much light or if fast events have to be captured.
I exposition
t
frame (noninterlaced)
field (interlaced)
Flash light and suppression of ambient light
55/1
I
The shutter time is shortened.
ambient light intensity The instant of the flash is set when the shutter
t is open.
I
flash intensity
The ration between the integral of ambient in-
tensity during the shutter opening and integral
t of the flash intensity gives the influence of am-
I
bient light.
exposition
t
I
flash contribution
t
Color cameras setups
56/1
Three chip cameras – an incoming light is divided to a appropriate chip using color filters and
semitransparent mirrors.
One chip camera has filters directly on a chip. Spatial resolution in color resolution is smaller
R G R G C Y C Y
G B G B M G M G
R G R G C Y C Y
G B G B M G M G
c
(str
aigh
t lin
e) r
ay
pinhole
three-dimensional
scene image p
lane
a b c
a1
n1
n2
a2
object plane image plane
object focal
point
z f f z’
principal plane
y
y’
z f f z’
y
y’
z f f z’
image
focal point
object
focal point
z f f z’
principal plane 1 principal plane 2
Collimator
Chip
Object in
a scene
Optic
axis
Projected
Physical object
aperture
aperture
stop
field of focus
principal
point
d
image
focal point
f z
depth of field
circle of the
admissible defocus
f
pincushion barrel
(x,y)
(x’,y’) Dy
Dx
r
(x0 ,y0 )
x
y
1 768
574
575
576
1 768
574
575
576
field frame
… ~ …
1 3 5 575 2 4 6 576
frame
…
1 2 3 576
I exposition
t
frame (noninterlaced)
field (interlaced)
I
t
I
flash intensity
t
I
exposition
t
I
flash contribution
t
R G R G
G B G B
R G R G
G B G B
C Y C Y
M G M G
C Y C Y
M G M G
scanned document glass