merging out-of-focus images

Due to the limited depth-of-focus of optical lenses (especially such with long focal lengths) it is often not possible to get an image which contains all relevant objects 'in focus'. One possibility to overcome this problem is to take several pictures with different focus points and combine them together into a single frame which finally contains the focused regions of all input images. The following images illustrate this approach.

first input image: click to enlarge second input image: click to enlarge multiresolution fusion result: click to enlarge

first input image

second input image

multiresolution fusion

fwd: medical imaging

bck: navigation aid