A Cooperative Algorithm for Determining Surface Orientation from a Single View

Robert J. Woodham

Abstract

This paper presents a "cooperative" relaxation algorithm to solve the classic shape-from-shading problem. By mapping image intensities to a 2D gradient space and enforcing physical constraints like surface smoothness and convexity, the algorithm iteratively determines 3D surface orientations from a single monocular view. This approach mimics biological systems by propagating local constraints across a surface to resolve mathematical ambiguities.

Introduction

The core challenge in computer vision addressed here is determining the local 3D orientation of a surface—its "tilt" and "slant"—using only the brightness (intensity) values in a single 2D image. This is a fundamentally under-constrained problem: a single intensity value at a pixel could be produced by many different surface orientations. Mathematically, one equation (intensity) is insufficient to solve for two unknowns (the horizontal and vertical components of the surface slope). While previous approaches relied on complex non-linear partial differential equations, this work seeks a more computationally local and intuitive method.

Methodology

Gradient Space and the Reflectance Map

The framework is built on two primary tools. First, Gradient Space $(p, q)$ is a 2D coordinate system where every point represents a specific surface orientation. If a surface is defined by $z = f(x,y)$, then $p$ is the slope in $x$ and $q$ is the slope in $y$. Second, the Reflectance Map $R(p, q)$ specifies how bright a surface appears for every possible orientation $(p, q)$, given a specific light source and viewer position.

Figure 1: The geometry of the light source, viewer, and surface normal used to define the reflectance map.

The Cooperative Algorithm

Instead of solving global equations, the paper proposes a relaxation scheme. For every pixel, the intensity value identifies a contour—a line of possible orientations—in gradient space. The algorithm then looks at $3 \times 3$ patches of pixels and applies local constraints based on the assumption of surface smoothness:

  1. Rule I (View Angle): Changes in the angle between the surface normal and the viewer must be monotonic between neighboring points.
  2. Rule II (Steepest Descent): The direction of the steepest slope must change smoothly.

These local constraints are applied iteratively. If a neighbor’s possible orientations are restricted, that restriction propagates, "squeezing" the possible gradient space values until a unique orientation remains.

Figure 4: Illustration of how local constraints on view angle and steepest descent restrict the possible contours in gradient space.

Evaluation and Results

The algorithm was evaluated using synthetic data of a Lambertian sphere (a perfectly matte surface) illuminated by a single distant point source. The results were compared against the mathematically "true" orientations calculated via calculus.

  • Accuracy: For surface points with a view angle up to $60^\circ$, the algorithm narrowed the orientation down to within an average of $5^\circ$ of the true orientation.
  • Precision: The mean angular spread (remaining uncertainty) was reduced to approximately $9.9^\circ$.
  • Qualitative Success: The algorithm successfully reconstructed the hemisphere facing the viewer, correctly identifying self-shadowed regions.

Discussion and Insights

A key insight of this work is treating surface smoothness as a computational filter. By assuming matter is cohesive, the algorithm rejects orientations that would imply a discontinuous surface. Furthermore, the paper demonstrates that the Hessian matrix (describing surface curvature) can incorporate convexity constraints. If a surface is known to be convex, it imposes strict mathematical inequalities on gradient space movement, further constraining the solution.

Despite its success, the algorithm faces limitations, including the lack of robust termination criteria and the persistent "convex vs. concave" ambiguity. Future work must address scene segmentation and complex lighting conditions, such as mutual illumination in non-convex objects.

Summary updated

BibTeX
@inproceedings{woodham1977cooperative,
  author = {Robert J. Woodham},
  title = {{A Cooperative Algorithm for Determining Surface Orientation from a Single View}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1977},
}
Figure