logo

Assignment, Week 11: Depth of Field Experimentation

Whenever you take a photograph, you need to "focus" the camera. That's the difference between a good picture with correct focus like this:

And a ruined picture with incorrect focus like this:

Here's a simple diagram of a camera's basic elements - the lens and the sensor. The lens works to refract (bend) the light that it receives and project it onto the sensor, which then measures the light. If this is all operating correctly, light from one location in the scene will re-converge at one location on the sensor, and our picture will be "sharp" and "in focus".

However, if the lens/sensor/subject are composed in a way such that the light doesn't converge at the sensor, we get a picture that isn't in focus. The amount of "out of focus" blur is determined by how far off the trajectory is from converging. Here you can see that the image will be very badly misfocused, since the top red trajectory and bottom red trajectory converge far beyond the sensor. What the sensor actually records is where the light lands on the image plane - a large circular red area.

The image trajectories don't have to perfectly converge. There is a tolerable range known as the "circle of confusion". As long as the trajectories still converge within this range, the image will still be sharp enough to be considered "in focus", even if rays don't perfectly converge.

An interesting image attribute of photography and optical systems is that there is only ever one distance that is actually in perfect focus.

Notice here that at one point in the picture - where the "of" is, the picture is perfectly sharp and "in focus", as we'd expect. This is our focus distance. However, as we get further and further away from that point - farther away towards the word "Depth", or closer towards the word "Field", the images gets increasingly blurrier. At the closest and farthest ends, the detail becomes almost indistinguishable (notice how you can barely make out the cross-hatch pattern of lines?).

What's actually going on is that as you move away from the focus distance, the focus error (how much the rays of light fail to converge, per the diagrams above) increases, so the image gets blurrier and blurrier. There is only a certain range of distances which are actually "in focus", where you can make out discernable detail (what constitutes "in focus" and "out of focus" is defined by the 'circle of confusion' from above). This range is called the "depth of field".




Here's another example demonstrating how depth of field can affect a picture. I chose the focus distance to focus on the main subject in the center. As a result, the woman on the left, who is at almost the same distance, is also focused and sharp. However the man on the right, who is much closer to the camera and has a shorter distance, is out of focus and blurry. Similarly, the chairs in the back are much farther away and are also out of focus.

There are three factors that determine the size of this depth of field: aperture, focus distance, and focal length.

By making the aperture (size of opening) of the lens bigger, the angle at which the light is coming in and the angle at which light is being refracted is made much steeper. As a result, when the trajectories of light fail to converge, they diverge at a greater rate, and the depth of field range is made smaller. For example, if you went from an f/5.6->f/2.8 aperture, the depth of field range would shrink, and vice versa.

Another attribute that can change is the distance of the subject, or the distance that you're focusing at. Again, this changes the angle at which light comes in - with longer distances you have less steep angles, and correspondingly the light converges closer, giving you larger depth of field. Instead of standing right up to your subject and using a very close focus distance, for example, you can stand further away and use a longer focus distance, giving you a larger depth of field range (of course your subject will be less magnified).

The third attribute is the focal length of the lens. Focal length is an attribute of the glass itself - the numbers themselves have no direct photographic meaning, but with longer focal length lenses the light is bent less sharply, and thus depth of field will be greater. In pragmatic terms, we utilize longer focal lengths when we have a narrow angle of view, or when we "zoom in", so by zooming in we get a smaller depth of field range. In this example, the lens on the bottom has a longer focal length.

The actual formula for depth of field is this ugly mess:

You will rarely ever have to calculate the depth of field in your picture. However, from this formula we can see the effects of different image attributes, which jive with the optics diagrams from above. Namely:

Small depth of fieldLarge depth of field
Large aperture (small f-number)Small aperture (large f-number
Close focus distance (very close to subject)Long focus distance (far away from subject)
Long focal length (telephoto, "zoomed in")Short focal length (wide angle, "zoomed out")

Now, which do we want - a large depth of field that gets more things in focus, or a small depth of field where only some things are in focus? The answer is subjective, but there are some general uses depending on the type of photography.

Generally, things where you want a large depth of field are scenes like landscapes, or architecture, or macro. Here, you want everything to be sharp and in focus, so you want to shoot at smaller apertures to get a large depth of field (you can also use a wider-angle lens and be further away from the subject, but these change your magnification and composition).

Landscapes

Architecture with large depth of field


Architecture with small depth of field - with small depth of field you don't get to see any details in the building

Macro with large depth of field


Macro with small depth of field - we don't get to see all the details in the image

However, shallow depth of field can have its uses too. Oftentimes, using a shallow depth of field helps us isolate a single subject, since everything else (distracting background, other image elements) will be blurred out.

Portraits

Flowers

Sports

Basically, any kind of photo where we want to isolate and concentrate on a single subject

There is a downside to all this small depth of field, however - it makes focusing errors much more prominent. Going back to an earlier photo, notice how this image is somewhat ruined because I used a very small depth of field that only has correct focus on one subject. I should have used a larger depth of field to make sure the person in front was also sharp, instead of becoming a blurry blob like in this image. Assignment Summary:

Resources: