Coin Community Family of Web Sites Join Thousands of Coin, Bullion, & Money Collectors
Coin, Banknote and Medal Collectors's Online Mall Specializing in Modern Numismatics Royal Canadian Mint products, Canadian, Polish, American, and world coins and banknotes. Shop for APMEX Bullion on eBay!Join Thousands of Coin, Bullion, & Money Collectors Vancouvers #1 Coin and Paper Money Dealer 300,000 items to help build your collection!








Username:
Password:
Save Password
Forgot your Password?


This page may contain links that result in small commissions to keep this free site up and running.

Welcome Guest! Registering and/or logging in will remove the anchor (bottom) ads. It's Free!

DIY Autofocus Calibrator

To participate in the forum you must log in or register.
Author Previous TopicReplies: 6 / Views: 3,006Next Topic  
Bedrock of the Community
DVCollector's Avatar
United States
10045 Posts
 Posted 08/24/2014  2:41 pm Show Profile   Bookmark this topic Add DVCollector to your friends list Get a Link to this Message Number of Subscribers
I would guess that most of us don't use the camera's autofocus for shooting coins. Perhaps we use focus-stacking while tethered, or use our lenses in full manual mode.
But, in the event that you use AF for macro shots (which I do when shooting nature hand-held), you might like a tool for calibrating AF for your lenses.

This method assumes that your camera provides for AF micro-adjustment, allowing you to dial-in different AF values for each lens. The basic concept of AF calibration is pretty simple: you focus your lens fully open, centered on a vertical target, shoot a picture, and compare this result against the DoF on an angled ruler. Below shows the tool I constructed, with a vertical target and an angled ruler. The critical detail of this system would be the "0" tick of the ruler being on the same exact axis that passes through both the center of the target as well as the lens axis, set perpendicular to that target.

My autofocus calibration tool, constructed from foamcore and laser prints of my own design.
DIY-Autofocus-Calibrator

When setting up for AF calibration, a couple things are critical for accuracy:

  • Calibrating the center point axis of the target to the axis of the "0" on the ruler. This is very critical in accurately determining how far the lens front-focuses or back-focuses on a subject.

  • Getting the lens axis of the camera perpendicular to a center point on the target. In other words, the sensor plane should be parallel to the target plane in both the x and y axes and perpendicular to z (the lens axis). While some rather complicated methods are used to get the target perpendicular to the lens axis, including multiple boresights, there is a simpler solution using the sensor plane as the reference. Put simply, if you can achieve equal angles in both the x and y axes between the target plane and sensor plane, your target will be both parallel to the sensor plane and perpendicular to the lens axis:


DIY-Autofocus-Calibrator

Applying this principle to achieve proper alignment requires having enough data points on your target for adequate comparison against the sensor plane. In other words, your photo of the target grid is analyzed as a projection onto the sensor plane. In the target below, I have included grids, axes centers, and other points to help position the lens approximately* perpendicular to the target plane. To this end, it helps to have a grid on your dSLR's viewfinder and/or use guides and various reference points in an image editing program.

DIY-Autofocus-Calibrator

*Note: as with any mechanical calibration that requires human input, your results will be based on the level of precision you can bring to the tools and measurement.

As you can see above, the target grid lines are parallel to analogous lines on the sensor (shown here as blue guide lines). Comparing the photo to grid lines as shown above will help you determine if you need to correct the angle of the camera along the x- or y- axes (or both). Obviously, this part of calibration takes some patience and skill to get everything aligned well.

Once you get your camera aligned, the next step is to take a picture wide open, allowing you to best compare focus calibration using a narrow DoF. In the picture below, I have adjusted the AF fine-tuning so that the focal plane is approximately at "0" or the axis which passes through the center of the target. This takes some time adjusting and "pixel peeping" to pick a value that brings the "0" axis into relative focus, compared to adjacent marks.

How AF fine-tune works on the Nikon D810:
DIY-Autofocus-Calibrator

The result of AF fine-tuning--the sharpest lines will be clustered around the "0" axis:
DIY-Autofocus-Calibrator

That's about as concise as I can get on setup and use for my AF calibration tool. If anyone would like to build their own, PM me and I'll send you the files.
Edited by DVCollector
08/24/2014 3:54 pm
Moderator
Learn More...
SsuperDdave's Avatar
United States
23522 Posts
 Posted 08/24/2014  3:02 pm  Show Profile   Bookmark this reply Add SsuperDdave to your friends list Get a Link to this Reply
Just....wow.
Bedrock of the Community
DVCollector's Avatar
United States
10045 Posts
 Posted 08/24/2014  3:47 pm  Show Profile   Bookmark this reply Add DVCollector to your friends list Get a Link to this Reply
And, elsewhere it's been discussed that lens-to-target alignment should be "perfect" in order to achieve accuracy in your AF calibration. While I'm all for accuracy--and ultimately sharp photos--I think it's far more reasonable to expect a margin of error and account for its effect on the accuracy of your calibration.

For example, consider a "perfect" (i.e. theoretical) alignment of your camera to the target--shown below (simplified). Since every camera will be at least slightly off-axis to the target, it's more practical to calculate what effect an off-axis error (angle c) will have on a ruler reading (b). Obviously, the smaller you can make c ,the better. Reducing the distance (a) between the lens axis and ruler will also improve reading accuracy--hence the smaller, closer target on my calibration tool. I think that achieving reasonable accuracy is far better than forever chasing theoretical "perfection".


DIY-Autofocus-Calibrator
Edited by DVCollector
08/24/2014 3:50 pm
Pillar of the Community
Learn More...
United States
4038 Posts
 Posted 08/24/2014  8:09 pm  Show Profile   Bookmark this reply Add rmpsrpms to your friends list Get a Link to this Reply
That's a nice tutorial. Note that you can improve accuracy of your calibrator by using the mirror technique to ensure perfect alignment.

For coins, AF is useful as long as the DOF is sufficient. This usually means that for larger coins such as Dollars the AF process can work well. Combined with the long working distance allowing lots of flexibility in lighting, and availability of good dedicated macros in the 1:2 range, using AF on Dollars is practical. So if you never go beyond 1:2, AF is your friend.

AF focusing problems usually start to show up as the magnification increases beyond 1:2 and the photographer is trying for highest image quality by keeping a large aperture. This is because for larger apertures the DOF becomes thinner than the surface height variations. I shoot a lot of Cents at a magnification of around 0.7:1, and I go for maximum image quality, so use an aperture of f/4 nominal, or f/6.8 effective. At this aperture, the process of critical focusing becomes important.

Critical Focusing is the process of adjusting the plane of focus on desired image features. AF algorithms have many points that are evaluated for focusing, but generally there are only one or two points on a coin that are at the correct height for critical focusing to be effective. It is tough to force the AF algorithm to focus on these points! They are almost never in convenient locations corresponding to placement of AF sensors, so the only way to line up the right points is to move the coin off-axis. That said, if you're shooting a large number of the same coin you could save a bit of time doing this and paying the price in non-optimum image sizes.

For my Cent example, I use the flat area of Lincoln's neck for critical focus adjustment. The field is at a lower level, and the top surfaces of the cheek and shoulder are at a higher level, so the neck is a good compromise plane for critical focusing. At f/4 and 0.7:1, depth of field is sufficient to get both the field and cheek/shoulder planes in acceptable focus a long as the critical focus plane is placed between them. This method works up to about 1:1 or a bit beyond for most US coins.

For higher magnifications, or coins with more topography, focus stacking is required to get maximum image quality.
Contact me for photographic equipment or visit my home page at:
http://macrocoins.com
Bedrock of the Community
DVCollector's Avatar
United States
10045 Posts
 Posted 08/25/2014  12:17 am  Show Profile   Bookmark this reply Add DVCollector to your friends list Get a Link to this Reply

Quote:
That's a nice tutorial. Note that you can improve accuracy of your calibrator by using the mirror technique to ensure perfect alignment.
I've heard this discussed before, and I have held my camera up to mirrors, but since there aren't any registration marks on the lens to establish the lens center axis, I find it's pretty much "eyeballing" the lens. I think the method laid out above is a lot more empirical in establishing alignment to the target. As much as I care about the details, I also want to find straightforward solutions, where the margin of error can be calculated too.

Thanks for commenting...I'll get back with more thoughts after I work on some photographs.
Edited by DVCollector
08/25/2014 12:19 am
Pillar of the Community
Learn More...
United States
4038 Posts
 Posted 08/25/2014  01:41 am  Show Profile   Bookmark this reply Add rmpsrpms to your friends list Get a Link to this Reply
Using the mirror technique will get you within a few pixels if you use on-screen grids, with almost zero resulting angular error. It also just takes a few seconds to set up...
Contact me for photographic equipment or visit my home page at:
http://macrocoins.com
Bedrock of the Community
DVCollector's Avatar
United States
10045 Posts
 Posted 08/25/2014  02:44 am  Show Profile   Bookmark this reply Add DVCollector to your friends list Get a Link to this Reply
Hmmm...of course you have to ensure the mirror will be parallel in x,y to whatever target you use.
I think I'll stick to my method of comparing the sensor plane to the target plane.
  Previous TopicReplies: 6 / Views: 3,006Next Topic  

To participate in the forum you must log in or register.



    




Disclaimer: While a tremendous amount of effort goes into ensuring the accuracy of the information contained in this site, Coin Community assumes no liability for errors. Copyright 2005 - 2026 Coin Community Family- all rights reserved worldwide. Use of any images or content on this website without prior written permission of Coin Community or the original lender is strictly prohibited.
Contact Us  |  Advertise Here  |  Privacy Policy / Terms of Use

Coin Community Forum © 2005 - 2026 Coin Community Forums
It took 0.27 seconds to rattle this change. Forums