How Digital Cameras Work
How Digital Cameras Work
Computer Stuff Auto Stuff Electronics Stuff Science Stuff Home Stuff Entertainment Stuff Health Stuff Money Stuff Travel S
You can take a photograph using a conventional film camera, process the film chemically, print
it onto photographic paper and then use a digital scanner to sample the print (record the
pattern of light as a series of pixel values).
You can directly sample the original light that bounces off your subject, immediately breaking
that light pattern down into a series of pixel values -- in other words, you can use a digital
camera.
At its most basic level, this is all there is to a digital camera. Just like a conventional camera, it has a
series of lenses that focus light to create an image of a scene. But instead of focusing this light onto a
piece of film, it focuses it onto a semiconductor device that records light electronically. A computer
then breaks this electronic information down into digital data. All the fun and interesting features of
digital cameras come as a direct result of this process.
In the next few sections, we'll find out exactly how the camera does all this.
A Filmless Camera
The key difference between a digital camera and a film-based camera is that the digital camera has
no film. Instead, it has a sensor that converts light into electrical charges.
The image sensor employed by most digital cameras is a charge coupled device (CCD). Some lowend cameras use complementary metal oxide semiconductor (CMOS) technology. While CMOS
sensors will almost certainly improve and become more popular in the future, they probably won't
replace CCD sensors in higher-end digital cameras. Throughout the rest of this article, we will mostly
focus on CCD. For the purpose of understanding how a digital camera works, you can think of them
as nearly identical devices. Most of what you learn will also apply to CMOS cameras.
The CCD is a collection of tiny light-sensitive diodes, which convert photons (light) into electrons
(electrical charge). These diodes are called photosites. In a nutshell, each photosite is sensitive to
light -- the brighter the light that hits a single photosite, the greater the electrical charge that will
accumulate at that site.
Image Sensors
One of the drivers behind the falling prices of digital cameras has been the introduction of CMOS
image sensors. CMOS sensors are much less expensive to manufacture than CCD sensors.
Both CCD and CMOS image sensors start at the same point -- they
have to convert light into electrons at the photosites. If you've read
the article How Solar Cells Work, you already understand one of the
pieces of technology used to perform the conversion. A simplified
way to think about the sensor used in a digital camera (or
camcorder) is to think of it as having a 2-D array of thousands or
millions of tiny solar cells, each of which transforms the light from
one small portion of the image into electrons. Both CCD and CMOS
devices perform this task using a variety of technologies.
z
z
CCD sensors, as mentioned above, create high-quality, low-noise images. CMOS sensors,
traditionally, are more susceptible to noise.
Because each pixel on a CMOS sensor has several transistors located next to it, the light
sensitivity of a CMOS chip is lower. Many of the photons hitting the chip hit the transistors
instead of the photodiode.
CMOS sensors traditionally consume little power. Implementing a sensor in CMOS yields a
low-power sensor. CCDs, on the other hand, use a process that consumes lots of power. CCDs
consume as much as 100 times more power than an equivalent CMOS sensor.
CMOS chips can be fabricated on just about any standard silicon production line, so they tend
to be extremely inexpensive compared to CCD sensors.
CCD sensors have been mass produced for a longer period of time, so they are more mature.
They tend to have higher quality pixels, and more of them.
Based on these differences, you can see that CCDs tend to be used in cameras that focus on highquality images with lots of pixels and excellent light sensitivity. CMOS sensors usually have lower
quality, lower resolution and lower sensitivity. However, CMOS cameras are less expensive and have
great battery life.
Resolution
The amount of detail that the camera can capture is called the
resolution, and it is measured in pixels. The more pixels your
camera has, the more detail it can capture. The more detail you
have, the more you can blow up a picture before it becomes "grainy"
and starts to look out-of-focus.
Some typical resolutions that you find in digital cameras today
include:
z
E-mailing Pictures
If you take pictures in JPEG
format at 640x480 resolution,
you can download them to your
computer and e-mail them to
friends without having to do
anything to the picture. There's
no need to get film developed
or scan the developed picture.
Just take the picture, transfer it
to the computer and e-mail it.
1600x1200 pixels - This is "high resolution." Images taken with this resolution can be printed in
larger sizes, such as 8x10 inches, with good results. This is almost 2 million total pixels. You
can find cameras today with up to 10.2 million pixels.
Your camera's memory will hold more images at this low resolution than at higher resolutions.
It will take less time to move the images from the camera to your computer.
The images will take up less space on your computer.
On the other hand, if your goal is to print large images, you definitely want to take high-resolution
shots and need a camera with lots of pixels. We'll talk more about print resolution in the next section.
Megapixels
Image Resolution
Wallet
0.3
640x480 pixels
4x5 inches
0.4
768x512 pixels
5x7 inches
0.8
1152x768 pixels
8x10 inches
1.6
1536x1024 pixels
Capturing Color
Unfortunately, each photosite is colorblind. It only keeps track of the total intensity of the light that
strikes its surface. In order to get a full color image, most sensors use filtering to look at the light in its
three primary colors. Once all three colors have been recorded, they can be added together to create
the full spectrum of colors that you've grown accustomed to seeing on computer monitors and color
printers.
The advantage of this method is that the camera records each of the three colors at each pixel
location. Unfortunately, cameras that use this method tend to be bulky and expensive.
Movies
Some cameras offer an "MPEG movie" feature, allowing you to
take short movies with your camera. Look for the ability to change
the resolution of the movie, and find out the maximum movie
length you can record.
To see an example of a typical movie taken by a digital camera,
click on the image below. This movie demonstrates a trick
birthday candle:
The advantages of this method are that only one sensor is required, and all the color information (red,
green and blue) is recorded at the same moment. That means the camera can be smaller, cheaper,
and useful in a wider variety of situations. In other words, it makes it possible to create an affordable
handheld digital camera. The raw output from a sensor with a Bayer filter is a mosaic of red, green
and blue pixels of different intensity.
separate colors into an equally sized mosaic of true colors. The key is that each colored pixel can be
used more than once. The true color of a single pixel can be determined by averaging the values from
the closest surrounding pixels.
There are other ways of handling color in a digital camera. Some single-sensor cameras use
alternatives to the Bayer filter pattern. A company called Foveon has developed a sensor that
captures all three colors by embedding red, green and blue photodetectors in silicon. This X3
technology works because red, green and blue light each penetrate silicon to a different depth. There
is even a method that uses two sensors. Some of the more advanced cameras don't add up the
different values of red, green and blue, but instead subtract values using the typesetting colors cyan,
yellow, green and magenta. However, most consumer cameras on the market today use a single
sensor with alternating rows of green/red and green/blue filters.
Digitizing Information
In the previous sections, we glossed over one of the important technical details so that we could
simplify the explanation of color. You've learned that light is converted to electrical charge; but the
electrical charges that build up in the CCD are not digital signals that are ready to be used by your
computer. In order to digitize the information, the signal must be passed through an analog-to-digital
converter (ADC). Interpolation is handled by a microprocessor after the data has been digitized.
Think of each photosite as a bucket or a well, and think of the photons of light as raindrops. As the
raindrops fall into the bucket, water accumulates (in reality, electrical charge accumulates). Some
buckets have more water and some buckets have less water, representing brighter and darker
sections of the image. Sticking to the analogy, the ADC measures the depth of the water, which is
considered analog information. Then it converts that information to binary form.
Batteries
Digital cameras, especially those that use a CCD sensor and an
LCD display, tend to use lots of power -- which means they eat
batteries. Rechargeable batteries help to lower the cost of using
the digital camera, but rechargeable batteries are sometimes
expensive. Here are some things to consider:
z
z
z
z
z
z
z
z
z
z
Storage
Early generations of digital cameras had fixed storage inside the camera. You needed to connect the
camera directly to a computer by cables to transfer the images. Although most of today's cameras are
capable of connecting to a serial, parallel, SCSI, and/or USB port, they usually provide you with some
sort of removable storage device.
There are a number of storage systems currently used in digital cameras:
z
z
z
z
z
z
z
Built-in memory - Some extremely inexpensive cameras have built-in Flash memory.
SmartMedia cards - SmartMedia cards are small Flash memory modules.
CompactFlash - CompactFlash cards are another form of Flash memory, similar to but slightly
larger than SmartMedia cards.
Memory Stick - Memory Stick is a proprietary form of Flash memory used by Sony.
Floppy disk - Some cameras store images directly onto floppy disks.
Hard disk - Some higher-end cameras use small built-in hard disks, or PCMCIA hard-disk
cards, for image storage.
Writeable CD and DVD - Some of the newest cameras are using writeable CD and DVD drives
to store images.
In order to transfer the files from a Flash memory device to your computer without using cables, you
will need to have a drive or reader for your computer. These devices behave much like floppy drives
and are inexpensive to buy.
Think of all these storage devices as reusable digital film. When you fill one up, either transfer the
data or put another one into the camera. The different types of Flash memory devices are not
interchangeable. Each camera manufacturer has decided on one device or another. Each of the Flash
memory devices also needs some sort of caddy or card reader in order to transfer the data.
TIFF
JPEG
JPEG
(uncompressed)
(high quality)
(medium quality)
640x480
1.0 MB
300 KB
90 KB
800x600
1.5 MB
500 KB
130 KB
1024x768
2.5 MB
800 KB
200 KB
1600x1200
6.0 MB
1.7 MB
420 KB
One thing that becomes apparent is that a 1.44-MB disk cannot hold very many pictures. In fact, at
some image sizes you can't even fit one picture on the disk. But the floppy disk does have its uses.
For Internet publishing and e-mailing pictures to friends, you almost never need a picture bigger than
640x480, and you will almost always save it in JPEG form. In this case, you might be able to fit 16 or
so pictures on each disk.
If you are trying to store the biggest, highest quality images you can, then you will want the highest
capacity medium. A 128-MB Flash memory card, for instance, could store more than 1,400 small
compressed images or 21 of the uncompressed 1600x1200 images. You would probably never use
the whole 128 MB if you were just taking small pictures, but if you were taking the big pictures this
would be the only way to go. The large capacity might also come in handy if you were going on a long
trip and wanted to be able to take lots of pictures.
Compression
It takes a lot of memory to store a picture with over 1.2 million pixels. Almost all digital cameras use
some sort of data compression to make the files smaller. There are two features of digital images that
make compression possible. One is repetition. The other is irrelevancy.
You can imagine that throughout a given photo, certain patterns develop in the colors. For example,
if a blue sky takes up 30 percent of the photograph, you can be certain that some shades of blue are
going to be repeated over and over again. When compression routines take advantage of patterns
that repeat, there is no loss of information and the image can be reconstructed exactly as it was
recorded. Unfortunately, this doesn't reduce files any more than 50 percent, and sometimes it doesn't
even come close to that level.
Irrelevancy is a trickier issue. A digital camera records more information than is easily detected by
the human eye. Some compression routines take advantage of this fact to throw away some of the
more meaningless data. If you need smaller files, you need to be willing to throw away more data.
Most cameras offer several different levels of compression, although they may not call it that. More
likely they will offer you different levels of resolution. This is the same thing. Lower resolution means
more compression.
Controlling Light
It is important to control the amount of light that reaches the sensor. Thinking back to the water bucket
analogy, if too much light hits the sensor, the bucket will fill up and won't be able to hold any more. If
this happens, information about the intensity of the light is being lost. Even though one photosite may
be exposed to a higher intensity light than another, if both buckets are full, the camera will not register
a difference between them.
The word camera comes from the term camera obscura. Camera means room (or chamber) and
obscura means dark. In other words, a camera is a dark room. This dark room keeps out all
unwanted light. At the click of a button, it allows a controlled amount of light to enter through an
opening and focuses the light onto a sensor (either film or digital). In the next couple of sections, you
will learn how the aperture and shutter work together to control the amount of light that enters the
camera.
Aperture
The aperture is the size of the opening in the camera. It's located behind the lens. On a bright sunny
day, the light reflected off your image may be very intense, and it doesn't take very much of it to
create a good picture. In this situation, you want a small aperture. But on a cloudy day, or in twilight,
the light is not so intense and the camera will need more light to create an image. In order to allow
more light, the aperture must be enlarged.
Your eye works the same way. When you are in the dark, the iris of your eye dilates your pupil (that is,
it makes it very large). When you go out into bright sunlight, your iris contracts and it makes your pupil
very small. If you can find a willing partner and a small flashlight, this is easy to demonstrate (if you do
this, please use a small flashlight, like the ones they use in a doctor's office). Look at your partner's
eyes, then shine the flashlight in and watch the pupils contract. Move the flashlight away, and the
pupils will dilate.
Shutter Speed
Traditionally, the shutter speed is the amount of time that light is allowed to pass through the aperture.
Think of a mechanical shutter as a window shade. It is placed across the back of the aperture to block
out the light. Then, for a fixed amount of time, it opens and closes. The amount of time it is open is the
shutter speed. One way of getting more light into the camera is to decrease the shutter speed -- in
other words, leave the shutter open for a longer period of time.
Film-based cameras must have a mechanical shutter. Once you expose film to light, it can't be wiped
clean to start again. Therefore, it must be protected from unwanted light. But the sensor in a digital
camera can be reset electronically and used over and over again. This is called a digital shutter.
Some digital cameras employ a combination of electrical and mechanical shutters.
Cool Facts
z
With a 3-megapixel camera, you can take a higherresolution picture than most computer monitors can
display.
focal length. The focal length is the distance between the lens and the surface of the sensor. You
learned in the section on technical details that the surface of a film sensor is much larger than the
surface of a CCD sensor. In fact, a typical 1.3-megapixel digital sensor is approximately one-sixth of
the linear dimensions of film. In order to project the image onto a smaller sensor, it is necessary to
shorten the focal length by the same proportion.
Focal length is also the critical information in determining how much magnification you get when you
look through your camera. In 35mm cameras, a 50mm lens gives a natural view of the subject. As you
increase the focal length, you get greater magnification, and objects appear to get closer. As you
decrease the focal length, things appear to get farther away, but you can capture a wider field of view
in the camera.
You will find four different types of lenses on digital cameras:
z
Fixed-focus, fixed-zoom lenses - These are the kinds of lenses you find on disposable and
inexpensive film cameras -- inexpensive and great for snapshots, but fairly limited.
Optical-zoom lenses with automatic focus - Similar to the lens on a video camcorder, you
have "wide" and "telephoto" options and automatic focus. The camera may or may not let you
switch to manual focus.
Digital-zoom lenses - With digital zoom, the camera takes pixels from the center of the image
sensor and "interpolates" them to make a full-size image. Depending on the resolution of the
image and the sensor, this approach may create a grainy or fuzzy image. It turns out that you
can manually do the same thing a digital zoom is doing -- simply snap a picture and then cut
out the center of the image using your image processing software.
Replaceable lens systems - If you are familiar with high-end 35mm cameras, then you are
familiar with the concept of replaceable lenses. High-end digital cameras can use this same
system, and in fact can use lenses from 35mm cameras in some cases.
35mm
Equivalent
View
Typical Uses
Wide-angle shots,
landscapes, large
buildings, groups of
people
5.4 mm
35 mm
7.7 mm
50 mm
16.2 mm
105 mm
Things are
magnified and
appear closer.
spread across the entire CCD sensor and all of the pixels can be used. You can think of an optical
zoom as a true zoom that will improve the quality of your pictures.
A digital zoom is a computer trick that magnifies a portion of the information that hits the sensor.
Let's say you are shooting a picture with a 2X digital zoom. The camera will use half of the pixels at
the center of the CCD sensor and ignore all the other pixels. Then it will use interpolation techniques
to add detail to the photo. Although it may look like you are shooting a picture with twice the
magnification, you can get the same results by shooting the photo without a zoom and blowing up the
picture using your computer software.
Macro
If you plan to take close-up images, look for a camera that has a
macro focusing capability. This feature lets you move the
camera's lens very close to the subject. Here is an example of a
macro photograph -- this is a picture of part of a small electric
motor, and the white disk is about the size of a U.S. quarter coin:
Summary
If you've made it this far, you've learned a lot about digital cameras. Let's put it all together as we take
a picture to send to friends.
z
z
z
z
z
z
z
z
You aim the camera at the subject and adjust the optical zoom to get closer or farther away.
You press lightly on the shutter release.
The camera automatically focuses on the subject and takes a reading of the available light.
The camera sets the aperture and shutter speed for optimal exposure.
You press the shutter release all the way.
The CCD is reset and then exposed to the light, building up an electrical charge, until the
shutter closes.
The ADC measures the charge and creates a digital signal that represents the values of the
charge at each pixel.
A processor interpolates the data from the different pixels to create natural color. On many
cameras, it is possible to see the output on the LCD at this stage.
z
z
z
z
To give you an example of typical cameras, here are some popular ones:
viewfinder! The "film" for a digital camera is Flash memory, floppy disks, small hard disks, etc. Most
cameras let you download pictures from the camera so that you can take more, but if you go on a
week-long vacation you will be away from your computer and won't be able to download. So make
sure you pick up enough extra memory when you buy your camera so you won't run out when you
need it. CompactFlash cards now come with up to 1 GB of space, so it's definitely possible to get all
the memory you'll need for a long trip.
Make sure the lens will handle the pictures you plan to take.
If you don't have the right lens, it can be hard to take the best pictures. For example, if your camera
does not have a macro setting, you won't be able to take close-ups. If very crisp detail is important in
your pictures, you'll probably want a high optical zoom number. Be sure to try out the lens system on
a camera before you purchase it. Digital cameras come with a huge variety of lenses, so be sure to
shop around.
Do not confuse digital zoom with optical zoom.
Many cameras advertise things like "100X zoom," but that is often misleading because only part of it
is in the lens. The only part of a zoom lens that really matters is the "optical" part -- the part made out
of glass lenses. This is the "zoom" that will increase the quality of the image. Any form of "digital
zoom" is something you can do yourself outside of the camera. If you use your camera's software to
crop out a small inner portion of a picture and blow it up, you are doing the same thing a digital zoom
is doing. In most cases, the digital zoom simply makes the image fuzzy.
Do not confuse actual resolution with interpolated resolution.
Many cameras advertise that they have, for example, 1000x600 pixel resolution and 1200x800
interpolated resolution. Like digital zoom, interpolated resolution is an illusion. You can do the same
thing yourself with the camera's software, and all it really does is make the image larger and slightly
fuzzy.
See how long the batteries will last.
Many digital cameras eat batteries because they have to power an image sensor, an LCD panel and
a microprocessor all at the same time, and sometimes there's a flash as well! See how long the
batteries will really last in your camera. See if the camera will accept normal alkaline batteries in a
pinch. If you plan on using your camera for long periods of time, think about purchasing an extra
battery for it -- and be sure to check prices ahead of time. Some manufacturers charge an arm and a
leg for their batteries, and if this is the case, you may want to consider a different manufacturer.
Sponsored Links
z
Photography Schools - Find about top photography schools and their programs
Books
z
z
z
z
z
z
z
z
z
z
z