Center for Machine Perception Department of Cybernetics, Faculty of Electrical Engineering Czech Technical University in Prague MAKING MINIMAL SOLVERS.

Slides:



Advertisements
Similar presentations
Simultaneous surveillance camera calibration and foot-head homology estimation from human detection 1 Author : Micusic & Pajdla Presenter : Shiu, Jia-Hau.
Advertisements

Lecture 11: Two-view geometry
MASKS © 2004 Invitation to 3D vision Lecture 7 Step-by-Step Model Buidling.
By Claudia Fiorini, Enrico Martinelli, Fabio Massacci
Computer vision: models, learning and inference
1 pb.  camera model  calibration  separation (int/ext)  pose Don’t get lost! What are we doing? Projective geometry Numerical tools Uncalibrated cameras.
Chapter 6 Feature-based alignment Advanced Computer Vision.
A Generic Concept for Camera Calibration Peter Sturm and Srikumar Ramaligam Sung Huh CPSC 643 Individual Presentation 4 April 15, 2009.
Accurate Non-Iterative O( n ) Solution to the P n P Problem CVLab - Ecole Polytechnique Fédérale de Lausanne Francesc Moreno-Noguer Vincent Lepetit Pascal.
Some useful linear algebra. Linearly independent vectors span(V): span of vector space V is all linear combinations of vectors v i, i.e.
Uncalibrated Geometry & Stratification Sastry and Yang
Announcements Project 2 questions Midterm out on Thursday
數位控制(九).
Real-time Combined 2D+3D Active Appearance Models Jing Xiao, Simon Baker,Iain Matthew, and Takeo Kanade CVPR 2004 Presented by Pat Chan 23/11/2004.
Introduction to Gröbner Bases for Geometric Modeling Geometric & Solid Modeling 1989 Christoph M. Hoffmann.
COMP322/S2000/L221 Relationship between part, camera, and robot (cont’d) the inverse perspective transformation which is dependent on the focal length.
Lecture 11: Structure from motion CS6670: Computer Vision Noah Snavely.
Lecture 3a: Feature detection and matching CS6670: Computer Vision Noah Snavely.
Richard Fateman CS 282 Lecture 14b1 Gröbner Basis Reduction Lecture 14b.
Camera parameters Extrinisic parameters define location and orientation of camera reference frame with respect to world frame Intrinsic parameters define.
Gröbner Bases Bernd Sturmfels Mathematics and Computer Science University of California at Berkeley.
MATH 685/ CSI 700/ OR 682 Lecture Notes Lecture 6. Eigenvalue problems.
Center for Machine Perception Department of Cybernetics, Faculty of Electrical Engineering Czech Technical University in Prague Methods for Solving Systems.
Automatic Camera Calibration
1 1.1 © 2012 Pearson Education, Inc. Linear Equations in Linear Algebra SYSTEMS OF LINEAR EQUATIONS.
Simple Calibration of Non-overlapping Cameras with a Mirror
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
MATH 250 Linear Equations and Matrices
Outline Main result Quantum computation and quantum circuits Feynman’s sum over paths Polynomials QuPol program “Quantum Polynomials” Quantum polynomials.
Using Adaptive Methods for Updating/Downdating PageRank Gene H. Golub Stanford University SCCM Joint Work With Sep Kamvar, Taher Haveliwala.
© 2005 Yusuf Akgul Gebze Institute of Technology Department of Computer Engineering Computer Vision Geometric Camera Calibration.
Reconstructing 3D mesh from video image sequences supervisor : Mgr. Martin Samuelčik by Martin Bujňák specifications Master thesis
Learning a Fast Emulator of a Binary Decision Process Center for Machine Perception Czech Technical University, Prague ACCV 2007, Tokyo, Japan Jan Šochman.
Sparse Matrix Factorizations for Hyperspectral Unmixing John Wright Visual Computing Group Microsoft Research Asia Sept. 30, 2010 TexPoint fonts used in.
Section 2-8 First Applications of Groebner Bases by Pablo Spivakovsky-Gonzalez We started this chapter with 4 problems: 1.Ideal Description Problem: Does.
Center for Machine Perception Department of Cybernetics, Faculty of Electrical Engineering Czech Technical University in Prague A Minimal Solution for.
On the computation of the defining polynomial of the algebraic Riccati equation Yamaguchi Univ. Takuya Kitamoto Cybernet Systems, Co. LTD Tetsu Yamaguchi.
Acquiring 3D models of objects via a robotic stereo head David Virasinghe Department of Computer Science University of Adelaide Supervisors: Mike Brooks.
© 2005 Martin Bujňák, Martin Bujňák Supervisor : RNDr.
3.3 Implementation (1) naive implementation (2) revised simplex method
A minimal solution to the autocalibration of radial distortion Young Ki Baik (CV Lab.) (Wed)
EECS 274 Computer Vision Geometric Camera Calibration.
3D reconstruction from uncalibrated images
Solving Minimal Problems Numerics KALLE ÅSTRÖM, CENTRE FOR MATHEMATICAL SCIENCES, LUND UNIVERSITY, SWEDEN.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 27.
Zuzana Kukelova, Martin Bujnak, Jan Heller, Tomas Pajdla The Art of Solving Minimal Problems Tricks: One more point? Microsoft Research Cambridge Czech.
Zuzana Kukelova, Martin Bujnak, Jan Heller, Tomas Pajdla The Art of Solving Minimal Problems Tricks: Making Minimal Solvers Fast Microsoft Research Cambridge.
Zuzana Kukelova, Martin Bujnak, Tomas Pajdla The Art of Solving Minimal Problems Tricks: Problem Formulation Microsoft Research Cambridge Czech Technical.
Ruhr University Bochum Faculty of Mathematics Information-Security and Cryptology On the Security of HFE, HFEv- and Quartz Nicolas T. CourtoisMagnus DaumPatrick.
Project 1 Due NOW Project 2 out today –Help session at end of class Announcements.
Evan Selin & Terrance Hess.  Find temperature at points throughout a square plate subject to several types of boundary conditions  Boundary Conditions:
EECS 274 Computer Vision Projective Structure from Motion.
Chapter 7: Polynomials This chapter starts on page 320, with a list of key words and concepts.
Center for Machine Perception Department of Cybernetics Faculty of Electrical Engineering Czech Technical University in Prague Segmentation Based Multi-View.
Computational Physics (Lecture 7) PHY4061. Eigen Value Problems.
11/25/03 3D Model Acquisition by Tracking 2D Wireframes Presenter: Jing Han Shiau M. Brown, T. Drummond and R. Cipolla Department of Engineering University.
Review of Eigenvectors and Eigenvalues from CliffsNotes Online mining-the-Eigenvectors-of-a- Matrix.topicArticleId-20807,articleId-
Linear Equations in Linear Algebra
Geometric Camera Calibration
55:148 Digital Image Processing Chapter 11 3D Vision, Geometry
Computation of the solutions of nonlinear polynomial systems
Alexander Shekhovtsov and Václav Hlaváč
Approximate Models for Fast and Accurate Epipolar Geometry Estimation
Computer Graphics Recitation 12.
Chapter 27.
1.1 Introduction to Systems of Equations.
ARRAY DIVISION Identity matrix Islamic University of Gaza
SKTN 2393 Numerical Methods for Nuclear Engineers
Linear Equations in Linear Algebra
Presentation transcript:

Center for Machine Perception Department of Cybernetics, Faculty of Electrical Engineering Czech Technical University in Prague MAKING MINIMAL SOLVERS FAST Zuzana Kukelova, Martin Bujnak, Tomas Pajdla TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A AA A AAA A

2/24 Motivation Recognition & Tracking Placeholder text 3D Reconstruction Augmented reality Robotics

3/24 Motivation Systems of polynomial equations Camera geometry problems - calibration, relative/absolute pose estimation

4/24 Properties Requirements  all “non-degenerate” instances of the problem result in systems of equations of the same form - consisting of the same polynomials and differing only in coefficients  Contaminated input measurements => problems have to be solved for many different inputs (RANSAC)  High or even real-time performance  Contaminated input measurements => problems have to be solved for many different inputs (RANSAC)  High or even real-time performance Solve many instances of the same problem, of the same system of polynomial equations only with different coefficients, very fast Conclusion Camera geometry problems

5/24 Complicated systems 5-point relative pose problem

6/24 General methods Existing software – well known general Grőbner basis or resultant algorithms

7/24 Specific methods Design special algorithms to achieve numerical robustness and computational efficiency Intersection ellipse-line No need to use general algorithms Closed form solution

8/24 Online solver Efficient solver for solving systems of polynomial equations of one form Not general but fast This is what the user call Offline phase Study the problem Solve it in some finite prime field Design a specific efficient solver Needs to be performed only once Specific methods

9/24 Grőbner basis specific methods Parameters identification Number of solutions, basis Computations in finite prime field - fast, stable Elimination template design Which polynomials should be multiplied with which monomials and eliminated to obtain the solution G-J elimintation of the found template With concrete coefficients Eigenvalue computations Computation of eigenvalues and eigenvactors of the action matrix created from the eliminated template

10/24 Offline phase 25min 15min  Offline phase & Elimination template – hard to understand and implement  Requires knowledge from algebraic geometry 1+1=? ideal multiplication matrix Quotient ring xy 2 +7y+.. field

11/24 Automatic generator Final “online” solver List of known coeffs List of unknowns Equations Offline phase

12/24 How to make the final solver fast Reduce the size of the elimination template Kukelova Z., Bujnak M., Pajdla T., Automatic Generator of Minimal Problem Solvers, ECCV 2008, Marseille, France, October 12-18, Sparse G-J elimintation of the found template The slowest part Idea: Exchange it for computation of roots of a single-variable polynomial using Sturm-sequences Bujnak M., Kukelova Z., Pajdla T., Making Minimal Solvers Fast, CVPR 2012.

13/24 Grőbner bases of the ideal System of input polynomial equations The ideal generated by is a set of all polynomials that can be generated as polynomial combinations of where are arbitrary polynomials from

14/24 Grőbner bases of the ideal An ideal can be generated by many different sets of generators which all share the same solutions Grőbner bases - special bases Useful in solving system of polynomial equations

15/24 Lexicographic GB Graded Reverse Lex GB  Contains polynomial in one variable  Very expensive to compute  Not feasible for computer vision problems  Contains polynomial in one variable  Very expensive to compute  Not feasible for computer vision problems  Doesn’t contain a single variable polynomial  Special multiplication matrix – eigenvalues & eigenvectors give solutions  Easier to compute  Used to solve CV problems  Doesn’t contain a single variable polynomial  Special multiplication matrix – eigenvalues & eigenvectors give solutions  Easier to compute  Used to solve CV problems Grőbner bases of the ideal

16/24 We have the Graded Reverse Lexicographic GB and multiplication (action) matrix 1. FGLM conversion algorithm We have We want the variable polynomial from the Lexicographic GB We want Well known FGLM algorithm for converting grevlex GB to Lexicographic GB Needs polynomial division Doesn’t bring a speed up over eigenvalue computations Solution

17/24 Replace time consuming polynomial division performed in standard FGLM algorithm with efficient matrix-vector multiplication using the action matrix New Matrix FGLM algorithm Trick Algorithm Significant speedup over the eigenvalue computation Only feasible solutions – positive feasible focal lengths, depths or radial distortion coefficients Positives

18/24 2. Characteristic polynomial method We have We want a single variable polynomial We want Characteristic polynomial of the action matrix Krylov’s method Faddeev-Leverrier method Danilevsky method Solution

19/24 2. Characteristic polynomial method Faddeev-Leverrier method Well-known method, compute traces of matrices Suffers from a large numerical instability Faddeev Danilevsky method Transforms input matrix to its companion matrix by s − 1 similarity transformations very efficient and numerically stable Solution Krylov

20/24 5-point relative pose problem Nister – SOTA “closed form solution” GB+eig – standard Grőbner basis solution with eigenvalue computation New “single variable polynomial”solutions – ~5x speedup over GB+eig Comparable to the closed form solution Speedup over the eigenvalue method Danilevsky 14.2μs mFGML 13.7μs Faddeev 17.2μs GB+eig 61.2μs Nister 10.6μs

21/24 6-point focal length relative pose problem New “single variable polynomial”solutions ~8x speedup over GB+eig Speedup over the eigenvalue method Danilevsky 22.6μs mFGML 21.3μs GB+eig 176.3μs

22/24 P4P+f absolute pose problem New “single variable polynomial”solutions – ~3x speedup over GB+eig Speedup over the eigenvalue method Danilevsky 47.4μs mFGML 46.2μs Faddeev 51.2μs Sparse GB 82.9μs GB+eig 127.4μs

23/24 Many problems in computer vision and other fields require fast solvers of systems of polynomial equations General methods – not feasible Specific solvers – not general but fast Conclusion Automatic generator of Grőbner basis solvers New methods for speeding up Grőbner basis solvers Matrix FGLM method + Sturm sequences Characteristic polynomial method + Sturm sequences Significant speed up over existing GB solvers

24/24 THANK YOU FOR YOUR ATTENTION

25/24 We want single variable polynomial from the Lexicographic GB Well known FGLM algorithm for converting grevlex GB to Lexicographic GB Needs polynomial division Doesn’t bring speed up over eigenvalue computations FGLM conversion algorithm We have the Graded Reverse Lexicographic GB and multiplication (action) matrix

26/24 Grőbner bases of the ideal Lexicographic GB