Top Banner
Point set alignment Closed-form solution of absolute orientation using unit quaternions Berthold K. P. Horn Department of Electrical Engineering, University of Hawaii at Manoa Presented by Ashley Fernandes
27

Point set alignment Closed-form solution of absolute orientation using unit quaternions Berthold K. P. Horn Department of Electrical Engineering, University.

Dec 25, 2015

Download

Documents

Marlene Fisher
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Point set alignment Closed-form solution of absolute orientation using unit quaternions Berthold K. P. Horn Department of Electrical Engineering, University.

Point set alignment

Closed-form solution of absolute orientation using unit quaternions

Berthold K. P. Horn

Department of Electrical Engineering, University of Hawaii at Manoa

Presented by Ashley Fernandes

Page 2: Point set alignment Closed-form solution of absolute orientation using unit quaternions Berthold K. P. Horn Department of Electrical Engineering, University.

Abstract

• Finding relationship between coordinate systems (absolute orientation)

• Closed-form

• Use of quaternions for rotation

• Use of centroid for translation

• Use of root-mean-square deviations for scale

Page 3: Point set alignment Closed-form solution of absolute orientation using unit quaternions Berthold K. P. Horn Department of Electrical Engineering, University.

Disadvantages of previous methods

• Cannot handle more than three points

• Do not use information from all three points

• Iterative instead of least squares

Page 4: Point set alignment Closed-form solution of absolute orientation using unit quaternions Berthold K. P. Horn Department of Electrical Engineering, University.

Introduction - TransformationTransformation between two

Cartesian coordinate systems

Translation Rotation Scaling

Page 5: Point set alignment Closed-form solution of absolute orientation using unit quaternions Berthold K. P. Horn Department of Electrical Engineering, University.

Introduction - Method

• Minimize error

• Closed-form solution

• Use of quaternions

• Symmetry of solution

Page 6: Point set alignment Closed-form solution of absolute orientation using unit quaternions Berthold K. P. Horn Department of Electrical Engineering, University.

Coordinate systems

Page 7: Point set alignment Closed-form solution of absolute orientation using unit quaternions Berthold K. P. Horn Department of Electrical Engineering, University.

Selective discarding constraints

X axis

Y axis

Z axis

l

Maps points from left hand to right hand coordinate system

Rotation

Page 8: Point set alignment Closed-form solution of absolute orientation using unit quaternions Berthold K. P. Horn Department of Electrical Engineering, University.

Finding the translation

Measured coordinates in left and right hand systems

Form of translation

Residual error

To be minimized

Scale factorTranslational offset

Rotated vector from left coordinate system

Page 9: Point set alignment Closed-form solution of absolute orientation using unit quaternions Berthold K. P. Horn Department of Electrical Engineering, University.

Centroids of sets of measurements

Centroids

New coordinates

Error term

Sum of squares of errors

where

Page 10: Point set alignment Closed-form solution of absolute orientation using unit quaternions Berthold K. P. Horn Department of Electrical Engineering, University.

Centroids of sets of measurements

Translation, when r’o = 0

Error term, when r’o = 0

Total error term to be minimized

Page 11: Point set alignment Closed-form solution of absolute orientation using unit quaternions Berthold K. P. Horn Department of Electrical Engineering, University.

Finding the scale

Total error term, since

To minimize w.r.t. scale s, first term should be zero, or

Page 12: Point set alignment Closed-form solution of absolute orientation using unit quaternions Berthold K. P. Horn Department of Electrical Engineering, University.

Symmetry in scaleSuppose we tried to find

, or so we hope.

But, or

Instead, we use

Total error becomes

To minimize w.r.t. scale s, first term should be zero, or

Scale

Page 13: Point set alignment Closed-form solution of absolute orientation using unit quaternions Berthold K. P. Horn Department of Electrical Engineering, University.

Why unit quaternions

• Easier to enforce unit magnitude constraint on quaternion than orthogonal constraint on matrix

• Closely allied to geometrically intuitive concept of rotation by an angle about an axis

Page 14: Point set alignment Closed-form solution of absolute orientation using unit quaternions Berthold K. P. Horn Department of Electrical Engineering, University.

QuaternionsRepresentation

If

Multiplication

Page 15: Point set alignment Closed-form solution of absolute orientation using unit quaternions Berthold K. P. Horn Department of Electrical Engineering, University.

Quaternions

Multiplication expressed as product oforthogonal matrix4x4 and vector4

Page 16: Point set alignment Closed-form solution of absolute orientation using unit quaternions Berthold K. P. Horn Department of Electrical Engineering, University.

Quaternions

Dot product

Square of magnitude

Conjugate

Product of quaternion and its conjugate

Inverse

Page 17: Point set alignment Closed-form solution of absolute orientation using unit quaternions Berthold K. P. Horn Department of Electrical Engineering, University.

Unit quaternions and rotation

if

We use the composite product which is purely imaginary.

Note that this is similar to

Also, note that

Page 18: Point set alignment Closed-form solution of absolute orientation using unit quaternions Berthold K. P. Horn Department of Electrical Engineering, University.

Relationship to other notations

If angle is Θ

and axis is unit vector

Page 19: Point set alignment Closed-form solution of absolute orientation using unit quaternions Berthold K. P. Horn Department of Electrical Engineering, University.

Composition of rotations

First rotation

Second rotation

Since

Combined rotation

Page 20: Point set alignment Closed-form solution of absolute orientation using unit quaternions Berthold K. P. Horn Department of Electrical Engineering, University.

Finding the best rotationWe must find the quaternion that maximizes

Let and

Page 21: Point set alignment Closed-form solution of absolute orientation using unit quaternions Berthold K. P. Horn Department of Electrical Engineering, University.

Finding the best rotation

What we have to maximize

Page 22: Point set alignment Closed-form solution of absolute orientation using unit quaternions Berthold K. P. Horn Department of Electrical Engineering, University.

Finding the best rotationandwhere

Introducing the matrix3x3

that contains all the information required to solve the least-squares problem forrotation.

where and so on.

Then,

Page 23: Point set alignment Closed-form solution of absolute orientation using unit quaternions Berthold K. P. Horn Department of Electrical Engineering, University.

Eigenvector maximizes matrix product

Unit quaternion that maximizes

is eigenvector corresponding to most positive eigenvalue of N.

Eigenvalues are solutions of quartic in that we obtain from

After selecting the largest positive eigenvalue we find the eigenvector

by solving

Page 24: Point set alignment Closed-form solution of absolute orientation using unit quaternions Berthold K. P. Horn Department of Electrical Engineering, University.

Nature of the closed-form solution

• Find centroids rl and rr of the two sets of measurements

• Subtract them from all measurements

• For each pair of coordinates, compute x’lx’r, x’ly’r, … z’lz’r of the components of the two vectors.

• These are added up to obtain Sxx, Sxy, …Szz.

Page 25: Point set alignment Closed-form solution of absolute orientation using unit quaternions Berthold K. P. Horn Department of Electrical Engineering, University.

Nature of the closed-form solution

• Compute the 10 independent elements of the 4x4 symmetric matrix N

• From these elements, calculate the coefficients of the quartic that must be solved to get the eigenvalues of N

• Pick the most positive root and use it to solve the four linear homogeneous equations to get the eigenvector. The quaternion representing the rotation is a unit vector in the same direction.

Page 26: Point set alignment Closed-form solution of absolute orientation using unit quaternions Berthold K. P. Horn Department of Electrical Engineering, University.

Nature of the closed-form solution

• Compute the scale from the symmetrical form formula, i.e. the ratio of the root-mean-square deviations of the measurements from their centroids.

• Compute the translation as the difference between the centroid of the right measurements and the scaled and rotated centroid of the left measurement.

Page 27: Point set alignment Closed-form solution of absolute orientation using unit quaternions Berthold K. P. Horn Department of Electrical Engineering, University.

Thank you.

The end.