Page ‹#› Digital Cameras Ansel Adams, www.wisconsinhistory.org CS148 Lecture 10 Pat Hanrahan, Winter 2007 Cameras Effect Cause Perspective Lens, Focal length Focus Motion Field of view Film size, focal length Exposure Film speed, aperture, shutter Depth of field Aperture, focal length Motion blur Shutter Reference: Photography, B. London and J. Upton
14
Embed
Digital Cameras - graphics.stanford.edugraphics.stanford.edu/courses/cs148-07/lectures/camera/camera.pdf · Ansel Adams, CS148 Lecture 10 Pat Hanrahan, Winter 2007 Cameras Effect
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page ‹#›
Digital Cameras
Ansel Adams, www.wisconsinhistory.org
CS148 Lecture 10 Pat Hanrahan, Winter 2007
Cameras
Effect Cause
Perspective Lens, Focal length
Focus Motion
Field of view Film size,
focal length
Exposure Film speed, aperture,
shutter
Depth of field Aperture,
focal length
Motion blur Shutter
Reference: Photography, B. London and J. Upton
Page ‹#›
Pinhole Camera
CS148 Lecture 10 Pat Hanrahan, Winter 2007
Pinhole Camera
Camera Obscura
Cliff House, San Francison
Page ‹#›
CS148 Lecture 10 Pat Hanrahan, Winter 2007
Field of View
Redrawn from Kingslake,
Optics in Photography
tan2
fov filmsize
f=
CS148 Lecture 10 Pat Hanrahan, Winter 2007
Field of View
From London and Upton
Page ‹#›
CS148 Lecture 10 Pat Hanrahan, Winter 2007
Field of View
From London and Upton
CS148 Lecture 10 Pat Hanrahan, Winter 2007
Perspective Projection
Page ‹#›
CS148 Lecture 10 Pat Hanrahan, Winter 2007
Translations
CS148 Lecture 10 Pat Hanrahan, Winter 2007
Translations
Page ‹#›
CS148 Lecture 10 Pat Hanrahan, Winter 2007
Homogenous Coordinates
CS148 Lecture 10 Pat Hanrahan, Winter 2007
Perspective Matrix
Page ‹#›
CS148 Lecture 10 Pat Hanrahan, Winter 2007
Perspective Frustum
glFrustum(float l, r, b, t, n, f);
2nr l
0r + lr l
0
02nt b
t + bt b
0
0 0f + n
f n
2 fn
f n0 0 1 0
(r,b,n)
(l.b,n)
(l,t,n)
(r,t,n)
(r*f/n,b*f/n,f)
(l*f/n,b*f/n,f)
(l*f/n,t*f/n,f)
(r*f/n,t*f/n,f)
CS148 Lecture 10 Pat Hanrahan, Winter 2007
Orthographic Transformation
glOrtho(float l, r, b, t, n, f);
2r l
0 0r + lr l
02t b
0t + bt b
0 02
f n
f + n
f n0 0 0 1
Page ‹#›
CS148 Lecture 10 Pat Hanrahan, Winter 2007
Viewing Coordinate Systems
World
Camera
Screen or Window
Raster or Device
Object or Modeling
CS148 Lecture 10 Pat Hanrahan, Winter 2007
Projection and Modeling in OpenGL
glViewport(0,0,w,h);
glMatrixMode (GL_PROJECTION);
glLoadIdentity ();
glOrtho(-1.0, 1.0, -1.0, 1.0, -1.0, 1.0);
glMatrixMode (GL_MODELVIEW);
glLoadIdentity ();
…
Page ‹#›
Lenses
CS148 Lecture 10 Pat Hanrahan, Winter 2007
Gauss’ Ray Tracing Construction
Parallel Ray
Focal RayChief Ray
Object Image
Page ‹#›
CS148 Lecture 10 Pat Hanrahan, Winter 2007
Conjugate Points
To focus: move lens relative to backplane
Horizontal rays converge on focal point in the focal plane
1 1 1
z z f= +
CS148 Lecture 10 Pat Hanrahan, Winter 2007
Depth of Field
From London and Upton
Page ‹#›
CS148 Lecture 10 Pat Hanrahan, Winter 2007
Circle of Confusion
d
a
c d s z
a z z= =
ssz z
c
Circle of confusion proportional
to the size of the aperture
Focal Plane Back Plane
Sensors
Page ‹#›
CS148 Lecture 10 Pat Hanrahan, Winter 2007
CCDs
Developed by Willard Boyle (L) and George Smith (R)