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

Home » Public Forums » archive » Re: 24->8 bit image conversion
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: 24->8 bit image conversion [message #12723] Thu, 27 August 1998 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Paul Smith (P.Smith@ee.latrobe.edu.au) writes:

> I saw on David Fanning's site there is a topic for converting 8 bit images
> to 24 bit, but can this be done the other way around?

Use Color_Quan. For a pixel interleaved 24-bit image, for example:

image8bit = Color_Quan(image24bit, 1, r, g, b)
TVLCT, r, g, b
TV, image8bit

Cheers,

David

----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438, Toll-Free Book Orders: 1-888-461-0155
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Previous Topic: Inconsistent behavior in setting default directory
Next Topic: FFT function

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

Current Time: Sat Oct 11 07:15:19 PDT 2025

Total time taken to generate the page: 0.08314 seconds