Jeffrey Adachi

Projects




Slightly Technical Discussion of Focus and Depth of Field



This page summarizes some technical details about camera focus.

A key idea is depth of field (DOF).

Depth of Field is defined as the distance between the nearest and farthest objects that are in acceptably sharp focus in an image captured by a camera.

Increasing DOF means more of the subject can be in focus.
Decreasing DOF means that less of the subject can be in focus.



Summary


Before you wade through the math, the key takeaways are



Technical Discussion


Definition:
Depth of field (DOF) is defined as the distance between the nearest and farthest objects that are in acceptably sharp focus in an image captured by a camera.

Approximate Depth of Field Formula


depth_of_field ≈ 2 * F_number * c * (distance_to_subject / focal_length_of_lens)2




Implications of the Formula


If I assume c is fixed (based on the desired image quality), then to increase the amount of an object that is in focus, I can either


Increasing the F_number works up to about F8 or F11.
At higher F_numbers, the images are softened by diffraction
So this works, but is limited.

If I increase the distance to the subject, then more of the subject is in focus.
But the object appears smaller in the image.
Since fewer pixels are on the object, I would lose resolution.

Can I use a zoom lens to make the subject look larger?
Unfortunately, optical zoom increases the lens focal length, which reduces the depth of field.

Implication:
No matter what lens and camera I use, there will be a limited range that will be in focus.