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 
Return to the default flat view Create a new topic Submit Reply
Re: Plotimage and non-byte images [message #75376] Wed, 02 March 2011 13:56 Go to previous message
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 ;-)
[Message index]
 
Read Message
Read Message
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 19:22:39 PDT 2025

Total time taken to generate the page: 0.00430 seconds