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

Home » Public Forums » archive » Re: Plotimage and non-byte images
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
Re: Plotimage and non-byte images [message #75376] Wed, 02 March 2011 13:56
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Wednesday, March 2, 2011 2:06:43 PM UTC-5, le.d...@tiscali.it wrote:
> Hi all,
> I am trying to plot images using "plotimage". Nevertheless, images are
> "non-byte scaled" and the appearence is always quite weird. I have to
> spend a huge amount of time trying to find the best suited "range"...
> Do you have a smart (=quick) solution for that?
> Thanks in advance!

Have you been using the RANGE keyword to PLOTIMAGE and setting it to the minimum and maximum of the image values? Or more directly first using BYTSCl on your image?

Sometimes using the image minimum and maximum is a poor choice (e.g. if the maxima are due cosmic ray spikes in a CCD image). In that case you might want to use a histogram and select a data range such as in http://idlastro.gsfc.nasa.gov/ftp/pro/tv/sigrange.pro

If you have a large dynamic range you might consider logarithmic scaling
( http://www.astro.ucla.edu/~mperrin/IDL/sources/alogscale.pro )

--Wayne

P.S. For a long time I would switch back and forth between using Craig Markwardt's PLOTIMAGE and David Fanning's CGIMAGE (formerly TVIMAGE) because each had features that I wanted. Now with one exception CGIMAGE has all the features of PLOTIMAGE, and I hope to convince David to add the equivalent of the IMG[X/Y]RANGE keyword (to first subset the image to a specified pixel range) when he finds the time ;-)
Re: Plotimage and non-byte images [message #75381 is a reply to message #75376] Wed, 02 March 2011 11:17 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
le.davide@tiscali.it writes:

> I am trying to plot images using "plotimage". Nevertheless, images are
> "non-byte scaled" and the appearence is always quite weird. I have to
> spend a huge amount of time trying to find the best suited "range"...
> Do you have a smart (=quick) solution for that?

Sure,

http://www.idlcoyote.com/store/

Traditional IDL Graphics: Using Familiar Tools Creatively.
Everything you ever wanted to know about graphics, including
how to use contrast stretches (XStretch) to solve these kinds
of problems. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL Astron Library now uses Coyote Graphics
Next Topic: Anonymous Math Functions in IDL like Matlab

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

Current Time: Wed Oct 08 17:24:32 PDT 2025

Total time taken to generate the page: 0.00531 seconds