Motion Analysis Slides are from RPI Registration Class.

Slides:



Advertisements
Similar presentations
COMPUTER GRAPHICS 2D TRANSFORMATIONS.
Advertisements

Component Analysis (Review)
CSci 6971: Image Registration Lecture 14 Distances and Least Squares March 2, 2004 Prof. Chuck Stewart, RPI Dr. Luis Ibanez, Kitware Prof. Chuck Stewart,
Computer vision: models, learning and inference
Two-View Geometry CS Sastry and Yang
Mapping: Scaling Rotation Translation Warp
Systems of Linear Equations
Principal Component Analysis CMPUT 466/551 Nilanjan Ray.
Principal Component Analysis
HCI 530 : Seminar (HCI) Damian Schofield. HCI 530: Seminar (HCI) Transforms –Two Dimensional –Three Dimensional The Graphics Pipeline.
Linear Transformations
2D Geometric Transformations
Chapter 4.1 Mathematical Concepts
Some useful linear algebra. Linearly independent vectors span(V): span of vector space V is all linear combinations of vectors v i, i.e.
Chapter 4.1 Mathematical Concepts. 2 Applied Trigonometry Trigonometric functions Defined using right triangle  x y h.
Motion Analysis (contd.) Slides are from RPI Registration Class.
CSci 6971: Image Registration Lecture 4: First Examples January 23, 2004 Prof. Chuck Stewart, RPI Dr. Luis Ibanez, Kitware Prof. Chuck Stewart, RPI Dr.
Motion Analysis (contd.) Slides are from RPI Registration Class.
Ch. 2: Rigid Body Motions and Homogeneous Transforms
Epipolar geometry. (i)Correspondence geometry: Given an image point x in the first view, how does this constrain the position of the corresponding point.
Uncalibrated Geometry & Stratification Sastry and Yang
CSCE 590E Spring 2007 Basic Math By Jijun Tang. Applied Trigonometry Trigonometric functions  Defined using right triangle  x y h.
COMP322/S2000/L221 Relationship between part, camera, and robot (cont’d) the inverse perspective transformation which is dependent on the focal length.
Calibration Dorit Moshe.
The Terms that You Have to Know! Basis, Linear independent, Orthogonal Column space, Row space, Rank Linear combination Linear transformation Inner product.
CSci 6971: Image Registration Lecture 2: Vectors and Matrices January 16, 2004 Prof. Chuck Stewart, RPI Dr. Luis Ibanez, Kitware Prof. Chuck Stewart, RPI.
© 2003 by Davi GeigerComputer Vision October 2003 L1.1 Structure-from-EgoMotion (based on notes from David Jacobs, CS-Maryland) Determining the 3-D structure.
Previously Two view geometry: epipolar geometry Stereo vision: 3D reconstruction epipolar lines Baseline O O’ epipolar plane.
3D Geometry for Computer Graphics
Math for CSLecture 11 Mathematical Methods for Computer Science Lecture 1.
6 1 Linear Transformations. 6 2 Hopfield Network Questions.
Elementary Linear Algebra Anton & Rorres, 9 th Edition Lecture Set – 08 Chapter 8: Linear Transformations.
CS4670: Computer Vision Kavita Bala Lecture 7: Harris Corner Detection.
3D Motion Estimation. 3D model construction Video Manipulation.
Camera parameters Extrinisic parameters define location and orientation of camera reference frame with respect to world frame Intrinsic parameters define.
CSci 6971: Image Registration Lecture 5: Feature-Base Regisration January 27, 2004 Prof. Chuck Stewart, RPI Dr. Luis Ibanez, Kitware Prof. Chuck Stewart,
CS 450: Computer Graphics 2D TRANSFORMATIONS
1 Chapter 2 Matrices Matrices provide an orderly way of arranging values or functions to enhance the analysis of systems in a systematic manner. Their.
Chapter 7 Matrix Mathematics Matrix Operations Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 Statistical Analysis Professor Lynne Stokes Department of Statistical Science Lecture 5QF Introduction to Vector and Matrix Operations Needed for the.
Point set alignment Closed-form solution of absolute orientation using unit quaternions Berthold K. P. Horn Department of Electrical Engineering, University.
CSE554AlignmentSlide 1 CSE 554 Lecture 8: Alignment Fall 2014.
Chapter 4.1 Mathematical Concepts
Camera Geometry and Calibration Thanks to Martial Hebert.
Course 12 Calibration. 1.Introduction In theoretic discussions, we have assumed: Camera is located at the origin of coordinate system of scene.
Geometric Models & Camera Calibration
Digital Image Processing Lecture 7: Geometric Transformation March 16, 2005 Prof. Charlene Tsai.
Geometric Transformations
POSITION & ORIENTATION ANALYSIS. This lecture continues the discussion on a body that cannot be treated as a single particle but as a combination of a.
1 MAC 2103 Module 3 Determinants. 2 Rev.F09 Learning Objectives Upon completing this module, you should be able to: 1. Determine the minor, cofactor,
Computer Graphics 2D Transformations. 2 of 74 Contents In today’s lecture we’ll cover the following: –Why transformations –Transformations Translation.
Vector Norms and the related Matrix Norms. Properties of a Vector Norm: Euclidean Vector Norm: Riemannian metric:
Linear algebra: matrix Eigen-value Problems Eng. Hassan S. Migdadi Part 1.
Solving Linear Systems Solving linear systems Ax = b is one part of numerical linear algebra, and involves manipulating the rows of a matrix. Solving linear.
CSCE 552 Fall 2012 Math By Jijun Tang. Applied Trigonometry Trigonometric functions  Defined using right triangle  x y h.
Instructor: Mircea Nicolescu Lecture 9
Parameter estimation class 5 Multiple View Geometry CPSC 689 Slides modified from Marc Pollefeys’ Comp
Principal Warps: Thin-Plate Splines and the Decomposition of Deformations 김진욱 ( 이동통신망연구실 ; 박천현 (3D 모델링 및 처리연구실 ;
Unsupervised Learning II Feature Extraction
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.
Velocity Propagation Between Robot Links 3/4 Instructor: Jacob Rosen Advanced Robotic - MAE 263D - Department of Mechanical & Aerospace Engineering - UCLA.
CSE 554 Lecture 8: Alignment
Ch. 2: Rigid Body Motions and Homogeneous Transforms
3D Motion Estimation.
Singular Value Decomposition
Some useful linear algebra
Principal Component Analysis
2D transformations (a.k.a. warping)
Chapter 2 Determinants.
Image Stitching Linda Shapiro ECE P 596.
Presentation transcript:

Motion Analysis Slides are from RPI Registration Class.

2 Registration Images are described as discrete sets of point locations associated with a geometric measurement Locations may have additional properties such as intensities and orientations Locations may have additional properties such as intensities and orientations Registration problem involves two parts: Finding correspondences between features Finding correspondences between features Estimating the transformation parameters based on these correspondences Estimating the transformation parameters based on these correspondences

3 Notation Set of moving image features Set of fixed image features Each feature must include a point location in the coordinate system of its image. Set of correspondences:

4 Error objective function depends on unknown transformation parameters and unknown feature correspondences Each may depend on the other! Each may depend on the other! Transformation may include mapping of more than just locations Distance function, D, could be as simple as the Euclidean distance between location vectors. Mathematical Formulation

5 Correspondence Problem Determine correspondences before estimating transformation parameters Based on rich description of features Based on rich description of features Error prone Error prone OR Other way around? OR Other way around? Determine correspondences at the same time as estimation of parameters “Chicken-and-egg” problem “Chicken-and-egg” problem For the next few minutes we will assume a set of correspondences is given and proceed to the estimation of parameters We will return to the correspondence problem later We will return to the correspondence problem later

6 Example: Estimating Parameters 2d point locations: Similarity transformation: Euclidean distance:

7 Putting This Together

8 What Do We Have? Least-squares objective function Quadratic function of each parameter We can Take the derivative with respect to each parameter Take the derivative with respect to each parameter Set the resulting gradient to 0 (vector) Set the resulting gradient to 0 (vector) Solve for the parameters through matrix inversion Solve for the parameters through matrix inversion We’ll do this in two forms: component and matrix/vector

9 Component Derivative (a)

10 Component Derivative (b) At this point, we’ve dropped the leading factor of 2. It will be eliminated when this is set to 0.

11 Component Derivatives t x and t y

12 Gathering Setting each of these equal to 0 we obtain a set of 4 linear equations in 4 unknowns. Gathering into a matrix we have:

13 Solving This is a simple equation of the form Provided the 4x4 matrix X is full-rank (evaluate SVD) we easily solve as

14 Matrix Version We can do this in a less painful way by rewriting the following intermediate expression in terms of vectors and matrices:

15 Matrix Version (continued) Equal to zero. Take transpose on either side..

16 Matrix Version (continued) Taking the derivative of this wrt the transformation parameters (we didn’t cover vector derivatives, but this is fairly straightforward): Setting this equal to 0 and solving yields:

17 Comparing the Two Versions Final equations are identical (if you expand the symbols) Matrix version is easier (once you have practice) and less error prone Sometimes efficiency requires hand- calculation and coding of individual terms

18 Registration (rigid+scale) Given two point sets Our goal is to find the similarity transformation that best aligns the moments of the two point sets. In particular we want to find The rotation matrix R, t The rotation matrix R, t The scale factor s, and The scale factor s, and The translation vector t The translation vector t

19 The first moment is the center of mass

20 Second Moments Scatter matrix Eigenvalue / eigenvector decomposition (S p ) where i are the eigenvalues and the columns of V p hold the corresponding eigenvectors:

21 Rotation, Translation and Scale Rotated, uniformly scaled points: Center of the rotated data is the same as the rotated, scaled and translated center before rotation:

22 Scatter Matrix Rotated, scaled scatter matrix:

23 Eigenvectors and Eigenvalues An eigenvector is a favorite direction for a matrix. Any square matrix M has at least one nonzero vector v which is mapped in a particularly simple way M v = v v is eigenvector of A and is corresponding eigenvalue If > 0, M v is parallel to v. If 0, M v is parallel to v. If < 0, they are antiparallel. If zero, v is in the nullspace. In all cases, M v is just a multiple of v.

24 Eigenvalues and Eigenvectors Given an eigenvector v j of S p : So, v j ’ = Rv j : Eigenvectors are rotated eigenvectors v j ’ = Rv j : Eigenvectors are rotated eigenvectors Eigenvalues are multiplied by the square of the scale Eigenvalues are multiplied by the square of the scaleSo, v j ’ = Rv j : Eigenvectors are rotated eigenvectors v j ’ = Rv j : Eigenvectors are rotated eigenvectors Eigenvalues are multiplied by the square of the scale Eigenvalues are multiplied by the square of the scale Multiply both sides by s 2 R, and manipulate: R is rotation matrix j

25 The process compute similarity transformation that best aligns the first and second moments Assume the 2nd moments (eigenvalues) are distinct Procedure: Center the data in each coordinate system Center the data in each coordinate system Compute the scatter matrices and their eigenvalues and eigenvectors Compute the scatter matrices and their eigenvalues and eigenvectors Using this, compute Scaling and rotation Scaling and rotation Then, translation Then, translation

26 Rotation The rotation matrix should align the eigenvectors in order: Manipulating:Manipulating: As a result:

27 Scale Ratios of corresponding eigenvalues should determine the scale: Taking the derivative with respect to s 2, which we are treating at Setting the result to 0 and solving yields

28 Translation Once we have the rotation and scale we can compute the translation based on the centers of mass:

29 Summary Calculations are straightforward, non-iterative and do not require correspondences: Moments, first Moments, first Rotation and scale separately Rotation and scale separately Translation Translation Assumes the viewpoints of the two data sets coincide approximately Can fail miserably for significantly differing viewpoints Can fail miserably for significantly differing viewpoints