本文介绍了二值图像的简单的多斑点检测?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果有一个图像,其中,阈值已经完成的一个给定的二维数组,现在是在二进制信息。

If there is a given 2d array of an image, where threshold has been done and now is in binary information.

有没有处理这个形象,任何特定的方式,我得到多斑点的在图像上的坐标?

Is there any particular way to process this image to that I get multiple blob's coordinates on the image?

因为这个过程需要在10+模拟机器人上使用C自定义模拟器同时运行,我不能使用OpenCV的。

I can't use openCV because this process needs to run simultaneously on 10+ simulated robots on a custom simulator in C.

我需要的斑点XY坐标,但首先我需要首先找到那些多斑点。

I need the blobs xy coordinates, but first I need to find those multiple blobs first.

像素组大小的最简单的标准应该是足够了。但是,我没有任何线索如何开始编码。

Simplest criteria of pixel group size should be enough. But I don't have any clue how to start the coding.

PS:单一滴应该没有问题。问题是多斑点。

PS: Single blob should be no problem. Problem is multiple blobs.

只是一个良好的开端?

Just a head start ?

推荐答案

看看这是一个小的,独立的C库,听起来非常适合您的需求。

Have a look at QuickBlob which is a small, standalone C library that sounds perfectly suited for your needs.

QuickBlob带有一个小的命令行工具( CSV-斑点),输出输入图像中发现的每一个斑点的位置和大小:

QuickBlob comes with a small command-line tool (csv-blobs) that outputs the position and size of each blob found within the input image:

./csv-blobs white image.png
X,Y,size,color
28.37,10.90,41,white
51.64,10.36,42,white
...

下面是一个例子(输出图像产生的感谢随附QuickBlob的 show-blobs.py 微小的Python实用程序):

Here's an example (output image is produced thanks to the show-blobs.py tiny Python utility that comes with QuickBlob):

这篇关于二值图像的简单的多斑点检测?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-15 10:12