“…Such methods are usually based on the calculation of a "sharpness function" (SF), which is a real-valued estimate of the image focus. Commonly used sharpness functions in literature have been based on image derivatives [45,6,32,12,47,40], statistics [13,20,46,35,39] and Fourier transforms [24,44].…”