File Exchange

image thumbnail

Freeman chain code

version 1.1 (2.56 KB) by Mathworlds
Freeman chain code. Binary image. One shape at a time.

4 Downloads

Updated 08 Feb 2021

From GitHub

View Version History

View license on GitHub

Editor's Note: This file was selected as MATLAB Central Pick of the Week

For binary images only (use imbinarize to binarize your image)
One shape at a time.

INPUTS :

- I, the binary image
- option_display, logical true false to display or not the result

OUTPUTS :

- Code : the Freeman code vector of directions; row vector of integers in the range |[1; 8 ]|
- row_idx0 : the first white pixel row index; integer scalar.
- col_idx0 : the first white pixel column index; integer scalar

Cite As

Mathworlds (2021). Freeman chain code (https://github.com/NicolasDouillet/Freeman_chain_code/releases/tag/v1.1), GitHub. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!