Thread Subject: How to detect and identify "blobs" or groups of pixels? (blob tracking)

Subject: How to detect and identify "blobs" or groups of pixels? (blob tracking)

From: Ross

Date: 27 Jan, 2008 06:45:03

Message: 1 of 3

I have a thresholded image with most of the image
intensities = 0 (background/black) and a few = 1
(foreground/white).

The white pixels are clumped together in an arbitrary shape
(could be circular or square or any other shape) and there
are several such shapes.

Say I have two or more such clumps or blobs (each blob is
surrounded by black pixels), how would I identify these
blobs?

Right now, I have code that finds ALL the white pixels in a
binary image. However, if I try to assign a "centroid" by
calculating the mean values of all x and y direction white
pixels, I get just one centroid. What I want is to identify
these blobs seperately and obtain a centroid for each of
them seperately.

I also want to assign them "identities", say blob1, blob2
and blob3.

Any suggestions on how I can go about accomplishing this?
(at least the initial part)

Thanks

Subject: How to detect and identify

From: Robert

Date: 27 Jan, 2008 20:25:03

Message: 2 of 3

"Ross " <ross.nospam.kozz@yahoo.com> wrote in message
<fnh99f$mmn$1@fred.mathworks.com>...
> I have a thresholded image with most of the image
> intensities = 0 (background/black) and a few = 1
> (foreground/white).
>
> The white pixels are clumped together in an arbitrary shape
> (could be circular or square or any other shape) and there
> are several such shapes.
>
> Say I have two or more such clumps or blobs (each blob is
> surrounded by black pixels), how would I identify these
> blobs?
>
> Right now, I have code that finds ALL the white pixels in a
> binary image. However, if I try to assign a "centroid" by
> calculating the mean values of all x and y direction white
> pixels, I get just one centroid. What I want is to identify
> these blobs seperately and obtain a centroid for each of
> them seperately.
>
> I also want to assign them "identities", say blob1, blob2
> and blob3.
>
> Any suggestions on how I can go about accomplishing this?
> (at least the initial part)
>
> Thanks

Buy the image processing toolbox......

Bob

Subject: How to detect and identify

From: Vihang Patil

Date: 28 Jan, 2008 08:15:03

Message: 3 of 3

"Ross " <ross.nospam.kozz@yahoo.com> wrote in message
<fnh99f$mmn$1@fred.mathworks.com>...
> I have a thresholded image with most of the image
> intensities = 0 (background/black) and a few = 1
> (foreground/white).
>
> The white pixels are clumped together in an arbitrary
shape
> (could be circular or square or any other shape) and
there
> are several such shapes.
>
> Say I have two or more such clumps or blobs (each blob
is
> surrounded by black pixels), how would I identify these
> blobs?

doc bwlabel
doc regionprops

HTH
Vihang

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
image analysis Ross 27 Jan, 2008 01:50:04
blob Ross 27 Jan, 2008 01:50:04
image processing Ross 27 Jan, 2008 01:50:04
object detection Ross 27 Jan, 2008 01:50:04
rssFeed for this Thread

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com