3D Intelligent Algorithms β Translating a laser line to a height profile
On this page
Laser Triangulation: From Laser Line to Height Profile

Laser triangulation works by projecting a laser line onto an object and capturing its reflection at an angle on a CMOS detector. When examining a column of pixels on the CMOS detector, the light intensity forms a Gaussian curve (resulting in a peak).Β
Within the sensor, there are four selectable algorithms to translate this curve of reflection data into height or position information. The calculated laser line positions from a single image are referred to as a profile, representing a cross-section of the target object. By moving either the sensor or the object, multiple height profiles are collected to generate a complete 3D representation of the object.Β
Maximum Intensity Profile Mode (MAX)
- The position value of the maximum point (πMAX)
- The maximum intensity value (πΌMAX)

The position is determined with pixel accuracy (e.g., for 3072 rows, the range is from 0 to 3071 pixels, corresponding to 12-bit resolution). If multiple local maxima exist (e.g., due to intensity saturation), the position of the first detected maximum is output. Intensity saturation can be avoided by using additional sensor features.
Threshold Mode (TRSH)
In this algorithm mode the positions of the left (ππΏ) and right (ππ ) edges of the laser beam profile are identified based on a defined intensity threshold.

The final position of the laser line is calculated as the average:
πTRSH=(ππΏ+ππ )2.Center Of Gravity Mode (COG)
- The left edge position (ππΏ) of the laser beam profile at a given intensity threshold.
- The sum of intensity values (πΌπ): πΌπ = βπΌπ
- The first-order moment (ππ): ππ = β(πΌπ Γ π)

The position value of laser line (center of gravity of beam profile) is then obtained from:
ππΆππΊ=ππΏ+πππΌπ
This algorithm achieves high subpixel precision, and the average intensity of the laser beam can also be calculated by normalizing the intensity sum (πΌπ) by the line width.
FIR Peak Mode (FIRPeak)
This mode calculates the first derivative of the intensity Gaussian curve of the laser beam profile.

The zero-crossing of the first derivative is detected and output with subpixel accuracy. This method requires two threshold values to operate effectively.