the maximum location are needed.
The previous analisys only takes into account the
shape of the focus curve but to assess the quality of
the lens position which corresponds to the maximum
it need to be tested by an expert because there is no
possibility to compare with a reference focus mea-
sure. Sun et al. (Sun et al., 2004) propose as reference
to test the accuracy of the compared methods the dif-
ference between the lens position given by the method
and the lens position selected by an expert.
In this work we have followed a similar approach
and for each scenario an expert was asked for getting
the most focused image. The range of focus value
are shown in the column labelled as Expert of ta-
ble 1. To notice that for the Face2 scenario the
range of focus values in which the image is focused is
wider because the person is further and so the depth
of field is larger. Comparing in Table 1, the best focus
value given by each measure and the one selected by
the expert, it is observed that the most accurate mea-
sures are those based on Laplacian as SML and En-
ergy Laplace. The others exhibit a similar accuracy
except Entropy that as in the previous analysis about
the shape of the curve exhibits the worst accuracy.
4 CONCLUSIONS
In this work a comparison of six focus measures have
been carried out to investigate the performance of the
measures in a face detection application. In face de-
tection applications the person, which is the object of
interest, normally is in an office environment so the
obtained curves do not exhibit a sharp peak at one de-
fined focus position. Instead, flattened peaks are ob-
tained which make more difficult to get the best focus
position. From the six compared focus measures, all
of them, except the entropy measure, give very similar
results in non face detection applications. In the two
face detection settings the best results were obtained
with SML and Energy Laplace measures and surpris-
ingly the most recently published measure does not
give as good results as previous ones. So we have
concluded that for face detection applications the best
performance is obtained with Laplacian based mea-
sures but it is necessary to use more elaborated max-
imum finding methods because there does not exist
very sharp peaks in the focus curves. Also, a test
about the accuracy of the focus position was carried
out, using as reference the focus position given by an
expert for each example. The results are very similar
to the previous given as the two most accurate mea-
sures those based on Laplacian and the worst accuracy
the Entropy measure.
ACKNOWLEDGEMENTS
This work has been partially supported by the Spanish
Ministry of Education and Science and FEDER funds
under research project TIN2004-07087.
REFERENCES
Choi, K.-S. and Ki, S.-J. (1999). New autofocusing tech-
nique using the frequency selective weighthed median
filter for video cameras. IEEE Transactions on Con-
sumer Electronics, 45(3):820–827.
Firestone, L., Cook, K., Culp, K., Talsania, N., and Preston,
K. (1991). Comparison of autofocus methods for au-
tomated microscopy. Cytometry, 12:195–206.
Gross, R., Shi, J., and Cohn, J. (2001). Quo vadis face
recognition? - the current state of the art in face
recognition. Technical Report CMU-RI-TR-01-17,
Robotics Institute, Carnegie Mellon University.
Hjelmas, E. and Low, B. K. (2001). Face detection: A
survey. Computer Vision and Image Understanding,
83(3):236–274.
Kehtarnavaz, N. and Oh, H.-J. (2003). Development and
real-time implementation of a rule-based auto-focus
algorithm. Real-Time Imaging, 9:197–203.
Kristan, M. and Pernus, F. (2004). Entropy based measure
of camera focus. In Proceedingsof the thirteenth Elec-
trotechnical and Computer Science Conference ERK,
pages 179–182.
Kristan, M., Pers, J., Perse, M., and Kovacic, S. (2006). A
bayes-spectral-entropy-based measure of camera fo-
cus using a discrete cosine transform. Pattern Recog-
nition Letters, 27(13):1419–1580.
Krotkov, E. (1987). Focusing. International Journal of
Computer Vision, 1:223–237.
Lee, J.-H., Kim, K.-S., and Nam, B.-D. (1995). Implemen-
tation of a passive automatic focusing algorithm for
digital still camera. IEEE Transactions on Consumer
Electronics, 41(3):449–454.
Lee, J.-S., Jung, Y.-Y., Kim, B.-S., and Sung-Jea, K. (2001).
An advanced video camera system with robust AF,AE
and AWB control. IEEE Transactions on Consumer
Electronics, 47(3):694–699.
Nanda, H. and Cutler, R. (2001). Practical calibrations for a
real-time digital onmidirectional camera. In Proceed-
ings of the Computer Vision and Pattern Recognition
Conference (CVPR 2001).
Nathaniel, N., Neow, P., and Ang, M. (2001). Practical is-
sues in pixel-based autofocusing for machine vision.
In Proc. of the 2001 IEEE International Conference
on Robotics and Automation, Seoul, Korea.
Nayar, Shree K.and Nakagawa, Y. (1994). Shape from fo-
cus. IEEE Transactions on Pattern Analysis and Ma-
chine Intelligence, 16(8):824–831.
Park, R. K. and Kim, J. (2005). A real-time focusing algo-
rithms for iris camera recognition. IEEE Transactions
on Systems, Man and Cybernetics, 35(3):441–444.
ICINCO 2007 - International Conference on Informatics in Control, Automation and Robotics
422