编者注: This file was selected as MATLAB Central Pick of the Week
For binary images only.
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
引用格式
Nicolas Douillet (2024). Freeman chain code (https://www.mathworks.com/matlabcentral/fileexchange/87037-freeman-chain-code), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R2019b
兼容任何版本
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!