Inferensys

Glossary

Structured Light

A 3D imaging technique that projects a known pattern of pixels onto a surface and analyzes its deformation with a camera to calculate depth and surface topography, revealing subtle physical defects.
Stylish WeWork-like workspace with hot desks and document wall, professional searching through enterprise knowledge base on a mounted ultrawide display, warm industrial pendants overhead.
3D COMPUTER VISION TECHNIQUE

What is Structured Light?

Structured light is an active 3D imaging technique that projects a known pattern of light onto a surface and analyzes its deformation with a calibrated camera to calculate depth and surface topography, revealing subtle physical defects invisible to 2D imaging.

Structured light is a non-contact optical metrology method where a projector casts a precisely defined pattern—typically a series of parallel stripes, grids, or pseudo-random dots—onto a target object. A camera, positioned at a known offset from the projector, captures the pattern as it deforms across the object's surface contours. By applying triangulation algorithms to the disparity between the projected and observed pattern, the system reconstructs a dense, high-resolution 3D point cloud of the surface geometry.

In manufacturing quality inspection, structured light excels at detecting topographic defects such as dents, warpage, missing material, or incorrect standoff heights that 2D systems miss due to uniform color or texture. Unlike passive stereo vision, structured light provides its own texture to featureless surfaces, ensuring reliable depth calculation on smooth metal, glass, or plastic components. The technique is foundational for in-line 3D metrology, enabling micron-level volumetric verification at production line speeds.

3D IMAGING PRINCIPLES

Key Characteristics of Structured Light

Structured light systems derive depth information by analyzing the deformation of a known projected pattern. The following characteristics define the performance, accuracy, and applicability of this technique for industrial quality inspection.

01

Active Triangulation Geometry

The core principle relies on optical triangulation between a projector, a camera, and the object surface. A projector emits a known pattern (e.g., fringes, grids, or dots) at a fixed angle relative to a calibrated camera. The camera captures the pattern deformed by the object's surface topography. By analyzing the pixel-wise disparity between the known projected pattern and the observed deformed pattern, the system calculates the exact depth (Z-height) for every pixel using geometric triangulation. This requires precise extrinsic calibration between the projector and camera to establish the baseline distance and relative orientation.

02

Pattern Encoding Strategies

The projected pattern dictates the spatial resolution and robustness of the scan. Common strategies include:

  • Binary Code Patterns: A sequence of black-and-white stripes projected in rapid succession, encoding pixel columns with unique binary identifiers. Highly robust to ambient light.
  • Gray Code Patterns: An enhancement of binary coding where adjacent stripes differ by only one bit, reducing decoding errors at stripe boundaries.
  • Phase-Shifted Fringes: Sinusoidal intensity patterns shifted multiple times to calculate a wrapped phase map, which is then unwrapped to yield continuous, high-resolution depth data. This provides sub-pixel accuracy.
  • Hybrid Methods: Combining Gray code for absolute phase unwrapping with phase shifting for fine detail, achieving both robustness and high precision.
03

Sub-Pixel Depth Resolution

Unlike time-of-flight sensors, structured light systems achieve micron-level depth resolution at close working distances. By analyzing the continuous phase of a sinusoidal fringe pattern rather than discrete pixel edges, the system can interpolate depth values to a fraction of a camera pixel. This sub-pixel interpolation enables the detection of subtle surface defects such as scratches, dents, and porosity that have minimal contrast in 2D images but measurable depth variation. The depth resolution is a function of the triangulation angle, camera resolution, and fringe period.

04

Point Cloud Generation Pipeline

The raw output of a structured light scan is a dense 3D point cloud—a set of data points in a Cartesian coordinate system (X, Y, Z). The generation pipeline involves:

  • Phase Unwrapping: Converting the wrapped phase map into a continuous, absolute phase map.
  • Triangulation: Applying the calibrated system geometry to convert pixel coordinates and phase values into real-world 3D coordinates.
  • Point Cloud Filtering: Removing outliers, smoothing noise, and filling small occluded holes using statistical filters. This dense point cloud (often millions of points per scan) serves as the input for downstream metrology, defect detection, and digital twin alignment.
05

Occlusion and Multi-View Fusion

A single projector-camera pair suffers from occlusion shadows—regions where the projected pattern is blocked by the object's own geometry and cannot be seen by the camera. To mitigate this, industrial systems employ multi-view sensor fusion, using multiple projector-camera pairs positioned at different angles. The resulting point clouds from each view are registered into a common coordinate system using Iterative Closest Point (ICP) algorithms, producing a complete 3D model with minimal data voids. This is critical for inspecting complex geometries like engine blocks or turbine blades.

06

Ambient Light Immunity

Factory-floor lighting can severely degrade passive stereo vision systems. Structured light actively projects a high-intensity pattern, often in the blue or near-ultraviolet spectrum (e.g., 450 nm), combined with a matched narrow bandpass filter on the camera lens. This spectral isolation blocks the majority of ambient factory lighting (which is broadband or in the visible red/green spectrum), ensuring the camera captures only the projected pattern. This optical filtering provides robust performance without requiring shrouding or darkness, enabling integration directly on moving conveyor belts.

STRUCTURED LIGHT INSPECTION

Frequently Asked Questions

Clear answers to common technical questions about how structured light 3D imaging works, its advantages over 2D methods, and its role in modern manufacturing quality inspection.

Structured light is an active 3D imaging technique that projects a known pattern—typically a series of parallel stripes or a pseudo-random dot matrix—onto an object and analyzes the pattern's deformation with a calibrated camera to calculate depth and surface topography. The core principle is triangulation: the projector and camera are positioned at a known baseline distance and angle. When the projected pattern strikes a surface, height variations cause the stripes to shift laterally from the camera's perspective. By measuring these phase shifts or spatial distortions against the original projected pattern, the system computes a dense point cloud representing the object's 3D profile with micron-level precision. Unlike passive stereo vision, structured light introduces its own texture, making it robust on featureless, matte, or dark surfaces that would otherwise lack the visual features needed for correspondence matching.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.