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 #32538 is a reply to message #32470] Wed, 16 October 2002 09:22 Go to previous messageGo to previous message
Jaco van Gorkom is currently offline  Jaco van Gorkom
Messages: 97
Registered: November 2000
Member
"Julia" <julia65201@yahoo.com> wrote in message news:aok20m$efp$1@dipsy.missouri.edu...
> ...
> I tested the algorithm on a 1730*2210 image with 364 gray levels. If I use
> the label_region in IDL to mask and relabel, it takes about 80s. While if I
> use the watershed algorithm tm_wshe1.pro, it takes more than 4000s.

Hello Julia,

for this size of image and number of gray levels, a fast solution is
probably not possible in IDL. I am aware of a routine by Harvey Rhody at
http://www.cis.rit.edu/class/simg782/ that does exactly what you want.
(hr_label_region, this was a tip from Jason on this newsgroup sometime.) It
loops over the elements of the image and is therefore not very fast, but
may be quite instructive.

If speed of this operation is really important to you, then you should
consider writing it in C as a dlm. Or, if you do not want to learn how to do
that, find someone to do it for you. And who knows, maybe RSI can be
convinced that this is the one feature that would make IDL complete?

Good luck,
Jaco
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: X-windows locking up
Next Topic: ENVI batch to subset an image using a ROI

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

Current Time: Sun Oct 12 12:14:20 PDT 2025

Total time taken to generate the page: 0.64717 seconds