I am just wondering how does camera auto focus work. What kind of processing does it do on images in order to adjust the focus? Is there freely available code that detects the focus level of an image or video?
-
5$\begingroup$ See this: dsp.stackexchange.com/questions/2304/auto-focus-estimation/… $\endgroup$ – pichenettes Jun 18 '12 at 20:15
-
6$\begingroup$ en.wikipedia.org/wiki/Autofocus $\endgroup$ – nibot Jun 18 '12 at 20:42
-
2$\begingroup$ This seems like a trivial question that you could have googled or asked reddit. $\endgroup$ – CyberMen Jun 19 '12 at 12:47
This answer actually provides free code to perform the focus detection. https://stackoverflow.com/a/3795151/600736