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

Home » Public Forums » archive » Re: Changing the order of true color images
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: Changing the order of true color images [message #28849 is a reply to message #28844] Mon, 14 January 2002 07:22 Go to previous messageGo to previous message
Liam E. Gumley is currently offline  Liam E. Gumley
Messages: 378
Registered: January 2000
Senior Member
ronn kling wrote:
> I am reading in a (very large) pixel interleaved (3,m,n) true color image
> with a C routine. I need to be able to do the equivalent of changing the
> order of the image and I was wondering if anyone has some C code that does
> this?

Have you tried the TRANSPOSE function?

For example, to change the dimensions from (3, m, n) to (m, n, 3):

a = transpose(temporary(a), [1, 2, 0])

Cheers,
Liam.
Practical IDL Programming
http://www.gumley.com
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Segmentation of Multiple ROIs
Next Topic: Re: problem after upgrading

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

Current Time: Wed Oct 08 19:31:06 PDT 2025

Total time taken to generate the page: 0.00492 seconds