Skip to content
Technical guide12 min read

3D vision explained: laser, stereo, structured light, ToF

Compare laser triangulation, stereo, structured light and time-of-flight 3D by range, accuracy, surface limits and data rate, then pick the right fit.

Start with motion, range and tolerance

Four technologies cover most industrial 3D work, and three questions usually eliminate two of them before you open a datasheet. Does the part move past the sensor at a known speed, stop in front of it, or sit in a bin or on a pallet? How far away must the sensor be, and how large is the measuring volume? And what do you have to resolve in Z: microns, tenths of a millimetre, or centimetres?

Laser triangulation is the default when parts move on a conveyor and you need fine height data. Structured light is the default when the part can stop and you need dense, precise data over an area in one stationary capture. Stereo, usually with a projected pattern, suits robot guidance and bin picking at medium range. Time-of-flight suits long ranges and large volumes where errors of several millimetres or more are acceptable. The ranges below are typical for industrial sensors, not hard limits, and they overlap.

Before going further, confirm you need 3D at all. Height, volume, coplanarity and out-of-plane pose need it. Presence, print quality and in-plane dimensions on a flat part usually do not, and a 2D camera with the right lighting will be faster and simpler.

  • Laser profiler: moving parts; measuring widths typically from a few millimetres to around a metre; Z repeatability typically from under a micron on small fields to tens of microns on large ones; often thousands of profiles per second.
  • Structured light: stationary or stop-and-go parts; fields typically from tens of millimetres to one or two metres; Z noise typically from a few microns on small fields to a fraction of a millimetre on large ones; often a fraction of a second to a couple of seconds per 3D frame.
  • Active stereo: working distances typically from about 0.2 m to several metres; depth error typically from a fraction of a millimetre up close to several millimetres at range; typically a few to tens of frames per second.
  • Time-of-flight: ranges typically from about 0.3 m to 10 m; depth error typically from several millimetres to a centimetre or two; typically 30 to 60 depth frames per second at VGA to about 1 MP.

Laser triangulation and profilers

A laser line is projected onto the part and a camera views it from an angle. Height changes shift the line sideways on the sensor, so each exposure yields one height profile across the part. Relative motion builds up the surface: X comes from the position along the line, Z from the line shift, and Y from the transport. That is why an encoder is usually part of the system, tying each profile to real travel so Y spacing stays constant when speed varies.

Z sensitivity follows from the geometry. With the laser perpendicular to the surface and the camera tilted by an angle α from the laser plane, one pixel of line shift corresponds to p / sin α in height, where p is the pixel size on the object. Worked example: a 100 mm wide field on 2048 pixels gives p of about 49 µm. At α = 30° one pixel equals about 98 µm in Z. Sub-pixel peak detection of about 1/10 pixel is a realistic working figure on a matte surface, giving a noise floor near 10 µm. Narrow the field to 25 mm and the same calculation gives about 2.4 µm. Field width and Z performance are directly linked.

Y spacing is simply speed divided by profile rate: 500 mm/s at 2 kHz gives 0.25 mm between profiles, and reaching 0.05 mm at the same speed needs 10 kHz. Profile rate depends on how many sensor rows are read, so a shorter Z range usually allows a higher rate. Sampling finer than the projected line width adds little real detail in Y, because the line itself averages over that width.

The main geometric limit is occlusion. A point is measured only if the laser reaches it and the camera can see it, so steep walls and deep grooves leave holes in the data. A larger triangulation angle improves Z sensitivity and makes occlusion worse. Two-camera or opposed-head arrangements reduce the holes at the cost of more calibration and data. Blue lasers around 405 nm are often preferred on shiny metals, on organic or translucent materials, and on hot glowing targets, where red lines can bloom or be masked.

  • Typical fits: weld beads, adhesive beads, tyre sidewalls, connector pin coplanarity, sawn timber, battery tabs, continuous extrusions.
  • Needs: relative motion, usually an encoder, and a mounting that keeps the triangulation geometry stable.
  • If you only need one height at one point, a single-point laser displacement sensor is simpler and easier to integrate than a profiler.
  • Check the laser class under IEC 60825-1 and plan guarding accordingly.

Stereo vision: passive and active

Stereo uses two calibrated cameras a known baseline apart. The system finds the same point in both images, measures the offset between them (the disparity), and converts it to depth with Z = f × B / d, where f is the focal length in pixels, B the baseline and d the disparity. Passive stereo needs texture to match, so a blank painted panel or plain carton gives no usable data. Active stereo adds a projected pattern, commonly in the near infrared, which supplies texture on featureless surfaces and keeps single-shot capture.

Depth error grows with the square of range: ΔZ ≈ Z² × Δd / (f × B). Worked example: baseline 100 mm, 8 mm lens on 3.45 µm pixels (f of about 2320 pixels), matching noise of 0.25 pixel. At 1 m the depth error is about 1.1 mm. At 2 m it is about 4.3 mm. Doubling the baseline halves the error, but it also increases occlusion and pushes out the minimum distance at which both cameras see the same area, so baseline is chosen for the working range, not maximised.

Two practical points are often missed. First, window-based matching smooths the depth map, so usable lateral detail is coarser than the pixel grid and depth edges are softened. A point cloud with one point per pixel does not have per-pixel lateral resolution. Second, the baseline and camera alignment must stay mechanically stable, because small thermal or mechanical changes shift the disparity. Integrated, factory-calibrated stereo heads handle this better than two cameras on a bracket unless you plan to verify and recalibrate.

Matching also costs computing power, which is why many heads compute depth internally on an FPGA or embedded processor. If the host computes depth, budget for it, and for the raw data rate of two synchronised cameras.

  • Typical fits: robot guidance, bin picking of mid-sized parts, depalletising, mobile robots.
  • Passive stereo works well outdoors on textured scenes, because sunlight helps rather than competes.
  • Active patterns can wash out in strong sunlight, even with a bandpass filter on the cameras.
  • Repetitive texture, such as a grid or a row of identical holes, can cause false matches in passive stereo.

Structured light: precise, dense and usually static

A structured-light sensor projects a sequence of patterns, typically Gray codes combined with phase-shifted fringes, and uses one or two cameras to observe them. Each camera pixel is decoded to a projector coordinate and the depth is triangulated, much as with stereo, except that the matching problem is solved by the coded light rather than by surface texture. Phase shifting resolves position to a small fraction of a fringe, which is why the technique can deliver dense, precise data across the whole field.

Performance scales with field size. As a rough planning figure, per-point Z noise under good conditions is often on the order of 1/5,000 to 1/10,000 of the field width on industrial sensors: 20 to 40 µm on a 200 mm field and 100 to 200 µm on a 1 m field, with metrology-grade scanners and spatial averaging doing better. Treat that as a first estimate for noise, not a promise of accuracy, and confirm it on your own part.

The cost of a sequence is time, and the scene must hold still during it. With 20 patterns at 10 ms each, a capture takes 200 ms, and a part moving at only 10 mm/s travels 2 mm in that window, far more than the noise floor you are paying for. Robot-mounted sensors need the arm to stop and settle, and vibrating fixtures show up as ripple in the data. Single-shot and high-speed variants exist, but they generally trade away resolution or precision.

Multiple-exposure capture extends the dynamic range on mixed or shiny parts, at the cost of a longer cycle. Concave shiny geometry remains hard because light bounces between surfaces and corrupts the decoded pattern. Narrowband projectors with a matching bandpass filter help against ambient light, but direct sunlight or strong plant lighting can still reduce contrast.

  • Typical fits: dimensional checks on stopped parts, castings and machined parts, assembly verification, bin picking where precise pose matters.
  • Sequence time = number of patterns × exposure; multiply by the number of exposures if you use multi-exposure capture.
  • Check settling time and vibration at the mount, not just the sensor frame rate.

Time-of-flight: range and speed, lower precision

Time-of-flight cameras emit near-infrared light and measure how long it takes to return. Most industrial area cameras are indirect (iToF): they modulate the light and compute the phase of the return from several exposures. Direct ToF times individual pulses, which suits longer range. The challenge is scale: 1 ns of round-trip time equals 15 cm of depth, and 1 mm of depth equals about 6.7 ps. Precision comes from averaging a great deal of returned light, which is why ToF is normally a millimetre-to-centimetre technology rather than a micron one.

Indirect ToF has an ambiguity range of c / (2 × f), where f is the modulation frequency: about 1.5 m at 100 MHz and 7.5 m at 20 MHz. Beyond that distance the phase wraps and objects can appear closer than they are. Combining two frequencies extends the range but uses more exposures, and because several exposures make one depth frame, moving edges can show artefacts.

The characteristic errors are worth knowing. Multipath, where light reaches a pixel by bouncing off another surface, makes corners and bin interiors read too far. Flying pixels appear at depth discontinuities, where a pixel sees both foreground and background and reports a depth in between. Very dark or very shiny surfaces return little light and read noisily, and depth can shift slightly with reflectivity. Sensors also need warm-up, and two cameras on the same frequency can interfere unless their timing or frequencies are managed.

Worked example: checking pallet layers from 2.5 m with a VGA sensor and a field of about 2 × 1.5 m gives roughly 3 mm per pixel laterally. That comfortably detects a 100 mm carton layer or a missing box. It will not check a 1 mm gap between cartons or measure a dent, and no amount of filtering will fix that. Use ToF when the features are large compared with its error.

  • Typical fits: parcel and pallet dimensioning, layer and presence checks, coarse fill level, mobile robot obstacle sensing.
  • No baseline means a compact head and little occlusion between emitter and sensor.
  • Sunlight adds noise at the common 850 nm and 940 nm operating bands, so check outdoor or skylight conditions.

Resolution, repeatability and accuracy are different numbers

Resolution is the smallest step the system can report. Repeatability is how much repeated measurements of the same stationary target vary, usually quoted on a matte reference with averaging. Accuracy is how close the result is to the true value, which also includes linearity, calibration quality, temperature drift and part tilt. A datasheet can legitimately show a repeatability figure ten times better than the accuracy you will achieve on a real part in a real plant.

Lateral and depth performance are also separate. To measure a 0.5 mm feature you want at least 3 to 5 points across it, so lateral sampling of about 0.1 to 0.17 mm, regardless of how good Z is. Similarly, the number of points in a cloud says little about the size of the smallest feature it can resolve, especially with stereo matching or filtering.

Plan with a measurement budget. A common target is measurement uncertainty of about one-tenth of the tolerance band, validated by a gauge study on real parts. In robot guidance the sensor is often not the limit: a 0.1 mm sensor does not produce a 0.1 mm pick if the robot and hand-eye calibration hold only 0.5 mm. Spend effort where the largest error is, and verify with a calibrated reference artefact at the working position, not only at the factory reference distance.

  • Ask under what conditions a figure was measured: target material, averaging, distance, temperature.
  • Separate X, Y and Z requirements instead of quoting a single resolution number.
  • Include calibration, mounting drift and part presentation in the budget.
  • Validate with a gauge study on production parts before committing to a tolerance.

Surfaces, data rate and lighting integration

All four technologies rely on light returning from the surface in a predictable way. Specular metal sends light away from the sensor or saturates a few pixels. Dark rubber or carbon-filled plastic returns little signal. Translucent plastic and food scatter light below the surface, which biases triangulation and lengthens the ToF path. Transparent parts often give no reliable return from the surface at all. Concave shiny geometry adds false returns through interreflection. Mitigations include changing the view angle, multi-exposure capture, polarisers, blue light for scattering materials and matte spray for offline metrology only. None is guaranteed, so test on the worst real sample rather than a clean demo part.

Size the data path early. A profiler outputting 2048 points at 4 kHz with 16-bit height produces about 16 MB/s, which is easy on GigE. The raw camera view behind it, for example 2048 × 200 pixels at 4 kHz, would be about 1.6 GB/s, which is why peak detection usually happens inside the sensor. A 5 MP structured-light cloud stored as XYZ floats is 60 MB per frame, or 120 MB/s at 2 frames per second. A stereo pair of 2 MP 8-bit cameras at 30 fps delivers 120 MB/s of raw images. A VGA ToF camera with 16-bit depth and intensity at 30 fps needs about 37 MB/s.

Finally, think about other light in the cell. External 2D lighting can interfere with a 3D emitter, so either strobe them alternately or separate them by wavelength with bandpass filters. Many robust systems combine both: 3D for height or pose, and a separate 2D camera with dedicated lighting for fine detail, print or colour.

If the technology choice is not clear from the data sheets, test it on real parts: surface finish and geometry decide more than the numbers. AIS Vision validates 3D applications on sample parts and integrates the complete station, including guidance or measurement software.

  • Moving part, fine height data: start with a laser profiler.
  • Stopped part, dense precise data: start with structured light.
  • Robot guidance at medium range: start with active stereo or structured light.
  • Long range, large objects, coarse tolerance: start with time-of-flight.
  • Single height at a single point: use a laser displacement sensor instead of a 3D camera.

Frequently asked questions

Related categories

  • 3D cameras
  • Laser measurement sensors
  • Machine vision lighting

Related guides

Recommended hardware

  • Basler blaze-102 machine vision 3D camera
    • Time of flight (ToF)
    • 0.3 m - 10 m
    • ±5 mm (0.5 – 5.5 m); typical
    • GigE
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View
  • Basler blaze-101 machine vision 3D camera
    • Time of flight (ToF)
    • 0.3 m - 10 m
    • ±5 mm (0.5 – 5.5 m); typical
    • GigE
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View
  • iRAYPLE D7200MG200E machine vision 3D camera
    • 700–1800 mm (clearance 700 mm + measuring range 1100 mm)
    • 5 mm × 5 mm × 5 mm (regular object)
    • GigE (Gigabit Ethernet)
    • IP65
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View

Laser measurement sensors

All laser measurement sensors →

Machine vision lighting

All machine vision lighting →
  • Basler Light Ring-100OD-White machine vision lighting
    BaslerBasler Standard Light Ring-100OD-WhiteLight Ring-100OD-White
    • Ring light
    • White (5000 K)
    • 67-101 mm
    • Continuous and strobe (internal LED controller, 2 operating modes)
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View
  • Omron / Sentech FLV-DB10181W machine vision lighting
    • Direct back light (backlight)
    • White LED
    • 73 x 73 mm
    • Yes - driven by Omron vision controller or FLV-TCC/FLV-ATC/3Z4S-LT IDGB strobe controller
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View
  • Lumher PD-5000K machine vision lighting
    LumherLumher PD White 5000KPD-5000K
    • Bar / linear (Linear series)
    • White 5000K
    • Continuous (1x) / Strobe (4x) (no strobe values listed for PD 13, PD 14, PD 15)
    • Semidiffuse 60° / Ultradiffuse 110°
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View

Request a technical quote

If you have a specific application, we help you select the right hardware and validate it.