在1bpp图像中的简单形状检测 [英] Simple shape detection in a 1bpp image

查看:149
本文介绍了在1bpp图像中的简单形状检测的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个仅由黑白像素组成的图像,并且我需要检测图像中的形状,如正方形和椭圆。我还需要找到形状的边框。



我一直在网上搜索和阅读文章,但我找不到任何好的解释从哪里开始。 / p>

我也在寻找一些部分/完整的代码示例,最好在Java或C ++中。



p>

解决方案

有几种不同的边缘检测方法,其中一种方法叫 Canny Edge Detection 。请查看此网站,该网站具有已实现的Java实现算法发布到公共领域。


I am trying to learn about simple shape detection for a project I'm working on.

I have an image that is made of only black and white pixels and I need to detect shapes within the image, such as squares and ellipses. I also need to find the bounding boxes of the shapes.

I have been searching online and reading articles but I can't find any good explanations of where to start.

I am also looking for some partial/complete code examples preferably in Java or C++.

Thanks!

解决方案

There's a few different ways of doing edge detection, one of the ways is called Canny Edge Detection. Check out this website which has a Java implementation of the algorithm that has been released to the public domain.

这篇关于在1bpp图像中的简单形状检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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