“…Passive focusing based on image quality is a common tool in general-purpose CCD cameras and consists of three major parts: the region being focused (the focusing window); a measure of focus, which yields a maximum at the focused position; and an optimization algorithm, which searches for a global maximum of the focus measure. Many types of focus measure have been investigated in microscopy (Firestone et al, 1991;Yeo et al, 1993;Santos et al, 1997;Geusebroek et al, 2000), digital holography (Gillespie et al, 1989) and digital photography (Krotkov, 1987;Subbarao and Tyan, 1998;Widjaja and Jutamulia, 1998;Choi et al, 1999;Chern et al, 2001;Lin et al, 2004;Yap and Raveendran, 2004). Usually, these measures are calculated using certain norms of the image gradients or derivatives (Krotkov, 1987;Subbarao and Tyan, 1998;Chern et al, 2001), manipulation of gray level histograms (Krotkov, 1987;Chern et al, 2001) or operations on the longest lines in the images (Lin et al, 2004).…”