CNN-PS: CNN-based Photometric Stereo for General Non-Convex Surfaces

Satoshi Ikehata

Abstract

Traditional photometric stereo methods often struggle with non-convex surfaces due to complex global illumination effects like cast shadows and inter-reflections. This paper presents CNN-PS, a deep learning approach that bypasses explicit reflectance modeling. By introducing a fixed-size 2D "observation map" to handle unstructured lighting data and training on a high-fidelity synthetic dataset, CNN-PS achieves state-of-the-art accuracy on real-world benchmarks, particularly for objects with intricate geometries.

Introduction

Photometric stereo aims to recover 3D surface normals by observing an object under varying light directions from a fixed viewpoint. Conventional algorithms typically rely on mathematical models of the Bidirectional Reflectance Distribution Function (BRDF). However, these models frequently fail when faced with "non-convex" objects where light bounces between surfaces or creates deep shadows. Furthermore, applying convolutional neural networks (CNNs) to this task is challenging because the number and order of input images can vary, whereas standard CNNs require structured, fixed-size inputs.

Methodology

CNN-PS addresses these challenges through two primary innovations: the 2D observation map and rotational pseudo-invariance.

The 2D Observation Map

To handle an arbitrary number of input images, the authors project pixel intensities from various lighting directions onto a 2D grid based on the light source's $x$ and $y$ coordinates. This creates a $32 \times 32$ "observation map" for each pixel. This representation is invariant to the input size and order, effectively encoding geometric features like specular highlights and shadow boundaries.

Visualization of the 2D observation map, which encodes pixel intensities across lighting directions to capture specularities and shadows.

Rotational Pseudo-Invariance

For isotropic materials, rotating both the light source and the surface normal around the viewing axis leaves the observed intensity unchanged. CNN-PS leverages this principle during both training (for data augmentation) and testing. At test time, the observation map is rotated multiple times, processed by the CNN, and the resulting normals are inversely rotated and averaged. This process significantly improves the robustness and smoothness of the final normal map.

The CNN-PS pipeline: converting input images to observation maps, predicting normals per rotation, and averaging for the final result.

Experimental Results

The model was trained on CyclesPS, a new synthetic dataset featuring complex 3D models rendered with realistic physics to include shadows and inter-reflections.

On the DiLiGenT real-world benchmark, CNN-PS achieved a state-of-the-art average angular error of 7.2 degrees. It demonstrated significant superiority on complex shapes; for instance, on the "HARVEST" object—notorious for its deep folds—CNN-PS achieved a 14.0° error, outperforming competing methods which often exceeded 15.8°. Additionally, the inference process is highly efficient, taking less than 5 seconds per scene on a standard CPU.

Conclusion

CNN-PS demonstrates that deep learning, when combined with physics-informed data representations and augmentation, can overcome the limitations of traditional photometric stereo. While the current model is optimized for isotropic materials, it sets a new standard for recovering the geometry of complex, non-convex surfaces. Future work will focus on expanding the synthetic training data to better handle anisotropic materials and rare specular inter-reflections.

Summary updated

BibTeX
@inproceedings{ikehata2018cnn,
  author = {Satoshi Ikehata},
  title = {{CNN-PS: CNN-based Photometric Stereo for General Non-Convex Surfaces}},
  booktitle = {European Conference on Computer Vision},
  year = {2018},
  doi = {10.1007/978-3-030-01267-0\_1},
}
Figure