Polynomial Solver Optimization

 
 

In recent years polynomial solvers based on algebraic geometry techniques, and specifically the action matrix method, have become popular for solving minimal problems in computer vision. In this paper we develop a new method for reducing the computational time and improv- ing numerical stability of algorithms using this method. To achieve this, we propose and prove a set of algebraic conditions which allow us to reduce the size of the elimination template (polynomial coefficient matrix), which leads to faster LU or QR decomposition. Our technique is generic and has potential to improve performance of many solvers that use the action matrix method. We demonstrate the approach on specific examples, including an image stitching algorithm where computation time is halved and single precision arithmetic can be used.

 

Abstract

Oleg Naroditsky and Kostas Daniilidis, Optimizing Polynomial Solvers for Minimal Geometry Problems, ICCV 2011 [pdf]

Paper

Optimized code for the panoramic stitching based on prior implementation. [download]

Optimized code for optimal three-view triangulation. [download]

The code for the action matrix solution to visual odometry with directional correspondence (3+1 problem) already includes these optimizations. [link]

Code

Single precision stitching results

Error magnitudes for single precision implementation