Stretching an image [message #41975] |
Thu, 09 December 2004 10:14  |
julio
Messages: 31 Registered: December 2003
|
Member |
|
|
Hello there!
I'd like to know how to apply a stretch in an image using 2% of
saturation. That's what ENVI does when I open any image.
How can I do that using an IDL code?
Any comments wellcome,
Thanks,
Julio
|
|
|
Re: Stretching an image [message #42028 is a reply to message #41975] |
Mon, 13 December 2004 19:31  |
jnettle1
Messages: 27 Registered: January 2001
|
Junior Member |
|
|
If you look in the documentation for STRETCH_DOIT, you'll find an
example of how to do use this routine to get the results you're
looking for, including how to specify input and output files.
Jeff
|
|
|
Re: Stretching an image [message #42041 is a reply to message #41975] |
Fri, 10 December 2004 13:32  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
David Fanning writes:
>> I also used STRETCH_DOIT routine, but it requires an input file and an
>> output file. Isn't there anything easier? I think David's code can
>> work out, but it seems to have something wrong...
>
> Probably nobody did any testing. :-(
I don't know. I just tried it. I don't think
there is anything wrong with the code. It's
probably not the way ENVI does it. What seems
to be wrong?
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|
Re: Stretching an image [message #42044 is a reply to message #41975] |
Fri, 10 December 2004 13:21  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Julio writes:
> I also used STRETCH_DOIT routine, but it requires an input file and an
> output file. Isn't there anything easier? I think David's code can
> work out, but it seems to have something wrong...
Probably nobody did any testing. :-(
Did you try Liam's code. That looked promising.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|