File Exchange

image thumbnail

Extended depth-of-field

version 1.0 (5.51 MB) by

Generate low-noise extended depth-of-field image from focus sequence

15 Downloads

Updated

View License

This function generates an extended depth-of-field image (also referred to as all-in-focus image) from a focus sequence using the noise-robust selective all-in-focus algorithm [1]. Input images may be grayscale or color. For color images, the algorithm is applied to each color plane independently. For a demo, just type 'fstackdemo' at the matlab prompt.
References:
[1] Pertuz et. al. "Generation of all-in-focus images by noise-robust selective fusion of limited depth-of-field
images" IEEE Trans. Image Process, 22(3):1242 - 1251, 2013.

Comments and Ratings (2)

Thank you for this implementation. I had a quick question. If I just have the focal lengths at which images were collected. Can I still use the 'focus' parameter ?

David Niles

Updates

1.0

- Updated sample data and function description

MATLAB Release
MATLAB 8.5 (R2015a)
Acknowledgements

Inspired by: Focus Measure, Shape from focus

MATLAB Online Live Editor Challenge

Win cash prizes and have your live script featured on our website

Learn more

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video