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

Home » Public Forums » archive » Stretching an image
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Stretching an image [message #41975] Thu, 09 December 2004 10:14 Go to next message
julio is currently offline  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 Go to previous message
jnettle1 is currently offline  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 Go to previous message
David Fanning is currently offline  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 Go to previous message
David Fanning is currently offline  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/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Announce: IDL Line Profiling software
Next Topic: Re: What about real polymorphism ??

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

Current Time: Wed Oct 08 20:02:14 PDT 2025

Total time taken to generate the page: 0.37789 seconds