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

Home » Public Forums » archive » Display Gifs, each w/diff color tables?
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
Display Gifs, each w/diff color tables? [message #16254] Mon, 12 July 1999 00:00 Go to next message
rmlongfield is currently offline  rmlongfield
Messages: 68
Registered: August 1998
Member
Hi All,
Here's a question I haven't seen discussed yet. I have several
different GIF files given to me by several sources. I can read and
display them individually. However, I can't look at them allat the same
time. This is, I believe, due to the fact that the GIF files come with
their own color tables. Every time a new one is loaded, the color table
from the previous one is re-defined. I have tried the
"split table" technique outlined in DWF's book, but it doesn't work
because some of the GIF images fill in all the r,g,b arrays.

Now, these are just xy plots and clearly all these colors are
not necessary. Is there some way of defining which colors are important
and which are just "pretty"? Maybe a reverse color24 function (DWF)? If
I had only 10 colors per image, I can
split up the table (if I understand it right) and use :

tvlct,r,g,b,10
tv,bytscl(image)+byte(10)

Any ideas or suggestions would be appreciated.
Rose
p.s.
IDL> help,!version,/structure
** Structure !VERSION, 5 tags, length=40:
ARCH STRING 'mipseb'
OS STRING 'IRIX'
OS_FAMILY STRING 'unix'
RELEASE STRING '5.2'
BUILD_DATE STRING 'Oct 30 1998'



Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
Re: Display Gifs, each w/diff color tables? [message #16308 is a reply to message #16254] Thu, 15 July 1999 00:00 Go to previous message
rmlongfield is currently offline  rmlongfield
Messages: 68
Registered: August 1998
Member
In article <378B72B4.36A36DA8@ssec.wisc.edu>,
Liam Gumley <Liam.Gumley@ssec.wisc.edu> wrote:
> rmlongfield@my-deja.com tried to BYTSCL a GIF image
>> read_gif,'./GIF_FILES/test1.gif',image,r,g,b
>> tvlct,r,g,b
>> window,/free, retain=2
>> tv,bytscl(image)

Well, guys, it finally worked. I didn't always have the BYTSCL there
but put it in when I tried to use the split-colortable technique,
(which did work when I looked at the same GIF file in two different
windows) . Alas, it stayed there for the rest of my attempts.
At home, on a PC, I got the wrong colors also but could at least see the
plots, even with the BYTSCL.

So, Lessons learned Summary:

device, true=24, decomposed=0
window, /free, /pixmap
wdelete, !d.window

And do not BYTSCL the image with TV!

THANKS! Here's a virtual beer for you! (or another favorite beverage)


( )

( )

-------------

| | | | == \\

| | | | ||

| | | | ||

| | | | //

| | | | ===//

-------------

-------------

Rose


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL_MakeStruct()
Next Topic: Too many users...

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

Current Time: Fri Oct 10 12:18:34 PDT 2025

Total time taken to generate the page: 1.33454 seconds