摘要 |
A method for selecting a focus setting for a digital image acquisition appliance, the method comprising: acquiring a first image (350) with a first focus setting (100), acquiring a second image with a second focus setting (102), the second image being acquired sequentially with the first image, dividing the first image (350) into a first grid (104) of macroblocks (352), dividing the second image (106) into a second grid of macroblocks, determining a first zone (354) in the first grid of macroblocks and a second zone in the second grid of macroblocks (108) using a first predetermined selection criteria, calculating a macroblock shift (110) of the first zone with respect to the second zone to a sub-macroblock precision, calculating a first value of a figure-of-merit for the first image and a second value of the figure-of-merit for the second image (112), the first value being calculated using focus metric data obtained from macroblocks belonging to the first grid of macroblocks, the second value being calculated using focus metric data obtained from macroblocks belonging to the second grid of macroblocks, wherein the calculated first and second values have been corrected for the macroblock shift, selecting the focus setting (114) using a second predetermined selection criteria based on the first and second values of the figure-of-merit.
|