home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / rec / photo / 24281 < prev    next >
Encoding:
Text File  |  1993-01-24  |  2.9 KB  |  60 lines

  1. Newsgroups: rec.photo
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!hpscit.sc.hp.com!hplextra!cello!jacobson
  3. From: jacobson@cello.hpl.hp.com (David Jacobson)
  4. Subject: Re: How Autofocus works?
  5. Message-ID: <1993Jan23.170706.29327@cello.hpl.hp.com>
  6. Date: Sat, 23 Jan 1993 17:07:06 GMT
  7. References: <1993Jan19.172819.9064@sol.UVic.CA>
  8. Organization: Hewlett-Packard Laboratories
  9. Lines: 49
  10.  
  11. In article <1993Jan19.172819.9064@sol.UVic.CA> mstoer@sol.UVic.CA (Marcell Stoer) writes:
  12. >I would like to exactly how the autofocus works in the new SLRs.  
  13.  
  14. The AF system consists of two linear CCD sensors, some optics, and a
  15. processor.  Usually the main mirror is half silvered or perforated so
  16. some of the light passes through it, bounces off a secondary mirror,
  17. and then falls on the CCD arrays, which are the same optical distance
  18. behind the lens as the film is.  Some additional goodies (note the
  19. precision of my description :-) cause one of the sensors to see only
  20. light passing through the left side of the lens, whike the other sees
  21. only light passing through the right side of the lens.  If the image
  22. is properly focused, the two ccd arrays see the same thing.  But if
  23. the lens, is, say, too close to the film, the image picked up by the
  24. left CCD array will be shifted a little to the left relative to the
  25. one in the right CCD array.  
  26.  
  27. Ostensibly the algorithm is a correlation (as a function of shift)
  28. algorithm.  Here it is in a nutshell.  Subtract the average light
  29. intensity from the intensity at each point.  This gives positive and
  30. negative numbers.  Let us call the ones from the left sensor Li, for i
  31. running from 1 to 128 or however many elements the CCD array has, and
  32. the right sensor values Ri.  Now denote the shift by s.  Compute the
  33. function F(s) = Sum over the range of i of L(i-s)*R(i+s).  Obviously
  34. there are a lot of little technical problmes to be solved, for example
  35. what do when when i-s or i+s is off the end.  But anyway, when it is
  36. perfectly focused Ri = Si for all i, and for s=0 we are either multiplying
  37. positives times positives or negatives times negatives and we get a
  38. a nice large postive value for the sum.  But if the image is out of
  39. focus the maximum will occur for some non-zero values s.  Assuming
  40. that subscripts increase to the right, if the max occurs for a
  41. positive value of s, the lens must be moved farther from the film, and
  42. vice versa.
  43.  
  44. Now, again, let me emphasize that there are lots of little technical
  45. problems whose solutions are no doubt closely held secrets.
  46.  
  47. >Does anyone know exactly how this works?  If there are some publications
  48. >on this I wouldn't mind the references.
  49.  
  50. If you have easy access to patents, try finding the original patent,
  51. which is held by Honeywell.
  52.  
  53. >Marcell Stoer                                Internet : mstoer@sol.uvic.ca
  54. >Department of Chemistry
  55. >Molecular Beam Laser Spectrometry Laboratory    Voice : (604) 721-8975
  56. >University of Victoria                            FAX : (604) 721-7147
  57.  
  58.   -- David Jacobson
  59.  
  60.