如何检测二进制图像中的曲线? [英] How to detect curves in a binary image?

查看:304
本文介绍了如何检测二进制图像中的曲线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个二进制图像,我想检测/跟踪该图像中的曲线。我不知道任何东西(坐标,角度等)。任何一个指导我应该怎么开始?假设我有此图片

I have a binary image, i want to detect/trace curves in that image. I don't know any thing (coordinates, angle etc). Can any one guide me how should i start? suppose i have this image

我想分离曲线和其他线。我只对弯曲线及其参数感兴趣。

I want to separate out curves and other lines. I am only interested in curved lines and their parameters. I want to store information of curves (in array) to use afterward.

推荐答案

这真的取决于你的意思是曲线。

It really depends on what you mean by "curve".

如果要简单地将每个离散像素集合标识为曲线,则可以使用 connected-components 算法。每个分量将对应于像素的集合。然后,您可以应用一些测试来确定组件的线性度或其他特性。

If you want to simply identify each discrete collection of pixels as a "curve", you could use a connected-components algorithm. Each component would correspond to a collection of pixels. You could then apply some test to determine linearity or some other feature of the component.

如果您要查找直线,圆形曲线或任何其他参数曲线,您可以使用 Hough变换来检测图像中的元素。

If you're looking for straight lines, circular curves, or any other parametric curve you could use the Hough transform to detect the elements from the image.

最好的方法是根据您要查找的曲线以及曲线需要哪些信息。

The best approach is really going to depend on which curves you're looking for, and what information you need about the curves.

参考连结:

这篇关于如何检测二进制图像中的曲线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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