An Adaptive Screen-Space Meshing Approach for Normal Integration

Moritz Heep, Eduard ZellECCV 2024

Abstract

Normal integration is a fundamental task in photometric stereo, traditionally performed on a dense pixel grid. As image resolutions increase, the computational cost of solving the resulting linear systems grows quadratically. This paper introduces an adaptive screen-space meshing pipeline that leverages surface curvature estimated directly from normal maps to decimate the problem space. By concentrating computational effort on high-curvature regions and using sparse representations for flat areas, the proposed method achieves speedups of 10x to 100x over traditional methods with minimal loss in reconstruction accuracy.

Introduction

The recovery of fine 3D surface details from 2D images, known as photometric stereo, relies heavily on normal integration. However, modern high-resolution sensors produce tens of megapixels, leading to massive linear systems that are computationally expensive to solve. Treating every pixel as an independent variable is often redundant, as many surfaces contain large, smooth, or flat regions that do not require dense sampling.

Previous attempts to optimize this process, such as image pyramids, often fail to adapt to the underlying geometry or introduce artifacts. This work proposes a "meshing-first" approach that intelligently reduces the number of variables before integration, making high-resolution reconstruction feasible in minutes rather than hours.

Methodology

The core of the approach is an adaptive triangle mesh generated in screen space. The pipeline consists of four main stages:

  1. Curvature Estimation: Surface curvature is calculated directly from the 2D normal map using the first and second fundamental forms. This allows the system to identify complex regions without knowing the 3D depth beforehand.
  2. Adaptive Meshing: A triangle mesh is generated based on a user-defined error parameter. Small triangles are placed in high-curvature areas, while larger triangles represent flat regions.
  3. Foreshortening Compensation: To ensure the mesh remains well-shaped (isotropic) in 3D, edge lengths and vertex positions are adjusted using the first fundamental form to account for perspective effects.
  4. Mesh-Based Integration: A novel integration formulation based on discrete differential geometry is applied to the mesh. This quadratic energy formulation avoids common numerical issues like checkerboard artifacts.
The proposed pipeline demonstrates adaptive meshing at various resolutions, significantly reducing the number of vertices compared to the original pixel count while preserving geometric detail.

Experimental Evaluation

The method was evaluated on the DiLiGenT-MV benchmark and synthetic high-resolution normal maps (up to 64 MP).

Key Results

  • Efficiency: The approach typically requires 10 to 100 times fewer vertices than pixels. For a 64 MP map, the runtime was reduced from 3 hours (pixel-based) to just 5 minutes.
  • Accuracy: Despite the massive variable reduction, the Root Mean Square Error (RMSE) remains comparable to dense pixel-perfect methods.
  • Scalability: The number of vertices required scales sublinearly with resolution, making the method ideal for very high-resolution data.

Discussion and Conclusion

By using curvature as a guide for computational allocation, this research demonstrates that high-fidelity 3D reconstruction does not necessitate per-pixel processing. The use of cotangent weights ensures the integration is stable and independent of the specific triangulation.

While the current method excels at continuous surfaces, future work is needed to handle sharp depth discontinuities ("cliffs") and to explore the use of anisotropic meshes for even greater efficiency. Overall, this adaptive meshing approach provides a robust and scalable solution for the "megapixel era" of 3D computer vision.

Summary updated

BibTeX
@inproceedings{heep2024adaptive,
  author = {Moritz Heep and Eduard Zell},
  title = {{An Adaptive Screen-Space Meshing Approach for Normal Integration}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72920-1\_25},
}
Figure