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

Home » Public Forums » archive » Re: Averaging quaternions
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: Averaging quaternions [message #38640 is a reply to message #38635] Thu, 18 March 2004 15:39 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
GrahamWilsonCA@yahoo.ca (Graham) writes:

> Does anyone know if it is possible to take an average of regularly
> sampled quaternions to get a mean orientation (i.e. a mean rotation
> matrix)? I seem to recall there being a trick involved but beyond
> re-normalizing the resuling (averaged) quaternion, I cannot remember
> what it is.

I am sure I will be scolded by somebody, but I believe that you can
average the quaternion components, and then normalize as you say.
This is assumes that you are noise dominated.

Also, there is one trick that I can think of, which is that
quaternions are degenerate. For each unique rotation, there are two
possible quaternions whose components have opposite signs. This is
because a positive rotation about axis V is identical to a negative
rotation about axis -V.

If your system is capable of both signs indiscriminately, then you
must make the sign conventions uniform. For example, by always making
one component positive.

Some advertising since you crossposted on the IDL newsgroup: I do have
a fairly comprehensive quaternion IDL library on my web page.

Craig

P.S. http://cow.physics.wisc.edu/~craigm/idl/idl.html (under Math)


--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: need the dimensions of an array
Next Topic: tvrd with a color table on a 24 bit device, true=0

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

Current Time: Fri Oct 10 12:58:51 PDT 2025

Total time taken to generate the page: 0.71788 seconds