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 #32489 is a reply to message #32474] Sun, 13 October 2002 23:43 Go to previous message
Karsten Rodenacker is currently offline  Karsten Rodenacker
Messages: 98
Registered: July 1997
Member
Hmm, I followed not completely the thread, but what about using
watershed? Its applicability depends on the homogeneity of the different
phases of marble.
Regards
Karsten

Julia schrieb:
>
> Yes, David, I think you've got the point.
>
>> How many marbles do I have
>> with a gray-scale level of X?
> Variable. A graylevel at most times corresponds to a marble. But
> at some graylevels, maybe it has two, three or more marbles each graylevel.
>
>> 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?
> Right, if we use label_region function which works only on binay image.
> But I think if we know how they do label_region and extend the algorithm on
> the graylevel image,
> maybe we only needs to trace the image less than twice.
> I am not sure if this is practical.
>
> Cheers,
>
> Julia
>
> "David Fanning" <david@dfanning.com> wrote in message
> news:MPG.1810ac85dd5a4b049899de@news.frii.com...
>> 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

--
Karsten Rodenacker ()
------------------------------------------------------------ -------------:-)
GSF - Forschungszentrum Institute of Biomathematics and Biometry
D-85758 Oberschleissheim Postfach 11 29
Tel: +49 89 31873401 | FAX: ...3369 | rodena@gsf.de |
Karsten@Rodenacker.de
http://www.gsf.de/ibb/homepages/rodenacker
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Writing text into JPEG
Next Topic: Long-Awaited Histogram Tutorial Finally Available

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

Current Time: Fri Oct 10 07:43:05 PDT 2025

Total time taken to generate the page: 1.12353 seconds