Extracting 3D Surface Topography with a 2D Camera: Photometric Stereo Technology

Is it possible to detect micro-scratches and dents on surfaces lacking color contrast, such as matte metal, black plastic, and rubber, without using expensive 3D sensors? The working principle of Photometric Stereo technology, which extracts the surface gradient map using a single 2D camera and 4-quadrant illumination, along with its vectorial matrix mathematics and pseudo-3D inspection strategies.

Extracting 3D Surface Topography with a 2D Camera: Photometric Stereo Technology

In industrial surface inspection, the scenarios where engineers struggle the most are environments where there is no color or contrast difference. A hairline crack on a black rubber seal, pores in a cast aluminum body, hairline scratches on a machined metal surface, or embossed text on a matte plastic cover... In these structures, the object and the defect are the same color. Standard 2D cameras become blind under overhead illumination, seeing these surfaces as completely 'flat and homogeneous'. To overcome this problem, the first solution that comes to mind is using 3D Laser Profilometers or Structured Light sensors. However, 3D sensors bring high hardware costs, complex calibration processes, and processing loads that struggle to keep up with line speeds. So, is it possible to extract the micron-level 3D topography of a surface with the budget and speed of a standard 2D camera? Photometric Stereo technology was born exactly from this engineering need.

Four Angles, One Camera: How Does the System Work? Traditional 3D systems use multiple cameras or moving laser lines to measure the object's position in space (X, Y, Z coordinates). Photometric Stereo, on the other hand, keeps the camera and the object completely stationary; instead, it changes the angle of incidence of the light. The system basically consists of two components:

  • A high-speed, single standard 2D industrial camera.

  • A ring light divided into four independent sectors (East, West, North, South) (4-Quadrant Segmented Light) and a Strobe controller with microsecond precision.

When the part comes under the camera, each quarter sector of the LED illumination flashes sequentially within nanoseconds. The camera consecutively captures images of the part illuminated from 4 different angles in a single stop. Micro-dents and protrusions on the object create different shadows and brightnesses from each angle.

From Shadow to Vector: Normal Map Mathematics At the heart of Photometric Stereo lies the Lambertian Reflectance Model, which defines the surface's interaction with light. The light intensity (I) reflected by a surface point to the camera is expressed by the dot product between the surface's reflectance capacity (p - Albedo), the surface's perpendicular vector (N - Surface Normal), and the incidence direction of the light source (L): I = p * (N * L) When the camera records 4 separate light intensities under illumination from 4 different directions, you have a system of equations with 4 unknowns per pixel. When this matrix system is solved, two critical pieces of data are completely separated from each other:

  • Albedo Map (p): All gradients, shadows, and 3D structures on the surface are cleaned; only the pure color and print texture of the material remain.

  • Normal Map (N): Effects such as surface color and dirt are eliminated; a Pseudo-3D topography showing the tilt angle of each pixel in 3D space is obtained.

Micron-Level Pseudo-3D Strategies The resulting Normal Map contains the surface gradient of each pixel. When the integral of these gradients is taken, the height map (Curvature Map) of the surface is created. This mathematical transformation provides massive advantages to inspection processes in the field:

  • Black-on-Black Detection: While a black hairline crack on a black rubber seal disappears in a standard 2D image, it appears as a bright line in the Normal Map due to the sudden change in the surface angle.

  • Embossed Text and Pattern Inspection: Embossed codes stamped on metal are read with 100% accuracy solely by their geometric forms, unaffected by color changes or oil stains on the surface.

  • Glare Isolation: Blinding glares on bright machined metals are mathematically eliminated thanks to the combination of 4-angle illumination.

Why Photometric Stereo Instead of a 3D Sensor?

Parameter

Classical 3D Laser Profilometer

Photometric Stereo

Hardware Cost

High ($10,000 - $30,000)

Low (Standard 2D Camera + Custom LED)

Motion Requirement in Scanning

The part or the laser must slide

Works even when the part is stationary (with Strobe)

Processing Speed

High processor/GPU load

Very fast

Resolution

Depends on the sensor's Z precision

As high as the camera's megapixel resolution

Conclusion You do not have to strain your budget and system with complex 3D sensors for every 'low-contrast' problem you encounter in surface quality control. Photometric Stereo turns the angle of incidence of photons into a mathematical weapon, extracting surface topography at a 3D level with the speed and affordability of 2D cameras. With correct illumination geometry management and optimized algorithms, you can instantly catch even the most invisible surface defects on your line. Keep following the Pro Sicht Blog for industrial image processing, advanced optical techniques, and field engineering solutions!