comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: connected component labeling problem in a graylevel image without background
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: connected component labeling problem in a graylevel image without background [message #32495 is a reply to message #32494] Fri, 11 October 2002 09:38 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Julia (julia65201@yahoo.com) writes:

> But I think you kind of misunderstood my problem, maybe due to my not very
> clear expression. :)
>
>>> " The problem is like a grayscale photograph of a jar of
>>> marbles. Each marble is uniformly gray. All the marbles are touching each
>>> other, so there is no
>>> background. Two marbles of the same color may not belong to the same
>>> region.
>>> I want to give a unique label to each marble/region."
>
> In my problem, all the marbles are touching each other, so there is no
> background there. I do not think I can use
> label_region on the original image. So I do like this:
> First, use HISTOGRAM to get a mask of regions at each gray level, and then
> use LABEL_REGION on each mask.
>
> If there are n gray levels in the image, I need do label_region n times. I
> think this is not very efficient. I am not sure if I can solve this kind of
> problem more efficiently in IDL, I call it "connected component labeling
> problem in a graylevel image without background".
>
> Any suggestion there?

I'd never be confused with a mathematician, but if you
have N gray-levels and you have a tool that works with
bi-level images only, don't you pretty much have to use
your tool N times to get what you want? At least if I
understand the question to be: How many marbles do I have
with a gray-scale level of X?

Cheers,

David

P.S. Let's just say I'd bet some good money even the
HISTOGRAM function can't get us out of this one. :-)

--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: gzip files
Next Topic: connected component labeling problem in a graylevel image without background

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 18:19:55 PDT 2025

Total time taken to generate the page: 0.00264 seconds