Abstract
Shape from Shading (SFS) is a classic computer vision problem that involves reconstructing 3D geometry from a single 2D image. Traditionally, this task is framed as solving complex partial differential equations (PDEs) that require restrictive boundary conditions. This paper presents a novel reformulation of SFS as a system of polynomial equations. By leveraging tools like homotopy continuation and semidefinite programming (SDP), the authors demonstrate the ability to recover global solutions and explore inherent shading ambiguities without pre-known edge heights.
Introduction
The fundamental challenge of Shape from Shading lies in determining 3D geometry based solely on the interaction of light with a surface. Standard models, assuming Lambertian surfaces and orthographic projection, typically result in nonlinear PDEs. These equations are difficult to optimize and often suffer from non-uniqueness unless boundary conditions—the exact heights of the object's edges—are provided. This research removes these constraints, treating SFS as a "generic" problem and seeking global solutions through the lens of polynomial algebra.
Methodology
The core innovation of this work is the conversion of the Lambertian intensity equation into a quadratic polynomial system. This shift allows the application of powerful mathematical frameworks that PDEs do not support:
- Polyhedral Homotopy: For surfaces represented as triangular meshes, the problem becomes a system of quadratic equations. Homotopy solvers can then trace solutions from a known simple system to the target, guaranteeing the discovery of all complex solutions.
- Iterative Optimization: For general surfaces, the authors minimize the sum of squared errors. Since the objective function is a quartic polynomial, an exact line search can be performed by solving a cubic equation at each iteration, enhancing robustness over standard gradient descent.
- SDP Relaxation: To tackle non-convexity and avoid local minima, Semidefinite Programming (Lasserre-type) is used to "lift" the problem into a higher-dimensional convex space, facilitating the search for a global minimum without a precise initial guess.
Additionally, the authors introduce a specialized smoothness term. Unlike traditional methods that tend to blur sharp features, this term calculates the minimum possible angle between normals given observed intensities, allowing the reconstruction to preserve realistic "folds" and edges where intensity changes rapidly.
Results and Shading Ambiguities
The proposed methods were evaluated on both synthetic models, such as a triangulated vase, and real-world textures like cloth and sugar. The iterative approach achieved high accuracy with Root Mean Square (RMS) errors below 0.01, while the SDP method successfully reconstructed low-resolution images from scratch with RMS errors ranging from 0.06 to 0.14.
A significant contribution of this work is the numerical exploration of shading ambiguities—different shapes that produce identical images. By analyzing the system's Jacobian, the authors can identify "null vectors" representing directions of shape change that do not affect the resulting shading. This allows for the visualization of ambiguities that have long puzzled vision researchers.
Conclusion and Future Work
By transitioning from PDEs to polynomial systems, this research provides a more flexible and mathematically rigorous framework for Shape from Shading. While computational costs for SDP remain high and noise sensitivity affects the polyhedral method, the ability to find global solutions and visualize ambiguities marks a significant step forward. Future work will focus on scaling these methods to higher resolutions and integrating shape priors to help select the most perceptually plausible surface from the manifold of mathematically valid solutions.
Summary updated