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

Home » Public Forums » archive » Re: costum stretch an image
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: costum stretch an image [message #68885 is a reply to message #68880] Mon, 30 November 2009 10:16 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
ivitseva wites:

> Good mornig or evening everybody. I'm trying to solve this stretching
> issue for some time now, my attempts resulted in a huge mess...Please
> help!
> I'd like to stretch an image of 1 band using IDL or ENVI stretch_doit,
> whatever is the fastest. I need to script it for I'll need to do it
> with a huge number of images.
> My image is a floating point, the input range of values is 0.000000 to
> 76.021912 and the output should be integer.
> Now, the values 0.000000 till 36.0000 should be stretched into a range
> of -12 to -1, the values in the range of 37.0000 till 72.0000 should
> be stretched into a range of 0 till 36, and the values from 72.000000
> till 76.021912 should be in the range of 37 to 48.
> This might be a piece of cake but I just cannot manage it. I had tried
> to do it with stretch_doit but not being a programmer I am stuck with
> this quite easy task...so here is what I did till now but it is
> completely wrong for all these else-es and endelse-es and if-s and
> endif-s are wrong...

Here is how I would do a custom stretch of an image in
IDL. I don't know about ENVI. It should be possible to
write this as an ENVI image file, however.

http://www.dfanning.com/code_tips/partition.html

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: SHAPEFILE changes in IDL7.1?
Next Topic: svg output

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

Current Time: Wed Oct 08 19:57:20 PDT 2025

Total time taken to generate the page: 0.00469 seconds