Class AverageRotationMatrix_F32

java.lang.Object
georegression.transform.se.AverageRotationMatrix_F32

@Generated("georegression.transform.se.AverageRotationMatrix_F64") public class AverageRotationMatrix_F32 extends Object

Finds the average of a set of quaternions by using a modification of the method proposed in [1]. It works by finding the average rotation matrix then finds the best fit matrix in SO-3, see page 200 of [2].

[1] MLA Markley, F. Landis, et al. "Quaternion averaging." (2007)

[2] "An Invitation to 3-D Vision, From Images to Geometric Models" 1st Ed. 2004. Springer.

  • Constructor Details

    • AverageRotationMatrix_F32

      public AverageRotationMatrix_F32()
  • Method Details

    • process

      public boolean process(List<org.ejml.data.FMatrixRMaj> list, org.ejml.data.FMatrixRMaj average)
      Finds average rotation matrix for matrices stored in FMatrixRMaj format.
      Parameters:
      list - (Input) rotation matrices
      average - (Output) average rotation.
      Returns:
      true if successful or false if it failed
    • process

      public boolean process(List<org.ejml.data.FMatrix3x3> list, org.ejml.data.FMatrix3x3 average)
      Finds average rotation matrix for matrices stored in FMatrix3x3 format.
      Parameters:
      list - (Input) rotation matrices
      average - (Output) average rotation.
      Returns:
      true if successful or false if it failed
    • processOp

      public <T> boolean processOp(List<T> list, org.ejml.data.FMatrixRMaj average, AverageRotationMatrix_F32.Convert<T> op)
      Computes average rotation matrix given a list with an arbitrary data type that can be converted into a FMatrix3x3.
      Parameters:
      list - List of data structures with rotation matrix in it
      average - (Output) Storage for computed average matrix
      op - Converts input data type to FMatrix3x3
      Returns:
      true if successful or false if it failed