Package georegression.transform.se
Class AverageRotationMatrix_F64
java.lang.Object
georegression.transform.se.AverageRotationMatrix_F64
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.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Finds average rotation matrix for matrices stored inDMatrix3x3
format.boolean
Finds average rotation matrix for matrices stored inDMatrixRMaj
format.<T> boolean
processOp
(List<T> list, org.ejml.data.DMatrixRMaj average, AverageRotationMatrix_F64.Convert<T> op) Computes average rotation matrix given a list with an arbitrary data type that can be converted into aDMatrix3x3
.
-
Constructor Details
-
AverageRotationMatrix_F64
public AverageRotationMatrix_F64()
-
-
Method Details
-
process
Finds average rotation matrix for matrices stored inDMatrixRMaj
format.- Parameters:
list
- (Input) rotation matricesaverage
- (Output) average rotation.- Returns:
- true if successful or false if it failed
-
process
Finds average rotation matrix for matrices stored inDMatrix3x3
format.- Parameters:
list
- (Input) rotation matricesaverage
- (Output) average rotation.- Returns:
- true if successful or false if it failed
-
processOp
public <T> boolean processOp(List<T> list, org.ejml.data.DMatrixRMaj average, AverageRotationMatrix_F64.Convert<T> op) Computes average rotation matrix given a list with an arbitrary data type that can be converted into aDMatrix3x3
.- Parameters:
list
- List of data structures with rotation matrix in itaverage
- (Output) Storage for computed average matrixop
- Converts input data type toDMatrix3x3
- Returns:
- true if successful or false if it failed
-