1. A method for processing images of a scene taken with different focus, comprising: receiving the images of the scene taken with different focus and an initial depth map of the scene; for each of at least some of the images, measuring a local characteristic of each of multiple portions of the image and determining at least one portion of the image having a local variation in intensity that is larger than the local variation in intensity of corresponding portions of the other images; comparing an initial distance from the initial depth map associated with a particular portion of the image to a focused distance associated with the image for which the local variation of the particular portion of the image is larger than the local variation of the particular portion of the other images; generating an adjusted depth map of the scene comprising an array of elements, where each of at least some of the elements corresponds to a respective portion of at least one of the images, wherein at least one element of the array is based on an initial distance from the initial depth map adjusted based on the compared focused distance; and storing the generated adjusted depth map or providing the generated adjusted depth map as output.