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

Home » Public Forums » archive » Re: What don't I know about jpeg, 3 channels, and color display?
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: What don't I know about jpeg, 3 channels, and color display? [message #40977] Sun, 19 September 2004 23:42 Go to next message
David Fanning is currently offline  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 Go to previous message
dow is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: widget IDs ever zero?
Next Topic: overlapping images

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

Current Time: Sun Oct 12 03:52:57 PDT 2025

Total time taken to generate the page: 1.52080 seconds