Edge-preserving Near-light Photometric Stereo with Neural Surfaces

Heng Guo, Hiroaki Santo, Boxin Shi, Yasuyuki Matsushita

TL;DR

This paper introduces a near-light photometric stereo (NLPS) method that uses an analytically differentiable neural surface to reconstruct 3D shapes with high fidelity. By replacing traditional, error-prone finite differentiation with exact analytical derivatives, the method faithfully preserves sharp depth edges and demonstrates remarkable robustness to inaccurate initial depth guesses.

What Problem Does This Paper Address?

Near-light photometric stereo (NLPS) aims to recover the detailed 3D shape of an object—specifically its depth, surface normals, and reflectance (albedo)—from images taken under nearby point light sources.

A fundamental challenge in NLPS is the relationship between depth and surface normals. Mathematically, a surface normal is perpendicular to the tangent plane, which is defined by the partial derivatives of the depth. Traditional methods represent depth as a discrete grid and use finite differentiation (calculating the difference between adjacent pixels) to approximate these derivatives.

However, this approximation fails at sharp edges or depth discontinuities. At these boundaries, finite differences produce large errors, leading to "blurred" edges and inconsistent estimates between depth and normals. Furthermore, NLPS is a non-linear problem that is notoriously sensitive to the initial depth guess provided to the optimization algorithm.

Methods

The authors propose two key technical innovations to solve these issues:

  1. Analytical Neural Surfaces: Instead of a discrete grid, the surface depth is represented as a continuous, analytical function $Z(p; \theta)$ of image coordinates $p$, parameterized by a neural network. Specifically, they use SIREN (Sinusoidal Representation Networks), which are excellent at capturing high-frequency details like sharp edges. Because the network is a differentiable function, the surface normals can be computed using analytical differentiation (exact gradients) via the chain rule. This eliminates the errors inherent in finite difference approximations.
  2. Albedo as a Dependent Variable: In many NLPS frameworks, albedo is treated as an independent unknown to be optimized. Here, the authors formulate the Lambertian albedo as a dependent variable that is solved via least-squares in every forward pass, based on the current depth and normal estimates. This reduces the search space of the optimization to only the neural network parameters $\theta$, significantly improving convergence and robustness.

The entire pipeline is self-supervised, meaning it optimizes the network parameters by minimizing the $L_1$ reconstruction loss between the input images and images rendered from the estimated shape.

Fig. 2: Pipeline of our method. The green and blue boxes show the inputs and outputs of our method, respectively. Following the blue arrows, we use a neural surface model that takes image coordinates as input and outputs the corre- sponding depth. The surface normal and albedo are derived from the depth and its analytical derivatives internally, which are used for assessing the reconstruc- tion loss. Following the green arrows, we supervise the unknown neural surface parameters θ by the difference between input image observations and the corre- sponding reconstructed ones.

Datasets

The method was evaluated on three types of data:

  • Synthetic Dataset: Five objects (Tent, Bunny, Buddha, Cupid, Bear) rendered in Blender with realistic cast shadows and 81 point light sources.
  • LUCES Benchmark: A public real-world dataset containing 14 objects with diverse shapes and materials.
  • Custom Real-world Data: The authors built a hardware setup consisting of an LED board and a high-resolution camera to capture new near-light image sequences.

Key Insights and Ideas

  • The Finite Difference Trap: The paper clearly illustrates why discrete grids struggle. As shown in the figure below, finite differences at a step edge result in a "slanted" normal approximation, whereas the analytical derivative correctly identifies the vertical discontinuity. Comparison of finite vs. analytical differentiation at a depth edge.

  • Implicit Consistency: By deriving normals directly from the depth function, the method guarantees that the recovered depth and normals are mathematically consistent everywhere on the surface.

  • Optimization Stability: By "folding" the albedo into the depth optimization, the authors transformed a highly sensitive multi-variable problem into a more stable one. This allows the model to converge to the correct shape even if the initial depth guess is off by a large margin.
Fig. 3: Illustration of finite and analytical differentiation at a near-edge scene point p shown in blue. The finite differentiation results in inaccurate derivatives ∇zp and surface normals np along depth edges. Analytical surface represen- tation (e.g., product of sigmoid functions σ(·)) provides consistent analytical derivatives and surface normals to the depth, which could be more accurate with a proper setting of parameter k.

Key Results

  • Superior Edge Preservation: Qualitatively, the method produces much sharper results on complex geometries like the ears of the "Bunny" or the steps of a "Stair" model compared to state-of-the-art baselines like QD18.
  • Quantitative Accuracy: On synthetic data, the method achieved a Mean Angular Error (MAngE) for surface normals of 1.39°, compared to 4.97° for QD18. Depth error (MAbsE) was reduced from 50.1mm to 4.80mm.
  • Robustness to Initialization: While baseline methods failed or produced distorted shapes when the initial depth was set too far or too close, the proposed neural surface method consistently converged to the ground truth shape.
Fig. 1: Given near light image observations and calibrated light positions, our method recovers accurate shapes with preserving the depth edges as highlighted in the close-up views. In addition, our method is robust against the depth ini- tialization z0 compared to the state-of-the-art methods.

Limitations and Future Work

  • Lambertian Assumption: The current optimization for albedo assumes a Lambertian (matte) reflectance model. While the neural surface itself is flexible, the method struggled with highly metallic or specular surfaces in the LUCES dataset (e.g., the "Bell" and "Cup").
  • Future Directions: The authors suggest incorporating more complex reflectance models, such as Spherical Gaussians or neural reflectance fields, to handle non-Lambertian materials and inter-reflections more effectively.

Summary updated

BibTeX
@misc{guo2022edge,
  author = {Heng Guo and Hiroaki Santo and Boxin Shi and Yasuyuki Matsushita},
  title = {{Edge-preserving Near-light Photometric Stereo with Neural Surfaces}},
  year = {2022},
  eprint = {2207.04622},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2207.04622},
}
Figure