Home · Register · Join Upload & Sell

Moderated by: Fred Miranda
Username  

  New fredmiranda.com Mobile Site
  New Feature: SMS Notification alert
  New Feature: Buy & Sell Watchlist
  

FM Forums | Canon Forum | Join Upload & Sell

1
       2       end
  

Archive 2005 · understanding auto focus

  
 
fotophroggie
Offline
• •
Upload & Sell: Off
p.1 #1 · p.1 #1 · understanding auto focus


i was out shooting yesterday, got home and noticed that i had series of frames where the autofocus appeared to have hunted around my focus point selection. it wasn't a problem because they were all in-focus, but it did make me a bit interested in how the camera achieves auto focus. does anyone know about the technical aspects of this?

from what i saw, i noticed that picking an off-center focus point causes the camera to hunt in the general vicinity of that area for the most contrasty point. depending upon the subject, it may focus directly on what you're set to or set itself on someplace next to it. my camera is set to use 7 points in focusing so this makes sense to me... if i were to limit it to one point, would it behave the same?

thanks for the explanation. i'm looking forward to understanding this subject more.



May 22, 2005 at 02:00 PM
_YCH_
Offline
• •
Upload & Sell: Off
p.1 #2 · p.1 #2 · understanding auto focus


in simple terms, for a one point focus, the camera will try to maximize contrast in a small region around that point.


May 22, 2005 at 02:47 PM
RDKirk
Offline
• • • • •
Upload & Sell: Off
p.1 #3 · p.1 #3 · understanding auto focus


Actually, no, the system does not work on the basis of maximizing contrast, although contrast is a factor. Over on Rob Galbraith's forum, there is a recent topic devoted to gathering information on how the system works.

According to the major material in Canon's "Lens Work III," the description in their US patent application, and remarks by Chuck Westfall, to put it briefly:

The AF system sensors are located in the floor of the mirror box. They receive the image through the semi-silvered mirror, which is then reflected downward by a secondary mirror hinged to the back of the main mirror. This forms a virtual focusing plane that is supposed to be at the exact same plane as the sensor (a point of possible miscalibration).

Each AF sensor consists of a pair of short lines of pixels forming an array. One array comprises the outer sensors. Two crossed arrays (one vertical, one horizontal) comprise the center sensor. With lenses or f2.8 or faster, the camera activates a second vertical array in the center.

The arrays are sensitive to linear details that run perpendicular to the orientation of the array. Therefore, the horizontal arrays (identified by the horizontal rectangle marks on the viewscreen) are sensitive to vetical linear details; the vertical arrays (identified by the vertical rectangle marks on the viewscreen) are sensitive to horizontal linear details.

They are blind to linear details that run parallel to the array direction. The center array, being a crossed combination of a vertical and a horizontal array, is sensitive to linear details running both vertically and horizontally. When the second vertical array is activated, it's combined input increases the accuracy by a factor of three.

The pixel arrays are actually three times longer than indicated by the viewfinder markings. This is to cover the fact that the viewscreen has a significant amount of "slop" in its horizontal-plane positioning (what you see as left/right/up/down in the viewfinder). Therefore, the sensors actually see details that are somewhat outside the viewfinder markings, and may focus on them instead of details within the sensor markings, if those outside details are more perpendicular to the array than the details inside the markings.

When you mount a lens (whether the camera is on or off), the camera interrogates the lens for its characteristics, including maximum aperture, which one of the focusing parameters.

When you half-press the shutter release (or the * button, if you've used the custom function to move focusing control there), the activated AF sensor "looks" at the image projected by the lens from two different directions (each line of pixels in the array looks from the opposite direction of the other) and identifies the phase difference of the light from each direction. In one "look," it calculates the distance and direction the lens must be moved to cancel the phase differences. It then commands the lens to move the appropriate distance and direction and stops. It does not "hunt" for a best focus, nor does it take a second look after the lens has moved (it is an "open loop" system).

If the starting point is so far out of focus that the sensor can't identify a phase difference, the camera racks the lens once forward and once backward to find a detectable difference. If it can't find a detectable difference during that motion, it stops.

Although the camera does not take a "second look" to see if the intended focus has been achieved, the lens does take a "second look" to ensure it has moved the direction and distance commanded by the camera (it is a "closed loop" system). This second look corrects for any slippage or backlash in the lens mechanism, and can often be detected as a small "correction" movement at the end of the longer initial movements.

When the camera determines how far and in what direction the lens must move to cancel the phase difference, it does so within a tolerance of "within the depth of focus" of lenses slower than f2.8 (down to f5.6) or "within 1/3 of the depth of focus" of lenses f2.8 and faster. The depth of focus is the range at the sensor plane within which the image of a point will be reproduced as a blur smaller than the manufacturer's designated "circle of confusion" (CoC). Canon's designated circle of confusion is 0.035mm for the 24x36mm format and 0.02mm for the APS-C format. The CoC is based on maintaining the appearance of sharpness in a 6x9 inch print at about an 10 inch viewing distance (as revealed by the Euro-Canon web site). There is no guarantee that images enlarged any greater than this will appear sharp.

The depth of focus increases when the aperture of the lens decreases (like depth of field at the subject plane), but it does not change with the focused distance or the focal length of the lens (according to Canon, unlike depth of field). That is why the camera interrogates the lens for that information; it calculates the depth of focus tolerance from the maximum aperture, not the set working aperture.

As a result of this tolerance (within the depth of focus or within 1/3 of the depth of focus), the camera can place the actual plane of focus at random anywhere within the tolerance range, and not necessarily at the same place each time.

A non-exhaustive list of information about focusing:

1. The center focus square in the viewfinder represents has both horizontal and vertical sensors, so it can focus just as well on vertical and horizontal lines of detail. The outer focusing rectangles are represent sensors that are oriented either vertically or horizontally (according to the shape of the marks), and focus best on lines of detail that are perpendicular to them. You can test this easily: Line up a vertical focusing rectangle on a vertical detail (like the corner of a wall or the edge of a door) and try to focus. The camera will not be able to focus on it. But put a horizontal rectangle against that vertical line, and it will snap instantly into focus (you can turn the camera, and the same will be true). This is a valuable tool. If you are struggling with a background that competes with the foreground, look at whether either has linear detail (say, a squirrel on a tree branch). You can activate one of the rectangles and turn the camera so that the rectangle is either parallel with the linear detail that you want to ignore or perpendicular to the detail you want to focus on.

2. The actual focus sensor arrays are three times larger than the viewfinder marks. A user could put an intended subject in the mark, but if there is a strong detail just outside the mark (but within the sensor area), the camera would focus on that strong detail. This is a source of much of the complaints of the back- or front-focusing -- especially with the "ruler tests." Also, as far as the camera is concerned, a focus lock on anything within the sensor area is good, which sometimes covers more area than the photographer intended.

3. Auto focusing with the 20D only works with lenses with maximum apertures of f5.6 or greater (as determined by the information passed to the camera by the lens). This means the total maximum aperture of the lens, not the aperture you're shooting with at the momement. With a lens slower than f5.6, you have to focus manually (unless you fool the lens somehow into reporting an incorrect aperture to the camera).

4. On the 20D, the center marks have additional sensors to increase accuracy three times greater than the 10D, but these only come into play with lenses that have maximum apertures of f2.8 or greater (not the aperture set for shooting, but the maximum aperture). On a variable aperture zoom lens, if it drops below f2.8 while zooming, that information is passed to the camera, which cuts out the additional focusing sensors. The outside focus sensors of the 20D are normal accuracy.

5. The camera's AF sensors require some details in the image to determine the phase difference. It's harder for the camera to find focus when the light is dim or there is little subject detail. Contrary to recent remarks on another topic, the camera CAN distinguish contrast between equally bright hues of red and green just as the eye can--the sensors are color corrected. Although the sensors can distinguish some quite subtle detail differences, they don't see quite a sharply as the eye. If the lens starts from a very out of focus condition, it can miss very fine detail that the eye sees clearly, such as the mesh of a speaker grill from across the room. In this case, it can be helped if the photographer manually moves close to "focus" and allows the camera to find the actual focus.

6. AF controls:
Shutter release. By default, when you half-depress the shutter release, the camera will focus with the active sensors on the strongest contrasts within those sensor areas. Whether or not it will hold that focused distance depends on what AF mode you're shooting in.

AE/AF Lock Button. The asterisk button on the back near your right thumb. You can set this button to be the focus button in the Custom Function menu (CF4--choose option 1). When this is set, you focus by putting the active AF mark in the viewfinder on your subject and press the asterisk button. The camera focuses on that spot and does not change focus until you press the button again. In AI Servo mode, the camera continuously evaluates focus only as long as you have the button pressed.

Multicontroller (joy button) and AF Selection button. These controls, plus the control wheels, allow you to select which focus marks are active--they provide multiple ways to do the same thing, so take your choice. You can either select one point or you can set the camera to choose its own points as you focus. If the camera chooses the points, it will usually focus on any number of points that are closest to the camera. About the only time this is better is when you're focusing on fast-moving activity that you can't keep under a single mark (say, a soccer player). Otherwise, it's usually better to select your own point. The diagonal points on the 20D are very close to the "Rule of Thirds" intersections, so sometimes it's convenient (if you use that composition rule to place your subject in the frame) to select one of those points.

7. AF Modes:
One Shot: When you set the camera to "One Shot," you set the condition "The subject is definitely not moving." The camera is in a "focus priority" mode. The shutter release is locked until the camera achieves what it thinks is the proper focus. This is best if your subject and the camera will be motionless, because it allows you to focus and change the framing without the camera refocusing automatically.

AI Servo: When you put the camera into AI Servo mode, you have set the condition "The subject is definitely moving." The camera is in a "shutter priority" mode. Therefore, the camera goes into a routine that continually collects data to predict the subject movement and move the lens to intercept the subject at its new position. You can shoot even if out of focus (however, the camera cannot release the shutter if the lens is actually in motion). If you know your subject will be in constant motion, this is the best mode. If the subject is actually not moving, the chance of a misfocused shot increases as the camera goes through its data-collection routine. However, often a handheld camera does move (as the photographer sways naturally) for AI Focus to detect and correct for the sway. AI Servo will use whichever focus point you have activated. However, if you activate all the focus points, you must put the center point on the subject and half-press the shutter release for about half a second for the camera to "acquire" the right subject. After that, while you hold the shutter release, the camera can intelligently "hand off" the subject focus from point to point as the subject "wanders" over the viewscreen.

AI Focus: The camera is normally in One Shot mode and the shutter will lock until it achieves focus. However, if it detects the subject moving (that is, the subject goes out of focus), it will automatically switch into AI Servo mode and try to maintain focus. If you are focusing on something that frequently stays still but could move suddenly (like a toddler) this mode comes in handy. The important point wiht AI Focus is that it does not lock the shutter. However, the camera will usually interpret "focus and recompose" as movement of the subject, and will refocus.


Edited by RDKirk on Jun 01, 2005 at 01:28 AM GMT



May 23, 2005 at 07:59 AM
jaapv
Offline
• • •
Upload & Sell: Off
p.1 #4 · p.1 #4 · understanding auto focus


May I suggest that the Moderator sticks RDKirk's post permanently to the top of the forum!!

Thanks!



May 23, 2005 at 08:36 AM
alanS
Offline
• • •
Upload & Sell: Off
p.1 #5 · p.1 #5 · understanding auto focus


RDKirk wrote:
to put it briefly:



I guess we have own definitions on brief...



May 23, 2005 at 09:32 AM
Brooke Clyde
Offline
• • • •
Upload & Sell: Off
p.1 #6 · p.1 #6 · understanding auto focus


tag


May 23, 2005 at 09:57 AM
CaptainG
Offline
• •
Upload & Sell: Off
p.1 #7 · p.1 #7 · understanding auto focus


jaapv wrote:
May I suggest that the Moderator sticks RDKirk's post permanently to the top of the forum!!

Thanks!



...and that Canon hire him for user manual translation.



May 23, 2005 at 10:23 AM
RDKirk
Offline
• • • • •
Upload & Sell: Off
p.1 #8 · p.1 #8 · understanding auto focus


alanS wrote:
I guess we have own definitions on brief...


Distilled from the Canon patent description, which is many pages...



May 23, 2005 at 10:39 AM
skid00skid00
Offline
• • •
Upload & Sell: Off
p.1 #9 · p.1 #9 · understanding auto focus


Incredible explanation!

Thank you VERY much!



May 23, 2005 at 07:58 PM
Monito
Offline
• • • • • •
Upload & Sell: Off
p.1 #10 · p.1 #10 · understanding auto focus


Thank you RDKirk! Bookmarked.


May 24, 2005 at 02:27 AM
JVasek
Offline
• • •
Upload & Sell: Off
p.1 #11 · p.1 #11 · understanding auto focus


I was unable to distill much from the patent description

Thank you RDKirk for a superb piece of work -

I owe you a (pm me if you are going to be in London)



May 24, 2005 at 05:06 AM
davepics50
Offline

Upload & Sell: Off
p.1 #12 · p.1 #12 · understanding auto focus


Thank you RDKirk, this is exactly what I needed to hear (read) from my inquiry elsewhere about focusing. It would be nice if Canon provided that much detail in the manual. Many people having focusing problems could gain real insite from the explanation of the focus points.


May 31, 2005 at 11:27 AM
riokid
Offline
• • • • •
Upload & Sell: On
p.1 #13 · p.1 #13 · understanding auto focus


I have to remember this!

Thanks a bunch!



May 31, 2005 at 11:29 AM
John Wright
Offline
• • • •
Upload & Sell: Off
p.1 #14 · p.1 #14 · understanding auto focus


Probably the best description of how focusing works that I have read!


May 31, 2005 at 03:13 PM
forsthof
Offline
• •
Upload & Sell: Off
p.1 #15 · p.1 #15 · understanding auto focus


Great post - I have learned alot....I have another question...when selecting the focus point with the multicontoller the manual states push it in the same direction twice to go to auto focus point selection. This does not work for me - I can only chose this mode when using the dial...does this work for others? Am I doing something wrong?

Dave



May 31, 2005 at 07:59 PM
ward1066
Offline
• • • •
Upload & Sell: Off
p.1 #16 · p.1 #16 · understanding auto focus


Wonder how many lenses sent to canon for backfocusing issues because the person didnt understand how the 20d focuses? great article.


May 31, 2005 at 08:13 PM
RDKirk
Offline
• • • • •
Upload & Sell: Off
p.1 #17 · p.1 #17 · understanding auto focus


forsthof wrote:
Great post - I have learned alot....I have another question...when selecting the focus point with the multicontoller the manual states push it in the same direction twice to go to auto focus point selection. This does not work for me - I can only chose this mode when using the dial...does this work for others? Am I doing something wrong?

Dave


Same direction twice? I think you're looking at the part where it says that if a particular point has already been selected, pressing the joybutton toward that same point will turn on auto focus point selection.

It's easier to press the rear/right button to turn on auto focus point selection (remember that to make any of these selections work, the viewfinder lcd display has to be turned on by half-pressing the shutter release).



May 31, 2005 at 09:30 PM
Hrow
Offline
• • • • •
Upload & Sell: Off
p.1 #18 · p.1 #18 · understanding auto focus


Thank you very much. Truly helpful. Now if I could just find the On/Off switch I am sure I'd soon be up for a Pulitizer.


May 31, 2005 at 09:54 PM
zaknat
Offline
• • • •
Upload & Sell: Off
p.1 #19 · p.1 #19 · understanding auto focus


I'm going to have to read that explanation a few more times but I do have what I hope isn't a dumb question. Since the third array only comes into play with faster glass, i.e. f/2.8 or faster, is it safe to say that using fast glass increases the likelihood of achieving better/quicker focus


May 31, 2005 at 10:15 PM
forsthof
Offline
• •
Upload & Sell: Off
p.1 #20 · p.1 #20 · understanding auto focus


Yes...selecting the same point a second time does not change it to 'auto' point selection. It stays with the single point...I know this is simple but it is not working on my camera.

I do agree the rear/right button is faster and works great but the other should work...



May 31, 2005 at 10:28 PM
1
       2       end




FM Forums | Canon Forum | Join Upload & Sell

1
       2       end
    
 

You are not logged in. Login or Register

Username       Or Reset password



This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.