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

Home » Public Forums » archive » setting colors in IDL from X info ?
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
setting colors in IDL from X info ? [message #17179] Fri, 24 September 1999 00:00
Richard Tyc is currently offline  Richard Tyc
Messages: 69
Registered: June 1999
Member
I have an application running in X windows on an SGI IRIX based (X11R5 i
think/ Directcolor 24 ) workstation. Its a medical image app and displays
MR/CT images well and allows me to dump them into JPEG or I can do a DICOM
transfer to a file and read it in IDL.

The problem, the colors (and greyscale) used in the app seem to look much
better than when I display them in IDL. ( I simply use a linear ramp fro
each R,G,B) Can I somehow save the greyscale and 24 bit color table from
the app using some type of X windows comand and than use the info to set up
IDL.

For example, in the IDL demo, in the visualize section where a combined
MR/PET volume is rendered, the code reads in a color pallette from the
demodata area to load into the volumes rgb_table0 property. I notice the
file nice_mri.pal ( bytarr(256,3) array ) is far from a linear ramp in each
primary color. I assume the app uses a similar type of specialized pallete.
How can I get this pallette from a X windows app already displaying the
object well ?

Thanks in Advance

Rich
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: I/O on ECMWF GRIB data
Next Topic: Re: IDL5.2 contour,/cell_fill after map_set

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

Current Time: Wed Oct 08 17:46:58 PDT 2025

Total time taken to generate the page: 0.00636 seconds