setting colors in IDL from X info ? [message #17179] |
Fri, 24 September 1999 00:00 |
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
|
|
|