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