Focus Measure

A function to measure the relative degree of focus of an image.

You are now following this Submission

This function measures the relative degree of focus of an image. Several up-to-date focus measuring algorithms have been implemented and the function supports uint8 or double images. For futher details on each focus measuring algorithm the reader is referred to [1] and the references therein. For further information and datasets, see https://sites.google.com/view/cvia/focus-measure
[1] S. Pertuz et al., Analysis of focus measure operators for shape-from-focus. Pattern Recognition, 46(5):1415:1432, 2013.

Cite As

Said Pertuz (2026). Focus Measure (https://nl.mathworks.com/matlabcentral/fileexchange/27314-focus-measure), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: Extended depth-of-field, Shape from focus

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
2.2.0.0

Fixed a bug in the function AcMomentum

2.1.0.0

- Bug fixed in GDER focus operator
- Description updated

2.0.0.0

- Some bugs have been fixed (Brenner's and GDER's focus measure operators)

1.3.0.0

- The function no longer requires the floating-point toolbox.

1.0.0.0