Re: What don't I know about jpeg, 3 channels, and color display? [message #40977] |
Sun, 19 September 2004 23:42  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Dee writes:
> I'm trying to read jpeg images (with read_jpeg) that have three
> channels, and I can't work out how to display them in color once I've
> opened them because they are 3D arrays, say (3,1200,1600). How can
> they be converted to something 2D that you can look at? I believe this
> is fairly simple to those of you who understand color.... something to
> do with true color??
I'd try something like this:
IDL> TV, image, True=1
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http:/www.dfanning.com/
Phone: 970-221-0438, IDL Book Orders: 1-888-461-0155
|
|
|
Re: What don't I know about jpeg, 3 channels, and color display? [message #41065 is a reply to message #40977] |
Wed, 22 September 2004 20:29  |
dow
Messages: 5 Registered: August 2004
|
Junior Member |
|
|
thanks, it worked once I also used the true=1 with read_jpeg. I still
can't use my routines (which assume a 2D array) for displaying etc.
but I got around that by using other functions. I still don't
understand the 3D issue with these jpegs though..... :-)
Dorthe
David Fanning <davidf@dfanning.com> wrote in message news:<MPG.1bb829bd478b76f298969f@news.frii.com>...
> Dee writes:
>
>> I'm trying to read jpeg images (with read_jpeg) that have three
>> channels, and I can't work out how to display them in color once I've
>> opened them because they are 3D arrays, say (3,1200,1600). How can
>> they be converted to something 2D that you can look at? I believe this
>> is fairly simple to those of you who understand color.... something to
>> do with true color??
>
> I'd try something like this:
>
> IDL> TV, image, True=1
>
> Cheers,
>
> David
|
|
|