Abstract
Digital cameras can be a great way to learn about photography. Most digital cameras today have LCD screens, so you get instant feedback on your photo. If you make a mistake, no problem, you just delete the picture. It's nice that you don't have to worry about the expense and bother of developing film! This project can help you learn to take better pictures.Objective
The goal of this project is to learn how to match the range of light intensities in your subject to the dynamic range of your digital camera. You'll learn how to use gray level histograms to do this.
Introduction
Many digital cameras are the 'point and shoot' type that do all of the exposure settings automatically. If you want to get serious about taking good pictures, it is worthwhile to spend some time learning how to use a camera in manual mode, where you set the lens aperture and shutter speed yourself. A camera with manual mode capability is essential for this project.
You should read your camera's instruction manual so that you are familiar with the steps used for putting the camera into manual mode, and for adjusting the camera's lens aperture (f-stop) and shutter speed. You should also do background research so that you understand how changing the f-stop affects the camera's depth of focus, and how changing the shutter speed affects your ability to 'freeze' moving objects.
One of the toughest challenges for taking good pictures is the huge range of light levels in the natural world. Let's consider the extremes. From the dimmest (starlight) to the brightest (full sunlight) illumination, the ratio is 1:1,000,000,000. In other words, the full sunlight is 1 billion times brighter than starlight. Obviously, most photographic subjects do not span this entire range of intensities, but even on a cloudy day, it is easy to find subjects with a range of light levels of 1:5000 or 1:10,000, and even wider ranges on a day with full sun. The challenge is to represent these differences in light level from your subject to differences in light levels in your photograph.
The range from the dimmest spot to the brightest spot in your subject is called the dynamic range of your subject. Your camera has its own dynamic range, which is quite often smaller than the dynamic range of your subject (one of the reasons that photography can be challenging!) In this project you'll learn how to measure the dynamic range of your digital camera. You'll also learn how to use pixel gray level histograms (or RGB histograms, for color photography) to match the dynamic range of your photographic subjects to the dynamic range of your camera.
A digital camera essentially converts light levels to numbers. Typically, the camera delivers its output in the form of a JPEG file, which can have gray levels ranging from 0–255. Many cameras have a display mode that shows you a gray level (or RGB level, for color photos) histogram of the photo (Figure 1). The x-axis shows the available gray levels, from 0–255. The y-axis shows the number of pixels at each gray level in the image.
![]() |
| Figure 1. Example of a pixel gray level histogram (left) from a digital image (right). The x-axis shows the available gray levels (0–255). The y-axis shows the number of pixels at each gray level in the image. Exposure was 1/125 second at f/2.8. |
Compare the two tiles on the right-hand side of the image to the two tiles in the center of the image. The tiles on the right have sunlight falling on them from a nearby window. Notice that there is almost no texture visible in the two tiles on the right, compared to the two tiles in the middle. In the histogram, the pixels from the tiles on the right are stacked up at the rightmost edge, i.e. gray level 255. We say that those pixels are saturated, because they can't get any brighter. The camera's sensor can no longer register a change in brightness there, so we can't see any texture there in the photograph.
Figure 2 shows an image of the same scene, using a shorter exposure time. Compare the histogram and the image to Figure 1. The sunlit tiles on the right now have clearly visible texture, and the histogram is no longer saturated at the high end. On the other hand, there is less detail visible now in the shadowed areas behind the coffee cup and the roll of paper towels. You can also see from the histogram that there is an 'unused' range of pixel values at the high end. An ideal exposure time might have been in between 1/125 and 1/250 second (e.g., 1/160 second, if available on the camera; alternatively, the aperture could have been closed down by 1/3 or 1/2 stop).
![]() |
| Figure 2. Same scene as in Figure 1, but with half the exposure time (1/250–second, f/2.8). Now the bright end of the histogram is no longer saturated, and the texture of the sunlit tile is visible. |
These two examples illustrate the kinds of trade-offs you need to make in order to make best use of your camera's dynamic range. When you are setting up your camera to take a photograph, you need to match the dynamic range of the subject to the dynamic range of your camera. Sometimes you may lose detail in one region of the image (the shadows, for example) in order to make sure that you are showing sufficient detail in the highlights. For example, you may be interested in showing details of clouds in the sky, and be willing to sacrifice detail in the shadowed areas below. On the other hand, your goal might be to show texture in the dark bark of a tree, and you might be willing to lose detail in the sky to do this. Finally, you might think of ways to increase the light falling on dark areas (e.g., having an assistant hold up a reflector, outside of the camera's field of view) in order to decrease the dynamic range of the subject and maintain sufficient detail at both ends of the gray level histogram. With practice, you'll find that understanding your camera's dynamic range and using gray level histograms improves the quality of your photgraphs.
Terms, Concepts and Questions to Start Background Research
To do this project, you should do research that enables you to understand the following terms and concepts:
More advanced students may also want to do research on the CCD sensors used in digital cameras.
Questions
Bibliography
Materials and Equipment
To do this experiment you will need the following materials and equipment:
Experimental Procedure
Measuring Your Camera's Dynamic Range
![]() |
![]() |
| Filename | Shutter Speed (from your camera's photo-browsing software) |
Pixel Gray Level Statistics | ||||
| Mean | Std. Dev. | Min | Max | Mode | ||
![]() |
Using Pixel Intensity Histograms to Match Subject Light Levels to Camera Dynamic Range
You can also use gray level histograms to see how well your chosen exposure settings (f-stop and shutter speed) map the dynamic range of the image to the dynamic range of your camera.
Variations
Credits
Andrew Olson, Ph.D., Science Buddies
Last edit date: 2007-03-29 10:00:00
If you like this project, you might enjoy exploring careers in Photography, Digital Photography & Video.
![]() |
Cartographers and Photogrammetrist Maps can give us much more information than ways to get from A to B. Maps can give us topographic, climate, and even political information. Cartographers and photogrammetrists collect a vast amount of data, such as aerial data and survey data to produce accurate maps and models. For example, by collecting rainfall data, a cartographer can make an accurate model of how rainfall can affect an area's watershed. The maps and models can then be used by policy makers to make informed decisions. |
![]() |
Film and Video Editor Lights, camera, action! It takes more than actors to put an exciting motion picture movie together. It takes film and video editors and cutting-edge computer technology to make an exciting movie that people want to see. From the many thousands of minutes of film and video, the editor has to choose the best shots to tell a cohesive and compelling story. In addition to having an artistic bent, the film and video editor must relish working with complicated computer equipment. If you would like to combine your artistic talents and your computer skills into a great career, then read on to learn more about film and video editors. | |
![]() |
Audio and Video Equipment Technician Ever wondered who makes sure the jumbotron works at the super bowl? Or that the microphones work at a presidential inauguration? These are the tasks of an audio and video equipment technician. Audio and video equipment technicians work to set up and operate audio and video equipment, including microphones, sound speakers, video screens, projectors, video monitors, and recording equipment. | |||
|
Join Science Buddies
Become a Science Buddies member! It's free! As a member you will be the first to receive our new and innovative project ideas, news about upcoming science competitions, science fair tips, and information on other science related initiatives. |