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

Home » Public Forums » archive » Re: RGB image to 8 bit ??
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: RGB image to 8 bit ?? [message #17033 is a reply to message #17030] Thu, 09 September 1999 00:00 Go to previous message
Liam Gumley is currently offline  Liam Gumley
Messages: 473
Registered: November 1994
Senior Member
Richard Tyc wrote:
> At this point, the image is a bytarr[3,512,512]
>
> In order to load it into Xinteranimate, it needs to be in
> bytarr[512,512] form ?
>
> So, how do you convert a RGB triple image into a single 8-bit image
> while retaining
> the colors (although lower resolution of color)

pseudo = color_quan(image, 1, r, g, b, colors=!d.table_size)
device, decomposed=0
tvlct, r, g, b
tv, pseudo

Cheers,
Liam.

--
Liam E. Gumley
Space Science and Engineering Center, UW-Madison
http://cimss.ssec.wisc.edu/~gumley
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: a plea for more reliable mathematical routines
Next Topic: Re: Nautical Miles to Lat/Lon Degrees

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

Current Time: Wed Oct 15 01:33:22 PDT 2025

Total time taken to generate the page: 0.02590 seconds