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

Home » Public Forums » archive » Re: rotating 3d array: help for the braindead!
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: rotating 3d array: help for the braindead! [message #3616 is a reply to message #3615] Wed, 15 February 1995 03:48 Go to previous messageGo to previous message
Fergus Gallagher is currently offline  Fergus Gallagher
Messages: 41
Registered: January 1995
Member
pjclinch@dux.dundee.ac.uk (Pete Clinch) wrote:
>
> I have a stack of MRI images that make up a 3d array, and I want to turn
> all the constituent images over.
> At the moment, I've got a FOR loop that goes through using
>
> ROTATE(image(*,*,i),2)
>
> on each one, but I'm convinced there must be a better way to do it in a
> oner without the FOR loop to slow things down.

Off the top of my head, the following might work :-0

s = (size(image))(1:3)
image = reform(image,s(0),s(1)*s(2),/overwrite)
image = rotate(image,2)
image = reform(image,s(0),s(1),s(2),/overwrite)

*BUT* only for the case where you want to flip the images up-down.

I haven't tried this, so take it with a PINCH of salt......

Fergus Gallagher
British National Space Centre
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Button (etc.) events
Next Topic: Re: Reversed color table

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

Current Time: Sat Oct 11 15:28:49 PDT 2025

Total time taken to generate the page: 0.71986 seconds