如何使用Matlab的Freeman链代码提取轮廓? [英] how to extract contour using freeman chain code using matlab?

查看:142
本文介绍了如何使用Matlab的Freeman链代码提取轮廓?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的项目中处理手写阿拉伯文件中作者识别的问题.

I work in my project on the problem of writer recognition from handwritten Arabic documents.

为了识别作者,我使用了一个数据库映像, 我的问题是如何从这些图像中提取特征.我是Matlab的新手,对图像处理的了解也不多.

to identify the writer, I used a database image, My problem is how to extract features from these images. I'm new in matlab and I do not have much knowledge in image processing.

请帮助我,我需要从图像中提取轮廓,然后使用弗里曼链代码对其进行编码.

please help me, I need to extract the contour from image and then encode it using freeman chain codes.

下面的链接在matlab,但我不知道如何使用它.

我欢迎您的建议,并先谢谢您

I welcome your suggestion and thank you in advance

推荐答案

您可以使用imcontour函数.

例如,如果您加载此示例图像

For instance, if you load this sample image

Img = imread('test.png');

您可以使用以下命令获取轮廓:

You can get the contour with the command:

C = imcontour(Img, 1);

然后,您可以使用C引用的freeman函数作为第一个输入.

Then you can use the freeman function you cite with C as the first input.

这篇关于如何使用Matlab的Freeman链代码提取轮廓?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆