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

Home » Public Forums » archive » Re: Displaying 3 color channels simultaneously
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Displaying 3 color channels simultaneously [message #17017 is a reply to message #17004] Tue, 31 August 1999 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Chris Jengo (cjengo@my-deja.com) writes:

> I have some code that displays a color image (say a true color Landsat
> scene) and redraws some subscene within the image every few seconds.
> The new color subscene is a product of band manipulation. The problem
> is that when I redraw the subscene, the RGB channels are drawn
> independently (using "tv, redimage, channel=1", etc.), which kind of
> kills the continuity of the animation and makes it hard to compare with
> the background and the previous subscene. Is there a way to draw all
> three color components to the screen simultaneously? I tried to draw
> the images in the z-buffer in the hope of using the resulting tvrd
> image, but the tv command with the channel keyword gives me the error:
> "% TV: Z depth buffer contains words." Any help would be greatly
> appreciated, thanks!

How about something like this, where r_sub, g_sub, and
b_sub are the red, green, and blue 2D components of the
sub-image:

s = Size(r_sub, /Dimensions)
TV, Reform([ [r_sub], [g_sub], [b_sub] ], s[0], s[1], 3), True=3

Cheers,

David

P.S. Should have Device, Decomposed=1 on a PC, too. :-)

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Reading MRI images from GE Signa 3.x/4.x 9-track mag tapes
Next Topic: Any way to remove an OPLOT from an image?

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

Current Time: Sat Oct 11 09:46:45 PDT 2025

Total time taken to generate the page: 2.15884 seconds