• 沒有找到結果。

# Yung-Yu Chuang Digital Visual Effects Cameras

N/A
N/A
Protected

Share "Yung-Yu Chuang Digital Visual Effects Cameras"

Copied!
76
0
0

(1)

## Cameras

### Digital Visual Effects Yung-Yu Chuang

with slides by Fredo Durand, Brian Curless, Steve Seitz and Alexei Efros

(2)

scene film

(3)

scene film

barrier

pinhole camera

(4)

(5)

(6)

(7)

scene lens film

(8)

(9)

### fD’D

Similar triangles everywhere!

### y’/y = D’/D

Frédo Durand’s slide

(10)

### y’/y = D’/D y’/y = (D’-f)/f

Frédo Durand’s slide

Similar triangles everywhere!

(11)

### + = f

The focal length f determines the lens’s ability to bend (refract)

light. It is a function of the shape and index of refraction of the lens.

Frédo Durand’s slide

(12)

scene lens film

“circle of confusion”

### A lens focuses light onto the film

• There is a specific distance at which objects are “in focus”

• other points project to a “circle of confusion” in the image

• Thin lens applet:

http://www.phy.ntnu.edu.tw/java/Lens/lens_e.html

(13)

### Zoom lens

Nikon 28-200mm zoom lens.

200mm

28mm

simplified zoom lens

in operation From wikipedia

(14)

### Field of view vs focal length

i o

f o

i

1 1

1  

Gaussian Lens Formula:

Scene

Sensor

f α

α = 2arctan(w/(2i)) w

Field of View:

Example: w = 30mm, f = 50mm => α ≈ 33.4º

≈ 2arctan(w/(2f))

Slides from Li Zhang

(15)

24mm

50mm

135mm

(16)

### • Radial distortion of the image

– Caused by imperfect lenses

– Deviations are most noticeable for rays that pass through the edge of the lens

No distortion Pin cushion Barrel

(17)

from Helmut Dersch

(18)

### Vignetting

Vignetting

L1

L2

L3 B

A

more light from A than B !

Slides from Li Zhang

(19)

### Vignetting

Vignetting

L1

L2

L3 B

A

more light from A than B !

original corrected

Goldman & Chen ICCV 2005

Slides from Li Zhang

(20)

### Chromatic Aberration

Lens has different refractive indices for different wavelengths.

Special lens systems using two or more pieces of glass with different refractive indexes can

reduce or eliminate this problem.

http://www.dpreview.com/learn/?/Glossary/Optical/chromatic_aberration_0 1.htm

Slides from Li Zhang

(21)

### Exposure = aperture + shutter speed

• Aperture of diameter D restricts the range of rays (aperture may be on either side of the lens)

• Shutter speed is the amount of time that light is allowed to pass through the aperture

F

(22)

### • Two main parameters:

– Aperture (in f stop)

– Shutter speed (in fraction of a second)

(23)

• Slower shutter speed => more light, but more motion blur

• Faster shutter speed freezes motion

### Effects of shutter speeds

1/125 1/250 1/500 1/1000

Walking people Running people Car Fast train

From Photography, London et al.

(24)

### Aperture

• Aperture is the diameter of the lens opening, usually specified by f-stop, f/D, a fraction of the focal length.

– f/2.0 on a 50mm means that the aperture is 25mm – f/2.0 on a 100mm means that the aperture is 50mm

(25)

### A smaller aperture increases the range in which the object is approximately in focus

lens sensor

Point in focus

Object with texture Diaphragm

(26)

### A smaller aperture increases the range in which the object is approximately in focus

lens sensor

Point in focus

Object with texture Diaphragm

(27)

### Depth of field

From Photography, London et al.

(28)

### Exposure

• Two main parameters:

– Aperture (in f stop)

– Shutter speed (in fraction of a second)

• Reciprocity

The same exposure is obtained with an

exposure twice as long and an aperture area half as big

– Hence square root of two progression of f stops vs. power of two progression of shutter speed – Reciprocity can fail for very long exposures

From Photography, London et al.

(29)

### • What will guide our choice of a shutter speed?

– Freeze motion vs. motion blur, camera shake

### • What will guide our choice of an aperture?

– Depth of field, diffraction limit

### • Often we must compromise

– Open more to enable faster speed (but shallow DoF)

(30)

(31)

### Pros and cons of various modes

• Aperture priority

– Direct depth of field control

– Cons: can require impossible shutter speed (e.g. with f/1.4 for a bright scene)

• Shutter speed priority

– Direct motion blur control

– Cons: can require impossible aperture (e.g. when requesting a 1/1000 speed for a dark scene)

• Note that aperture is somewhat more restricted

• Program

– Almost no control, but no need for neurons

• Manual

– Full control, but takes more time and thinking

(32)

### Sensitivity (ISO)

• Third variable for exposure

• Linear effect (200 ISO needs half the light as 100 ISO)

• Film photography: trade sensitivity for grain

• Digital photography: trade sensitivity for noise

From dpreview.com

(33)

(34)

### Film camera

scene lens & film

motor

aperture

& shutter

(35)

### Digital camera

scene sensor

array lens &

motor

aperture

& shutter

• A digital camera replaces film with a sensor array

• Each cell in the array is a light-sensitive diode that converts photons to electrons

(36)

### CCD v.s. CMOS

• CCD is less susceptible to noise (special process, higher fill factor)

• CMOS is more flexible, less expensive (standard process), less power consumption

(37)

(38)

(39)

### SLR view finder

lens

Mirror

(when viewing) Mirror

(flipped for exposure)

Film/sensor Prism

Light from scene

(40)

(41)

(42)

(43)

(44)

(45)

(46)

(47)

(48)

CMY

(49)

(50)

(51)

(52)

### bilinear interpolation

original input linear interpolation

(53)

(54)

(55)

### Median-based interpolation (Freeman)

original input linear interpolation

color difference (e.g. G-R)

median filter (kernel size 5)

Reconstruction (G=R+filtered difference)

(56)

(57)

(58)

### Demosaicking CFA’s

bilinear Cok Freeman LaRoche

(59)

### Demosaicking CFA’s

Generally, Freeman’s is the best, especially for natural images.

(60)

(61)

(62)

(63)

(64)

### Cameras with X3

Sigma SD10, SD9 Polaroid X530

(65)

(66)

### • After color values are recorded, more color processing usually happens:

– White balance

– Non-linearity to approximate film response or match TV monitor gamma

(67)

### White Balance

automatic white balance warmer +3

(68)

### Manual white balance

white balance with the white book

white balance with the red book

(69)

### • Active

– Sonar – Infrared

(70)

### Digital camera review website

A cool video of digital camera illustration

http://www.dpreview.com/

(71)

(72)

### Interlacing

with interlacing without interlacing

(73)

(74)

(75)

(76)

### References

• http://www.howstuffworks.com/digital-camera.htm

• http://electronics.howstuffworks.com/autofocus.htm

• Ramanath, Snyder, Bilbro, and Sander.

Demosaicking Methods for Bayer Color Arrays, Journal of Electronic Imaging, 11(3), pp306-315.

• Rajeev Ramanath, Wesley E. Snyder, Youngjun Yoo, Mark S. Drew,

Color Image Processing Pipeline in Digital Still Cameras, IEEE Signal Processing Magazine Special Issue on Color Image Processing, vol. 22, no. 1, pp. 34-43, 2005.

• http://www.worldatwar.org/photos/whitebalance/ind ex.mhtml

• http://www.100fps.com/

– Change Window Type to Video Scene Editor – Select Add → Images and select all images – Drag the strip to the “1st Frame” in Layer

Edit Video Layer (Right click and drag, left click to set). Drag the strip

A light beam incident on a small circular aperture becomes diffracted and its light intensity pattern after passing through the aperture is a diffraction pattern with circular

Courtesy: Ned Wright’s Cosmology Page Burles, Nolette &amp; Turner, 1999?. Total Mass Density

magnetic field lines that pass through the loop is

Salmon, Automatic Creation of Object Hierarchies for Ray Tracing IEEE CG&amp;A 1987 Object Hierarchies for Ray Tracing, IEEE CG&amp;A, 1987. • Brian Smits, Efficiency Issues

The remaining positions contain //the rest of the original array elements //the rest of the original array elements.

• In Shutter-speed priority mode, photographers sets the shutter speed and the camera deduces the aperture. • In Program mode, the camera