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

Home » Public Forums » archive » Re: Creating an image array from the r,g,b palletes
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: Creating an image array from the r,g,b palletes [message #9861] Fri, 29 August 1997 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
PM Mathebula <pmmatheb@cs.uct.ac.za> writes:

> I am desperate I need help i'm trying to create an image from the r,g,b
> image bands. This is what I have done:
> image=bytarr(3,16,16)
> image[0,*,*]=red[*,*]
> image[1,*,*]=green[*,*]
> image[2,*,*]=blue[*,*]
> tv,image
> The problem is it does not work,please help, I need to use this pronto

It seems to me you are trying to create a 24-bit color image from
an 8-bit color image that uses the INDEX color model. If this is
indeed what you are tying to do, you can find the answer to this
question on my IDL Programming Tips web page. The URL for this
answer is:

http://www.dfanning.com/tips/image24_from_image8.html

Cheers,

David

----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
Customizable IDL Programming Courses
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: RE: #DEFINE
Next Topic: Re: map_set and contour,/cell_fill,/overplot problem

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

Current Time: Wed Oct 08 19:42:03 PDT 2025

Total time taken to generate the page: 0.00546 seconds