Optimization of chamfer masks
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://www.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.
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Image Segmentation and Analysis > Region and Image Properties >
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |
