Get from Ico-github-logo

Highlights from

  • avg_quaternion_markley(Q)
    by Tolga Birdal
  • wavg_quaternion_markley(Q...
    by Tolga Birdal
  • test_avg_quat.m
    Average 100 times
  • View all files
5.0 | 2 ratings Rate this file 25 Downloads (last 30 days) File Size: 117 KB File ID: #40098 Version: 1.1




30 Jan 2013 (Updated )

This function computes the average (mean) quaternion.

| Watch this File

File Information

Since quaternions are not regular vectors, but rather representations of orientation, an average quaternion cannot just be obtained by taking a weighted mean. This function implements the work done by F. Landis Merkley to calculate the average quaternion. The algorithm is explained by F. Landis Markley at:
For this particular implementation, I would also like to reference Mandar Harshe:
While being basic and straightforward, this algorithm is compared with rotqrmean from VoiceBox and found to produce quite similar results, yet it is more elegant, much simpler to implement and follow. (Though, there might be difference in signs)

Required Products MATLAB
MATLAB release MATLAB 7.9 (R2009b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
02 Jun 2014 Mosong Cheng  
30 Jan 2014 sathish  
30 Sep 2013 Tolga Birdal

Note that on 2001 Claus Gramkow showed that the naive mean is in fact a fair approximation of rotations:

I think re-orthagonalization using SVD after a standard averaging would suffice most applications.

Comment only
17 Aug 2015 1.1

Weighted average added.
Test function added.

Contact us