A simple model of the phase-detection autofocus device based on the partially masked sensor pixels is described. The cross-correlation function of the half-images registered by the masked pixels is proposed as a focus function. It is shown that—in such setting—focusing is equivalent to searching of the cross-correlation function maximum. Application of stochastic approximation algorithms to unimodal and non-unimodal focus functions is shortly discussed.
 P. Seitz and A. J. Theuwissen, “Single-Photon Imaging,” Springer, 2011. http://dx.doi.org/10.1007/978-3-642-18443-7
 J. Kiefer, “Sequential Minimax Search for a Maximum,” Proceedings of the American Mathematical Society, Vol. 4, No. 3, 1953, pp. 502-506. http://dx.doi.org/10.1090/S0002-9939-1953-0055639-3
 G. Lippmann, “Epreuves Reversibles Donnant la Sensation du Relief,” Journal of Theoretical and Applied Physics, Vol. 7, No. 1, 1908, pp. 821-825. http://dx.doi.org/10.1051/jphystap:019080070082100
 L. Kovacs and T. Sziranyi, “Focus Area Extraction by Blind Deconvolution for Defining Regions of Interest,” IEEE Transactions on Pattern Analysis and Machine Intelligence, Vol. 29, No. 6, 2007, pp. 1080-1085. http://dx.doi.org/10.1109/TPAMI.2007.1079
 K. S. Pradeep and A. N. Rajagopalan, “Improving Shape from Focus Using Defocus Cue,” IEEE Transactions on Image Processing, Vol. 16, No. 7, 2007, pp. 1920-1925. http://dx.doi.org/10.1109/TIP.2007.899188
 A. N. R. R. Hariharan, “Shape-from-Focus by Tensor Voting,” IEEE Transactions on Image Processing, Vol. 21, No. 7, 2012, pp. 3323-3328. http://dx.doi.org/10.1109/TIP.2012.2190612
 M. Subbarao and J.-K. Tyan, “Selecting the Optimal Focus Measure for Autofocusing and Depth-from-Focus,” IEEE Transactions on Pattern Analysis and Machine Intelligence, Vol. 20, No. 8, 1998, pp. 864-870. http://dx.doi.org/10.1109/34.709612