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 #29062 is a reply to message #28849] Mon, 28 January 2002 05:55 Go to previous message
Alex Schuster is currently offline  Alex Schuster
Messages: 124
Registered: February 1997
Senior Member
"Liam E. Gumley" wrote:

> 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])

Just a note: a = transpose( a, [1, 2, 0] ) is the same, the temporary()
function does not save memory when used inside a function.


IDL> a=findgen(1000,1000,10)
IDL> help, /mem
heap memory used: 40206937, max: 40206965, gets: 237,
frees: 96
IDL> a=transpose(temporary(a), [ 1,2,0])
IDL> help, /mem
heap memory used: 40207016, max: 80207156, gets: 242,
frees: 99

IDL> a=findgen(1000,1000,10)
IDL> help, /mem
heap memory used: 40206821, max: 40206849, gets: 231,
frees: 93
IDL> a=transpose(a, [ 1, 2, 0] )
IDL> help, /mem
heap memory used: 40206892, max: 80207040, gets: 236,
frees: 96

Alex
--
Alex Schuster Wonko@planet-interkom.de
alex@pet.mpin-koeln.mpg.de
[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:43 PDT 2025

Total time taken to generate the page: 0.00210 seconds