Freeman chain code with first differences and shape number

版本 1.0.0.0 (3.4 KB) 作者: Chaya N
Computes the Freeman chain code along with the first difference and shape number of a boundary
312.0 次下载
更新时间 2016/10/31

查看许可证

% CC = FREEMANCC(B) computes the 8-connected Freeman code, the first
% difference of the chain code and also the shape number for a given
% boundary or contour B. B must be a P-by-2 matrix, where P is the number
% of 8-connected boundary pixels for the corresponding region. Each row
% of B represents the row and column coordinates for a pixel. CC is a
% structure with four fields:
%
% StartIdx Row and column coordinates for the starting pixel of
% the boundary B.
%
% ChainCode The 8-connected chain code of B. If B is a P-by-2
% matrix of pixels representing a closed contour, then
% size of this array is 1-by-(P-1). If B is an open
% contour, then size of the chain code is 1-by-P.
%
% FirstDiff The first difference of the chain code, representing
% its rotation-invariant equivalent form and having the
% same dimensions as the chain code.
%
% ShapeNum The shape number of the boundary, which is the first
% difference of the smallest magnitude.

引用格式

Chaya N (2024). Freeman chain code with first differences and shape number (https://www.mathworks.com/matlabcentral/fileexchange/60017-freeman-chain-code-with-first-differences-and-shape-number), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2015b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Get Started with Image Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0