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

Home » Public Forums » archive » writing color images - revisited
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
writing color images - revisited [message #8038] Thu, 30 January 1997 00:00 Go to previous message
gennari is currently offline  gennari
Messages: 25
Registered: April 1994
Junior Member
Hi all,

I'm trying to combine 3 grayscale satellite images to create
a false color composite using the following code

read_gif,'ir2.gif',ir2,r,g,b
read_gif,'ir4.gif',ir4,r,g,b
read_gif,'ir5.gif',ir5,r,g,b
window,0,xsize=570,ysize=460
tv,ir2
red = tvrd(0,0,570,460,channel=1)
tv,ir4
green = tvrd(0,0,570,460,channel=2)
tv,ir5
blue = tvrd(0,0,570,460,channel=3)
;b=tvrd()
tv,red,channel=3
tv,green,channel=2
tv,blue,channel=1
test = tvrd()
write_gif,'spam.gif',test,r,g,b


This will display the colorized GIF to the screen but when I write
it to a gif file it comes out grayscale.

What am i missing here?

Thanks,
Scott

____________________________________________________________ __
University of Hawaii voice (808) 956 5392
Dept. of Information & Computer Sciences fax (808) 956 9399
2565 The Mall, Keller 304A
Honolulu, HI 96822 email gennari@Hawaii.Edu
[Message index]
 
Read Message
Read Message
Previous Topic: Hey! Pssst! Wanna see something wierd?
Next Topic: surface plots with color shading

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

Current Time: Sun Oct 12 03:34:26 PDT 2025

Total time taken to generate the page: 0.16479 seconds