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.
Glossary
Structured Light

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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Master the essential techniques and metrics that form the backbone of structured light inspection systems, from camera calibration to depth map generation.
Camera Calibration
The process of estimating a camera's intrinsic parameters (focal length, optical center, lens distortion coefficients) and extrinsic parameters (position and orientation in world coordinates). For structured light systems, precise calibration establishes the geometric relationship between the projector and camera, enabling accurate triangulation. Without it, depth measurements suffer from systematic errors.
- Removes radial and tangential lens distortion
- Computes the essential and fundamental matrices
- Uses calibration targets like checkerboards or circle grids
- Zhang's method is the most widely adopted approach
Triangulation
The geometric principle by which a 3D point's coordinates are recovered from its projections in two or more 2D images. In structured light, one 'camera' is replaced by a projector that casts a known pattern. The deformation of that pattern, observed by the camera, creates a virtual stereo pair. The intersection of the camera ray and the projector ray determines the depth.
- Active triangulation replaces one passive camera with a projector
- Solves the correspondence problem via coded patterns
- Accuracy depends on baseline distance and calibration quality
- Forms the mathematical core of all structured light depth computation
Phase Shifting
A fringe projection technique where a series of sinusoidal patterns, each shifted by a known phase increment, are projected onto the surface. The camera captures the distorted patterns, and the phase value at each pixel is computed from the intensity variations across the sequence. This yields a continuous, high-resolution phase map that is directly proportional to surface height.
- Typically uses 3 to 16 phase-shifted images
- Provides pixel-level independent depth computation
- Robust to ambient lighting and surface texture variations
- Unwrapping resolves the 2π phase ambiguity
Point Cloud
A collection of discrete 3D data points in space, each defined by X, Y, Z coordinates, generated by the structured light reconstruction pipeline. Each point represents a sampled location on the object's surface. Point clouds are the raw output of most 3D scanning systems and serve as the input for downstream tasks like surface fitting, volume calculation, and defect detection.
- Can contain millions to billions of points per scan
- Often includes additional attributes like RGB color or normal vectors
- Stored in formats such as PLY, PCD, or LAS
- Requires filtering and registration for multi-view alignment
Depth Map
A 2D raster image where each pixel's intensity value encodes the distance from the camera to the corresponding point on the object's surface, rather than color or brightness. It is the direct output of stereo matching or structured light decoding. Depth maps are memory-efficient and align pixel-to-pixel with the camera's RGB image, simplifying sensor fusion.
- Values typically stored as 16-bit unsigned integers
- Can be converted to a point cloud using camera intrinsics
- Enables rapid 2D convolution for defect analysis
- Often visualized with false-color heatmaps for inspection
Speckle Pattern
A pseudo-random, non-repeating pattern of dots or noise projected onto a surface to solve the correspondence problem in single-shot 3D scanning. Unlike phase shifting, which requires multiple frames, a speckle pattern enables depth computation from a single image pair by matching local windows of texture between the projected pattern and the captured image.
- Enables real-time, motion-robust 3D capture
- Used in consumer depth sensors like Microsoft Kinect v1
- Matching relies on block-based correlation algorithms
- Trades spatial resolution for temporal speed

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us