Bernsen local image thresholding

Implementation of Bernsen's thresholding method.

You are now following this Submission

The method uses a user-provided contrast threshold. If the local contrast (max-min) is above or equal to the contrast threshold, the threshold is set at the local midgrey value (the mean of the minimum and maximum grey values in the local window). If the local contrast is below the contrast threshold the neighbourhood is considered to consist only of one class and the pixel is set to object or background depending on the value of the midgrey.

Cite As

Jan Motl (2026). Bernsen local image thresholding (https://www.mathworks.com/matlabcentral/fileexchange/40856-bernsen-local-image-thresholding), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

Extended help text.

1.0.0.0