Re: Creating an image array from the r,g,b palletes [message #9861] |
Fri, 29 August 1997 00:00 |
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
|
|
|