Loading...
Implement a method to integrate surface normals and recover a depth map, a crucial step in 3D Reconstruction using Photometric Stereo. This process involves calculating the surface gradient from given normals.
The surface gradient is a fundamental concept in Computer Vision, representing the rate of change of the surface depth in the x and y directions. Given the surface normals nx, ny, nz, the surface gradient can be calculated as p=−nx/nz and q=−ny/nz, which are essential for integrating the surface.
To integrate the surface, follow these steps:
This technique is widely used in 3D scanning and object recognition applications.
Normal map
Depth map
Compute gradients from normals, integrate using Poisson