Robust cost function for designing chamfer masks

This submission implements a robust cost function for designing chamfer masks

You are now following this Submission

In this submission, we have implemented a robust optimization rule (cost function) that helps to design optimal chamfer weights for sequential distance transforms. The proposed cost function, called RLog, takes the absolute logarithm of the ratio between the measured and reference distance values. Also, the submission includes functions to generate integer-valued chamfer masks.
The corresponding paper for this submission is currently under peer-review.

Cite As

Baraka Maiseli (2026). Robust cost function for designing chamfer masks (https://www.mathworks.com/matlabcentral/fileexchange/59298-robust-cost-function-for-designing-chamfer-masks), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: PlotPub - Publication Quality Graphs in MATLAB

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

Renamed images in the ../datasets file to reflect the names used in the manuscript, "Robust cost function for optimizing chamfer masks", which has been submitted to The Visual Computer Journal for consideration.

1.0.0.0