Fast and Stable Polynomial Equation Solving and Its Application to Computer Vision

Fast and Stable Polynomial Equation Solving and Its Application to Computer Vision

Fast and Stable Polynomial Equation Solving and Its Application to Computer Vision Byröd, Martin; Josephson, Klas; Åström, Karl Published in: International Journal of Computer Vision DOI: 10.1007/s11263-009-0235-z 2009 Link to publication Citation for published version (APA): Byröd, M., Josephson, K., & Åström, K. (2009). Fast and Stable Polynomial Equation Solving and Its Application to Computer Vision. International Journal of Computer Vision, 84(3), 237-256. https://doi.org/10.1007/s11263- 009-0235-z Total number of authors: 3 General rights Unless other specific re-use rights are stated the following general rights apply: Copyright and moral rights for the publications made accessible in the public portal are retained by the authors and/or other copyright owners and it is a condition of accessing publications that users recognise and abide by the legal requirements associated with these rights. • Users may download and print one copy of any publication from the public portal for the purpose of private study or research. • You may not further distribute the material or use it for any profit-making activity or commercial gain • You may freely distribute the URL identifying the publication in the public portal Read more about Creative commons licenses: https://creativecommons.org/licenses/ Take down policy If you believe that this document breaches copyright please contact us providing details, and we will remove access to the work immediately and investigate your claim. LUND UNIVERSITY PO Box 117 221 00 Lund +46 46-222 00 00 Download date: 04. Oct. 2021 Centre for Mathematical Sciences LUP Lund University Publications Institutional Repository of Lund University Found at: http://www.lu.se This is an author produced version of a paper published in International Journal of Computer Vision This paper has been peer-reviewed but does not include the final publisher proof-corrections or journal pagination. Citation for the published paper: Author: Martin Byrod,¨ Klas Josephson and Kalle Astr˚ om¨ Title: Fast and Stable Polynomial Equation Solving and Its Application to Computer Vision, Journal: International Journal of Computer Vision, 2009 DOI: 10.1007/s11263-009-0235-z Access to the published version may require subscription. Published with permission from: Springer Netherlands Noname manuscript No. (will be inserted by the editor) Fast and Stable Polynomial Equation Solving and its Application to Computer Vision Martin Byrod¨ Klas Josephsson Kalle Astr˚ om¨ · · the date of receipt and acceptance should be inserted later Abstract This paper presents several new results on tech- problems, e.g. [11, 29, 42]. Solutions to minimal structure niques for solving systems of polynomial equations in com- and motion problems can often be used in RANSAC algo- puter vision. Grobner¨ basis techniques for equation solving rithms to find inliers in noisy data [17, 43, 44]. For such have been applied successfully to several geometric com- applications one needs to efficiently solve a large number puter vision problems. However, in many cases these meth- of minimal structure and motion problems in order to find ods are plagued by numerical problems. In this paper we de- the best set of inliers. There is thus a need for fast and nu- rive a generalization of the Grobner¨ basis method for poly- merically stable algorithms for solving particular systems nomial equation solving, which improves overall numeri- of polynomial equations. Recent applications of polynomial cal stability. We show how the action matrix can be com- techniques in computer vision include solving for funda- puted in the general setting of an arbitrary linear basis for mental and essential matrices and radial distortion [9], pano- C[x]/I. In particular, two improvements on the stability of ramic stitching [4] and pose with unknown focal length [5]. the computations are made by studying how the linear basis Another area of recent interest is global optimization for C[x]/I should be selected. The first of these strategies used e.g. for optimal triangulation, resectioning and funda- utilizes QR factorization with column pivoting and the sec- mental matrix estimation. Global optimization is a promis- ond is based on singular value decomposition (SVD). More- ing, but difficult pursuit and different lines of attack have over, it is shown how to improve stability further by an adap- been tried, e.g. branch and bound [1], L -norm methods ∞ tive scheme for truncation of the Grobner¨ basis. These new [21,26] and methods using linear matrix inequalities (LMIs) techniques are studied on some of the latest reported uses of [27]. An alternative way to find the global optimum is to Grobner¨ basis methods in computer vision and we demon- calculate stationary points directly, usually by solving some strate dramatically improved numerical stability making it polynomial equation system [22, 41]. So far, this has been possible to solve a larger class of problems than previously an approach of limited applicability since calculation of sta- possible. tionary points is numerically difficult for larger problems. By using the methods presented in this paper it is possible to handle a somewhat larger class of problems, thus offering 1 Introduction an alternative to the above mentioned optimization methods. An example of this is optimal three view triangulation which Numerous geometric problems in computer vision involve has previously not been solved in a practical way [41]. We the solution of systems of polynomial equations. This is par- show that this problem can now be solved efficiently with an ticularly true for so called minimal structure and motion algorithm implemented in standard IEEE double precision. Martin Byrod¨ Klas Josephson Kalle Astr˚ om¨ Traditionally, researchers have hand-coded elimination · · Centre for Mathematical Sciences, Lund University, Solvegatan¨ 18 schemes in order to solve systems of polynomial equations. 22100 Lund, Sweden, E-mail: [email protected] Recently, however, new techniques based on algebraic ge- Klas Josephson ometry and numerical linear algebra have been used to find E-mail: [email protected] all solutions, cf . [37]. The outline of such algorithms is that Kalle Astr˚ om¨ one first studies a specific geometric problem and finds out E-mail: [email protected] what structure the Grobner¨ basis of the ideal I has for that 2 problem, how many solutions there are and what the degrees implementations of these algorithms in e.g. LAPACK [2], of monomials occurring in the Grobner¨ basis elements are. which makes this technique accessible and relatively straight- For each instance of the problem with numerical data, the forward to implement. process of forming the Grobner¨ basis follows the same steps The second technique for basis selection goes one step and the solution to the problem can be written down as a se- further and employs singular value decomposition (SVD) to quence of pre determined elimination steps using numerical select a general linear basis of polynomials for C[x]/I. This linear algebra. technique is computationally more demanding than the QR Currently, the limiting factor in using these methods for method, but yields somewhat better stability. larger and more difficult cases is numerical problems. For Finally, we show how a redundant linear basis for C[x]/I example in [41] it was necessary to use emulated 128 bit can be combined with the above basis selection techniques. numerics to make the system work, which made the imple- In the QR method, since the pivot elements are sorted in mentation very slow. This paper improves on the state of the descending order, we get an adaptive criterion for where to art of these techniques making it possible to handle larger truncate the Grobner¨ basis like structure by setting a max- and more difficult problems in a practical way. imal threshold for the quotient between the largest and the In the paper we pinpoint the main source of these nu- smallest pivot element. When the quotient exceeds this thresh- merical problems (the conditioning of a crucial elimination old we abort the elimination and move the remaining columns step) and propose a range of techniques for dealing with this into the basis. This way, we expand the basis only when nec- issue. The main novelty is a new approach to the action ma- essary. trix method for equation solving, relaxing the need of ad- The paper is organized as follows. After a brief discus- hering to a properly defined monomial order and a complete sion of related techniques for polynomial equation solving Grobner¨ basis. This unlocks substantial freedom, which in in Section 1.1, we give an overview of the classical theory this paper is used in a number of different ways to improve of algebraic geometry underlying the ideas presented in this stability. paper in Section 2. Thereafter, in Section 3, we present the Firstly, we show how the sensitive elimination step can theoretical underpinnings of the new numerical techniques be avoided, by using an overly large/redundant basis for C[x]/I introduced here. The main contributions in terms of numer- to construct the action matrix. This method yields the right ical techniques are given in Sections 4, 5 and 6. In Section 7 solutions along with a set of false solutions that can then we evaluate the speed and numerical stability of the pro- easily be filtered out by evaluation in the original equations. posed techniques on a range of previously solved and un- Note that this basis is not a true basis in the sense that it is solved geometric computer vision problems and finally we linearly dependent. give some concluding remarks. Secondly, we show how a change of basis in the quo- tient space C[x]/I can be used to improve the numerical 1.1 Related Work precision of the Grobner¨ basis computations. This approach can be seen as an attempt at finding an optimal reordering The area of polynomial equation solving is currently very or even linear combination of the monomials and we inves- active.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    22 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us