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 #3733 is a reply to message #3576] Tue, 28 February 1995 03:19 Go to previous message
pjclinch is currently offline  pjclinch
Messages: 27
Registered: May 1993
Junior Member
MEC (mark_cadwell@qmail4.sp.trw.com) wrote:
: I previously 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.

: There is a method of animation called double buffering where you plot an
: image to a virtual window, copy the virtual window to your main window,
: and while that is going on, you're drawing the next image to the virtual
: window again. The advantage of doing it this way is that plotting to
: virtual windows is much faster (at least in my machine) that plotting to
: visible windows, and copying from a virtual window to a visible window is
: also much faster that plotting. The result is a nice, smooth, and
: reasonably fast image rotation.

I'm not actually after an animated rotation here... My image stack is
just plain upside down, and I want to flip each image in the stack over
*before* I actually start looking at them.
The image stacks are 128 images, 256 pixels square each: takes quite a
bit of time to flip them all :-(

Pete.
--
Peter Clinch Dundee Teaching Hospitals NHS Trust
voice: 44 1382 660111 x 3637 snail: Directorate of Medical Physics
fax: 44 1382 640177 Ninewells Hospital
email: p.j.clinch@dundee.ac.uk Dundee DD1 9SY Scotland UK
[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: Mon Dec 01 22:48:33 PST 2025

Total time taken to generate the page: 0.63861 seconds