Contour Parameterization

版本 1.0.0.0 (70.1 KB) 作者: Asad Ali
This function takes as input an image having white background and black foreground and traces the en
2.7K 次下载
更新时间 2006/11/27

查看许可证

Contour Tracing of a Black White Image (Binary Image).

This function takes as input an image having white background and black foreground and traces the entire contour and returns the row and column
coordinate values of all the points which lie on the contour

This can be used in Line Following Algorithms and for parameterizing affine distorted contours.

Syntax :
cpixels = affine_contour_trace(BW,r,c,xx1,yy1)

Input :
BW - Black & White Image (Binary Image).
row,col - row, column value of a single pixel on the contour, serves as the starting point of parameterization
xx1,yy1 - listing of all the boundary points of the object obtained using the command: [xx1,yy1,p] = find(originalImage);

Output :
sp_x - N x 2 matrix which stores the coordinate values of the contour, column1 gives the rows & column2 the corresponding column.

See the SampleUsage.m file for an example

The program has been succesfully tested using the MPEG7-ShapeB dataset and Airplane dataset.

Sample images are included for experimentation.

引用格式

Asad Ali (2024). Contour Parameterization (https://www.mathworks.com/matlabcentral/fileexchange/13109-contour-parameterization), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R14
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Images 的更多信息
致谢

启发作品: contour following in binary images

Community Treasure Hunt

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

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