“…We can identify that metrics (1), (3), (4), (6), (12) and (14), all have a local minimum around the correct focal position but are not well pronounced. However, six of the metrics: (8), (9), (10), (11), (13) and (15) all provide the smooth and distinctive global minimum value corresponding to the most in-focus image. Among those six metrics, four of them, (8), (9), (10) and (11) are all based on variance and they all display similar characteristics.…”