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

Home » Public Forums » archive » Re: Today's IDL Lesson
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: Today's IDL Lesson [message #61922] Thu, 14 August 2008 13:27 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
d.rowenhorst@gmail.com writes:

> Yeah - I learned a little bit ago that anytime that you are looping
> over a where function to pull out individual regions, a histogram with
> reverse_indices is going to going to get the job done much faster

I guess the lesson I learned is that I am pretty much
never going to use LABEL_REGION without also using
HISTOGRAM. In fact, because you have to also muck
around with LABEL_REGION to get good results, I
am going to write my own function that does all this
all at once! Look for it soon in the Coyote Library. :-)

This would make a *perfect* object, and you
don't even have to save the image. All you need
is the REVERSE_INDICES from the Histogram and the
size of the image and you can easily reconstitute
the image if and when you need it.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: question on destroying objarr's
Next Topic: Re: FOR loops removal

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

Current Time: Thu Oct 09 20:40:32 PDT 2025

Total time taken to generate the page: 1.11956 seconds