3d matrix rotation [message #33449] |
Thu, 02 January 2003 11:52  |
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 #54775 is a reply to message #33449] |
Tue, 03 July 2007 12:42  |
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  |
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  |
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 :)
|
|
|