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

Home » Public Forums » archive » Re: making a color image
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
Re: making a color image [message #55770] Thu, 06 September 2007 11:21
Greg Hennessy is currently offline  Greg Hennessy
Messages: 45
Registered: November 2005
Member
On 2007-09-06, David Fanning <news@dfanning.com> wrote:
> IDL> TV, [[[v]],[[r]],[[I]]], TRUE=3

That did it. Thanks!

Thanks also to the other two posters who gave the answer.
Re: making a color image [message #55771 is a reply to message #55770] Thu, 06 September 2007 11:18 Go to previous message
Greg Hennessy is currently offline  Greg Hennessy
Messages: 45
Registered: November 2005
Member
On 2007-09-06, David Fanning <news@dfanning.com> wrote:
> More brackets. :-)
>
> Try this:
>
> IDL> tv,[[[v]],[[r]],[[I]]]

That seems closer, since it tries to display an array of [4096,4096,3]
instead of an array of [4096,12288], but it still shows up as black
and white only.

Would I need to worry about a color table? I wouldn't have thought so,
but then I'm obviously thinking incorrectly since it Don't Work (TM).
Re: making a color image [message #55772 is a reply to message #55771] Thu, 06 September 2007 11:04 Go to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
>
> When I try what I think should work:
>
> IDL> tv,[[v],[r],[i]]
>
> what is displayed is black and white only. I *used* to know how to do
> this 15 years ago when I had an IVAS, but haven't done it with a
> workstation. I'm probably missing something obvious, but what?
>
> Thanks.

try,
tv, [[[a]],[[b]],[[c]]], true = 3


Jean
Re: making a color image [message #55773 is a reply to message #55772] Thu, 06 September 2007 11:13 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On Sep 6, 11:49 am, Greg Hennessy
<greg.henne...@localhost.localdomain> wrote:
> I have three 8 bit images in three filters that I want to display as a
> "true color" image. My workstation should be able to handle it.
> IDL> help,/device
> Available Graphics Devices: CGM HP LJ NULL PCL PRINTER PS REGIS TEK X Z
> Current graphics device: X
> Server: X11.0, The X.Org Foundation, Release 70000000
> Display Depth, Size: 24 bits, (1280,960)
> Visual Class: TrueColor (4)
> Bits Per RGB: 8 (8/8/8)
> Physical Color Map Entries (Emulated / Actual): 256 / 256
> Colormap: Shared, 16777216 colors. Translation table: Bypassed
> Graphics pixels: Combined, Dither Method: Ordered
> Write Mask: 16777215 (decimal) ffffff (hex)
> Graphics Function: 3 (copy)
> Current Font: <default>, Current TrueType Font: <default>
> Default Backing Store: Pixmap.
>
> When I try what I think should work:
>
> IDL> tv,[[v],[r],[i]]
>
> what is displayed is black and white only. I *used* to know how to do
> this 15 years ago when I had an IVAS, but haven't done it with a
> workstation. I'm probably missing something obvious, but what?
>
> Thanks.

Try:

IDL> device, decomposed=1
IDL, tv, [[[r]], [[g]], [[b]]], true=3

Mike
--
www.michaelgalloy.com
Re: making a color image [message #55774 is a reply to message #55772] Thu, 06 September 2007 11:12 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Greg Hennessy writes:

> When I try what I think should work:
>
> IDL> tv,[[v],[r],[i]]
>
> what is displayed is black and white only. I *used* to know how to do
> this 15 years ago when I had an IVAS, but haven't done it with a
> workstation. I'm probably missing something obvious, but what?

Whoops! That one got away from me. (Too used to TVIMAGE!)

Try this:

IDL> TV, [[[v]],[[r]],[[I]]], TRUE=3

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: making a color image [message #55775 is a reply to message #55772] Thu, 06 September 2007 11:09 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Greg Hennessy writes:

> When I try what I think should work:
>
> IDL> tv,[[v],[r],[i]]
>
> what is displayed is black and white only. I *used* to know how to do
> this 15 years ago when I had an IVAS, but haven't done it with a
> workstation. I'm probably missing something obvious, but what?

More brackets. :-)

Try this:

IDL> tv,[[[v]],[[r]],[[I]]]

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: making a color image
Next Topic: Update to XStretch

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

Current Time: Fri Oct 10 08:11:21 PDT 2025

Total time taken to generate the page: 0.64155 seconds