Capture a sequence of images with different focus settings, use these images to find the depth for each pixel in the scene, and then use this depth map to estimate an all-in focus image