Announcements Take home quiz given out Thursday 10/23 –Due 10/30.

Slides:



Advertisements
Similar presentations
Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best.
Advertisements

Alignment Visual Recognition “Straighten your paths” Isaiah.
Announcements. Structure-from-Motion Determining the 3-D structure of the world, and/or the motion of a camera using a sequence of images taken by a moving.
Computer Vision, Robert Pless
Medical Image Registration Kumar Rajamani. Registration Spatial transform that maps points from one image to corresponding points in another image.
CSE554Extrinsic DeformationsSlide 1 CSE 554 Lecture 9: Extrinsic Deformations Fall 2012.
General morphometric protocol Four simple steps to morphometric success.
Two-View Geometry CS Sastry and Yang
Announcements Final Exam May 13th, 8 am (not my idea).
1 pb.  camera model  calibration  separation (int/ext)  pose Don’t get lost! What are we doing? Projective geometry Numerical tools Uncalibrated cameras.
Automatic Feature Extraction for Multi-view 3D Face Recognition
University of Pennsylvania 1 GRASP CIS 580 Machine Perception Fall 2004 Jianbo Shi Object recognition.
Mapping: Scaling Rotation Translation Warp
Xianfeng Gu, Yaling Wang, Tony Chan, Paul Thompson, Shing-Tung Yau
Instructor: Mircea Nicolescu Lecture 13 CS 485 / 685 Computer Vision.
Nonrigid Shape Correspondence using Landmark Sliding, Insertion, and Deletion Theodor Richardson.
Announcements Final Exam May 16 th, 8 am (not my idea). Practice quiz handout 5/8. Review session: think about good times. PS5: For challenge problems,
3D Geometry for Computer Graphics
1 GEOMETRIE Geometrie in der Technik H. Pottmann TU Wien SS 2007.
Projective geometry- 2D Acknowledgements Marc Pollefeys: for allowing the use of his excellent slides on this topic
Structure-from-Motion Determining the 3-D structure of the world, and/or the motion of a camera using a sequence of images taken by a moving camera. –Equivalently,
Uncalibrated Geometry & Stratification Sastry and Yang
Multiple-view Reconstruction from Points and Lines
Chamfer Matching & Hausdorff Distance Presented by Ankur Datta Slides Courtesy Mark Bouts Arasanathan Thayananthan.
© 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.
3D Geometry for Computer Graphics
CS4670: Computer Vision Kavita Bala Lecture 7: Harris Corner Detection.
Procrustes Analysis Amy Ross University of South Carolina CSCE 790i.
Camera parameters Extrinisic parameters define location and orientation of camera reference frame with respect to world frame Intrinsic parameters define.
Structure Computation. How to compute the position of a point in 3- space given its image in two views and the camera matrices of those two views Use.
04 – Geometric Transformations Overview Geometric Primitives –Points, Lines, Planes 2D Geometric Transformations –Translation, Rotation, Scaling, Affine,
CSC 589 Lecture 22 Image Alignment and least square methods Bei Xiao American University April 13.
Laplacian Surface Editing
CSE554Laplacian DeformationSlide 1 CSE 554 Lecture 8: Laplacian Deformation Fall 2012.
Camera Geometry and Calibration Thanks to Martial Hebert.
Projective cameras Motivation Elements of Projective Geometry Projective structure from motion Planches : –
Homogeneous Coordinates (Projective Space) Let be a point in Euclidean space Change to homogeneous coordinates: Defined up to scale: Can go back to non-homogeneous.
Course 12 Calibration. 1.Introduction In theoretic discussions, we have assumed: Camera is located at the origin of coordinate system of scene.
Regression analysis Control of built engineering objects, comparing to the plan Surveying observations – position of points Linear regression Regression.
A 3D Model Alignment and Retrieval System Ding-Yun Chen and Ming Ouhyoung.
CSCE 643 Computer Vision: Structure from Motion
Parameter estimation. 2D homography Given a set of (x i,x i ’), compute H (x i ’=Hx i ) 3D to 2D camera projection Given a set of (X i,x i ), compute.
Affine Structure from Motion
Geometry of Shape Manifolds
EECS 274 Computer Vision Affine Structure from Motion.
Copyright © Cengage Learning. All rights reserved. 16 Vector Calculus.
Classification Course web page: vision.cis.udel.edu/~cv May 14, 2003  Lecture 34.
ECE 8443 – Pattern Recognition ECE 8527 – Introduction to Machine Learning and Pattern Recognition LECTURE 04: GAUSSIAN CLASSIFIERS Objectives: Whitening.
Determining 3D Structure and Motion of Man-made Objects from Corners.
Basic Theory (for curve 01). 1.1 Points and Vectors  Real life methods for constructing curves and surfaces often start with points and vectors, which.
Statistical Models of Appearance for Computer Vision 主講人:虞台文.
Instructor: Mircea Nicolescu Lecture 9
Parameter estimation class 5 Multiple View Geometry CPSC 689 Slides modified from Marc Pollefeys’ Comp
Camera Calibration Course web page: vision.cis.udel.edu/cv March 24, 2003  Lecture 17.
Principal Warps: Thin-Plate Splines and the Decomposition of Deformations 김진욱 ( 이동통신망연구실 ; 박천현 (3D 모델링 및 처리연구실 ;
Lecture 10: Image alignment CS4670/5760: Computer Vision Noah Snavely
Reconstruction of a Scene with Multiple Linearly Moving Objects Mei Han and Takeo Kanade CISC 849.
Spectral Methods for Dimensionality
Machine Learning for the Quantified Self
3D Vision Interest Points.
Depth from disparity (x´,y´)=(x+D(x,y), y)
Epipolar geometry.
Feature space tansformation methods
Lecture 8: Image alignment
Lecture 8: Image alignment
The Pinhole Camera Model
Back to equations of geometric transformations
Image Registration  Mapping of Evolution
Image Stitching Linda Shapiro ECE/CSE 576.
Image Stitching Linda Shapiro ECE P 596.
Presentation transcript:

Announcements Take home quiz given out Thursday 10/23 –Due 10/30.

Matching Sets of Point Features 1.Find best transformation. Similarity transformation, thin-plate splines. 2.Measure how good it is. –Chamfer distance, Haussdorf distance, Euclidean distance, procrustean distance, deformation energy.

Assumptions Two sets of 2D points. Mostly we assume there exists a correct one- to-one correspondence And this correspondence is given. –This is very natural in morphometrics, where points are measured and labeled. –In vision we must solve for correspondence. Next class we’ll look at papers that do this.

Shape Space What is shape? Qualities of points that don’t depend on translation, rotation or scale. So describe points independent of similarity transformation. 1.Remove translation. Simplest way, translate so point 1 is at origin, then remove point one. More elegant, translate center of mass to origin, remove a point. 2.Scale so that sum ||Xi||^2 = 1. Resulting set of points is called pre-shape. Pre because we haven’t removed rotation yet. Notation:, U and X denote sets of normalized points. Points called Xi and Ui, with coordinates (xi,yi), (ui, vi).

Pre-shape If we started with n points, we now have n-1 so that: sum xi^2 + yi^2 = 1. So we can think of these coordinates as lying on a unit hypersphere in 2(n-1)- dimensional space.

Shape If we consider all possible rotations of a set of normalized points, these trace out a closed, 1D curve in pre-shape space. Distances between shapes can be thought of as distances between these curves. –Notice that to compute distance, without loss of generality we can assume that one set of points (U) does not rotate, since rotating both point sets by the same amount doesn’t change distances.

Procrustes Distances Full Procrustes Distance. D F –min(s,  ) ||U – sXR  That is, we find a scaling and rotation of X that minimizes the euclidean distance to U. (R(  ) means rotate by . Partial Procrustes Distance. D P –min(  ) ||U – XR  That is, rotate X to minimize the euclidean distance to U. Procrustes Distance.  –Rotate X to minimize the geodesic distance on the sphere from X to U.

Linear Pose Solving We can linearly find optimal similarity transformation that matches X to U. (ie., minimize sum ||AXi-Ui||^2, where A is a similarity transformation. –This is asymmetric between X and U. In same way we can linearly compute Full Procrustes Distance. –This is symmetric. –Leads immediately to other procrustes distances.

Linear Pose: 2D rotation, translation and scale Notice a and b can take on any values. Equations linear in a, b, translation. Solve exactly with 2 points, or overconstrained system with more.

Similarity Matching Given point sets X and U, compare by finding similarity transformation A that minimizes ||AX-U||. –X = points X1, …Xn. U = points U1…Un. –Find A to minimize sum ||AXi – Ui||^2 –This is just a straightforward, linear problem. Taking derivatives with respect to four unknowns of A gives four linear equations in four unknowns.

Issues with this approach It is asymmetric. –Ok when comparing a model to an image. –Not so sensible for comparing two shapes.

Note that we now also know how to calculate the Full Procrustes Distance. This is just a least-squares solution to the overconstrained problem: It is not obvious that Full Procrustes is symmetric.

Given two points on the hypersphere, we can draw the plane containing these points and the origin. DFDF  DPDP  Procrustes Distances is  D P = 2 sin (  /2) D F = sin  These are all monotonic in . So the same choice of rotation minimizes all three. D F is easy to compute, others are easy to compute from D F.

Why Procrustes Distance? Procrustes distance is most natural. Our intuition is that given two objects, we can produce a sequence of intermediate objects on a ‘straight line’ between them, so the distance between the two objects is the sum of the distances between intermediate objects. This requires a geodesic.

Tangent Space Can compute a hyperplane tangent to the hypersphere at a point in preshape space. Project all points onto that plane. All distances Euclidean. Average shape easy to find. This is reasonable when all shapes similar. In this case, all distances are similar too. –Note that when  is small, , 2sin(  /2), sin(  ) are all similar.

Other Point Matching Approaches: Chamfer Matching For every edge point in the transformed object, compute the distance to the nearest image edge point. Sum distances.

Main Feature: Every model point matches an image point. An image point can match 0, 1, or more model points.

Then, minimize this distance over pose. Example: minimum Chamfer distance over all translations.

Variations Sum a different distance –f(d) = d 2 –or Manhattan distance. –f(d) = 1 if d < threshold, 0 otherwise. –This is called bounded error. Use maximum distance instead of sum. –This is called: directed Hausdorff distance. –Use median distance. Use other features – Corners. –Lines. Then position and angles of lines must be similar. Model line may be subset of image line.

Thin-Plate Splines A function, f, R 2 -> R 2 is a thin-plate spline if: Constraint: Given corresponding points: X1…Xn and U1…Un, f(Xi)=Ui. Energy: f minimizes the following: If we think of this as the amount of bending produced by f. Allows arbitrary affine transformation.

Solution: The function f can be computed using straightforward linear algebra. See Principal Warps: Thin-Plate Splines and the Decomposition of Deformations by Bookstein, or Statistical Shape Analysis by Dryden and Mardia for details. Extension: Can penalize mismatch of points (using function of || Ui – f(Xi)||). Results: Much like D’Arcy Thompson.