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 #35329 is a reply to message #35327] Wed, 11 June 2003 06:41 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Dan Dye writes:

> 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....

Well, in IDL (as in life) it is hard to have your
cake and eat it too.

Cheers,

David

P.S. Let's just say if your image has 16.7 million colors and
you have to pick 224 to display it, compromises will have to
be made. :-(

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438
E-Mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[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: Fri Oct 10 18:56:26 PDT 2025

Total time taken to generate the page: 0.40399 seconds