1
CSE467 1
Digital cameras and Imaging!
CSE467 2
Today:
Pinhole camera Film camera Digital camera Sensor types Signal chain Demo projectLet Let’s build a camera…
Digital cameras and Imaging! CSE467 1 Today: Pinhole camera Film - - PDF document
Digital cameras and Imaging! CSE467 1 Today: Pinhole camera Film camera Digital camera Sensor types Signal chain Demo project Let Lets build a camera CSE467 2 1 Camera trial #1 film scene Put a piece of film
1
CSE467 1
Digital cameras and Imaging!
CSE467 2
Today:
Pinhole camera Film camera Digital camera Sensor types Signal chain Demo projectLet Let’s build a camera…
2
Camera trial #1
scene film
Put a piece of film in front of an object.
Pinhole camera
scene film
Add a barrier to block off most of the rays.
barrier pinhole camera
3
Shrinking the aperture
Why not make the aperture as small as possible?
Shrinking the aperture
4
Diffraction Camera Obscura
Drawing from “The Great Art of Light and Shadow “ Jesuit Athanasius Kircher, 1646.5
High-end commercial pinhole cameras
http://www.bobrigby.com/html/pinhole.htmlAdding a lens
6
Adding a lens
scene film lens
“circle of confusion”
A lens focuses light onto the film
Lenses
focus
http://www.phy.ntnu.edu.tw/java/Lens/lens_e.html
Thin lens equation:
7
Exposure = aperture + shutter speed
rays (aperture may be on either side of the lens)
allowed to pass through the aperture
F
Aperture
a change in f-stop occurs, the light is either doubled or cut in half.
8
Depth of field
Changing the aperture size affects depth of field. A smaller aperture increases the range in which the object is approximately in focus
See http://www.photonhead.com/simcam/
Distortion
– Caused by imperfect lenses – Deviations are most noticeable for rays that pass through the edge of the lens
No distortion Pin cushion Barrel
9
Correcting radial distortion
from Helmut Dersch
Film camera
scene film lens & motor aperture & shutter
10
History of Camera Development History of Camera Development
silver/chalk mixture
plates
camera in 1888 – a cheap and easy to operate camera that began to popularize cameras
standard
photographers to view image “through the lens”
Digital camera
scene sensor array lens & motor aperture & shutter
array
that converts photons to electrons
11
History of Digital Camera Development History of Digital Camera Development
CCD v.s. CMOS
process, higher fill factor)
process), less power consumption CCD CMOS
12
Sensor noise
Color
So far, we’ve only talked about monochrome
number of ways:
13
Field sequential Field sequential
14
Field sequential
Prokudin-Gorskii (early 1890’s)
Lantern projector http://www.loc.gov/exhibits/empire/
15
Prokudin-Gorskii (early 1890’s)
Multi-chip
wavelength dependent
16
Embedded color filters
Color filters can be manufactured directly onto the photodetectors.
Microlens and Color Filter
17
Color Filter Response
Color filter array
Color filter arrays (CFAs)/color filter mosaics Kodak DCS620x
18
Color filter array
Color filter arrays (CFAs)/color filter mosaics Bayer pattern
Bayer’s pattern
19
CSE467 37
Design of a DSLR Design of a DSLR
The photographic lens located in front
camera body. Light is then reflected by the mirror to the pentaprism and finally travels to the viewfinder where photographers can observe the scene. Notice that the mirror is flipped down and the shutter covers the image sensor from recording lights.
When DSLR is not Capturing Image
CSE467 38
Design of a DSLR Design of a DSLR
When Capturing an Image
The image capturing process starts when the shutter release button is
up from its original position, allowing light to travel to the sensor area. The shutter that covers the image sensor is now fully opened, and the image sensor is exposed under light and will be capturing the image.
20
All cameras, film or digital, work the same: All cameras, film or digital, work the same: Photons are projected onto a photo-sensitive plane which records the light information
How it works How it works How it works How it works
By confining light to only photons which pass through a certain point, we begin to resolve “detail”
21
Input:
Light
«photons»
Output:
Electrical signals
Si Si Si Si Si
22
Many electrons Voltage: High Implication: Many photons detected, bright exposure Result: bright image Few electrons Voltage: Low Implication: Few photons detected, dark exposure Result: dark image Max electrons Voltage: Max Implication: Max photons detected, brightest exposure Result: White image No electrons Voltage: Zero Implication: No photons detected, darkest exposure Result: Black image
Si Si Si101010100100
Photons Photoelectrons Electrical signal Accumulated charge Digital representation
Image file Amplified electrical signal
23
Photo wells Sensors Sensors
? ? ?
We know the pixel is bright, but what color is it?
Problem: Problem: Since the sensor only records light intensity, we Since the sensor only records light intensity, we can can’ ’t differentiate between colors! t differentiate between colors! Thus, imaging sensors only record in black and white Thus, imaging sensors only record in black and white Solution: Solution: Color filtering, the most common form being the Color filtering, the most common form being the Bayer filter Bayer filter
1) Designates individual photosites to be either red, green, or blue (RGB) 2) Respective color filters are placed over each photosite 3) Thus, only the light energy corresponding to that color’s wavelength reaches the sensor 4) Thus the sensor can interpret the energy recorded at that photosite to be a measure of that certain color 5) Knowing the intensities of red, green, and blue light, we can derive the actual color
24
Drawbacks Drawbacks
…
Actual Image Raw Bayer Output Demosiaced Bayer Output
Photon rate Time
End of exposure End of exposureIdeal
Rate of incoming light is constant
Real life
Rate of incoming light is fluctuating
Photon rate Time
How much fluctuation?
Dictated by Poisson Distribution For n total photons in exposure, standard deviation =
25
Photons collected = n + √n If n = 10,000 photons, Photons collected = 10,000 + √10,000 = 10,000 + 100 photons
√n, so what?
Variable brightness = noise!
Noise monster One of the photographer’s worst enemies CSE467 50
Our camera:
TRDB_D5M from Altera26
CSE467 51
Reference Design
CSE467 52
LCD display
TRDB_LCM From Altera27
CSE467 53
Camera Block Diagram
CSE467 54
This week in lab:
Compile the demo project Get it running Study the code-- what does what Figure out the switches Answer some questions Write a test fixture