MarkBarbieri
Semi-retired
- Joined
- Aug 20, 2006
- Messages
- 6,172
The question came up in a recent thread (Are there any PnS cameras that can do this?) as to whether a PnS camera can have a sharply focused subject and a blurry background. I thought it would be fun (knowing how much you guys love that mathematics of optics
) to explore the math on the subject.
What we want to know is how blurry a given spot that is not our subject will be in a picture and what determines that. Before we get to the formula, let's define our terms and symbols.
b - The diameter of the blurry spot. A big number means that something is very out of focus. A small number means that something is more in focus. At the plane of focus, this is 0.
f - The focal length of your lens.
m - The magnification level. This is how large something in your picture (printed or shown on the screen) is compared with the object in real life.
N - Your f-stop or aperture. I know it's a dumb letter to pick, but I'm trying match the letters used in the Wikipedia article I'll reference below.
s - The distance to your subject.
D - The distance to the thing that is not your subject. This is the thing we are trying to make blurry.
The equation is:
b = f * m / N * |s - D| / D
The |s - D| to anyone not familiar with that nomenclature is the absolute value of s - D. In other words, if s is bigger than D, then it is just s minus D. If D is bigger than s, then it is D - s.
First, let's ignore m. It's useful if you are trying to calculate the size of the actual blurry spot, but it's not useful in comparing a PnS to a DSLR. The reason is that it is the same. I am trying to compare two pictures take at the same spot zoomed in the same amount (same field of view). In both cases, the magnification (the relative size of the stuff in real life compared to it's size in the picture) is identical.
Let's look at f. The bigger it gets, the blurrier our spot gets (all other things equal). In other words. If I stand in one spot and use a longer focal length, I'll get a blurrier background. I'll also have a smaller field of view.
If you recall from earlier postings, the field of view is determined by both the focal length and the sensor size. Smaller sensors have narrower fields of view for the same focal length. Imagine that you and I are standing in the same spot and I have a PnS with a tiny sensor and you have a DSLR with a much larger sensor. If we are taking photos with the same image, I must be using a much smaller focal length. This smaller focal length is what causes me to have a greater depth of field (less blurriness).
Let's give some specific examples. Let's say that there are four of us. I'm standing there with a Canon 1Ds Mark III and an 85mm f/1.2 lens that someone has kindly donated to me for this example. GDad is standing there with his D300 (which has a sensor that has a 1.5x crop factor) and a Nikon 24-70 f/2.8 lens. Pea-N-Me is standing there with her Olympus 510 (2x crop factor) and a 35-100 f/2 lens. Bob100 is standing there with his Canon S5 (6x crop factor).
Let's say that our subject is 10 feet from us and the background (a bunch of trees) is 100 feet from us. We'll all start by shooting at f/2.8. To make our images cover the same area, I'll shoot at an 85mm focal length; GDad will shoot at 57mm (85 / 1.5); Pea-N-Me will shoot at 42mm (85 / 2); and Bob100 will shoot at 14mm (85 / 6).
A spot on the tree in the background will result in a blurry dot this big for each of us:
Mark - 27
GDad - 18
Pea-N-Me - 13
Bob100 - 4 1/2
Because we don't know the magnification (until we print or display), we don't know what unit these numbers are in. The useful thing is that it shows us the relative size of the blur spots.
Now let's play with our apertures. Bob100 will open his up as wide as possible. That makes the f-stop number lower. That makes the blur spot bigger. Alas, the widest aperture on the S5 is 2.7, so the biggest he can make his blur spot is 5. For comparison, to get the same "bluriness", Pea-N-Me would have to shoot at about f/7.5. GDad would have to shoot at f/10. I would have to shoot at f/15.
What happens if we move the trees farther away? Let's go to 1,000 feet. In that case, the bluriness doesn't increase that much. In fact, it just nudges up to 5. That's because the difference is in the |s - D| / D part of the equation. That goes from 90 / 100 to 990 / 1000. In other words, the movement of the background increased the distance factor from 0.9 to 0.99. Not much of an increase.
Now imagine that we moved the trees closer. Say go to 20 feet. Now, the distance factor goes from 0.9 to 0.5 (which is |10 - 20| / 20). So our bluriness is cut almost in half from 4 1/2 to 2 1/2.
As you can see from the formula, the bigger the difference between your subject and your background, the bigger the blur.
You can also see that the blur increases faster in front of the subject than it does behind the subject. For example, with a subject at 10 feet distant and objects 1 foot in front and behind. The one in front would have a distance blurring factor of 0.11 (which is |10 - 9| / 9). The one in front would have a distance blurring factor of 0.09 (which is |10 - 11| / 11). Switch to 5 feet in front and behind and you get a distance blur factor of 1 in front and 0.33 behind.
So how do I get the most blur with my camera? As you can see, getting the most separation between your subject and background will give you the most blur. Using your widest aperture (lowest f-stop) helps. Using a longer focal length will also give you more blur, but there is a catch. If you zoom in, you'll also need to step back to keep your subject the same size. Stepping back will then increase s, which makes it harder to blur things behind your subject.
You can also see that the larger your sensor, the easier it is to blur things. Conversely, larger sensors have a hard time getting everything in focus. That's why PnS are often so good at macro shooting.
Any questions? Any mistakes? Any still reading this?
The formula comes from the following Wikipedia article.
http://en.wikipedia.org/wiki/Depth_of_field#Derivation_of_the_DOF_formulas

What we want to know is how blurry a given spot that is not our subject will be in a picture and what determines that. Before we get to the formula, let's define our terms and symbols.
b - The diameter of the blurry spot. A big number means that something is very out of focus. A small number means that something is more in focus. At the plane of focus, this is 0.
f - The focal length of your lens.
m - The magnification level. This is how large something in your picture (printed or shown on the screen) is compared with the object in real life.
N - Your f-stop or aperture. I know it's a dumb letter to pick, but I'm trying match the letters used in the Wikipedia article I'll reference below.
s - The distance to your subject.
D - The distance to the thing that is not your subject. This is the thing we are trying to make blurry.
The equation is:
b = f * m / N * |s - D| / D
The |s - D| to anyone not familiar with that nomenclature is the absolute value of s - D. In other words, if s is bigger than D, then it is just s minus D. If D is bigger than s, then it is D - s.
First, let's ignore m. It's useful if you are trying to calculate the size of the actual blurry spot, but it's not useful in comparing a PnS to a DSLR. The reason is that it is the same. I am trying to compare two pictures take at the same spot zoomed in the same amount (same field of view). In both cases, the magnification (the relative size of the stuff in real life compared to it's size in the picture) is identical.
Let's look at f. The bigger it gets, the blurrier our spot gets (all other things equal). In other words. If I stand in one spot and use a longer focal length, I'll get a blurrier background. I'll also have a smaller field of view.
If you recall from earlier postings, the field of view is determined by both the focal length and the sensor size. Smaller sensors have narrower fields of view for the same focal length. Imagine that you and I are standing in the same spot and I have a PnS with a tiny sensor and you have a DSLR with a much larger sensor. If we are taking photos with the same image, I must be using a much smaller focal length. This smaller focal length is what causes me to have a greater depth of field (less blurriness).
Let's give some specific examples. Let's say that there are four of us. I'm standing there with a Canon 1Ds Mark III and an 85mm f/1.2 lens that someone has kindly donated to me for this example. GDad is standing there with his D300 (which has a sensor that has a 1.5x crop factor) and a Nikon 24-70 f/2.8 lens. Pea-N-Me is standing there with her Olympus 510 (2x crop factor) and a 35-100 f/2 lens. Bob100 is standing there with his Canon S5 (6x crop factor).
Let's say that our subject is 10 feet from us and the background (a bunch of trees) is 100 feet from us. We'll all start by shooting at f/2.8. To make our images cover the same area, I'll shoot at an 85mm focal length; GDad will shoot at 57mm (85 / 1.5); Pea-N-Me will shoot at 42mm (85 / 2); and Bob100 will shoot at 14mm (85 / 6).
A spot on the tree in the background will result in a blurry dot this big for each of us:
Mark - 27
GDad - 18
Pea-N-Me - 13
Bob100 - 4 1/2
Because we don't know the magnification (until we print or display), we don't know what unit these numbers are in. The useful thing is that it shows us the relative size of the blur spots.
Now let's play with our apertures. Bob100 will open his up as wide as possible. That makes the f-stop number lower. That makes the blur spot bigger. Alas, the widest aperture on the S5 is 2.7, so the biggest he can make his blur spot is 5. For comparison, to get the same "bluriness", Pea-N-Me would have to shoot at about f/7.5. GDad would have to shoot at f/10. I would have to shoot at f/15.
What happens if we move the trees farther away? Let's go to 1,000 feet. In that case, the bluriness doesn't increase that much. In fact, it just nudges up to 5. That's because the difference is in the |s - D| / D part of the equation. That goes from 90 / 100 to 990 / 1000. In other words, the movement of the background increased the distance factor from 0.9 to 0.99. Not much of an increase.
Now imagine that we moved the trees closer. Say go to 20 feet. Now, the distance factor goes from 0.9 to 0.5 (which is |10 - 20| / 20). So our bluriness is cut almost in half from 4 1/2 to 2 1/2.
As you can see from the formula, the bigger the difference between your subject and your background, the bigger the blur.
You can also see that the blur increases faster in front of the subject than it does behind the subject. For example, with a subject at 10 feet distant and objects 1 foot in front and behind. The one in front would have a distance blurring factor of 0.11 (which is |10 - 9| / 9). The one in front would have a distance blurring factor of 0.09 (which is |10 - 11| / 11). Switch to 5 feet in front and behind and you get a distance blur factor of 1 in front and 0.33 behind.
So how do I get the most blur with my camera? As you can see, getting the most separation between your subject and background will give you the most blur. Using your widest aperture (lowest f-stop) helps. Using a longer focal length will also give you more blur, but there is a catch. If you zoom in, you'll also need to step back to keep your subject the same size. Stepping back will then increase s, which makes it harder to blur things behind your subject.
You can also see that the larger your sensor, the easier it is to blur things. Conversely, larger sensors have a hard time getting everything in focus. That's why PnS are often so good at macro shooting.
Any questions? Any mistakes? Any still reading this?
The formula comes from the following Wikipedia article.
http://en.wikipedia.org/wiki/Depth_of_field#Derivation_of_the_DOF_formulas