Optimization of chamfer masks

This submission contains codes for optimizing chamfer masks using Farey sequences

You are now following this Submission

In this submission, we demonstrate how Farey sequences can be used to simplify optimization equations of chamfer masks, which are frequently used to compute distance transforms. In addition, the codes show the relationships between shapes of chamfer masks and optimal local weights that define the masks.

Cite As

Baraka Maiseli (2026). Optimization of chamfer masks (https://se.mathworks.com/matlabcentral/fileexchange/71652-optimization-of-chamfer-masks), MATLAB Central File Exchange. Retrieved .

Maiseli, Baraka Jacob, et al. “Robust Cost Function for Optimizing Chamfer Masks.” The Visual Computer, vol. 34, no. 5, Springer Nature, May 2017, pp. 617–32, doi:10.1007/s00371-017-1367-8.

View more styles

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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