Shape from focus

Version 1.5 (2.02 MB) by Said Pertuz
Estimate depthmap and reliability measure from focus sequence using SFF
1.5K Downloads
Updated Thu, 01 Nov 2018 01:37:26 +0000

View License

This function estimates a depthmap and a reliability measure from defocused image sequences using shape-from-focus [1]. According to [2], depth for pixels with a reliability measure below 20 dB is not reliable and should be descarded. This code has been used in [2] and [3]. For a demo, just run 'sffdemo'
References:
[1] S.K. Nayar and Y. Nakagawa, IEEE Trans. Patt Anal. Mach. Intell. 16(8):824-831, 1994.
[2] S. Pertuz, D. Puig, M. A. Garcia, Reliability measure for shape-from focus, Image Vis. Comput. 31:725–734, 2013.
[3] S. Pertuz, D. Puig, M. A. Garcia, Analysis of focus measure operators for shape-from-focus, Pattern Recognition. 46(5): 1415-1432, 2013.

Cite As

Said Pertuz (2024). Shape from focus (https://www.mathworks.com/matlabcentral/fileexchange/55103-shape-from-focus), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Statistics and Machine Learning Toolbox in Help Center and MATLAB Answers
Acknowledgements

Inspired by: Defocus simulation, Focus Measure

Inspired: Extended depth-of-field

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.5

Fixed some bugs in handling color images

1.0.0.0