How to Find the Diffraction Limit of Your Lenses (Podcast 735)

How to Find the Diffraction Limit of Your Lenses (Podcast 735)


Visit Library for MBP Pro eBooks

Last month, in episode 732, we talked about Depth of Field, Hyperfocal Distance, and Infinity, and also touched on the Circle of Confusion, the Airy Disk, and Diffraction. I originally shared how to test your lenses to find their Diffraction Limit around four years ago, but I had yet to go through this exercise with my EOS R5 and new RF lenses, so I decided to talk you through this process again today. This is also relevant right now because I have just released a new version of our Photographer’s Friend app for iOS that includes a new Pro feature called Diffraction Limit Guide Adjustment, so I’ll also share a little information about that today as well.

As we discussed in episode 732, the depth of field in our images gets deeper as we stop down our aperture, so ƒ/11 has a deeper depth of field than ƒ/8, and ƒ/16 has a deeper depth of field than ƒ/11. The problem with stopping down the aperture for deeper depth of field though, is that it forces the light through a smaller hole, and when you force light through a small hole, the Airy Pattern starts to get disturbed and spreads out, causing it to overlap the neighboring Airy Disk pattern to the point that the image is considered no longer resolved, as I’ve shown in this diagram.

Airy Disk Patterns
Airy Disk Patterns

Based on my Pixel Peeper calculations which I added to Photographer’s Friend, around four years ago I realized that I could calculate the diffraction limit based on the size of the Airy Disk as it grows with the decreasing size of the aperture, and I provided Diffraction Limit Warnings in the form of traffic light coloring of the Airy Disk label, and the Aperture dial, which is responsible for the limitation. Unless you have changed these colors with the theme customization feature, green will show you that you don’t need to worry about Diffraction. Orange or amber shows when Diffraction will probably start to show itself and red alerts you to the fact that that you will almost certainly be seeing the effects of Diffraction in your images. These color warnings correspond with the Well Resolved, Just Resolved, and Not Resolved Airy Patterns in the diagram.

The calculated warning points are pretty accurate, but how much you allow this to concern you depends really on how much Diffraction you are seeing in your images, and this is both why I like to test my lenses, but also with this latest release, why I wanted to be able to adjust the kick-in points of the warning in Photographer’s Friend.

Where to Start?

Diffraction Limit Testing
Diffraction Limit Testing
DoF Calculator Starting Aperture
DoF Calculator Starting Aperture

The tests are easy to do, and although I used an old Lens Align tool that you can see in the above photo, you can just use a steel rule or even just an open book with a page of text. I like the Lens Align tool because it is easy to vary the angle of the rule and it has lots of text and numbers along the rule to help you to evaluate sharpness. Although we’d usually be looking to see where the focus falls on the rule, for Diffraction Limit testing the point at which you focus is less important. We’re just going to check for a lack of sharpness across the entire image as we stop down the aperture.

I recommend using Pixel Peeper mode in Photographer’s Friend for the most accurate information on which aperture to start testing from, and it depends on your camera’s sensor and the number of megapixels, which you’ll need to dial into the Depth of Field Calculator settings. You’ll also need to select your sensor format with the Format dial. For the Canon EOS R5 I’ll select 35mm as it’s a full-frame 35mm sensor. If you use a crop factor camera or medium format camera, select the appropriate Format. I then press and hold the Format dial to lock it, to prevent me from accidentally changing it later.

With the megapixels set to 45 and Pixel Peeper mode enabled in the settings, and also ensuring that the Diffraction Limit Guides are turned on for the Airy Disk label and aperture dial, we can then adjust the aperture until we see the dial change from green to amber. The last green aperture is where we’ll start to test from as we know that this should not be displaying any signs of Diffraction. With my camera details dialed into the settings, I see that my starting aperture is ƒ/8, so I’ll set my camera to ƒ/8 for my first test shot.

With your camera on a tripod, line it up with the Lens Align tool or whatever you are going to use in your tests, and pick a point at which you are going to focus, just as a reference.

If you don’t have Photographer’s Friend and don’t care about Pixel Peeper mode, then ƒ/8 is still a good starting aperture for your tests, then stop down one third or half stop at a time, depending on your camera, and shoot an image with every change until you reach the smallest aperture of your lens, which is ƒ/22 with most of my Canon RF Lenses.

To make exposure easy, I use Aperture Priority mode for this, and I set the ISO to 100. High ISOs can cause the image quality to degrade as well as Diffraction, so it’s better to avoid auto-ISO. In Aperture Priority mode though, your camera should automatically adjust the shutter speed for you as you stop down the aperture. I also use a two-second timer so that I can take my hand away from the camera during the exposure to avoid shaking the camera.

If you are testing a zoom lens, to be thorough, it’s a good idea to test at least three focal lengths. The two extremes and then something close to the middle of the zoom range. For example, when I tested my Canon RF 15-35mm lens I shot both 15 and 35 mm shots as well as a series at 24mm. For the 24-105mm lens, I shot at 24mm, 50mm and 105mm.

Once you’ve shot an image for each aperture from the starting aperture to the smallest aperture available on your lens, you’ll then need to transfer your images to your computer and open them up in your usual image editing software and evaluate the sharpness. With the high-resolution displays that we have these days, I generally find that I have to zoom in to around 200% to really see the sharpness, and as I worked through these images shot at 24mm starting at ƒ/8 then working through each smaller aperture, the first noticeable degradation in sharpness I could see was at ƒ/16. A certain amount of diffraction kicked in right there, and the image got gradually softer towards ƒ/22, although we are talking a very small amount.

Adjusted Diffraction Guide Settings
Adjusted Diffraction Guide Settings

Here is the series of images from my Canon RF 24-105mm lens at 50mm, so that you can see what I’m talking about. This is the center 1440px of each image cropped from the larger image, so if you click on these to open up in the lightbox you will be able to see the images at 100% and may be able to see the diffraction starting to kick in.

At 50mm diffraction didn’t really start to kick in until ƒ/18, but it got worse slightly quicker and by ƒ/22 it was about the same softness as at 24mm. At 105mm diffraction was relatively weak but slightly noticeable from ƒ/16 and got worse at ƒ/20 and slightly worse still at ƒ/22. From my findings though, I now know that I don’t have to be concerned about Diffraction until ƒ/16, and if possible, I want to avoid using ƒ/20 and ƒ/22. Based on this, I went into the settings of the Depth of Field Calculator in Photographer’s Friend, and adjusted the amber warning slider to +1.6 stops, and also the red warning slider to +0.3 of a stop. As you can see from these screenshots, that puts the actual warning colors displayed so that the aperture dial is green until ƒ/14 then changes to amber at ƒ/16 then to red at ƒ/20.

For your reference, note that I also tested my Canon RF 50mm f/1.2 lens, which has a smallest aperture of ƒ/16 and once again, I really couldn’t see any diffraction until I hit ƒ/16, so I’m pretty happy to leave my warning color guides at these settings. Because the math dictates where the default settings go, and because I’m testing some of the best lenses available, I don’t want to adjust the default settings. I really think people should do these simple tests themselves to really see the effects of diffraction as it kicks in, and if you do use Photographer’s Friend, I hope you find the ability to adjust your warning sliders useful.

Adjusted Diffraction Limit Guides
Adjusted Diffraction Limit Guides

Note that this is part of the Pro Add-on as it all takes additional work that was not included in the base price of the app, and also not something that everyone will want. The good news is though, if you already bought the Pro Add-on or the Complete Pro Bundle including the Apple Watch add-on, this feature will automatically be activated when you update to version 3.7.1 which is available now in the App Store.

OK, so I hope you found that useful. Before we finish I’d quickly also like to mention that if you absolutely must stop down to a small enough aperture to cause your system to become diffraction-limited, it’s not the end of the world. If you are a Canon user, you can consider using Canon’s Digital Photo Professional software and applying the Digital Lens Optimizer, which removes the effects of diffraction very well when detected. Also, my image management and editing software of choice, Capture One Pro, has a Diffraction Correction option under the Lens Correction section which also does a very good job of cleaning up the effects of diffraction when your images are affected. Photoshop and Lightroom also have lens correction in Adobe Camera Raw which removes the effects of diffraction pretty well too. I rarely have to use this option because I’m generally fine with the slighter wider apertures, but it’s good to know what your options are.

Freebie Post

This post is unlocked for non-Patrons as it is a sponsored post or advertising Martin Bailey Photography products. If you found it useful and would like to unlock all other posts please click the button below. Thank you for your support!

Become a Patron!

 


Show Notes

You can find Photographer’s Friend in the App Store here: https://mbp.ac/pf

The Lens Align on B&H Photo: https://mbp.ac/lensalign

And here also on Amazon.com: https://amzn.to/396sUci

Music by Martin Bailey


Audio

Subscribe in iTunes to get Podcasts delivered automatically to your computer.

Download this Podcast as an MP3 with Chapters.

Visit this page for help on how to view the images in MP3 files.


Circle of Confusion, the Airy Disk and Diffraction (Podcast 594)

Circle of Confusion, the Airy Disk and Diffraction (Podcast 594)

Today I’m going to explain what causes diffraction as we stop down the aperture in our lenses past a certain point, and how this may affect our photographs.

I’ve been working on an update to our iOS app Photographer’s Friend so that you’ll be able to do two new things. The first is to enable a Pixel Peeper mode, and the second is to display your Diffraction Limit as you stop down your aperture. I’m trying to pull this in as I prepare to leave for Morocco in a few days, so I don’t know how much I’ll be able to do, but as I looked into the calculations required to add these new features, I learned a few extra things that I’m going to share today.

Traditional Depth of Field Calculation

First let me explain that traditionally, depth of field calculations have been based on sharpness perceived in an 8 x 10-inch print viewed at a distance of 25 cm. This is what Photographer’s Friend is based on in the standard mode. This calculation is most commonly used and is fine for print and probably also for viewing your images on a reasonable size computer display. In the digital age though, with the ability to examine our images at 100%, you’d probably notice that some areas that were supposed to be sharp according to the traditional calculation may appear a little soft. Enter the new Pixel Peeper mode.

I have to admit, I’m a pixel peeper, and I’m proud of it. I love my images to be tack sharp where intended, and therefore, I do check critical focus at 100% during my editing and selection process, before I decide if an image is worthy of keeping or not. So, I’ll probably be using Photographer’s Friend in Pixel Peeper mode most of the time.

Note that I’m currently not thinking it’s worth building in support for various print sizes because as the print size increases we generally move further away making the difference negligible. Of course, photographers often view prints much closer than non-photographers, checking for sharpness, but I’m pretty sure that puts you in the Pixel Peeper category, so we now have that covered.

I’ll go on to talk a little more about the app updates later, but for now, I want to talk about these three critical elements relating to sharpness in our photographs, which are Circle of Confusion, the Airy Disk and Diffraction.

The Circle of Confusion

The Circle of Confusion seems confusing in itself, but it’s really quite simple. Its size depends on the parameters you set but traditionally it is based on viewing an 8 x 10 print at 25 cm or 10 inches because it’s a fundamental part of the calculation of depth of field. I’ve created a diagram to help explain, as you can see here (below).

Circle of Confusion Diagram

Circle of Confusion Diagram

When we focus on a subject, the lens is basically, to the best of its ability, going to focus the light from that subject as sharply as possible onto our camera’s sensor or film. The point at which we focus our lens, the focal plane, will be the sharpest part of our photograph. This is known as Critical Focus. If you look at the enlarged section of my diagram you’ll see that light from this area is focussed as the smallest resolvable dot of light, represented by a red dot. If you can only see the blue and teal dots on the sensor in the diagram, click on it to view it large in your browser.

Objects that are closer or further away from our focal plane grow gradually less sharp, because the light from objects further away is focussed in front of our sensor, and light from objects closer to the camera is focussed behind our sensor. But, the light from these distances only spreads out by a certain amount, which is represented by the middle teal colored circle in my diagram. This amount of spread in the light is what’s known as the Circle of Confusion.

According to the traditional calculation, if you were to view the resulting photograph as an 8 x 10-inch print at 25 cm, you would perceive the light that has only spread to the limits of this circle to be sharp. The distance between the two points inside which the subject will be acceptably sharp is known as our Depth of Field. Anything in our photograph that is closer to the camera or further away, past these two limits are considered outside the Depth of Field and will therefore no longer be acceptably sharp when viewed in that 8 x 10 print.

Circle of Confusion Calculation

If you are wondering what actual size the circle of confusion for the traditional calculation is, for a 35 mm original image enlarged to 25 cm (10 inches), the length of the 8 x 10-inch print, you’d be multiplying the image by seven. If we consider that the smallest resolution we can determine with regular eyesight is 0.2mm, we would divide that by 7 giving us 0.029 mm or 29 μm (micrometers). This is what I use for the 35 mm format calculation when not using the new Pixel Peeper mode.

Custom Circle of Confusion Setting

You will see slight variations on the size of the circle of confusion, as there are a number of ways to think about this. Rather than trying to cater for all possibilities programmatically, if you prefer to use a different circle of confusion to that which I’ve set as the default for each camera format, from v2.3 you will be able to enter a custom size under the advanced settings page, that we’ll look at shortly.

So, to quickly summarize what we’ve covered so far; subjects at our focus distance or focal plane will have their light focussed to on the sensor in an even smaller circle than the circle of confusion, so subjects on the focal plane will be the sharpest area of our photograph. Subjects any closer or further away from that area of critical focus will grow gradually less sharp until the light from them spreads to the size of Circle of Confusion. At this point, they are on the limit of acceptable focus, or in other words on the very edges of our depth of field. Light from anything any closer or further away from these limits will spread to a size large than the circle of confusion, and so will appear to be blurry and get blurrier the further from the depth of field they get as their circle of confusion continues to grow.

At this point, they are on the limit of acceptable focus, or in other words on the very edges of our depth of field. Light from anything any closer or further away from these limits will spread to a size large than the circle of confusion, and so will appear to be blurry and get blurrier the further from the depth of field they get as their circle of confusion continues to grow.

Pixel Peeper Mode

As I mentioned earlier, there are times when we want sharper images than those required to create a sharp print at 8 x 10 inches. In my mind, the best test is when we can view an image at 100% on our computer screen, and still see that all of the areas that we intended to be in focus, are indeed in focus.

My answer to this dilemma is the new Pixel Peeper mode that will be introduced in V2.3 of Photographer’s Friend that I hope to release soon. Basically what this provides is a way to calculate the Circle of Confusion automatically from your sensor size, which you select via the Format dial in our Depth of Field calculator, and the megapixel dial that you’ll find under the new Settings screen, that you can see in this screenshot (below).

Pixel Peeper Mode

Pixel Peeper Mode

I’m still working on this update, so nothing is set in stone at this point, but as you can see, there will be a new line of buttons and displays between the settings dials and the Depth of Field readouts, and the Settings button is on the right. At the bottom of the Advanced Settings screen, is a switch to turn on Pixel Peeper mode, and a dial to select your camera’s megapixels.

The addition of these settings enables me to calculate a new Circle of Confusion, that you can see above the Format dial, and I am also now calculating the Pixel Pitch which is the second display from the right. The Circle of Confusion is basically the pixel pitch multiplied by 2.5, which will give good sharpness even when viewed at 100%.

Diffraction Limit Color Coding

The other important thing that this enables me to do is to calculate the size of the Airy Disk, which I’ll explain shortly, and that gives us information on when your image may start to suffer from Diffraction. As you can see from the screenshot, the AD or Airy Disk display and the Aperture dial are both colored green. This is because I’ve turned on the top two new options to change these colors to indicate how I’m doing with regards to Diffraction.

As you can see in these next screenshots (below) as you select smaller apertures, the dial and readout changes to amber to so indicate that there is a danger of being Diffraction Limited and then red to tell you that you pretty much are now going to be Diffraction Limited.

Diffraction Limit Color Coding

Diffraction Limit Color Coding

You can select to display either of these color coding options separately or none at all if you don’t care. But, diffraction is a real issue and something that we need to keep in mind if we want sharp photographs. Let me explain why.

The Airy Pattern

Airy Pattern

Airy Pattern

With the understanding that we get greater Depth of FIeld as we make our aperture smaller, you’d think that when you want more of your scene to be sharper, you could just select a really small aperture. Many lenses for 35mm format cameras go down to f/22 or sometimes f/32 or smaller, and medium and large format lenses often go to much smaller apertures to get enough depth of field.

But, as good as the manufacturers make our lenses, there is a problem that occurs as light passes through a very small aperture. If you picture water coming out of a hose, unrestricted the water comes out clear, relatively undisturbed, and at pretty much the same diameter as the hose and then starts to gradually spread out. If you attach a device to enable you to create a smaller hole though, the water becomes disturbed and starts to spread out much more quickly.

Well, that same thing happens with light. As light passes through a wide aperture, it pretty much just makes it’s way to the sensor or film, but as light passes through a small aperture, it interferes with other rays of light, causing it to spread out. The result is what’s known as the  “Airy Pattern” (right) with a central “Airy Disk”, both named after George Airy, the person who discovered this phenomenon.

As you can see, there is a central core of light which makes up about 84% of the light, and then a number of concentric rings. While there is still a gap between the central core or Airy Disk, and the next Airy Disk, the light is said to be “well resolved”. According to the Rayleigh Criterion, the dots are “just resolved” if the center of the first Airy Pattern is superimposed on the first dark ring of the second pattern. I’ve tried to express this in the below mockup.

Airy Disk Patterns

Airy Disk Patterns

Another way of putting this, according to the Cambridge in Colour website, is that there is an impact on the image once two airy disks become closer than half their width.

I referenced a great Cambridge in Colour article on Diffraction Limited Photography as I consolidated my thinking on this, and they state that “an Airy disk can have a diameter of about 2-3 pixels before diffraction limits resolution”. It was this and a few other points that made me realize I could calculate the Diffraction Limit programmatically by adding a few other parameters to my DoF calculator.

The key point to keep in mind here is that the Airy Disk grows as the aperture gets smaller, causing the light to spread out, and there’s an easy formula to calculate this. I then figured out how to calculate the pixel pitch based on the size of each sensor format and with the megapixels input through the new dial on the settings page, I can calculate and compare the size of the Circle of Confusion for the evaluation of sharpness at 100% screen viewing.

Color-Coded Diffraction Warnings

Because the Circle of Confusion size is rather large in the traditional 8 x 10-inch print calculation method, experience tells me that you actually need to start being concerned when the Airy Disk gets to around 80% of the size of the Circle of Confusion.

So, when you are not in Pixel Peeper mode, the color of the Aperture dial will change from green to amber when the Airy Disk passes 80% of the default Circle of Confusion size, and for 35mm format, that is around an aperture of f/18. It then goes red from 100%, which is f/22 at the default settings. This matches my own tests perfectly.

In Pixel Peeper mode, these boundaries are a little more conservative, but at this point, I’m setting amber to kick in at around 100% and then the red Diffraction Limit warning from around 200%. Because of the size of the Circle of Confusion at this high resolution, these parameters will cause the dial to go amber from f/10 for a 35mm format camera at 30 megapixels, and then turn red from f/20.

Now, I personally think that f/10 is way too early, but the physics tells us that there is a possibility of seeing the affects of Diffraction at this point, so I want to keep it in, although it’s only as the amber warning.

Test For Yourself

Of course, how much diffraction you actually see in your images will depend on your camera and the quality of your lenses. The warnings that we’ll display in Photographer’s Friend are intended as a guide only. The best course of action would actually be for you to do a simple diffraction test with your own gear. You can point your camera at pretty much any scene for this, but I like to place a steel rule on a surface, and set my camera up on a tripod, then, using a 2-second timer or cable release so as not to move the camera during the exposure, shoot a series of images, starting at say f/5.6, then f/8, and from say f/11 onwards, shoot a frame for every step you can stop down your aperture.

When I did this test with my Canon EF 24-105mm f/4 IS Mark II lens, I found that the only noticeable degradation due to diffraction was between f/20 and f/22. It’s barely noticeable, but here are the two frames at 100% in which you can see the difference. You’ll need to open up your browser window and click on one, then move back and forth with your mouse or keyboard arrow keys to see any difference.

My 24-105mm lens only stops down to f/22, so I also checked with my 100-400mm lens, which stops down to f/40 when the focal length is set to 400mm. Here is a set of images from that test, starting at f/11 down to f/40. I had image stabilization turned on, because of the long focal length, and the possibility of my house shuddering from train movement etc. so the image moves slightly between some of the frames, but the lack of sharpness as you stop down is due to diffraction.

The first noticeable drop in sharpness due to diffraction is again at f/22, so it seems that the Canon 5Ds R with no anti-aliasing filter is not affected by diffraction until f/22, at least with the two lenses I’ve tested. This is good news, as I have habitually been keeping my aperture to around f/14 or sometimes f/16 to avoid diffraction because that’s where it started with my 5D Mark III. I’ll keep the possibility of going a little further in mind as I shoot moving forward, and also be sure to test new cameras before shooting with them in future. You’ll also notice that by f/40 the images are really soft, all down to diffraction.

You might also be wondering if the closeness of my test subject may affect the results, but I did a series of shots out of my studio window and the results were the same. Diffraction kicked in at f/22. Do take a moment to test your own lenses though, and let me know your findings in the comments to this blog post. This will help me to fine-tune the parameters for the new Diffraction Limit color-coding. Include your camera format, i.e. 35mm, micro four-thirds, and the megapixels, as well as when you saw the effects of diffraction kick in etc.

New DoF and HyperFocal Distance Values

The other thing to keep in mind is that the Depth of Field and Hyperfocal Distance also change when you use Pixel Peeper mode. This update is not just about Diffraction. This means that as you check the depth of field and hyperfocal distance values, you will notice that you need to stop down your aperture a little more to get enough depth of field to keep everything sharp if that’s your intention.

For example, in the standard mode, with a full frame 35 mm sensor and your aperture set to f/8 and a focal length of 50 mm, when focusing at 3 meters, you’ll get a depth of field of 1.78m and the hyperfocal distance is 10.83 m. In Pixel Peeper mode using a 30-megapixel camera with the same settings as before, you’ll only have 77 cm depth of field, and your hyperfocal distance changes to 23.3 m. This is as expected because you are working with a smaller circle of confusion for a sharper image.

For our metrically challenged friends, the same settings, f/8 at 50 mm, focusing at 9.8 feet, you’ll have a depth of field of 5.77 feet and a hyperfocal distance of 35.5 feet in the normal mode. In Pixel Peeper mode, again with a 30-megapixel camera, you’ll get a 2.5-foot depth of field and your hyperfocal distance becomes 76.58 feet.

I’m actually expecting that with camera’s and lenses being so good these days, it’s this feature that may ultimately be more useful than the Diffraction Limit warnings, but I still think it’s useful to have this information, so that we can make the right decisions as we shoot, to create the best quality images possible.

Related Content

Before we finish, I wanted to let you know that if you are not aware of how the aperture setting and subject distance affects the depth of field, I posted a pretty thorough article in episode 132, have an article here. I also released a post on Hyperfocal Distance in episode 437.

So, I hope this has helped to understand the Circle of Confusion, Diffraction Limit, and the Airy Disk. These are subjects that I’ve found myself living in over the last week as I’ve worked on this update for Photographer’s Friend, so I figured it was as good a time as any to put my thoughts down in words here.

Note that I’m leaving for Morocco in a few days, and because I’ve been busy with this update and other preparations, I haven’t been able to prepare any additional episodes for release while I’m away, so there won’t be any new episodes until the middle of November now.

Also note that as I build out the functionality of the app, I think it’s fair to increase the price from the introductory $2.99 to $3.99 when I release version 2.3, so if you are thinking of picking up Photographer’s Friend, save yourself a dollar by buying before v2.3 is released. If I can get enough testing done over the next couple of days, I’ll release before I leave for Morocco, but otherwise, it will be mid-November. And of course, if you miss that, it’s still going to be only $3.99, probably until I add a third calculator or some other significant new features.

Download Photographer's Friend from Appstore


Show Notes

The Diffraction Limited Photography article on Cambridge in Colour: http://www.cambridgeincolour.com/tutorials/diffraction-photography.htm

Get Photographer’s Friend on the App Store here: https://mbp.ac/pf

Music by Martin Bailey


Audio

Subscribe in iTunes for Enhanced Podcasts delivered automatically to your computer.

Download this Podcast in MP3 format (Audio Only).

Download this Podcast in Enhanced Podcast M4A format. This requires Apple iTunes or Quicktime to view/listen.