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

Home » Public Forums » archive » 3d matrix rotation
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
3d matrix rotation [message #33449] Thu, 02 January 2003 11:52 Go to next message
biomedthesis2002 is currently offline  biomedthesis2002
Messages: 12
Registered: November 2002
Junior Member
Hi,
I'm trying to rotate a 3D matrix using trackball. I have a 3D matrix
of size 512x512x25. Hwn i try to rotate it, the matrix stretches along
Z-axis. Hwn displayed the image is perfectly fine. Can anybody explain
why that happens and what can be done to fix it. When i tried a
dataset from the example (head.dat) for the same code, the rotation
takes place without any stretch.

Please help me.

Thanks in Advance!
Re: 3d matrix rotation [message #54638 is a reply to message #33449] Mon, 02 July 2007 11:08 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
caf.pang@gmail.com writes:

> Are there somebody know how to rotate a 3d matrix in IDL? e.g. rotate
> arr[10, 30, 80] with 29 degree angle.
> I tried rotate and rot function, but I have not got correct result.

Here is an article:

http://www.dfanning.com/math_tips/rotvolume.html

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: 3d matrix rotation [message #54775 is a reply to message #33449] Tue, 03 July 2007 12:42 Go to previous message
Conor is currently offline  Conor
Messages: 138
Registered: February 2007
Senior Member
On Jul 3, 11:45 am, David Fanning <n...@dfanning.com> wrote:
> Conor writes:
>> Hmm... that would have been good to know. I had the same problem and
>> I ended up spending a lot of time studying rotation matrices to
>> program a solution.
>
> Well, you've got to ask...or search. That page has
> been available since 2001. :-)
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

True, but at least I learned about rotation matrices. You never know
when that might come in handy...
Re: 3d matrix rotation [message #54776 is a reply to message #33449] Tue, 03 July 2007 08:45 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Conor writes:

> Hmm... that would have been good to know. I had the same problem and
> I ended up spending a lot of time studying rotation matrices to
> program a solution.

Well, you've got to ask...or search. That page has
been available since 2001. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: 3d matrix rotation [message #54777 is a reply to message #54638] Tue, 03 July 2007 07:59 Go to previous message
Conor is currently offline  Conor
Messages: 138
Registered: February 2007
Senior Member
On Jul 2, 2:08 pm, David Fanning <n...@dfanning.com> wrote:
> caf.p...@gmail.com writes:
>> Are there somebody know how to rotate a 3d matrix in IDL? e.g. rotate
>> arr[10, 30, 80] with 29 degree angle.
>> I tried rotate and rot function, but I have not got correct result.
>
> Here is an article:
>
> http://www.dfanning.com/math_tips/rotvolume.html
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Hmm... that would have been good to know. I had the same problem and
I ended up spending a lot of time studying rotation matrices to
program a solution. Oh well :)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: moxed format file i/o
Next Topic: vm cwd in *nix

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

Current Time: Sun Oct 12 06:44:54 PDT 2025

Total time taken to generate the page: 0.48185 seconds