Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simple Multi-Blob Detection of a Binary Image?

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?

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

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: Single blob should be no problem. Problem is multiple blobs.

Just a head start ?

like image 463
ivanwong888899999 Avatar asked Apr 21 '13 14:04

ivanwong888899999


People also ask

What is blob from image?

A Blob, in a sense, is anything that is considered a large object or anything bright in a dark background, in images, we can generalize it as a group of pixel values that forms a somewhat colony or a large object that is distinguishable from its background. Using image processing, we can detect such blobs in an image.

What is blob detection Opencv?

Blob stands for Binary Large Object and refers to the connected pixel in the binary image. The term "Large" focuses on the object of a specific size, and that other "small" binary objects are usually noise.

What is blob detection in image processing?

The method of analyzing an image that has undergone binarization processing is called "blob analysis". A blob refers to a lump. Blob analysis is image processing's most basic method for analyzing the shape features of an object, such as the presence, number, area, position, length, and direction of lumps.

What is meant by blob detection?

In computer vision, blob detection methods are aimed at detecting regions in a digital image that differ in properties, such as brightness or color, compared to surrounding regions.


1 Answers

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

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
...

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

input imageoutput image

like image 165
deltheil Avatar answered Sep 19 '22 05:09

deltheil