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

Home » Public Forums » archive » Re: ION_IMAGE 8bit/24bit color
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: ION_IMAGE 8bit/24bit color [message #35330 is a reply to message #35329] Wed, 11 June 2003 06:25 Go to previous messageGo to previous message
ddye is currently offline  ddye
Messages: 5
Registered: October 2002
Junior Member
Thanks David. I did glean from TVImage the "Color_Quan" function.

------------< snip >-------------------
The COLOR_QUAN function quantizes a TrueColor image and returns a
pseudo-color image and palette to display the image on standard
pseudo-color displays. The output image and palette can have from 2 to
256 colors.

COLOR_QUAN solves the general problem of accurately displaying
decomposed, TrueColor images, that contain a palette of up to 224
colors, on pseudo-color displays that can only display 256 (or fewer)
simultaneous colors.
------------< snip >-------------------

tv, Color_Quan(picC,1,R,G,B,COLORS=255)

This would seem to be the trick but the result looks poor compared to
the truecolor image....




David W. Fanning <david@dfanning.com> wrote in message news:<MPG.1950152f3957eac9989682@news.frii.com>...
> Dan Dye writes:
>
>> I don't use the z graphics buffer much but I've been dropped into the
>> deep end by my temp ION license. I have an image, 'picC'
>>
>> picC=congrid(pic,3,400,400) ;where 3=[r,g,b]
>>
>> normally, I would tv this image:
>>
>> tv, picC, true=1
>>
>> but this returns only a small portion of the lower right corner of the
>> image with a strange interference pattern. I consulted the
>> Fanning/Lumley/RSI documentation and found that the z buffer doesn't
>> accept truecolor so I'm pretty amazed that I got anything plotted at
>> all.
>>
>> tv, picC[0,*,*]
>> gives me a nice pseudoColor of the first band and at the full size.
>>
>> How can I get this image tv'd as and rgb?
>
> If it were me, I'd be using TVImage or ImDisp, or
> one of those other programs you were reading about,
> since they all do this automatically. :-)
>
> Cheers,
>
> David
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL Question - Opposite of WHERE?
Next Topic: ION_IMAGE 8bit/24bit color

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

Current Time: Wed Oct 08 19:51:34 PDT 2025

Total time taken to generate the page: 0.00467 seconds