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 . 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.
 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.
- Updated sample data and function description
Win cash prizes and have your live script featured on our websiteLearn more
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.