<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0.12-alpha" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>Jeffrey Friedl's Blog</title>
	<link>http://regex.info/blog</link>
	<description>Not a photo blog, but sometimes I play one on TV</description>
	<pubDate>Fri, 29 Aug 2008 03:40:50 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.12-alpha</generator>
	<language>en</language>
			<item>
		<title>Jeffrey&#8217;s Autofocus Test Chart</title>
		<link>http://regex.info/blog/photo-tech/focus-chart/</link>
		<comments>http://regex.info/blog/photo-tech/focus-chart/#comments</comments>
		<pubDate>Tue, 23 Jan 2007 12:45:10 +0000</pubDate>
		<dc:creator>Jeffrey Friedl</dc:creator>
		
		<category>General</category>

		<guid isPermaLink="false">http://regex.info/blog/photo-tech/focus-chart/</guid>
		<description><![CDATA[

<br style='display:block;margin:5px'/>Testing SLR Autofocus

<br style='display:block;margin:5px'/>

This post describes an autofocus test chart I've developed, why I think
it's better than others I've seen, and how to use it to test the autofocus
of your camera and lens:






  Introduction
  What Makes a Good Test Chart
  How to Print It (downloading offered here)
  Preparing to Use It
  Taking the Shot
  Interpreting the Results



1. Introduction

<br style='display:block;margin:5px'/>

If you suspect that your modern SLR or SLR lens has autofocus problems, you
can use a chart like the one offered on this page to perform some tests.

<br style='display:block;margin:5px'/>

The basic premise of a chart like [...]]]></description>
			<content:encoded><![CDATA[

<div class='ic'><a href='http://regex.info/i/JEF_024811.jpg'><img
alt="Jeffrey's Autofocus Test Chart, on a clipboard, in the light by a
window" src="http://regex.info/i/JEF_024811_sm.jpg" width="532"
height="480"/></a><br/><span class="robots-nocontent" style='color:#BBB; font-size:85%'>Nikon D200 + 70-200mm f/2.8 @ 70mm
&mdash; <sup>1</sup><big>/</big>320 sec, f/2.8, ISO 400 &mdash; <a
class='quiet' style='color:#77B'
href='http://regex.info/exif.cgi?url=http%3A%2F%2Fregex.info%2Fi%2FJEF_024811.jpg'>full
exif</a></span><br/><span style='font-size:175%'>Testing SLR Autofocus</span></div>

<p>

This post describes an autofocus test chart I've developed, why I think
it's better than others I've seen, and how to use it to test the autofocus
of your camera and lens:

</p>


<ol>
  <li><a href='#intro'>Introduction</a></li>
  <li><a href='#features'>What Makes a Good Test Chart</a></li>
  <li><a href='#print'>How to Print It</a> (downloading offered here)</li>
  <li><a href='#prepare'>Preparing to Use It</a></li>
  <li><a href='#shot'>Taking the Shot</a></li>
  <li><a href='#interpret'>Interpreting the Results</a></li>
</ol>


<h2>1. <a name='intro'>Introduction</a></h2>

<p>

If you suspect that your modern SLR or SLR lens has autofocus problems, you
can use a chart like the one offered on this page to perform some tests.

</p><p>

The basic premise of a chart like this is that when photographed at an
angle, the paper slices through the plane of focus. Depending on the
situation, that plane can be very thick, encompassing the whole chart
(leaving the whole chart in focus), or, more usefully, it can be very thin,
leaving only the areas of the chart that intersect with that thin region in
focus.

</p><p>

The illustration below shows proper autofocus and the result one might
expect from it, where the region of what is actually in focus is more or
less centered on the focus target. It also has views for the problems of
<i>back focus</i> and <i>front focus</i>, where for some reason, the lens
actually focuses on a region either behind or in front of the focus point
(resulting in the in-focus area on the chart to be above or below the focus
target). Mouseover the buttons under the chart to see those views.

</p>


<table align='center' border='0' cellpadding='0' cellspacing='0' style='margin-top:15px; border:solid gray 1px; margin-bottom:40px'><tr valign='top'><td>
  <div style='height:297px; width:450px; position:relative; padding-bottom:4px'>
    <img class='raw' indexhint='noindex' alt='Illustration of autofocus problem "back focus"' src="http://regex.info/i/FocusChartBasic-BackFocus.gif" width="450" height="297" id='img653_1' style='position:absolute; left:0; top:0; display:none'/>
    <img class='raw' indexhint='right' alt='Illustration of properly working autofocus' src="http://regex.info/i/FocusChartBasic-ProperFocus.gif" width="450" height="297" id='img653_2' style='position:absolute; left:0; top:0; display:block'/>
    <img class='raw' indexhint='noindex' alt='Illustration of the autofocus problem "front focus"' src="http://regex.info/i/FocusChartBasic-FrontFocus.gif" width="450" height="297" id='img653_3' style='position:absolute; left:0; top:0; display:none'/>
  </div>

   <div align='center' style='margin-bottom: 10px'>
                              <span class='b653' id='but653_1' onmouseover='OnMouse653(1)'>Back Focus</span>
    &nbsp;&nbsp;-&nbsp;&nbsp; <span class='b653' id='but653_2' onmouseover='OnMouse653(2)'>Proper Focus</span>
    &nbsp;&nbsp;-&nbsp;&nbsp; <span class='b653' id='but653_3' onmouseover='OnMouse653(3)'>Front Focus</span>
     <p style='margin-top:5px; font-size: small'>mouseover a button to see that view</p>
   </div>
   <div style='padding-bottom:0; margin-bottom:0; text-align:left; font-size:65%; opacity:.6; filter:alpha(opacity=60)'>&nbsp;&nbsp;(Camera side view from <a class='quiet' href='http://www.dpreview.com/reviews/nikond200/page3.asp'>Digital Photography Review</a>)</div>


</td><td>

  <div style='background:#D2D2D2; height:350px; width:450px; position:relative; padding-bottom:20px'>
    <img class='raw' indexhint='noindex' alt='Example of the autofocus problem "back focus"' src="http://regex.info/i/FocusChartResult-BackFocus.gif" width="450" height="350" id='img652_1' style='position:absolute; left:0; top:0; display:none'/>
    <img class='raw' indexhint='left' alt='Example of properly working autofocus' src="http://regex.info/i/FocusChartResult-ProperFocus.gif" width="450" height="350" id='img652_2' style='position:absolute; left:0; top:0; display:block'/>
    <img class='raw' indexhint='noindex' alt='Example of the autofocus problem "front focus"' src="http://regex.info/i/FocusChartResult-FrontFocus.gif" width="450" height="350" id='img652_3' style='position:absolute; left:0; top:0; display:none'/>
  </div>

</td></tr></table>

<h3>It has to be said....</h3>

<p>

It must be said on a page like this that while there is certainly broken or
miscalibrated equipment out there, it's probably safe to say that the
majority of &#8220;is my autofocus broken?&#8221; concerns are rooted not
in miscalibrated equipment, but in the user's misunderstanding of the
equipment, or of proper technique.

</p><p>

If you suspect you have equipment with autofocus problems and mention it on
a photography forum, such as those at Phil Askey's most excellent <a
href='http://dpreview.com/'>Digital Photography Review</a>, be prepared for
three types of responses: &#8220;me too&#8221;, &#8220;are you
sure?&#8221;, and &#8220;it's all your fault.&#8221;

</p><p>

About that last group, sadly, some people seem to enjoy being being
combative and ignore all evidence that the user actually does understand
the issues at hand, and persistently, incessantly post &#8220;it's all your
fault &ndash; you don't understand anything&#8221; type responses. Just
ignore them.

</p><p>

However, the &#8220;are you sure, did you consider...&#8221; responses tend
to be from respectable forum members trying to help. Even if it does turn
out that your equipment is at fault, you can always pick up good hints and
tips from these people, so embrace and appreciate them. I certainly learned
a lot when I went through this with my own autofocus problems. It turns out
that the major cause of my problems was <a
href='http://regex.info/blog/2007-01-19/363'>broken equipment</a>, but in
trying to understand where the problem lay, I learned a lot and improved my
technique.

</p><p>

Oh, and I came up with an excellent autofocus test chart....

</p>

<div style='float:right; padding-bottom:10px; margin: 20px 0 10px 3em; text-align:center'>
  <div style='height:513px; width:383px; position: relative; z-index:1; margin-bottom:10px'>
  <img class='raw' indexhint='noindex' alt="Jeffrey's Autofocus Test Chart (mini thumbnail version)" src="http://regex.info/i/focuschart-v1.0-sm.png" width="383" height="513" id='img567_1' style='position:absolute; left:0; top:0; display:block; width:383px; height:513px'/>
  <img class='raw' alt="Jeffrey's Autofocus Test Chart (illustration of what the autofocus system sees)" src="http://regex.info/i/focuschart-v1.0-sm2.png" width="383" height="513" id='img567_2' style='position:absolute; left:0; top:0; display:none; width:383px; height:513px'/>
  </div>

  <style type="text/css">
  span.b653 { padding:2px 6px; border:gray 1px solid }
  span.b567 { padding:2px 6px; border:gray 1px solid; margin-bottom:10px }
  .b773     { margin: 2px 0px; border:#EFE 1px solid }
  div.ex773 { margin-top:30px; margin-bottom:50px; border:solid 1px #686; padding: 0px 30px 30px 30px; text-align:center; font-size: 150% }
  div.ex773 div.ic { margin-bottom:15px !important  }
  </style>
  <center>
    <span class='b567' id='but567_1' onmouseover='OnMouse567(1)'>What You See</span>
   &nbsp;&nbsp;&nbsp;&nbsp;
    <span class='b567' id='but567_2' onmouseover='OnMouse567(2)'>What the Autofocus Sees</span>
    <br/>
    <small>mouseover a button to see that image</small>
  </center>
</div>


<h2>2. <a name='features'>What Makes a Good Test Chart?</a></h2>

<p>Many factors make an autofocus test chart good or bad, but the two most
overwhelmingly important are:</p>

<ol>
  <li>the ability to ensure that the autofocus locks on to the exact
      location you intend, and</li>

  <li>that it allows you to clearly interpret <b>relative</b> crispness of
      focus across the scene.</li>

</ol>

<p>Without the first, the test has absolutely no meaning, and without the
second, you can't grasp the meaning it holds.</p>


<p>Two popular autofocus test charts I've seen and used (and learned much
from), by <a href='http://www.focustestchart.com/chart.html'>Tim
Jackson</a> and <a href='http://www.leongoodman.com/d70focusnew.html'>Leon
Goodman</a>, don't address either of these concerns as well as they could,
which is why I developed the chart presented here.</p>

<p>

I'll go ahead and add a third important characteristic of a good test chart
&ndash; perhaps the most important &ndash; <b>proper instructions</b>,
because it's easy to draw the wrong conclusions from an improperly used
chart. The two charts I link to in the previous paragraph excel in this
area, and reading through them is highly recommended.</p>


<h3>Ensuring Autofocus Lock</h3>

<p>Toward the first goal, the middle my test chart has a high-contrast
black bar &ndash; the autofocus target &ndash; surrounded on all sides by
liberal expanses of low-contrast gray that the camera autofocus can not
lock on to. For an illustration of this, see the &#8220;What the Autofocus
Sees&#8221; button in the super-shrunk view of the chart, at right.

</p><p>

(Testing to ensure that your camera's autofocus system can indeed
<b>not</b> lock onto the low-contrast gray is an important step in <a
href='#prepare'>Preparing to Use</a> the chart.)

</p><p>

Below is a small section of the chart at full resolution, from slightly
left of center, showing part of the black bar that is the focus target
(with the red line added here just to indicate the vertical centerline of
the chart).

</p>
<br clear='all'/>

<img alt="Full-resolution section from Jeffrey's Autofocus Test Chart" src="http://regex.info/i/focuschart-v1.0-c.png" width="642" height="343" class='ic raw'/>

<p>However, here's what the autofocus sees:</p>

<img indexhint='noindex' alt="Full-resolution section illustrating how an autofocus system sees Jeffrey's Autofocus Test Chart" src="http://regex.info/i/focuschart-v1.0-c2.png" width="642" height="350" class='ic raw'/>

<p>This provides a clear target for the autofocus. The low-contrast gray
extends quite a bit from side to side, but more importantly, it extends the
full height of the page. This means that even when the chart is viewed at a
steep angle like that shown in the photo at the top of this page, a large
area of low-contrast gray still presents itself around the target,
buffering it from anything else that the autofocus might lock on. Thus,
with the precautions discussed later, you're sure that the autofocus locks
onto the target bar if it locks onto anything at all.</p>

<h3>Ease of Interpretation</h3>

<p>Toward the second important feature &ndash; allowing you to interpret
relative focus &ndash; I've filled the area around the target with lines
and boxes that, when viewed at an angle, make it quite clear how focus
progresses as you inspect up and down the page:</p>


<div class='ic'><img alt="An example of perfect autofocus, as seen with
Jeffrey's Autofocus Test Chart" src="http://regex.info/i/JEF_024818_c1.jpg"
width="670" height="280" indexhint='noindex'/><br/><span class="robots-nocontent" style='color:#BBB; font-size:85%'>Nikon D200 + Nikkor
17-55 f/2.8 @ 55mm &mdash; <sup>1</sup><big>/</big>1250 sec, f/2.8, ISO 400
&mdash; <a class='quiet' style='color:#77B'
href='http://regex.info/exif.cgi?url=http%3A%2F%2Fregex.info%2Fi%2FJEF_024818_c1.jpg'>full
exif</a></span></div> <!-- JEF_024818.NEF: AF-S 55mm @ f/2.8, 0.5 meters
away: 0.7 centimeters (0.3 | 0.3) -->

<p>

It should be readily apparent how useful the lines and blocks are when
viewed this way, but it's perhaps useful to contrast this with a different
method I've seen.

</p><p>

I've seen autofocus test charts that use lines of random <a
href='http://en.wikipedia.org/wiki/Lorem_Ipsum' class='quiet'>Lorem
Ipsum</a> text, because, as the author correctly notes, we are
hypersensitive to the crispness of text, so it makes for good test fodder.
The problem with this approach is that we don't really care about
<i>absolute crispness</i>, but want to scan up and down to gauge
<i>relative crispness</i>. For this, random lines of spaced text are not as
good because there's no continuity as you scan vertically.

</p><p>

On the other hand, this chart's vertical lines make for something that
would be smooth and consistent throughout a vertical scan if focus were
perfect throughout, but since focus is not perfect throughout, the smooth
and consistent nature of the lines highlight clearly what is and isn't in
focus.

</p><p>

Additionally, when some of the lines are dashed, the individual blocks
making up the line become convenient visual markers of distance from the
focus target, allowing you to quickly compare a block <i>above</i> the
target with its counterpart the same distance <i>below</i> the target.

</p>

<h2>3. <a name='print'>How to Print The Test Chart</a></h2>

<p>

The test charts are provided as 2,449 &times; 3,299 pixel grayscale GIFs,
which, when printed at 300 <span style='font-variant:
small-caps'>ppi</span>, fit nicely on US Letter or A4-sized paper.

</p><p>

The key to properly printing the test chart is to get a result in which the
gray areas are faint enough that your camera's autofocus system can't lock
onto them, but are distinct enough that you can use them to gauge the
results. With <b>my</b> printer on <b>my</b> paper in the light <b>I</b>
use for tests with <b>my</b> camera, &#8220;25% gray&#8221; seems to be the
sweet spot.

</p><p>

Your situation may be different from mine, so I've built seven different
versions of the test chart, each with differing levels of gray for the
low-contrast areas. The 5% version is the most faint, while the 35% is the
darkest:

</p>

<table cellpadding='10' style='padding:5px 30px; margin:30px auto; border: solid 1px #555; text-align:center'>
<tr><td style='font-weight:bold; font-size:130%'>
Download Jeffrey's Autofocus Test Chart (version 1.0)
</td></tr><tr><td>
<span style='font-size:120%'><a href='http://regex.info/i/FocusChart-v1.0-gray05.gif'>5%</a>
&nbsp;&nbsp;&middot;&nbsp;&nbsp;
<a href='http://regex.info/i/FocusChart-v1.0-gray10.gif'>10%</a>
&nbsp;&nbsp;&middot;&nbsp;&nbsp;
<a href='http://regex.info/i/FocusChart-v1.0-gray15.gif'>15%</a>
&nbsp;&nbsp;&middot;&nbsp;&nbsp;
<a href='http://regex.info/i/FocusChart-v1.0-gray20.gif'>20%</a>
&nbsp;&nbsp;&middot;&nbsp;&nbsp;
<b><a href='http://regex.info/i/FocusChart-v1.0-gray25.gif'>25%</a></b>
&nbsp;&nbsp;&middot;&nbsp;&nbsp;
<a href='http://regex.info/i/FocusChart-v1.0-gray30.gif'>30%</a>
&nbsp;&nbsp;&middot;&nbsp;&nbsp;
<a href='http://regex.info/i/FocusChart-v1.0-gray35.gif'>35%</a></span>
</td></tr><tr><td style='padding-top:10px'>

On Windows, right-click the desired link, and on a Mac, ctrl-click the
link,<br/>then select the &#8220;Save Target As&#8221; or &#8220;Download Linked
File&#8221; item to download the chart image.

</td></tr></table>

<p>

I'll suggest that you start with the <a
href='http://regex.info/i/FocusChart-v1.0-gray25.gif'>25% version</a> that
worked for me, printing and testing as instructed below, returning to try a
lower-contrast version if need be.

</p>
<img indexhint='noindex' alt="Photoshop's 'Image Size' dialog" src="http://regex.info/i/Photoshop-ImageSize-300.png" width="295" height="361" class='img_right ic raw' style='margin-left:1em'/>

<p>

Be sure to print at &#8220;100%&#8221; without any &#8220;fit to
paper&#8221; option so that the resulting print is as crisp as your printer
can produce. Any resizing necessarily incurs fuzziness, which can make
interpretation of the results slightly more difficult.

</p><p>

It makes sense to select the &#8220;center image on page&#8221; option, if your
print dialog offers it. Depending on the printer, you may have to select
borderless printing in order to fit the full image onto the page, or just
as well, let a tad be cropped off. Either are better than resizing to fit
the page.</p>

<p>If printing from within Photoshop, be sure to tell Photoshop that it's
to be printed at 300 <span style='font-variant: small-caps'>ppi</span> by
selecting &#8220;Image <b>&gt;</b> Image Size...&#8221; and unchecking the
&#8220;<b>Resample Image</b>&#8221; box, then change the <b>Resolution</b>
to 300, as shown at right.</p>

<p>If possible, print on high-resolution matte photo paper, such as Canon's
<a href='http://www.amazon.com/gp/product/B0000721Z3'>MP-101</a>. Besides
giving a crisper print, the paper is more sturdy, which makes it resistant
to curling and warping (both of which are detrimental to its successful use
in testing focus).</p>

<p>After printing, test the appropriateness of the low-contrast gray by
lighting the chart well, filling the viewfinder with the gray area, and
checking to see whether the autofocus can lock on to it. If it can, you
need to move to a lower-percent gray.</p>

<p>The version you've printed holds promise if the autofocus system can't
lock onto the gray, but the quick test you've just done is only
preliminary. Be sure to check again under actual conditions after setting up
for the real shot, as described below.</p>


<h2>4. <a name='prepare'>Preparing to Use It</a></h2>

<p>Using the test chart involves taking a picture of it, but it's important
that it's done under the right conditions.</p>

<h3>The Setup</h3>

<ul>
  <li><p><b>Bright</b> &mdash; you want enough light for the autofocus
   system to do its job, and to allow for a fast enough shutter speed, to
   reduce overall shake-induced blur.</p></li>

  <li><p><b>Wide open aperture</b> &mdash; the wider the aperture (that is, the lower the f-stop number), the more shallow the
       depth of field becomes, thereby accentuating any focus-related
       problems. Using aperture-priority exposure mode makes this easy to
       ensure.</p></li>

  <li><p><b>Autofocus On</b> &mdash; lest you forget <img src='http://regex.info/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p></li>

  <li><p><b>Fast Shutter</b> &mdash; you want a fast enough shutter speed
       to eliminate the blurring effects of camera shake. As one suggestion,
       you should have enough light to get at least a
       <sup>1</sup>/1,000<sup>th</sup> second exposure at ISO 400 or lower. (That should cover most bases, but if you're
       skilled enough to think this page might be useful, you're probably skilled enough to know what shutter speed you need
       to eliminate shake-induced blur.)
   </p><p>
       You might also consider using a tripod, and a remote shutter release.</p></li>

  <li><p><b>IS? / VR?</b> &mdash; I've never heard of an
       image-stabilization or vibration-reduction feature causing
       changes in focus accuracy, but just in case, if you have equipment
       with these features, it might make sense to test both with and without them.</p></li>

  <li><p><b>Low ISO</b> &mdash; the ISO sensitivity is not particularly important in its own right, but it's important to realize
       that while increasing it allows you to get more sensitivity from the
       sensor, but it does nothing for the autofocus system. If you know you have <b>plenty</b> of
       light for the autofocus system and merely want to push the shutter speed really high, increasing ISO
       is fine. Just realize that pushing it too high adds some level of noise-induced blur to the overall picture.

       </p><p>

       Personally, I like to keep the ISO under 400 on my Nikon D200, but I'll go to 800 if needed when doing a quick focus test
       that I'll not put <i>too</i> much stock in.

       </p></li>

  <li><p><b>Square to the Chart</b> &mdash; it makes interpretation easier
       if you're exactly square to the bottom of the chart (that is, you're
       aiming straight to the chart on the horizontal plane, without any side-to-side angle).
       The top-center and bottom-center of
       the chart has small black &#8220;sightlines&#8221; that can be of help.</p></li>


  <li><p><b>Chart is Flat</b> &mdash; if the chart is not perfectly flat, its slight rumples can have a large impact on
       the focus. It's okay if just the corners of
       the chart float a bit off the table. The
       focus is on the main part of the chart, so to speak, and that's the section
       that must be perfectly flat.) Using a heavy-stock paper helps a lot.</p></li>

  <li><p><b>Exposure Compensation</b> &mdash; especially in really bright light (e.g. direct sun), automatic exposure tends to
       underexpose the fairly uniform brightness of the chart, so you may need to dial in some compensation. A few sample shots
       should make it clear whether this is necessarily.</p></li>

  <li><p><b>Enough Distance</b> &mdash; nothing will work if you're closer
       than the minimum focus distance of the lens, so be sure that you're far
       enough away that you're not bumping up against that limit. Note that some
       lenses have a different minimum-focus-distance between manual focus and
       autofocus. Zoom lenses can have a different minimum depending upon
       the focal length in use.</p></li>

</ul>

<p>Deciding how far away you should be from the chart is influenced by what
kind of test you want (some lenses display autofocus accuracy that varies
with subject distance), the focal length of the lens, and the nature of
your autofocus sensors.</p>

<h3>Understanding Your Autofocus Sensors</h3>

<p>It's possible that the active area of the camera's autofocus sensor
exactly matches the indicator you see in the viewfinder, but it's not
likely. More likely is that the active area of detection is a bit larger,
perhaps asymmetrically so.</p>

<p>The photo sequences below illustrate the pitfalls of not understanding
your camera's autofocus sensors. The right-hand image is just a closeup of
the central part of the full-frame left-hand image. Mouseover the four
descriptions below the pictures to see the story unfold...</p>

<table align='center' border='0' cellpadding='9' cellspacing='0' style='margin-top:15px; border: solid gray 1px'>
  <tr><td colspan='2'><span style='font-size:150%; font-weight:bold'>&nbsp;&nbsp;Improperly Performed Test</span></td></tr>

<tr valign='top' align='center'><td>
  <div style='height:295px; width:440px; position:relative; border:solid 4px black; margin-bottom:10px'>
    <img class='raw' indexhint='noindex'  alt='Improperly performed autofocus test, step 1 of 4' src="http://regex.info/i/FocusChartWide1a.jpg" width="440" height="295" id='img773_1' style='position:absolute; left:0; top:0; display:block'/>
    <img class='raw' indexhint='noindex'  alt='Improperly performed autofocus test, step 2 of 4' src="http://regex.info/i/FocusChartWide1b.jpg" width="440" height="295" id='img773_2' style='position:absolute; left:0; top:0; display:none'/>
    <img class='raw' indexhint='noindex'  alt='Improperly performed autofocus test, step 3 of 4' src="http://regex.info/i/FocusChartWide1c.jpg" width="440" height="295" id='img773_3' style='position:absolute; left:0; top:0; display:none'/>
    <img class='raw' indexhint='noindex'  alt='Improperly performed autofocus test, step 4 of 4' src="http://regex.info/i/FocusChartWide1d.jpg" width="440" height="295" id='img773_4' style='position:absolute; left:0; top:0; display:none'/>
  </div>
  <span style='font-size:130%; font-weight:bold'>Full Frame</span>
  </td><td>
  <div style='height:295px; width:440px; position:relative; border:solid 4px gray; margin-bottom:10px'>
    <img class='raw' indexhint='noindex'  alt='Improperly performed autofocus test, step 1 of 4 (close-up view)' src="http://regex.info/i/FocusChartWide2a.jpg" width="440" height="295" id='img772_1' style='position:absolute; left:0; top:0; display:block'/>
    <img class='raw' indexhint='noindex'  alt='Improperly performed autofocus test, step 2 of 4 (close-up view)' src="http://regex.info/i/FocusChartWide2b.jpg" width="440" height="295" id='img772_2' style='position:absolute; left:0; top:0; display:none'/>
    <img class='raw' indexhint='noindex'  alt='Improperly performed autofocus test, step 3 of 4 (close-up view)' src="http://regex.info/i/FocusChartWide2c.jpg" width="440" height="295" id='img772_3' style='position:absolute; left:0; top:0; display:none'/>
    <img class='raw' indexhint='right'  alt='Improperly performed autofocus test, step 4 of 4 (close-up view)' src="http://regex.info/i/FocusChartWide2d.jpg" width="440" height="295" id='img772_4' style='position:absolute; left:0; top:0; display:none'/>
  </div>
  <span style='font-size:130%; font-weight:bold'>Closeup View</span>
  </td></tr>

  <tr><td colspan='2'>
    <ol>
    <li class='b773' id='but773_1' onmouseover='OnMouse773(1)'>&nbsp;Scene with my camera's autofocus target indicator, over the focus target.</li>
    <li class='b773' id='but773_2' onmouseover='OnMouse773(2)'>&nbsp;Focus point I intended to be chosen (marked with purple star) and intended in-focus region (green band)</li>
    <li class='b773' id='but773_3' onmouseover='OnMouse773(3)'>&nbsp;Orange region shows actual active area of my camera's autofocus sensor</li>
    <li class='b773' id='but773_4' onmouseover='OnMouse773(4)'>&nbsp;Possible focus point chosen by camera (purple star) and resulting in-focus region (green band). Unexpected!</li>
    </ol>
</td></tr>
</table>

<p>

The final result above appears as if the camera/lens has back focus, but in
reality, it's just picking an unexpected spot to focus on. It would be nice
if the indicator in the viewfinder exactly matched the active area, but
since that's not the case, it behooves you to understand your sensors.

</p><p>

I should be clear that the illustration above is just to make a point, and
it's unlikely that any camera actually has an autofocus sensor shaped like
that shown in steps 3 and 4. Tim Jackson has a <a
href='http://www.focustestchart.com/chart.html'>detailed description of how
the autofocus actually works</a> for a Nikon D70, but it likely applies to
all modern SLRs, so I recommend it regardless.

</p><p>

I'll leave the detailed description of mapping your autofocus sensors to
the link in the previous paragraph, but in short, one way to measure the
active area is to get close enough to the chart so that the low-contrast
gray area fills the width of the viewfinder, and place the sensor indicator
right in the middle of it. Having nothing high-contrast anywhere nearby, it
shouldn't be able to lock onto a focus, but instead, should hunt around
until it gives up. (If it can lock onto the low-contrast gray areas, you'll
need to use one of the lower-percent gray versions offered in the <a
href='#print'>How to Print It</a> section.)

</p><p>

Then, as you move the aim toward the high-contrast black running up and
down the sides of the chart, keep trying the autofocus, and once it's able
to lock on, note where the black begins relative to that edge of the sensor
indicator. You can do the same moving the other way, and up and down, and
so &#8220;map&#8221; the true active area of your sensor.

</p><p>

If you have multiple sensors, they may well each have their own
characteristics, so you may wish to map them all, but for the purposes of
testing your autofocus system, it's sufficient to use only the middle
sensor.

</p><p>

Of course, the more you can fill the viewfinder with the chart, the better.
Even if the scenario above results in a valid test, chart is too small to
really make out much detail from it, even with the resolution my
10-megapixel SLR affords.

</p>

<h2>5. <a name='shot'>Taking the Shot</a></h2>

<p>

After taking into account everything in the previous section, it's a simple
matter to take some shots. Take multiple shots at different angles of
attack. A lower angle shows the depth of the in-focus field the most
clearly (and with it, the accuracy of the autofocus system), but requires
the most care to ensure that the autofocus sensor does not see the top of
the chart instead of the intended target.

</p><p>

(There's an example of a valid test with very low angle of attack in the next section.)

</p><p>

While shooting, keep the following in mind:

</p>

<ul>
      <li><p>Keep double-checking that you're square to the chart</p></li>

      <li><p>Be very careful not to allow yourself to move the camera
             between achieving focus lock and actually taking the picture. Some people, for example,
             have an unconscious habit to move forward a half an inch in the
             process of taking the shot, and such movement would absolutely destroy any
             meaning to this test.</p></li>

      <li><p>If you're near the minimum-focus distance of the lens, keep that in mind as well.</p></li>

      <li><p>Pause occasionally to double-check that the autofocus can't lock on the
           low-contrast gray (by pointing at the wide expanse of it in the upper half
           of the chart and confirming that focus can't be found.)</p></li>

</ul>

<p>Once I've set up for a particular shot, I take it, then point the camera
at something far and autofocus there, then return to autofocus on the
chart, taking a second shot. I then do the same with something near (if I'm
not already near the minimum-focus distance of the lens) and return for a
third shot. This way, I feel sure that the autofocus is starting from
scratch each time.</p>

<p>I got used to taking multiple shots set up the same way because my lens
was giving somewhat random results. I guess that's one symptom of being
broken, because after <a href='http://regex.info/blog/2007-01-19/363'>it
was fixed</a>, the results were consistently spot on.</p>

<h2>6. <a name='interpret'>Interpreting the Results</a></h2>

<p>After taking the shots, I load them into <a
href='http://www.adobe.com/products/photoshoplightroom/'>Adobe Lightroom</a>
and make a couple of quick adjustments to make the results a bit easier to
see (I convert them to grayscale, and adjust the contrast a bit to
accentuate the low-contrast region). Lightroom is excellent for this
because it lets me quickly zoom and pan on an image (more quickly even than
Photoshop), and to quickly flip back and forth among multiple images.</p>

<p>In interpreting the results, I look at both the vertical progression of
the lines, and the numbers that run up and down the sides. Consider this example:</p>

<div class='ic'><a href='http://regex.info/i/JEF_024834.jpg'><img indexhint='noindex'  alt="Perfect autofocus results, as seen with Jeffrey's Autofocus Test Chart" src="http://regex.info/i/JEF_024834_sm.jpg" width="700" height="222"/></a><br/><span class="robots-nocontent" style='color:#BBB; font-size:85%'>Nikon D200 + Nikkor 17-55 f/2.8 @ 55mm &mdash; <sup>1</sup><big>/</big>3000 sec, f/2.8, ISO 100 &mdash;
<a class='quiet' style='color:#77B' href='http://regex.info/exif.cgi?url=http%3A%2F%2Fregex.info%2Fi%2FJEF_024834.jpg'>full exif</a></span><br/><span
style='font-size:125%'>The Clear Area is Clearly Clear</span></div>

<p>The depth of field here is only about 8 millimeters (a third of an
inch), so it's fairly easy to see the effects on the chart as it slices
through the in-focus region. The more clearly focused parts of the vertical
lines seem to be properly centered on the target stripe, and comparable
numbers (e.g. the left-side &#8220;2&#8221; <b>above</b> the midline and the left-side
&#8220;2&#8221; <b>below</b> the midline) seem to be about equally fuzzy.</p>

<p>Actually, in this case, there might be the slightest bit more sharpness
to the numbers above the midline, but it's so slight that it could well
be because the autofocus picked the top edge of the target stripe rather
than the bottom edge. That's how good the autofocus was with this shot.</p>

<p>(Frankly, it could be that the <i>bottom</i> sets of numbers have the
slight edge in sharpness.... the more I stare, the fuzzier
<i>everything</i> becomes!)</p>

<p>Let's look at another example...</p>

<div style='margin-top:20px' class='ic'><a
href='http://regex.info/i/JEF_024835.jpg'><img alt="Perfect autofocus
results with a low angle-of-attack view of Jeffrey's Autofocus Test Chart"
src="http://regex.info/i/JEF_024835_sm.jpg" width="700" height="286"/></a><br/><span class="robots-nocontent" style='color:#BBB; font-size:85%'>Nikon D200 + Nikkor 17-55 f/2.8 @ 17mm
&mdash; <sup>1</sup><big>/</big>6000 sec, f/2.8, ISO 100 &mdash; <a
class='quiet' style='color:#77B'
href='http://regex.info/exif.cgi?url=http%3A%2F%2Fregex.info%2Fi%2FJEF_024835.jpg'>full
exif</a></span><br/><span style='font-size:125%'>A Low Angle of
Attack</span></div>

<p>Here, the depth of field is almost 10 times larger (7.6 centimeters; 3
inches), which makes it more difficult to draw conclusions from the
vertical lines. In this case, I focus more on the numbers (haha, I'm so
witty). Clicking through to the <a
href='http://regex.info/i/JEF_024835.jpg'>larger version</a> and comparing
the two &#8220;5&#8221; above with the two &#8220;5&#8221; below, they feel fairly close in their
fuzziness, although the upper pair are a bit sharper. In this case, that's
to be expected because we're close enough to the chart that the depth of
field is not evenly distributed in front of and behind the focus point:
about 3.5 centimeters are in front, and 4.1 behind.</p>

<h3>Depth of Field Measurements</h3>

<p>

Pedantically speaking, &#8220;Depth of Field&#8221; doesn't really refer to
the region that's &#8220;in focus&#8221;, but rather, &#8220;of acceptable
focus.&#8221; The difference reflects the fact that as you move in front or
behind the focus point, the focus starts tapering off immediately, and
continues to do so indefinitely. What's considered &#8220;acceptable
focus&#8221; changes depending on the intended use and the resolution of
the medium capturing the image (that means, among other things, that the
depth-of-field calculations are camera dependent). The current Wikipedia
page on <a href='http://en.wikipedia.org/wiki/Depth_of_field'>Depth of
Field</a> has a good presentation of the concepts.

</p><p>

My <a
href='http://regex.info/blog/other-writings/online-exif-image-data-viewer/'>Online
Exif Viewer</a> reports on the depth of field if the image data contains
all the requisite data required to compute it. Some of this data is in the
Maker Notes section of metadata, which Photoshop strips, so for best
results, check with an original straight-out-of-the-camera image.

</p>
<h3>A Few More Samples</h3>

<p>Here are a few more samples to inspect. As with most images on this post
(and on my blog, for that matter), clicking through on the image brings you
to a larger version.</p>

<div class='ex773'><div class='ic'><a href='http://regex.info/i/JEF_024909.jpg'><img indexhint='noindex' 
alt="An example of autofocus back focus, as seen with Jeffrey's Autofocus Test Chart"
src="http://regex.info/i/JEF_024909_sm.jpg" width="730" height="359"/></a></div>

  <p>At first glance this one might appear to be okay because the target is
  clearly focused, but comparing, for example, the lower-left &#8220;4&#8221; with the
  upper-left &#8220;4&#8221;, shows that there's a bit of back focus here.</p>

  <p>This was taken with a 200mm lens from a medium-close distance (about
  three yards), which results in a depth of field evenly split on either side
  of the focus point. Had it been taken with a short focal length at a
  close distance, it's possible that the depth of field would start to skew more
  toward the rear, and as such, a result like this might be expected. That's
  not the case here, so this shows back focus.</p>
</div>

<div class='ex773'><div class='ic'><a href='http://regex.info/i/JEF_024936.jpg'><img indexhint='noindex' 
alt="An example of severe autofocus front focus, as seen with Jeffrey's Autofocus Test Chart"
src="http://regex.info/i/JEF_024936_sm.jpg" width="730" height="368"/></a></div> <p>Some pretty severe
front focus</p> </div>

<div class='ex773'><div class='ic'><a href='http://regex.info/i/JEF_024924.jpg'><img indexhint='noindex' 
src="http://regex.info/i/JEF_024924_sm.jpg" width="730" height="368"
alt="An example of autofocus front focus, as seen with Jeffrey's Autofocus Test Chart"/></a></div> <p>Front focus</p>
</div>

<div class='ex773'><div class='ic'><a
href='http://regex.info/i/JEF_024927.jpg'><img indexhint='noindex'
src="http://regex.info/i/JEF_024927_sm.jpg" width="730" height="361"
alt="An example of severe autofocus back focus, as seen with Jeffrey's Autofocus Test Chart"/></a></div> <p>Severe back
focus</p> </div>

<h2>7. Conclusion</h2>

<p>I would expect that the only people who actually read this far are those
suffering from really bad autofocus problems, and are desperate to
understand them. You have my sympathy, and I hope that my test chart and
what I've so verbosely presented here are helpful.

</p>

<script type='text/javascript'>
  var img652 = new Array();
  var img653 = new Array();
  var but653 = new Array();

  but653[1] = document.getElementById('but653_1');
  but653[2] = document.getElementById('but653_2');
  but653[3] = document.getElementById('but653_3');

  img653[1] = document.getElementById('img653_1');
  img653[2] = document.getElementById('img653_2');
  img653[3] = document.getElementById('img653_3');
  img652[1] = document.getElementById('img652_1');
  img652[2] = document.getElementById('img652_2');
  img652[3] = document.getElementById('img652_3');


 function OnMouse653(num)
 {
   img652[num].style.display         = 'block';
   img653[num].style.display         = 'block';
   but653[num].style.borderColor     = '#FF4040';
   but653[num].style.backgroundColor = '#808080';
   but653[num].style.color           = 'white';
   but653[num].style.borderWidth     = '2px';
   but653[num].style.padding         = '1px 5px';

   for (i = 1; i <= 3; i++) {
      if (i != num) {
          img652[i].style.display         = 'none';
          img653[i].style.display         = 'none';
          but653[i].style.borderColor     = 'gray';
          but653[i].style.backgroundColor = '';
          but653[i].style.borderWidth     = '1px';
          but653[i].style.padding         = '2px 6px';
          but653[i].style.color           = '';
      }
   }
 }
 OnMouse653(2);


 var img567 = new Array();
 var but567 = new Array();
 img567[1] = document.getElementById('img567_1');
 but567[1] = document.getElementById('but567_1');
 img567[2] = document.getElementById('img567_2');
 but567[2] = document.getElementById('but567_2');


 function OnMouse567(num)
 {
   img567[num].style.display         = 'block';
   but567[num].style.borderColor     = '#FF4040';
   but567[num].style.backgroundColor = '#808080';
   but567[num].style.color           = 'white';
   but567[num].style.borderWidth     = '2px';
   but567[num].style.padding         = '1px 5px';

   for (i = 1; i < 3; i++) {
      if (i != num) {
          img567[i].style.display         = 'none';
          but567[i].style.borderColor     = 'gray';
          but567[i].style.backgroundColor = '';
          but567[i].style.borderWidth     = '1px';
          but567[i].style.padding         = '2px 6px';
          but567[i].style.color           = '';
      }
   }
 }
 OnMouse567(1);

  var img772 = new Array();
  var img773 = new Array();
  var but773 = new Array();

  but773[1] = document.getElementById('but773_1');
  but773[2] = document.getElementById('but773_2');
  but773[3] = document.getElementById('but773_3');
  but773[4] = document.getElementById('but773_4');

  img773[1] = document.getElementById('img773_1');
  img773[2] = document.getElementById('img773_2');
  img773[3] = document.getElementById('img773_3');
  img773[4] = document.getElementById('img773_4');
  img772[1] = document.getElementById('img772_1');
  img772[2] = document.getElementById('img772_2');
  img772[3] = document.getElementById('img772_3');
  img772[4] = document.getElementById('img772_4');


 function OnMouse773(num)
 {
   img772[num].style.display         = 'block';
   img773[num].style.display         = 'block';

   but773[num].style.borderColor     = '#C66';
   but773[num].style.backgroundColor = '#411';

   for (i = 1; i <= 4; i++) {
      if (i != num) {
          img772[i].style.display         = 'none';
          img773[i].style.display         = 'none';
          but773[i].style.borderColor     = '#555';
          but773[i].style.backgroundColor = '';
      }
   }
 }
 OnMouse773(1);

</script>



]]></content:encoded>
			<wfw:commentRss>http://regex.info/blog/photo-tech/focus-chart/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
