We propose an algorithm to generate one multi-focus image from a set of images acquired at different focus settings. First images are registered to avoid large misalignments. Each image is tiled with overlapping neighborhoods. Then, for each region the tile that corresponds to the best focus is chosen to construct the multi-focus image. The overlapping tiles are then seamlessly mosaicked. Our approach is presented for images from optical microscopes and hand held consumer cameras, and demonstrates robustness to temporal changes and small misalignments. The implementation is computationally efficient and gives good results.
Dmitry Fedorov, Baris Sumengen, B. S. Manjunath