Cameras and Geometry
Cameras and Geometry
Geometry
CAP 5415
Fall 2010
The midterm
• What does the response of a derivative
filter tell me about whether there is an edge
or not?
Things aren't working
• Did you look at the filters?
• Why not?
• Normalize the filters
How do we see the world?
Pinhole model:
– Captures pencil of rays – all rays through a single point
– The point is called Center of Projection (COP)
– The image is formed on the Image Plane
– Effective focal length f is distance from COP to Image
Plane
Slide by Steve Seitz
A little bit of history on building
cameras
Camera Obscura
• Latin for “Dark Box”
• Dark room with a pinhole in wall
• Projects image onto wall
• Allows artists to get perspective right
Pinhole
Pinhole
We know:
so
Generally, pinhole
cameras are dark, because
a very small set of rays
from a particular point
hits the screen.
“circle of
confusion”
i o
P’
Circle of Confusion
It grows as you move farther
away
Circle of Confusion
Circle of Confusion
• Spot caused by a point that is not in focus
f/22 f/5.6
Diffraction
• When light passes through a small aperture
the rays begin to interfere with each other
• For a perfectly circular aperture this leads
to the airy disc pattern
f/22
From http://www.cambridgeincolour.com/tutorials/diffraction-photography.htm#
After Light Strikes the sensor
• Engineering problem:
– I have sensor that records the amount of light
at different pixels
– How do I get a color image instead of a black
and white image?
Solutions
• Three sensors
• One sensor with a color mask
– Each pixel records one wavelength
• A common pattern for the mask is the
Bayer pattern:
Mosaicing
• So, if I took a • My sensor would
picture of this edge record this image
Demosaicing
• I have 1 color at each pixel
• I need three
• Easy solution: Interpolate
+
Problem! This smooths across
the edge
• Because the different pixels are used to
red and green, the smoothing may be
different
+
Result: Color Fringing
Color Fringing