Articles, reviews and tutorials about photography
Home About us Commercial Photography Print Gallery Articles/reviews/blog  
 Was our site of help?
Please buy though our links
Visit Keith's G+ page
Page contents

Lens calibration AF microadjustment patternsCamera AF Microadjustment - for free

Checking for front / back focus and fine-tuning camera autofocus.

Newer DSLRs have the facility to individually tune the AF settings for different lenses via a custom setting (the micro adjust function).

The AF fine-tune adjustment for auto focus functionality is available in many newer cameras that have a 'liveview' capability.

This article contains several different (free) methods for AF adjustment

Note... You can use the Moire fringe technique to check any (digital) camera AF system for back or front focus.

  • This article is one of hundreds of reviews and articles on the site - See our Articles Index Page for the latest.
digital black and white logoFYI: I run a LinkedIn group (~7000 members) for people interested in any aspects of Digital Black and White photography: Digital Black and White Keith gets our UK used equipt.
from -->
For USA used items try:
B&H | Adorama
More on the site: Latest articles by Keith | Latest rumours

Cameras with micro-adjustment (or AF fine tuning) currently include:

Canon 1D X, 1DIII, 1DIV, 1DsMkIII, 5DII, 5D3, 50D, 7D, Nikon D3, D3x, D4, D300, D700, D800 Sony A900, Pentax K20 (note that the EOS 60D does not include this feature) The EOS 1D X / 5D3 now allows separate AF Microadjustment for both the wide angle and the telephoto settings of a zoom lens.

Sometimes, different lenses might consistently not focus perfectly (front or back focus). This can now be adjusted for individual lenses. Some cameras even allow for multiple copies of the same lens to be individually adjusted.

We've got a downloadable lens calibration chart to make this process easier. The lens calibration target is easy to set up and use with an LCD monitor.

If you're looking for specific hardware to help with the process, we have a review of the SpyderLensCal

AF Microadjustment - back/front focus

It's important to realise that any system of parts with individual tolerances can exhibit significant variance if the assorted 'errors' all stack up in one direction (they can just cancel out too). This is a key element of engineering design for manufacturing.

Whilst expensive lenses and an expensive camera should 'just work' there may be room for improvement.

  • Note - I'm using the 1Ds3 as an example here - this procedure works with any camera that has some way of fine tuning the AF performance, and a 'live view' mode.

af adjustment custom functionPreviously you could get Canon to calibrate your lenses and bodies for you, but this entailed sending the camera off for the work.

The 1D Mark 3 and 1Ds Mark 3 both allow customisation of the AF settings, although you should note that if you try a whole lot of lenses and they all require a considerable adjustment, then it may be that your camera body needs fixing.

The adjustment is in the Custom functions menus (C.Fn III-7 AF Microadjustment).

A setting of 0 will clear all AF adjustment information, 1 will enable the global adjustment, while 2 will set individual lenses.

If all lenses front or back focus a little then you can apply a global adjustment.

How to check focus accuracy

Canon have a 1D /1Ds3 'Optimising Camera settings' document [PDF] (German translation [PDF]) available which has some useful background info on many of the adjustments and settings you can make to these two cameras.

I was sent details of an excellent post on OPF by Bart van der Wolf, covering his use of a fine graphics design on an LCD screen.

I've -part- of the autofocus test image I've been using at the right.

Lens calibration AF microadjustment patternsThe large image plays tricks with your visual system, so be wary of this if you have any difficulties caused by repetitive patterns.

  • Download (zip file) a 1000x1000 pixels square version.
    It will expand into a 1000x1000 GIF file
    Please don't link to this file - the filename will change ;-)

AF Microadjustment procedures

The principle is that you display the square GIF image (at 100% full size) and focus on the computer screen, using liveview (zoomed if need be) and maximise the appearance of Moire interference patterns. Do not make the image 'fit' your computer screen, it needs to be unscaled.

You will need to have the camera mounted on a tripod and directly facing the computer screen. Take some care to get the screen square on and lined up with the camera.

  • If you want to be really accurate with lining things up, put a small mirror up, flat against your screen (or target). When the camera is proerly square on to the screen, then the reflection of your lens will be visible right in the middle of your viewfinder.

The interference patterns come about from the interaction between the image pixels on your screen and the pixels of your sensor. They may not look exactly the same as in the examples below, but you should notice a distinct peak in the amount of detail visible - that is the focus point.

  • Note - this won't work with a print of the image! You need a screen view

You then switch off liveview and part press the shutter button to activate AF.

Look carefully at the lens distance indicator as you do this ... if the lens and camera combination is spot on, then there will will be no movement of the lens focusing ring and the image will not change.

I tried this firstly with my 24-70, set at 70mm (Canon suggest setting zooms at their longest setting)

... no movement of the lens ring at all. The lens is spot on. Reactivating liveview showed the patterns I'd seen after manually focusing. There could be a slight difference since the interference technique is very sensitive. If you are not sure, then try the test again with an adjustment of + or - 1. you should see a difference.

Next I moved the camera closer to the screen, making sure it was properly 'square on' to the centre of the pattern. I fitted my EF14mm 2.8L II lens

Note - Camera-to-subject distance should ideally be no less than 50 times the focal length of the lens. For a 50mm lens, that would be at least 2.5 meters (25m for a 500mm)

1Ds mk3 af microadjustment samplesIt's difficult to show graphics here, but the first image gives an idea of the rear display when manually focused with liveview, while the second shows the view after getting the camera to autofocus (where an adjustment is needed).

I've exaggerated the difference slightly for showing here.

It's actually only a few centimetres difference in focal distance, but the interference effect allows you to get critically sharp focus.

I noticed some patterns in a quick check with a CRT (if this works fine - please let me know?), but I'd prefer a LCD (a laptop is useful for testing longer lenses). My 23" Apple Cinema display shows patterns much better with my Canon 1Ds3 than my 15" MacBook Pro with its higher resolution (pixels per inch) screen.

  • If you are having difficulty with longer lenses, I'm told that a laptop outside at night works quite well.

The exact pattern you see when sharply focused, depends on your LCD screen and its pixels, since it's the interference between the screen version of the image (and its individual pixels) and the pixels of your sensor that result in the aliasing. It was different with each lens and at different distances.

The effect should be very obvious to see - you are looking for a peak in the pattern's visibility, not any particular amount of pattern.

After a quick test, the following settings were altered

It's worth testing your lenses in different conditions and trying a few 'real world' photos as well. I'd not even noticed the error on the 14mm and a few quick test shots at f/2.8 show a just perceptible increase in sharpness.

I repeated each measurement several times just to be sure it was real and not a 'glitch' in the AF.

If you find yourself wishing there was a finer gradation of adjustment than offered, I'd seriously suggest ending the process and going out to take some photos :-)

Alternative AF setting technique using the Moire technique

An alternative way of testing is to always start with your lens set at infinity.

I've seen it suggested that by starting at infinity and letting the AF work at the start, you are getting more consistent results.

  • Some people have contacted me after finding that they couldn't get the moire method to work with their screen. It seems that very high resolution LCD screens present the image a bit too small. A target based approach might be of help if you're having problems - take shots at +20,1,0,-10,-20 and just look at them, see the SpyderLensCal review for a more general discussion - not just based on that device (a sheet of graph paper can work, with care).

AF check on cameras without liveview/AF adjustment

If you want to try this with a camera without liveview then just shoot a picture of the screen using AF and then two more with the focus ring manually moved +/- 5cm. Hopefully the AF version should show some fringing not visible in the other two shots.

If all your lenses show a slight shift then it -might- be worth getting your camera serviced?

Some Examples showing what you might see

Here are two examples taken with the 1Ds Mk3 and 16-35 2.8L (mk1) @f/2.8 and 35mm

The first picture shows correct AF

  • Note that these two images are intended to give an idea of the effect you are looking for, not the testing methodology (you can use the LCD screen and Liveview)

correct af adjustment

One additional feature of this method is that if you don't have the camera square to the screen (i.e. sensor parallel to the screen), you will get noticeable asymmetry in the pattern. The screen above shows that the bottom left corner of the screen is slightly closer (or further away) than the top right corner. This method is very sensitive in this respect (much more so than you could get by simply looking at a shot for focus errors)

The second picture below, was manually set to front focus by at least 10cm. This is quite a bit, but I've done it to show the effect you are looking for. I've also taken the photo from closer than you might use for a real test.

af front focus

Both of these shots were shot tethered and the images you see above are screenshots of the 'Quick Preview' from EOS utility.

I did this so that I could use an un-resampled image, since any resampling of the image can introduce new moire (these effects are not easy to show here!).

Remember too, that both images show some asymmetry in the patterns which indicates that I've not got the camera fully square on to the screen.

It can help if you use a monitor that has been calibrated to some extent. (We have quite a few articles all about aspects of colour management on this site)

Uncalibrated monitors often have a colour temperature up towards 10000K, which is very blue

Keith Cooper and two of his printsThanks to everyone who has ever purchased something via our links.
If you follow a link below and then buy absolutely anything (not even camera related) it helps me run this site (the articles are all written by myself in my spare time)
- Keith [orange hat article]
BTW If you've just found the site via the rumours pages - please do have a look round the articles and reviews, since they are far more important to me, in helping people get more out of their photography.

Amazon UK link / Amazon France / Amazon Germany | Amazon USA link / Amazon Canada / Amazon Italy | B&H | Adorama | MacPhun | Topaz
(Other ways to help the site)
-- Shop Amazon's 2014 Electronics Holiday Gift Guide - Pixel-Perfect Presents for the Photographer in Your Life --

The nominal 'standard' monitor setting of 6500K is much closer to daylight.

I did see it suggested that if you do a lot of work in tungsten lighting, then setting your monitor colour temperature to 5000K before doing the adjustments might produce better results, particularly if using a lens with noticeable chromatic aberration.

  • I've not tested this dependence on display colour, so if anyone has the patience to do so, then please do let me know what you find out?

It just works!

Thanks to all the people who've written in with questions, and refinements to the technique. I'll be sure to keep the page updated if any new techniques or tips come in.

I've heard examples of people finding that their 'average' lens made into the 'sharp' category after trying this ;-)

Canon's suggested Micro Focus Adjustment

This is Canon's suggested technique - I cover much more about using similar techniques in my review of the SpyderLensCal device.

Thorough, but slower... ;-)

AF Adjustment notes from Canon

For best results, manually set the focus on the lens to infinity for every exposure before allowing the camera to autofocus the reference target.

Expect some minor variations in focusing accuracy within each set of three test images, even though they were all taken at the same microadjustment setting. This is completely normal, and is due to the tolerances of the camera's AF system.

Expect smaller microadjustment settings to have a greater effect with telephoto lenses, and vice versa for wide-angle lenses.

If you are attempting to set microadjustments for a zoom lens, it is important to realize that the camera's setting may only be accurate for the focal length setting you test. The instruction book suggests testing at the longest focal length of the lens, but you may find it more efficient to choose the focal length you use most often.

Alternative Canon Liveview based focusing method

This is from a suggestion on the Birdphotographers list by Arash Hazeghi

Make sure you have the latest version of the Canon EOS utility installed. You need to point the camera at a fine detail target, ideally at least 50 times the focal length away

  • If you find that it is very difficult to achieve a precise sharp focus (particularly with slower lenses) you can lower the 50x distance limit somewhat, however I'd personally not go much closer than 30x. You can see just how little change there is during the focus stepping in my SpyderLensCal review.

Make sure that the camera is square on to the target, and that the target is sufficiently flat. Something like a bank note usually has a lot of fine detail, if you don't have a convenient ISO chart available.

Connect the camera to your computer via the USB port, cancel any image download pop-up/application

Some notes - I've not tried this particular method yet. If anyone finds it particularly useful, or has any suggestions to make it better, then please do let me know?

If you've come directly to this method, do read some of the caveats in the notes from Canon just above this section.

Still more...

Some more experimental techniques I've come across:

So, how good is AF?

Possibly better than you'd thought, but for anyone really getting into checking the minutiae of AF performance, I'd suggest reading this article.

In particular bear it in mind when you look at people's sample images. I've never been a 'detail' person, but I know enough about measuring the performance of optical systems to always take peoples' reports of lens quality (without a detailed description of their methodologies) with a pinch of salt ;-)

Of course, if you had a camera that incorporates both Phase Detect and Contrast Detect AF, then you could just point it at a target and it would self calibrate the AF.

Physical Measurement devices

There are other approaches to the moire one above that I use. However I'd suggest you try a 'free' technique first...

Datacolor produce device to make the process easier - we have a full review of the SpyderLensCal.

The review also has a more general discussion about using targets for focus adjustment.

Despite my initial distrust of such devices I can see situations where the SpyderLensCal would be of use, particularly for longer lenses outside.

Hardware calibration

Much as I might like the Moire technique, I know some people prefer an actual target.

We make a specific point of not selling hardware, but if you found the article of help, please consider buying something (anything helps) from Amazon.
Amazon UK link / Amazon Fr / Amazon De
Amazon USA link / Amazon Canada link

It won't cost any more (nor less we're afraid) but will contribute towards the running costs of our site.


Experiments with this device also suggested that there was no real justification for 'precison' versions such as the Lensalign Pro. I'm adjusting lens microfocus, not setting up a lab to test mirrors for space telescopes...

More of Keiths articles and reviews

 

The views in this article represent those of Keith Cooper.
Keith is always happy to discuss matters raised in his articles. You can Email Us Email Us
Northlight Images prides itself on its independence when giving advice. We do not sell hardware or software and have no direct commercial links with any of the software or hardware vendors that may be mentioned here. See our Review Policy for more information.

 

 

You can search all the many hundreds of articles and reviews on the site for more information

Have you found an article on the site useful or helpful?

If so, please consider sharing a link to the article or mentioning it on a forum or blog - Thanks to everyone who's helped the site become better known.

Explore our site... Digital Black and White photography and printing - some of Keiths thoughts, techniques and tips for those interested in a digital approach to black and white. There are many hundreds of entirely free articles and reviews on the site. New site content appears on the News, articles and reviews page.

Thanks to the visitors who've made Amazon purchases (any kinds of items whatosever)
via: Amazon UK/Amazon France/Amazon Germany/Amazon USA/Amazon Canada
It won't save extra money we're afraid, but it does help in the running of the site, and we really appreciate it...

Northlight Images is based in Leicester in the UK and supplies Commercial Photography services
Visiting Leicester or wondering where it is? We have views from the Leicester traffic cameras.