A fundamental property of an optimization problem is the form of the cost function to be minimized.
This book has already introduced, or will introduce, several problems formulated as the minimization of an objective function: homography estimation, camera calibration, the PnP problem, reprojection error minimization, and bundle adjustment. The behavior of optimization algorithms depends substantially on the structure of this function.
| (4.83) |
Geometrically, the line segment joining any two points on the graph of the function always lies above the graph itself.
A function is called concave if its negative, , is convex.
Convex functions are particularly important in optimization because they have a fundamental property:
Every local minimum is also a global minimum.
Consequently, an iterative algorithm that converges to a local minimum automatically solves the global optimization problem.
Another important characterization involves the Hessian matrix.
| (4.84) |
is positive semidefinite at every point in its domain.
Convex functions also have several other notable properties:
| (4.85) |
| (4.86) |
Typical examples of convex functions include:
| (4.87) |
| (4.88) |
In computer vision, many problems can be formulated as convex problems, including linear least squares, matching, graph flows, segmentation, and many relaxations used in object recognition.
A linear programming (LP) problem takes the form
| (4.89) |
The feasible region is a convex polyhedron and, if a solution exists, the optimum lies at one of its vertices.
An important generalization is quadratic programming (QP):
| (4.90) |
where
.
Other important classes include:
Unfortunately, most of the more interesting problems in computer vision are not convex.
Camera calibration, the PnP problem, bundle adjustment, relative pose estimation, multiview triangulation, and most SLAM problems all give rise to nonconvex cost functions. In such cases, there may be multiple local minima, saddle points, and flat regions in the solution space.
Consequently, algorithms such as Newton, Gauss-Newton, and Levenberg-Marquardt generally provide no guarantees of convergence to the global minimum, and the quality of the solution depends strongly on the initial estimate.
The following approaches are frequently used to address these challenges:
In practice, much of the work of optimization in computer vision consists precisely in transforming a highly nonconvex problem into one that is sufficiently well-conditioned to be solved reliably using iterative techniques.
Paolo medici