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

Home » Public Forums » archive » Re: zoom into float image data?
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: zoom into float image data? [message #21917 is a reply to message #21907] Wed, 27 September 2000 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Andrew (amacphee@my-deja.com) writes:

> I've got arrays of float where the interesting data lies in a small
> range. For example, the raw data ranges from -123.45 to 5678.9,
> whilst the interesting stuff lies between 123.4 and 125.6. For each set
> the interesting data is not necesserily in the same range.
>
> I'm trying to write something that:
> 1) displays the image bytescaled;
> 2) uses xloadct to stretch the colour table to home in on the
> interesting data;
> 3) re-bytescales the data with new min and max values determined from
> the scaling of the colour table.
> 4) Iterate 3 and 4 until I've zoomed in on the interesting data.
>
> I thought I could use the numbers on the stretch bars in xloadct as
> feedback to re-bytescale my input data, but these numbers aren't
> returned by xloadct. I then thought I could use tvlct to read the rgb
> values after stretching, then use e.g. min(where(r>0)) and
> max(where(r<255)) to find how much I had stretched the table. However, I
> expect I would need to do the same for green and blue and I can't see
> then how this would correspond to the 'stretch' numbers in xloadct if
> the colour table wasn't linear in all three colours.
>
> Then I wondered if anyone else had gone around this loop and maybe had
> come up with a far slicker, tried and trusted solution :-)

I think my XStretch program is made to order. :-)

http://www.dfanning.com/programs/xstretch.pro

You will need XColors too, if you want to change color
tables:

http://www.dfanning.com/programs/xcolors.pro

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@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
Previous Topic: Re: Named Indices
Next Topic: VIP and ION (was Re: Kodak buys RSI!!)

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

Current Time: Fri Oct 10 06:02:37 PDT 2025

Total time taken to generate the page: 0.88544 seconds