Re: Changing the Colour Table for RGB images on Linux/Solaris [message #38744 is a reply to message #38743] |
Fri, 26 March 2004 06:42  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Philip Kershaw writes:
> I'm developing a colour editor for use with an image display program for
> Linux and Sun Solaris. I've found that when I update the colour table for
> an RGB image, the image display isn't updated. However, when I run the same
> program under Windows 2000, the image IS updated as expected.
>
> I'm running IDL 6.0 set with
>
> Device, Decomposed=0
>
> The display is 24-bit in each case for Windows, Linux and Solaris platforms.
>
> When I alter the colour table I re-display the image using
>
> TV, image, True=3
>
> The image has dimensions (m, n, 3)
>
> As a test, I tried adapting one of Dave Fanning's programs (thank you for
> this!), "color_example.pro" to run loading the RGB image. Again, it works
> under Windows but not Linux or Solaris.
>
> Has anyone come across anything like this? Any ideas?
Well, maybe you are running in *Windows* with Device, Decomposed=0,
but I doubt you are doing the same on your UNIX machines. :-)
Take that Color_Example program and substitute TVIMAGE for every
TV. *Then* see what happens!
Cheers,
David
P.S. Let's just say, there are a number of image display programs
around that are device independent, but none from RSI. :-(
--
David Fanning, Ph.D.
Fanning Software Consulting
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|