Comparing Two Motions Jehee Lee Seoul National University.

Slides:



Advertisements
Similar presentations
Today Composing transformations 3D Transformations
Advertisements

Transformations Ed Angel Professor Emeritus of Computer Science
1 Seminar of computational geometry Lecture #1 Convexity.
John C. Hart CS 318 Interactive Computer Graphics
Chris Hall Aerospace and Ocean Engineering
3D Kinematics Eric Whitman 1/24/2010. Rigid Body State: 2D p.
1 Geometrical Transformation 2 Outline General Transform 3D Objects Quaternion & 3D Track Ball.
CS5500 Computer Graphics March 22, Angel: Interactive Computer Graphics 3E © Addison-Wesley 2002 Coordinate-Free Geometry When we learned simple.
Ch. 2: Rigid Body Motions and Homogeneous Transforms
Ch. 4: Velocity Kinematics
3-D Geometry.
3D orientation.
Mechanics of Rigid Bodies
Transformations. 2 Angel: Interactive Computer Graphics 3E © Addison-Wesley 2002 Coordinate-Free Geometry When we learned simple geometry, most of us.
Transformations CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel.
CS 450: Computer Graphics 2D TRANSFORMATIONS
Geometric Objects and Transformations Geometric Entities Representation vs. Reference System Geometric ADT (Abstract Data Types)
CS 450: COMPUTER GRAPHICS 3D TRANSFORMATIONS SPRING 2015 DR. MICHAEL J. REALE.
1 C01 – Advanced Robotics for Autonomous Manipulation Department of Mechanical EngineeringME 696 – Advanced Topics in Mechanical Engineering.
Rotations and Translations
Theory of Machines Lecture 4 Position Analysis.
Geometry CSC 2141 Introduction to Computer Graphics.
CS 480/680 Computer Graphics Representation Dr. Frederick C Harris, Jr. Fall 2012.
Geometric Transformation. So far…. We have been discussing the basic elements of geometric programming. We have discussed points, vectors and their operations.
CS 450: COMPUTER GRAPHICS QUATERNIONS SPRING 2015 DR. MICHAEL J. REALE.
CS 480/680 Computer Graphics Transformations Dr. Frederick C Harris, Jr.
Mathematical Foundations Sections A-1 to A-5 Some of the material in these slides may have been adapted from university of Virginia, MIT and Åbo Akademi.
Chapter 10 Rotation of a Rigid Object about a Fixed Axis.
Graphics Graphics Korea University kucg.korea.ac.kr Transformations 고려대학교 컴퓨터 그래픽스 연구실.
Intro to 3D Models Angel Angel: Interactive Computer Graphics5E © Addison-Wesley
Rotations and Translations
Mathematics for Graphics. 1 Objectives Introduce the elements of geometry  Scalars  Vectors  Points Develop mathematical operations among them in a.
Transformations Jehee Lee Seoul National University.
©College of Computer and Information Science, Northeastern University CS 4300 Computer Graphics Prof. Harriet Fell Fall 2012 Lecture 12 – October 1, 2012.
Advanced Computer Graphics Spring 2014
1 Fundamentals of Robotics Linking perception to action 2. Motion of Rigid Bodies 南台科技大學電機工程系謝銘原.
Transformations Angel Angel: Interactive Computer Graphics5E © Addison-Wesley
Chapter 2 Rigid Motions and Coordinate Transformations
Geometric Objects and Transformation
Kinematics Jehee Lee Seoul National University. Kinematics How to animate skeletons (articulated figures) Kinematics is the study of motion without regard.
EEE. Dept of HONG KONG University of Science and Technology Introduction to Robotics Page 1 Lecture 2. Rigid Body Motion Main Concepts: Configuration Space.
Rotation and Orientation: Fundamentals Jehee Lee Seoul National University.
C O M P U T E R G R A P H I C S Guoying Zhao 1 / 52 C O M P U T E R G R A P H I C S Guoying Zhao 1 / 52 Computer Graphics Three-Dimensional Graphics I.
Affine Geometry Jehee Lee Seoul National University.
Affine Geometry Jehee Lee Seoul National University.
Affine Geometry.
Euler Angles This means, that we can represent an orientation with 3 numbers Assuming we limit ourselves to 3 rotations without successive rotations about.
III- 1 III 3D Transformation Homogeneous Coordinates The three dimensional point (x, y, z) is represented by the homogeneous coordinate (x, y, z, 1) In.
Computer Graphics I, Fall 2010 Transformations.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Transformations Ed Angel Professor of Computer Science, Electrical and Computer Engineering,
Learning from the Past, Looking to the Future James R. (Jim) Beaty, PhD - NASA Langley Research Center Vehicle Analysis Branch, Systems Analysis & Concepts.
Graphics Graphics Korea University kucg.korea.ac.kr Mathematics for Computer Graphics 고려대학교 컴퓨터 그래픽스 연구실.
MASKS © 2004 Invitation to 3D vision Lecture 6 Introduction to Algebra & Rigid-Body Motion Allen Y. Yang September 18 th, 2006.
Sect. 4.5: Cayley-Klein Parameters 3 independent quantities are needed to specify a rigid body orientation. Most often, we choose them to be the Euler.
Objectives Introduce standard transformations Introduce standard transformations Derive homogeneous coordinate transformation matrices Derive homogeneous.
Geometric Transformations
Representation of scene motion
Spatcial Description & Transformation
Ch. 2: Rigid Body Motions and Homogeneous Transforms
3. Transformation
Lecture 3 Jitendra Malik
CSC4820/6820 Computer Graphics Algorithms Ying Zhu Georgia State University Transformations.
3D Transformation CS380: Computer Graphics Sung-Eui Yoon (윤성의)
UMBC Graphics for Games
Transformations 고려대학교 컴퓨터 그래픽스 연구실 kucg.korea.ac.kr.
CS-378: Game Technology Lecture #2: Transformations Prof. Okan Arikan
Geometric Objects and Transformations (II)
UNIVERSITY OF ILLINOIS AT URBANA-CHAMPAIGN
Rotation and Orientation: Fundamentals
Presentation transcript:

Comparing Two Motions Jehee Lee Seoul National University

Distance Metric for Motion Sequences How can we measure the difference between two stylistic walking motions? How do we represent motion sequences? –Rotation/orientation makes problems We do we compare two time-series data? –What if the duration of one series differ from the other?

Affine Geometry Jehee Lee Seoul National University

Geometric Programming A way of handling geometric entities such as vectors, points, and transforms. Traditionally, computer graphics packages are implemented using homogeneous coordinates. We will review affine geometry and coordinate-invariant geometric programming.

Example of coordinate-dependence What is the “sum” of these two positions ? Point p Point q

If you assume coordinates, … The sum is (x 1 +x 2, y 1 +y 2 ) –Is it correct ? –Is it geometrically meaningful ? p = (x 1, y 1 ) q = (x 2, y 2 )

If you assume coordinates, … p = (x 1, y 1 ) q = (x 2, y 2 ) Origin (x 1 +x 2, y 1 +y 2 ) Vector sum –(x 1, y 1 ) and (x 2, y 2 ) are considered as vectors from the origin to p and q, respectively.

If you select a different origin, … p = (x 1, y 1 ) q = (x 2, y 2 ) Origin (x 1 +x 2, y 1 +y 2 ) If you choose a different coordinate frame, you will get a different result

Vector and Affine Spaces Vector space –Includes vectors and related operations –No points Affine space –Superset of vector space –Includes vectors, points, and related operations

Points and Vectors A point is a position specified with coordinate values. A vector is specified as the difference between two points. If an origin is specified, then a point can be represented by a vector from the origin. But, a point is still not a vector in a coordinate-free point of view. Point p Point q vector (p-q)

Vector spaces A vector space consists of –Set of vectors, together with –Two operations: addition of vectors and multiplication of vectors by scalar numbers A linear combination of vectors is also a vector

Affine Spaces An affine space consists of –Set of points, an associated vector space, and –Two operations: the difference between two points and the addition of a vector to a point

Coordinate-Invariant Geometric Operations Addition Subtraction Scalar multiplication Linear combination Affine combination

Addition u v u + v p p + w u + v is a vectorp + w is a point w u, v, w : vectors p, q : points

Subtraction v u - v u q p u - v is a vectorp - q is a vector p - q p p - w p - w is a point -w u, v, w : vectors p, q : points

Scalar Multiplication scalar vector = vector 1 point = point 0 point = vector c point = (undefined) if (c≠0,1)

Linear Combination A linear space is spanned by a set of bases –Any vector in the space can be represented as a linear combination of bases

Affine Combination

Example (p + q) / 2 : midpoint of line pq (p + q) / 3 : Can you find a geometric meaning ? (p + q + r) / 3 : center of gravity of ∆pqr (p/2 + q/2 – r) : a vector from r to the midpoint of q and p

Summary

Rotation and Orientation: Fundamentals Jehee Lee Seoul National University

What is Rotation ? Not intuitive –Formal definitions are also confusing Many different ways to describe –Rotation (direction cosine) matrix –Euler angles –Axis-angle –Rotation vector –Helical angles –Unit quaternions

Orientation vs. Rotation Rotation –Circular movement Orientation –The state of being oriented –Given a coordinate system, the orientation of an object can be represented as a rotation from a reference pose

Analogy (point : vector) is similar to (orientation : rotation) Both represent a sort of (state : movement) Reference coordinate system

Analogy (point : vector) is similar to (orientation : rotation) Both represent a sort of (state : movement) Reference coordinate system point : the 3d location of the bunny vector : translational movement

Analogy (point : vector) is similar to (orientation : rotation) Both represent a sort of (state : movement) Reference coordinate system point : the 3d location of the bunny vector : translational movement orientation : the 3d orientation of the bunny rotation : circular movement

2D Orientation Polar Coordinates

2D Orientation Although the motion is continuous, its representation could be discontinuous

2D Orientation Many-to-one correspondences between 2D orientations and their representations

Extra Parameter

2x2 Rotation matrix is yet another method of using extra parameters

Complex Number Real Imaginary

Complex Exponentiation Real Imaginary

2D Rotation Complex numbers are good for representing 2D orientations, but inadequate for 2D rotations A complex number cannot distinguish different rotational movements that result in the same final orientation –Turn 120 degree counter-clockwise –Turn -240 degree clockwise –Turn 480 degree counter-clockwise Real Imaginary

2D Rotation and Orientation 2D Rotation –The consequence of any 2D rotational movement can be uniquely represented by a turning angle 2D Orientation –The non-singular parameterization of 2D orientations requires extra parameters Eg) Complex numbers, 2x2 rotation matrices

Operations in 2D (orientation) : complex number (rotation) : scalar value exp(rotation) : complex number

2D Rotation and Displacement Real Imaginary

2D Rotation and Displacement Real Imaginary

2D Orientation Composition Real Imaginary

2D Rotation Composition Real Imaginary

Analogy

3D Rotation Given two arbitrary orientations of a rigid object,

3D Rotation We can always find a fixed axis of rotation and an angle about the axis

Euler’s Rotation Theorem In other words, Arbitrary 3D rotation equals to one rotation around an axis Any 3D rotation leaves one vector unchanged The general displacement of a rigid body with one point fixed is a rotation about some axis Leonhard Euler ( )

Rotation Vector Rotation vector (3 parameters) Axis-Angle (2+1 parameters)

3D Orientation Unhappy with three parameters –Euler angles Discontinuity (or many-to-one correspondences) Gimble lock –Rotation vector (a.k.a Axis/Angle) Discontinuity (or many-to-one correspondences)

Using an Extra Parameter Euler parameters

Quaternions William Rowan Hamilton ( ) –Algebraic couples (complex number) 1833 where

Quaternions William Rowan Hamilton ( ) –Algebraic couples (complex number) 1833 –Quaternions 1843 where

Unit Quaternions Unit quaternions represent 3D rotations

Rotation about an Arbitrary Axis Rotation about axis by angle where Purely Imaginary Quaternion

Unit Quaternion Algebra Identity Multiplication Inverse –Opposite axis or negative angle Unit quaternion space is –closed under multiplication and inverse, –but not closed under addition and subtraction

Unit Quaternion Algebra Antipodal equivalence –q and –q represent the same rotation –ex) rotation by  about opposite direction –2-to-1 mapping between S and SO(3) –Twice as fast as in SO(3) 3

3D Orientations and Rotations Orientations and rotations are different in coordinate-invariant geometric programming Use unit quaternions for orientation representation –3x3 orthogonal matrix is theoretically identical Use 3-vectors for rotation representation

Tangent Vector (Infinitesimal Rotation)

Angular Velocity

Exp and Log logexp

Exp and Log logexp Euler parameters

Rotation Vector

Geodesic Distance

Coordinate-Invariant Operations

Dynamic Time Warping The vertex correspondence problem –Minimize the sum of distances between corresponding vertices –The correspondence must be continuous No missing vertices No cross edges (No turning back in time) Signal A Signal B

Dynamic Time Warping Find a chain from top-left to bottom-right –Allowed to move horizontally, vertically, or diagonally