A structured light three-dimensional measurement method based on spatial pulse width modulation blue noise dithering
By establishing a multi-depth joint response model and optimizing the binary fringe generation method, the problems of conflict between depth of field and sinusoidality and shared defocus state of multi-frequency fringes in structured light 3D measurement were solved. The phase accuracy and modulation stability in a multi-depth range were achieved, the effective measurement depth was expanded, and phase error and harmonic noise were reduced.
Patent Information
- Application Number
- CN202611529240.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-30
- Publication Date
- 2026-11-24
AI Technical Summary
Existing structured light 3D measurement technology suffers from problems such as conflict between depth of field and sinusoidal intensity, difficulty in sharing the same defocus state among multi-frequency fringes, periodic pseudo-fringes formed by regular spatial pulse width modulation, unsuitability of general two-dimensional jitter for parallel fringes, and lack of multi-depth joint optimization.
By acquiring geometric calibration parameters and projection imaging responses at multiple measurement depths, a multi-depth joint response model is established to determine multi-frequency, multi-step sinusoidal target fringes and spatial coding scale. Initial binary fringes are generated using spatial pulse width modulation with residual propagation and one-dimensional blue noise sorting. The positions of bright and dark pixels are optimized in the multi-depth joint response model to obtain optimized binary fringes.
It achieves phase accuracy and modulation stability across the entire working depth range, reduces phase error and harmonic noise, expands the effective measurement depth range, suppresses periodic artifacts, and maintains the invariance of the number of bright pixels.
Smart Images

Figure CN123154808A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of structured light three-dimensional measurement technology, and in particular to a structured light three-dimensional measurement method based on spatial pulse width modulation blue noise jitter. Background Technology
[0002] Structured light 3D measurement typically involves projecting a fringe pattern with a known phase relationship onto the object being measured using a projection device. A camera then captures the fringe image modulated by the object's surface. The wrapping phase is obtained using a phase-shifting algorithm, and the 3D shape is reconstructed using multi-frequency phase unwrapping and camera-projector triangulation. To improve the reliability and depth accuracy of the unwrapping, multi-frequency, multi-step phase-shifting sinusoidal fringe sequences are often used in engineering, for example, by projecting several phase-shifted sinusoidal images with different fringe periods.
[0003] Digital micromirror device (DMM) projectors can project 1-bit binary images at high speeds, but projecting 8-bit grayscale images typically requires the sequential synthesis of multiple bit planes within a single display cycle, significantly reducing the actual pattern update speed. Existing high-speed solutions usually directly project binary square wave fringes, or first threshold, spread out, or spatially pulse-width modulate the sinusoidal fringes, then rely on the defocusing low-pass effect of the projection lens to weaken higher harmonics, making the object surface pattern approximately sinusoidal. However, existing technologies have the following shortcomings: (1) There is a conflict between depth of field and sinusoidal intensity. Traditional binary square waves require a large defocus to significantly suppress third and fifth harmonics; a large defocus will reduce the effective depth of field and fringe modulation, causing phase deviation, unfolding failure or increased depth noise in the measurement area far from the optimal focal plane.
[0004] (2) It is difficult for multiple frequency fringes to share the same defocus state. The fundamental frequency and harmonic position of different periodic fringes are different, which puts different requirements on the modulation transfer function of the projection system. It is usually difficult to simultaneously take into account the modulation of the highest frequency and the harmonic suppression of the low frequency fringes with a single focus and defocus amount.
[0005] (3) Regular spatial pulse width modulation is prone to forming periodic pseudo-ripples. If bright pixels are arranged in a fixed pattern within a local window, the quantization error will be concentrated at a certain frequency, and the residual harmonics will be transmitted to the phase solution result with the phase shift, forming strip-shaped phase ripples.
[0006] (4) General two-dimensional jitter is not suitable for parallel stripes. Two-dimensional error diffusion will introduce irrelevant textures in the stripe extension direction, causing lateral phase perturbation; at the same time, most existing methods take image grayscale error as the optimization object and do not directly constrain the final phase error and multi-frequency unfolding success rate.
[0007] (5) Lack of multi-depth joint optimization. Existing methods usually design binary patterns for a single focal plane or a single calibration depth, which makes it difficult to guarantee phase accuracy and modulation stability across the entire working depth range.
[0008] Based on this, the present invention proposes a structured light three-dimensional measurement method based on spatial pulse width modulation blue noise jitter. Summary of the Invention
[0009] This invention provides a structured light three-dimensional measurement method based on spatial pulse width modulation blue noise jitter, characterized in that it includes: S10. Obtain geometric calibration parameters and projection imaging responses at multiple measurement depths, and establish a multi-depth joint response model; S20. Based on the multi-depth joint response model, determine the multi-frequency multi-step sinusoidal target stripes and the spatial coding scale corresponding to each stripe frequency; S30. Based on the sinusoidal target stripes and the corresponding spatial coding scale, the initial binary stripes are generated by spatial pulse width modulation through residual propagation and combined with one-dimensional blue noise sorting. S40. Input the initial binary stripes into the multi-depth joint response model, and adjust the positions of bright and dark pixels according to the deviation between the predicted phase and the target phase to obtain optimized binary stripes. S50. Use optimized binary fringe patterns for synchronous projection acquisition and 3D reconstruction.
[0010] The structured light 3D measurement method based on spatial pulse width modulation blue noise jitter, as described above, specifically includes the following sub-steps for obtaining geometric calibration parameters and projection imaging responses at multiple measurement depths, and establishing a multi-depth joint response model: Obtain geometric calibration parameters; Obtain system synchronization parameters and brightness response parameters; Select multiple depth measurement planes and acquire projection imaging responses; Establish a set of multi-depth joint response models.
[0011] The structured light 3D measurement method based on spatial pulse width modulation blue noise jitter described above includes geometric calibration parameters such as projector intrinsic parameters, camera intrinsic parameters, extrinsic parameters between the camera and the projector, projector resolution, camera resolution, working depth range, and calibration plate parameters.
[0012] The structured light 3D measurement method based on spatial pulse width modulation (SPWM) blue noise jitter, as described above, comprises a processing unit that works in conjunction with a binary mode projector, an imaging camera, a synchronization trigger module, and a calibration board. The binary mode projector projects structured light onto the object under test according to the binary pattern sequence output by the processing unit. The imaging camera acquires fringe images modulated on the surface of the object under test. The synchronization trigger module controls the timing relationship between the binary mode projector and the imaging camera. The calibration board is used for offline calibration of the intrinsic and extrinsic parameters of the projector and the camera. The processing unit performs parameter acquisition, target fringe generation, spatial pulse width modulation, one-dimensional blue noise binarization, multi-depth phase domain joint optimization, and 3D point cloud reconstruction.
[0013] The structured light 3D measurement method based on spatial pulse width modulation blue noise jitter, as described above, wherein the forward model represents a mapping relationship that predicts what kind of response image the camera should acquire, starting from the projection pattern, given the known projection pattern and the optical state of the system. The camera response of the binary projection image is calculated based on this mapping relationship, and then noise and residual background are superimposed to calculate the predicted camera response of the binary projection image.
[0014] The structured light three-dimensional measurement method based on spatial pulse width modulation blue noise jitter described above, wherein the multi-frequency multi-step continuous sinusoidal target stripe represents a continuous sinusoidal grayscale stripe sequence generated by multiple different stripe frequencies, each frequency using multi-step phase shift; the spatial coding scale represents the length of the local coding window configured for each stripe frequency, used to divide the continuous sinusoidal target stripe into a local coding window of fixed length along the stripe normal direction, so as to determine the number of bright pixels that should be opened within the window.
[0015] The structured light 3D measurement method based on spatial pulse width modulation blue noise jitter described above includes the following steps: for vertical stripes, the stripe normal direction is horizontal, so the window is divided along the horizontal direction; for horizontal stripes, the stripe normal direction is vertical, so the window is divided along the vertical direction; for diagonal stripes, the window is divided along the pixel axis with the larger stripe normal component.
[0016] As described above, in a structured light 3D measurement method based on spatial pulse width modulation blue noise jitter, when converting continuous sinusoidal target fringes into binary fringes, the number of bright pixels to be activated in each encoding window must be an integer, while the number of bright pixels calculated from the target brightness accumulation value is usually not an integer. Direct rounding will produce brightness quantization error in this window. To avoid losing this error, the remaining brightness error after rounding in the current window is passed to the next window as a residual. It is then merged with the target brightness accumulation value of the next window and rounded again, so that the quantization error accumulates and is compensated between adjacent windows, ensuring that the local average brightness generally approximates the continuous sinusoidal target fringes.
[0017] The present invention also provides a structured light three-dimensional measurement system based on spatial pulse width modulation blue noise jitter, comprising: Multi-depth joint response model module: Obtain geometric calibration parameters and projection imaging responses at multiple measurement depths, and establish a multi-depth joint response model; Sinusoidal target fringe determination module: Based on the multi-depth joint response model, determine the multi-frequency, multi-step sinusoidal target fringes and the spatial coding scale corresponding to each fringe frequency; Initial binary stripe generation module: Based on the sinusoidal target stripe and the corresponding spatial coding scale, the initial binary stripe is generated by spatial pulse width modulation through residual propagation and combined with one-dimensional blue noise sorting. Optimized binary stripe generation module: Input the initial binary stripes into the multi-depth joint response model, and adjust the positions of bright and dark pixels according to the deviation between the predicted phase and the target phase to obtain optimized binary stripes; Projection Acquisition and 3D Reconstruction Module: Uses optimized binary fringe patterns for synchronous projection acquisition and 3D reconstruction.
[0018] The beneficial effects achieved by this invention are as follows: (1) Multi-depth joint response modeling expands the effective measurement depth range. By selecting multiple measurement depth planes within the working depth range, collecting projection imaging responses and establishing projection-camera joint response models at each depth, the binary pattern is optimized for the entire working volume rather than a single focal plane, reducing phase system errors and modulation fluctuations at different depths.
[0019] (2) The combination of residual propagation spatial pulse width modulation and one-dimensional blue noise sorting improves the accuracy of sinusoidal approximation and suppresses periodic artifacts. The residual propagation ensures that the local average brightness is generally close to the continuous sinusoidal target stripe. The one-dimensional blue noise sorting disperses the quantization error to a higher spatial frequency band, reducing the discrete spectral peaks and phase artifacts generated by regular pulses.
[0020] (3) Phase domain joint optimization to directly constrain phase error while keeping the number of bright pixels constant. By adjusting the positions of bright and dark pixels while keeping the number of bright pixels in each coding unit constant, and taking phase error, modulation, harmonics and brightness balance as optimization objectives, the binary stripes can further reduce multi-depth phase error and low-order residual harmonics while retaining the advantage of local brightness conservation.
[0021] (4) The spatial coding scale is configured according to frequency and a common small defocus is used to solve the problem that multiple frequency fringes cannot share the same defocus state. The low frequency fringes use a larger coding scale and the high frequency fringes use a smaller coding scale. All frequencies share the same projection optical state, which helps to balance high frequency modulation and low frequency harmonic suppression with a small amount of common defocus. Attached Figure Description
[0022] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For those skilled in the art, other drawings can be obtained based on these drawings.
[0023] Figure 1 This is a flowchart of a structured light three-dimensional measurement method based on spatial pulse width modulation blue noise jitter provided in Embodiment 1 of this application.
[0024] Figure 2 This is a block diagram of a structured light three-dimensional measurement system based on spatial pulse width modulation blue noise jitter provided in Embodiment 1 of this application.
[0025] Figure 3 This is the target sine curve provided in Embodiment 1 of this application.
[0026] Figure 4 This is the initial binary stripe pattern provided in Embodiment 1 of this application.
[0027] Figure 5 This is the optimized binary stripe pattern provided in Embodiment 1 of this application. Detailed Implementation
[0028] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0029] Example 1 like Figure 1 As shown, Embodiment 1 of this application provides a structured light three-dimensional measurement method based on spatial pulse width modulation blue noise jitter, specifically including the following steps: S10. Obtain geometric calibration parameters and projection imaging responses at multiple measurement depths, and establish a multi-depth joint response model; The method is executed by a processing unit, which works in conjunction with a binary mode projector, an imaging camera, a synchronization trigger module, and a calibration board. The binary mode projector projects structured light onto the object under test according to the binary pattern sequence output by the processing unit; the imaging camera acquires a fringe image modulated by the surface of the object under test; the synchronization trigger module controls the timing relationship between the binary mode projector and the imaging camera; the calibration board is used for offline calibration of the intrinsic and extrinsic parameters of the projector and camera; and the processing unit performs parameter acquisition, target fringe generation, spatial pulse width modulation, one-dimensional blue noise binarization, multi-depth phase domain joint optimization, and three-dimensional point cloud reconstruction.
[0030] The purpose of this step is to obtain the geometric calibration parameters of the projector and camera, as well as system parameters such as synchronization triggering, exposure, pattern stabilization waiting, and brightness response. Within the working depth range, multiple measurement depth planes are selected to collect the projection imaging responses of images of completely black, completely white, beveled edges, narrow bright bars, binary patterns of different frequencies, and candidate fringe images. Based on this, a projection-camera joint response model is established at each depth, ultimately forming a multi-depth joint response model set. This provides a unified geometric benchmark, system timing benchmark, and optical response forward model for subsequent multi-frequency, multi-step sinusoidal target fringe generation, spatial coding scale determination, residual propagation spatial pulse width modulation, one-dimensional blue noise sorting, multi-depth phase domain joint optimization, and online 3D reconstruction. Specifically, it consists of the following sub-steps: S11. Obtain geometric calibration parameters; The geometric calibration parameters represent the geometric imaging relationship formed by the projector, camera, and their relative poses, as well as the effective measurement depth range. Specifically, the projector's intrinsic parameters are obtained from the calibration module. Camera internal parameters External parameters between camera and projector Projector resolution Camera resolution Working depth range And calibration board parameters. Among them, projector internal parameters... This represents the internal imaging model parameters of a binary mode projector, including the projection lens focal length, principal point coordinates, pixel scale, and lens distortion coefficient. Camera intrinsic parameters. This represents the internal imaging model parameters of the imaging camera, including focal length, principal point coordinates, pixel scale, and distortion coefficients. External parameters between the camera and the projector... , This represents the rotation matrix and translation vector between the camera coordinate system and the projector coordinate system, used to establish the correspondence between camera pixel coordinates, projector pixel coordinates, and points in 3D space during triangulation. Projector resolution. This indicates the number of addressable pixels in the horizontal and vertical directions of the binary mode projector, used to determine the coordinate range for generating the binary pattern. Camera resolution. This indicates the number of pixels in the imaging camera in the horizontal and vertical directions, used to determine the effective area of the acquired image and the range for subsequent phase calculation. Working depth range. This indicates the nearest and farthest measurement depths that this method needs to cover. These are used to select multiple measurement depth planes in subsequent steps and to establish a multi-depth joint response model. Calibration plate parameters include calibration plate type, pattern size, grid spacing or center distance, number of corner points, and calibration plate flatness, used for offline calibration of the projector's and camera's internal and external parameters.
[0031] S12. Obtain system synchronization parameters and brightness response parameters; Obtain the binary stable projection frequency from the synchronization trigger module and projection acquisition configuration. Camera exposure time Trigger delay Pattern stabilization waiting time Projected white level Projected black level Camera dark field response Camera white field response saturation threshold Low response threshold and background brightness threshold Among them, the binary stable projection frequency This indicates the highest frequency at which the binary mode projector can stably project patterns in 1-bit pattern mode, measured in Hz or fps. This parameter determines the minimum time interval between each binary pattern during the online phase. Camera exposure time. This represents the exposure duration for each acquisition by the imaging camera, used to ensure sufficient response intensity within the stable window of the binary pattern. Trigger delay. This indicates the delay between the synchronous trigger module sending a trigger signal and the camera actually starting exposure. Pattern stabilization waiting time. This represents the time required for the digital micromirror devices to stabilize, the projected light field to stabilize, and the synchronization timing to align after the binary mode projector switches patterns. Projection white level. This represents the equivalent luminance response of a binary mode projector in bright pixel mode, and the projected black level. This represents the equivalent brightness response of a binary mode projector in dark pixel mode. Both are used to calculate the number of bright pixels that should be opened in a local window during spatial pulse width modulation, and are also used for dark-field correction of subsequent acquired images. Camera dark-field response. This represents the camera's white point response under conditions of no light or complete darkness. This represents the camera's response value under known uniform white field conditions. Saturation threshold. This represents the upper threshold for camera pixels to enter saturation, and the low response threshold. The lower threshold indicating that the pixel response is too low to be reliable, and the background brightness threshold. This represents the brightness threshold used to distinguish between the background area and the effective measured area.
[0032] S13. Select multiple depth measurement planes and acquire projection imaging responses; The working depth range obtained in step S11 Select multiple measurement depth planes within Where j = 1, 2, ..., J, and the plurality of depth planes at least cover the near end, middle, and far end. Preferably, the number J of depth planes can be determined according to the working depth range, projector depth of field, camera depth of field, and measurement accuracy requirements. For example, when the working depth range is large, five or more depth planes can be selected; when the working depth range is small, three depth planes can be selected. Each depth plane can be positioned using a precision displacement stage, calibration plate, or a planar target of known depth.
[0033] For each depth plane A completely black pattern, a completely white pattern, a beveled pattern, a narrow bright bar pattern, binary patterns of different frequencies, and candidate fringe images are projected, and the corresponding response images are acquired by an imaging camera. The completely black pattern is used to obtain the background response and the influence of the projected black level; the completely white pattern is used to obtain the brightness response and the camera white field response; the beveled pattern is used to estimate the projection-camera joint point spread function or modulation transfer function; the narrow bright bar pattern is used to estimate the local impulse response; the binary patterns of different frequencies are used to analyze the modulation transfer function under different fringe periods; and the candidate fringe images are used to verify the response of the initial binary fringes under the real optical system.
[0034] Based on the acquisition results, the processing unit obtains the projection-camera joint point spread function or modulation transfer function at each depth and field of view position, and establishes a forward model from the binary pattern to the camera response image. The forward model represents the mapping relationship between the known projection pattern and the system's optical state, predicting what kind of response image the camera should acquire starting from the projection pattern. Based on this mapping relationship, the camera response of the binary projection image is calculated, and then noise and residual background are superimposed to calculate the predicted camera response of the binary projection image. Specifically, for the binary projection image at the m-th fringe frequency and the k-th phase shift step... In depth The predicted camera response at a location can be expressed as: ,in, The binary projection of the m-th frequency and k-th phase shift step in the depth plane Predicted camera response at the location; Depth plane The projection-camera joint response model includes projection defocus, imaging blur, sampling, reflection, and brightness response. The joint model can be obtained using convolution kernels, block convolution kernels, measured lookup tables, or hardware-in-the-loop measurements. Represents the binary projection image to be generated or optimized; Represents the forward model; Indicates depth Noise and residual background at the location. For any given binary projection map Then you can use Predict its depth The camera response that should be generated; then superimposed with the actual noise and residual background. This yields the binary projection image of the m-th frequency and k-th phase shift step at depth. Predicted camera response at the location.
[0035] S14. Establish a set of multi-depth joint response models; The joint response models obtained from each depth plane are stored in association according to their depth indices to establish a multi-depth joint response model set. Specifically, the formula is as follows: This represents the set of multi-depth joint response models, and the set of geometric calibration parameters is denoted as: ,in, It is a set of multi-depth joint response models. For the j-th measurement depth Projection-camera joint response model at the location, Let J be the j-th measurement depth plane, J be the total number of measurement depth planes, and j be the index of the depth plane; For the set of geometric calibration parameters, This is the projector's internal parameter. For camera internal parameters, For the rotation matrix between the camera and the projector, Let be the translation vector between the camera and the projector. These refer to the projector's horizontal and vertical resolutions, respectively. These refer to the camera's horizontal and vertical resolutions, respectively. These represent the near and far ends of the working depth range, respectively.
[0036] S20. Based on the multi-depth joint response model, determine the multi-frequency multi-step sinusoidal target stripes and the spatial coding scale corresponding to each stripe frequency; Based on the multi-depth joint response model set established in step S10 and geometric calibration parameter set By combining parameters such as the number of frequencies, fringe period, phase shift steps, fringe angle, DC component, and amplitude in the system configuration, multi-frequency, multi-step continuous sinusoidal target fringes are generated, and a spatial coding scale matching its period, fundamental frequency, joint response characteristics, and allowable residual harmonic ratio is configured for each fringe frequency.
[0037] The multi-frequency, multi-step continuous sinusoidal target fringe represents a sequence of continuous sinusoidal grayscale fringees generated by multiple different fringe frequencies, each frequency using multi-step phase shifting, serving as the target for subsequent spatial pulse width modulation and binarization. The spatial coding scale represents the length of the local coding window configured for each fringe frequency, used to divide the continuous sinusoidal target fringe into fixed-length local coding windows along the fringe normal direction to determine the number of bright pixels to be enabled within the window. Subsequent steps are performed under the same target fringe parameter set and the same spatial coding scale to avoid insufficient local brightness approximation capability, decreased high-frequency fringe modulation, or phase unwrapping failure due to inconsistent target fringe or mismatched coding scales. Specifically, it is divided into the following sub-steps: S21. Determine the multi-frequency, multi-step continuous sinusoidal target fringes and extract the target phase and target envelope phase; Obtain the number of frequencies M and the m-th fringe period from the system configuration. Phase shift steps N, phase shift number The angle of the m-th fringe The DC component a and the amplitude b. Here, the number of frequencies M represents the number of fringe frequencies included in this multi-frequency, multi-step measurement sequence, typically three or more, to obtain the target wrapping phase through multi-frequency phase unfolding; the m-th fringe period... The m-th frequency represents the fringe spatial period, in projected pixels; the phase shift step number N represents the number of phase shift steps used for each frequency, typically three, four, or more; the phase shift number k identifies the current phase shift step; the m-th fringe angle... The direction of the stripe at the m-th frequency can be horizontal, vertical, or diagonal; the DC component a and amplitude b are used to control the brightness and contrast of the sinusoidal stripes, and their values should ensure that the number of bright pixels is controllable after binarization and that the camera response is not saturated.
[0038] For each fringe period, phase shift step, and fringe angle, continuous sinusoidal target fringes are generated in the projected pixel coordinates. Specifically, the formula is: in, This represents a continuous sinusoidal target fringe at the m-th frequency and the k-th phase shift step, such as... Figure 3 The target sine wave is shown below. This represents the m-th frequency and k-th phase shift step in the projected pixel coordinates. Target brightness at the location; This represents the fringe period corresponding to the m-th frequency; N represents the phase shift step number; k represents the phase shift number. denoted by , where 'a' represents the fringe angle at the m-th frequency; 'a' represents the DC component; and 'b' represents the amplitude. Represents the equivalent coordinates along the fringe normal direction. Using the pixel center coordinates (x+0.5, y+0.5) ensures that the fringe angle, phase shift direction, and binary fringe definition remain consistent.
[0039] The target stripe is a continuous grayscale sinusoidal stripe, which serves as the target for subsequent spatial pulse width modulation and binarization. This target stripe is not directly projected; instead, it is used to determine the number of bright pixels to be activated within each local coding window and the target phase, by changing... , Using k, target fringe sequences with different frequencies, directions, and phase shift steps can be generated. Furthermore, the phase information of the target fringes is implicit within the cosine function, making direct phase error comparison difficult. Therefore, based on the above formula, the target phase is extracted separately, specifically using the formula: The target phase is represented by the formula: Indicates the target package phase, where, This represents the target phase at the m-th frequency and the k-th phase shift step. This represents the target package phase at the m-th frequency; Indicates to Modulo operation is used to limit the phase within one period. Target phase. This is the ideal phase value without modulus, and its value can exceed [a certain value] as the spatial coordinates and phase shift step change. It can also be a negative value; the target wraps the phase. It is the principal phase value of the target fringe at the m-th frequency. The former is used for phase error comparison at the k-th step, and the latter is used for wrapping phase domain comparison at the m-th frequency.
[0040] S22. Configure spatial coding scales for each fringe frequency; For each fringe frequency m, configure the spatial coding scale. Low-frequency stripes use larger [sizes / sizes]. To obtain more local duty cycle levels and improve the ability of local average brightness to approximate continuous sinusoidal targets; high-frequency stripes use smaller... Use when necessary A pixel-level pulse density mode of 1 is used to avoid local windows spanning multiple fringe periods and thus destroying high-frequency phase information.
[0041] The spatial coding scale Simultaneously affected by the stripe period The target fundamental frequency, the multi-depth joint response model H, and the allowable residual harmonic ratio constraint are used to determine... upper limit And satisfy: ,in, This represents the maximum local coding window length allowed by the current projector resolution, fringe period, and joint response model. The value of can be determined through offline experiments. For example, for low-frequency fringes, we can let It is equal to a fraction of the fringe period, so that each fringe period contains multiple coding windows, thus enabling the representation of local brightness variations; for high-frequency fringes, it can be made =1 or =2, so that bright pixels are scattered at the pixel level, avoiding the formation of regular pulses.
[0042] S23, Organize multi-frequency, multi-step target stripe sequences; A multi-frequency, multi-step target stripe sequence is organized according to the number of frequencies M and the number of phase shift steps N. Preferably, the frequencies are arranged in order from low to high frequency, and each frequency is numbered according to its phase shift. Arrangement. For each frequency, generate N consecutive sinusoidal target images. The multi-frequency, multi-step target fringe sequence contains a total of M×N target images. The set of multi-frequency, multi-step target fringe parameters obtained in this step is denoted as: When the fringe frequency, phase shift step number, fringe angle, DC component, amplitude, or spatial coding scale changes, this step is re-executed to update the multi-frequency multi-step target fringe parameter set, so that subsequent binarization and multi-depth phase domain joint optimization adopt the new target fringe parameters.
[0043] S30. Based on the sinusoidal target stripes and the corresponding spatial coding scale, the initial binary stripes are generated by spatial pulse width modulation through residual propagation and combined with one-dimensional blue noise sorting. Based on the multi-frequency, multi-step target fringe parameter set T obtained in step S20, each continuous sinusoidal target fringe... Divide along the normal direction of the stripes into sections of length [length missing]. The local coding window is used to calculate the number of bright pixels to be turned on within each coding window through spatial pulse width modulation of residual propagation. This is then combined with a one-dimensional blue noise threshold sequence to determine the specific location of the bright pixels, thereby generating initial binary fringes and ultimately forming an initial binary fringes set. Specifically, this is divided into the following sub-steps: S31. Divide the local encoding window; Along the fringe normal direction, the continuous sinusoidal target fringe at the m-th frequency and k-th phase shift is... Divided into lengths of Local encoding window , where i represents the window index. The fringe normal direction is determined according to the fringe angle. Confirmed. For vertical stripes, the stripe normal direction is horizontal, therefore windows are divided along the horizontal direction; for horizontal stripes, the stripe normal direction is vertical, therefore windows are divided along the vertical direction; for diagonal stripes, windows are divided along the pixel axis with the larger stripe normal component. Each window contains... Each projected pixel. If the target fringe boundary is not divisible, the last window can retain the actual remaining pixels and process them according to the actual length in subsequent calculations.
[0044] In this step, the length of the local encoding window Derived from step S22, by dividing the continuous sinusoidal target stripes into local coding windows, the number of bright pixels can be independently determined within each window, allowing the local duty cycle of the binary pattern to vary with the local brightness of the continuous sinusoidal target stripes. Compared to global thresholding or fixed-rule pulse width modulation, local coding windows can better adapt to the brightness gradient of sinusoidal stripes, while also providing a window range for subsequent one-dimensional blue noise sorting.
[0045] S32. Calculate the number of bright pixels in the local coding window using spatial pulse width modulation with residual propagation; When converting continuous sinusoidal target fringes into binary fringes, the number of bright pixels to be enabled in each encoding window must be an integer, while the number of bright pixels calculated from the accumulated target brightness value is usually not an integer. Direct rounding will produce brightness quantization error in that window. To avoid losing this error, the remaining brightness error after rounding in the current window is passed to the next window as a residual. It is then merged with the accumulated target brightness value in the next window and rounded again. This allows the quantization error to accumulate and be compensated between adjacent windows, ensuring that the local average brightness generally approximates the continuous sinusoidal target fringes.
[0046] Along the fringe normal direction, the continuous sinusoidal target fringe is divided into sections of length [missing information]. The local encoding window determines the number of bright pixels to be enabled within each window based on the accumulated value of the target brightness. This means the spatial distribution density of bright pixels within the window is used to equivalently represent the local average brightness of that window, thus approximating the local brightness distribution of continuous sinusoidal target fringes under binary projection conditions. Combining residual propagation further reduces the quantization error caused by integer rounding. Specifically, the formula is: Accumulate the target brightness for each window, where This represents the cumulative value of the target brightness. Represents a local encoding window. This represents the projection pixel coordinates of the m-th frequency and the k-th phase shift step. The target brightness at that location.
[0047] By combining the residual from the previous window, the number of bright pixels that the current window should open is calculated, specifically using the formula: Calculate the number of bright pixels that the current window should open using the formula: Update the residuals, among which, This represents the number of bright pixels that should be turned on within the i-th encoding window at the k-th phase shift step of the m-th frequency; This represents the cumulative brightness value of the continuous sinusoidal target stripes within the window; This represents the quantization residual from the previous window; Indicates the projected white level; Indicates the projected black level; This indicates the spatial coding scale corresponding to the frequency; clip indicates that the value is restricted to 0 to... Between; round indicates rounding.
[0048] In this step, the projected white level... and projection black level Derived from step S12, used to convert the target brightness accumulation value into the number of bright pixels. Residual The initial value is set to zero. After each window is calculated, the residual is passed to the next window, so that the brightness error that the current window fails to represent is compensated by the subsequent window. Thus, the proportion of locally bright pixels approximates the local average value of the continuous sinusoidal target stripes, and the quantization residual is conserved between adjacent windows. The clip operation ensures that the number of bright pixels does not exceed the window length. The number of bright pixels is not less than zero; the round operation ensures that the number of bright pixels is an integer. If the target brightness within the window is high, the calculated number of bright pixels is large; if the target brightness is low, the number of bright pixels is small. Through this step, the number of bright pixels for each encoding window is obtained. This will serve as the basis for subsequent one-dimensional blue noise sorting and keeping the number of bright pixels constant.
[0049] S33. Sort the pixels in the window according to the one-dimensional blue noise threshold sequence to generate initial binary stripes; A one-dimensional blue noise threshold sequence is generated for each frequency and each phase shift step. This one-dimensional blue noise threshold sequence represents a set of thresholds with blue noise spectral characteristics arranged along the fringe normal direction according to the projected pixel coordinates, denoted as... Where m represents the frequency of the m-th fringe, k represents the k-th phase shift step, and (x, y) represents the coordinates of the projected pixel. Its spectrum has lower energy in the low-frequency region and higher energy in the high-frequency region, ensuring that when selecting bright pixels according to this threshold from small to large, the positions of bright pixels are locally dispersed as evenly as possible, avoiding the formation of regular, equally spaced pulses or periodic clusters. The method for obtaining this is as follows: for vertical fringes along the horizontal direction, for horizontal fringes along the vertical direction, and for diagonal fringes along the pixel axis with a larger fringe normal component, existing blue noise generation methods such as the void-and-cluster algorithm, error diffusion method, simulated annealing method, high-pass white noise filtering method, or blue noise mask generation library are used to generate a one-dimensional blue noise sequence, which is then mapped to the threshold on the projected pixel coordinates according to the jitter direction coordinates. Different frequencies can generate their own one-dimensional blue noise threshold sequences. Different phase shift steps can use different blue noise seeds or perform different cyclic shifts on the same blue noise sequence to avoid introducing a fixed phase bias by only shifting the same binary image by integer pixels.
[0050] For the current encoding window Sort the pixels within the window in ascending order according to the one-dimensional blue noise threshold, and select the top ones. Each position is a bright pixel; specifically, the formula is: Generate initial binary stripes, where, The initial binary fringe at the m-th frequency and k-th phase shift step is represented as follows: Figure 2 The initial binary fringe pattern is shown below. This represents the binary state of the initial binary fringe at the projected pixel coordinates (x, y) for the m-th frequency and k-th phase shift step. This represents the corresponding one-dimensional blue noise threshold; rank represents the sorting number within the window according to the threshold from smallest to largest. The number of bright pixels in the window is derived from step S32. In the current encoding window... Within a given window, if the one-dimensional blue noise threshold sorting number of a pixel is not greater than the number of bright pixels in that window... If the pixel is bright, then set it to bright pixel 1; otherwise, set it to dark pixel 0.
[0051] Compared to white noise, blue noise can prevent bright pixels from becoming excessively clustered in certain areas; compared to regularly spaced pulses, blue noise can prevent the formation of discrete spectral peaks at specific frequencies. Therefore, using one-dimensional blue noise sorting to determine the position of bright pixels can disperse quantization errors to a higher spatial frequency band and reduce phase artifacts caused by regular pulses.
[0052] S34. Generate complementary binary image pairs; To eliminate background light, projected black level, and some brightness imbalances, complementary binary fringes are generated for each initial binary fringe. Specifically, the formula is: Generate complementary binary fringes, where Represents complementary binary fringes. Indicating the initial stripes, during online projection, they are projected separately. and The two acquired images are then subtracted to eliminate the effects of background light and projected black level. The sum of the number of bright pixels in the complementary binary fringes and the number of bright pixels in the initial binary fringes equals the window length. Therefore, the local brightness conservation condition is still satisfied.
[0053] S35, Output the initial set of binary stripes.
[0054] All initial binary fringes generated in this step are associated and stored according to frequency and phase shift index to establish an initial binary fringe set. Specifically, the formula is used: This represents the initial binary stripe set, and the number of bright pixels in each encoding window. One-dimensional blue noise threshold sequence Spatial coding scale and optional complementary binary stripes The parameters are stored together in the initial binary fringe parameter set and provided for use in step S40. When the fringe frequency, phase shift step number, fringe angle, spatial coding scale, projected white level, projected black level, or blue noise seed changes, this step is re-executed to update the initial binary fringe set so that subsequent multi-depth phase domain joint optimization uses the new initial binary fringes.
[0055] S40. Input the initial binary stripes into the multi-depth joint response model, and adjust the positions of bright and dark pixels according to the deviation between the predicted phase and the target phase to obtain optimized binary stripes. The initial binary stripe set generated by S30 Each initial binary stripe in Input the multi-depth joint response model set H established by S10, and predict its performance in each measurement depth plane. The camera response under each phase shift step is calculated, and the predicted phase and predicted modulation are calculated according to the N-step phase shift formula; the predicted phase is compared with the target phase determined by S20. In comparison, a multi-depth phase domain joint optimization loss is constructed, incorporating phase error, modulation lower limit penalty, harmonic energy penalty, and brightness balance; while maintaining the number of bright pixels in each coding window determined by S30. Under the condition of no change, the positions of bright and dark pixels are adjusted to reduce the total loss, and finally an optimized binary stripe set is obtained. The specific steps are as follows: S41. Based on the multi-depth joint response model, calculate the predicted response, predicted phase, and predicted modulation. Using the multi-depth joint response model set H established by S10, forward prediction is performed on the current candidate binary stripe at each depth to obtain the predicted camera response at each frequency and each phase shift step. Then, the predicted phase and predicted modulation are calculated according to the N-step phase shift formula to provide a basis for subsequent loss calculation.
[0056] The N-step phase shift formula is an existing phase shift calculation method. It projects N patterns with phase shifts of 2πk / N onto the same frequency stripe, and performs sine and cosine weighted summation on the acquisition response of each step. Then, it performs phase wrapping calculation through four-quadrant arctangent calculation and amplitude modulation calculation, which is used for phase extraction in structured light three-dimensional measurement.
[0057] Specifically, the processing unit starts from the initial binary stripe set. Extract the initial binary fringes at the m-th frequency and k-th phase shift step. Input it into the projection-camera joint response model at each measurement depth in the multi-depth joint response model set H. According to the formula in S13, we get: ,in This represents the predicted camera response. For each depth... For each frequency m, the processing unit will predict the response over N phase shift steps. The predicted wrap-around phase and predicted modulation are calculated by combining the N-step phase shift formula. Specifically, the response of each phase shift is compared with... and Multiply and sum the results, then use the arctangent function to obtain the predicted wrap-around phase. The predicted modulation index is obtained through amplitude calculation. The predicted wrapping phase represents the principal phase value obtained by phase shifting at that frequency at that depth; the predicted modulation index represents the fringe contrast at that frequency at that depth. The parameters N, k, m, etc., used in the above calculations are all derived from the multi-frequency, multi-step target fringe parameter set T of S20.
[0058] Simultaneously, the processing unit obtains the target package phase from S20. Target package phase It is the principal phase value after taking the target phase modulo 2π, which is calculated in S20 and stored in the multi-frequency multistep target fringe parameter set T.
[0059] S42. Construct a joint optimization loss function across multiple phase domains; The deviation between the predicted wrap phase and the target wrap phase, whether the predicted modulation is sufficient, whether the harmonic energy is too high, and whether the average brightness of each phase shift is balanced are all incorporated into a total loss function, so that the subsequent adjustment of the bright and dark pixel positions has a clear optimization target. The total loss includes the following four items: (1) Phase error term: This loss term measures the deviation between the predicted phase and the target phase at various depths, frequencies, and phase shifts. Specifically, it is represented by the complex phase distance, i.e., calculated... and Using the squared Euclidean distance between them, and employing the complex phase distance, can avoid large errors in the wrapped phase at the boundary between −π and π. The predicted wrapped phase used in this loss term The phase of the target package originates from S41, and the phase error at each depth and frequency is multiplied by a weight. The weights are used to adjust the importance of different depths and frequencies. Preferably, proximal, intermediate, and distal depths are all covered, and the worst depth and highest frequency are given higher weights. Determined based on actual calibration results.
[0060] (2) Modulation lower limit penalty term: This loss term is used to prevent the predicted modulation from being too low at certain depths or frequencies, which would lead to unreliable subsequent phase calculations. The processing unit obtains the predicted modulation for each depth and frequency from S41. And set a lower limit for the adjustment system. When the forecast adjustment is lower than When a penalty is imposed, the predicted adjustment mechanism is not lower than [a certain threshold]. At that time, the punishment is zero, and the lower limit of the adjustment system is set. It is determined based on the statistical results of each depth modulation collected in S10.
[0061] (3) Harmonic energy penalty term: This loss term is used to suppress low-order residual harmonics such as the third and fifth orders in binary fringes. The processing unit calculates the energy of low-order harmonics in the spectrum of the current candidate binary fringe at each depth based on the predicted response of the fringe at each depth, and applies a penalty to this energy. The harmonic energy penalty term reduces the discrete spectral peaks generated by regular pulses and reduces phase ripple.
[0062] (4) Average brightness balance term for each phase shift step: This loss term is used to avoid excessive differences in average brightness between phase shift steps at the same frequency, thereby reducing DC drift in phase shift calculation. The processing unit calculates the average brightness of the binary fringes for each phase shift step. and the target average brightness The comparison is performed, and a penalty is applied to the square of the deviation. The target average brightness... It is determined based on the DC component a and amplitude b in S20.
[0063] The last three of the above four losses are multiplied by weighting coefficients, and then summed with the phase error term to obtain the total loss. The weighting coefficients can be preset or adjusted based on actual system calibration and experimental experience. For example, for depths where modulation is easily insufficient, the weight of the modulation lower limit penalty term can be increased; for frequencies with significant harmonics, the weight of the harmonic energy penalty term can be increased; for cases with large differences in phase shift brightness, the weight of the phase shift average brightness balance term can be increased. Specifically, the formula is: Calculate the total loss, where, The total loss represents the current candidate binary fringe set B; j, m, k are the depth plane index, frequency index, and phase shift step index, respectively; J, M, N are the total number of depth planes, the number of frequencies, and the number of phase shift steps, respectively. The weights of the phase errors at each depth and frequency; Indicates the predicted phase; Indicates the corresponding target phase; Indicates the lower limit of modulation; Indicates the forecasting and adjustment mechanism; This represents the harmonic energy of the m-th frequency; This represents the average brightness of the binary fringe at the k-th phase shift step; Indicates the average brightness of the target; These represent the weighting coefficients for modulation penalty, harmonic penalty, and brightness balance penalty, respectively. In this formula, the first term is the phase error term, the second term is the modulation lower limit penalty term, the third term is the harmonic energy penalty term, and the fourth term is the average brightness balance term for each phase shift.
[0064] S43. Reduce the total loss while keeping the number of bright pixels in each coding unit constant, and output optimized binary stripes. Without violating the local brightness conservation condition determined by S30, by adjusting the specific positions of bright and dark pixels, the total loss constructed by S42 is reduced, thereby obtaining binary fringes with smaller phase error, more sufficient modulation, lower harmonics, and more balanced brightness.
[0065] Specifically, the processing unit obtains the number of bright pixels in each encoding window from S30. During the adjustment process, the number of bright pixels in each window remains unchanged. That is, bright pixels and dark pixels in a certain window can only be swapped, or they can be swapped in pairs across windows. The number of bright pixels in each window remains unchanged, and the number of bright pixels in any window cannot be increased or decreased.
[0066] The adjustment method can be one or more of the following: local bright and dark pixel swapping, that is, swapping the positions of a pair of bright and dark pixels within the same encoding window; cross-window pair swapping, that is, swapping bright and dark pixels between different windows, but keeping the number of bright pixels in each window unchanged; block search, that is, dividing the binary stripes into multiple blocks and adjusting the position of each block; frequency-wise search, that is, optimizing the binary stripes corresponding to each frequency in order of frequency; hardware-in-the-loop residual correction, that is, correcting the positions of bright and dark pixels according to the residual under actual projection acquisition conditions.
[0067] After each adjustment, the processing unit re-inputs the current binary fringe into the multi-depth joint response model set H, recalculates the predicted response, predicted phase, and predicted modulation according to S41, and recalculates the total loss according to S42. If the total loss decreases, the bright and dark pixel positions are adjusted for this round; if the total loss does not decrease, it reverts to the state before adjustment. This sub-step is repeated until the total loss converges or the preset maximum number of iterations is reached. The maximum number of iterations is set according to the processing unit's computing power and real-time requirements; the convergence condition can be set as the change in total loss being less than a preset threshold, or the total loss no longer decreasing for several consecutive rounds.
[0068] Once the optimization converges, the processing unit outputs an optimized binary fringe set, specifically, using the formula: Describes the optimized binary stripe set, where Represents an optimized set of binary stripes; The optimized binary fringe representing the m-th frequency and k-th phase shift step is as follows: Figure 3 The optimized binary fringe pattern is shown below; M represents the number of frequencies; N represents the number of phase shift steps; m represents the frequency index; and k represents the phase shift step index.
[0069] S50. Use optimized binary fringe patterns for synchronous projection acquisition and 3D reconstruction; In this step, the processing unit loads the optimized binary fringe pattern obtained in the previous step into the binary mode projector in a preset order. The synchronization trigger module controls the projector and imaging camera to work synchronously based on the previously acquired binary stable projection frequency, camera exposure time, trigger delay, and pattern stabilization waiting time. Specifically, after the projector switches to the optimized binary pattern corresponding to the current frequency and current phase shift step, it waits for the pattern stabilization waiting time to allow the binary pattern to enter the stabilization window; within the stabilization window, a camera trigger signal is generated, and after the trigger delay, the camera exposes according to the set exposure time, acquiring the original image. All optimized binary patterns are traversed sequentially according to all frequencies and all phase shift steps. If complementary binary pattern pairs have been generated previously, the complementary patterns are synchronously acquired and subtracted to eliminate the influence of background light and projection black level.
[0070] After acquisition, the processing unit performs dark field correction on the acquired image based on the previously obtained camera dark field response, camera white field response, projected white level, and projected black level, and removes saturated, shadowed, and low-response areas. Subsequently, for each frequency, the wrapped phase and modulation of the corrected image at each phase shift step are calculated using the aforementioned multi-step phase shift solution method. After obtaining the wrapped phase at each frequency, multi-frequency phase unfolding is performed stepwise towards higher frequencies using the previously determined fringe periods as a reference, to obtain the unwrapped unfolded phase.
[0071] Finally, the processing unit uses the previously acquired projector intrinsic parameters, camera intrinsic parameters, and extrinsic parameters between the camera and projector to convert the unfolded phase into projector pixel coordinates, and forms corresponding point pairs with the camera pixel coordinates. The 3D coordinates are then recovered through camera-projector triangulation. After traversing all valid pixels, a 3D point cloud is output, completing a multi-frequency, multi-step high-speed binary structured light 3D measurement.
[0072] Example 2 like Figure 2 As shown, Embodiment 2 of this application provides a structured light three-dimensional measurement method based on spatial pulse width modulation blue noise jitter, including: Multi-depth joint response model module 1: Obtain geometric calibration parameters and projection imaging responses at multiple measurement depths, and establish a multi-depth joint response model; Sinusoidal Target Fringe Determination Module 2: Based on the multi-depth joint response model, determine the multi-frequency, multi-step sinusoidal target fringes and the spatial coding scale corresponding to each fringe frequency; Initial binary stripe generation module 3: Based on the sinusoidal target stripes and the corresponding spatial coding scale, the initial binary stripes are generated by spatial pulse width modulation through residual propagation and combined with one-dimensional blue noise sorting. Optimized binary stripe generation module 4: Input the initial binary stripes into the multi-depth joint response model, and adjust the positions of bright and dark pixels according to the deviation between the predicted phase and the target phase to obtain optimized binary stripes; Projection Acquisition and 3D Reconstruction Module 5: Synchronous projection acquisition and 3D reconstruction using optimized binary fringe patterns.
[0073] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made on the basis of the technical solution of the present invention should be included within the scope of protection of the present invention.
Claims
1. A structured light three-dimensional measurement method based on spatial pulse width modulation blue noise jitter, characterized in that, include: S10. Obtain geometric calibration parameters and projection imaging responses at multiple measurement depths, and establish a multi-depth joint response model; S20. Based on the multi-depth joint response model, determine the multi-frequency multi-step sinusoidal target stripes and the spatial coding scale corresponding to each stripe frequency; S30. Based on the sinusoidal target stripes and the corresponding spatial coding scale, the initial binary stripes are generated by spatial pulse width modulation through residual propagation and combined with one-dimensional blue noise sorting. S40. Input the initial binary stripes into the multi-depth joint response model, and adjust the positions of bright and dark pixels according to the deviation between the predicted phase and the target phase to obtain optimized binary stripes. S50. Use optimized binary fringe patterns for synchronous projection acquisition and 3D reconstruction.
2. The structured light three-dimensional measurement method based on spatial pulse width modulation blue noise jitter according to claim 1, characterized in that, The method for obtaining geometric calibration parameters and projection imaging responses at multiple measurement depths, and establishing a multi-depth joint response model, specifically includes the following sub-steps: Obtain geometric calibration parameters; Obtain system synchronization parameters and brightness response parameters; Select multiple depth measurement planes and acquire projection imaging responses; Establish a set of multi-depth joint response models.
3. The structured light three-dimensional measurement method based on spatial pulse width modulation blue noise jitter according to claim 2, characterized in that, The geometric calibration parameters include projector intrinsic parameters, camera intrinsic parameters, extrinsic parameters between the camera and the projector, projector resolution, camera resolution, working depth range, and calibration plate parameters.
4. The structured light three-dimensional measurement method based on spatial pulse width modulation blue noise jitter according to claim 2, characterized in that, The processing unit works in conjunction with a binary mode projector, an imaging camera, a synchronization trigger module, and a calibration board. The binary mode projector projects structured light onto the object under test according to the binary pattern sequence output by the processing unit. The imaging camera acquires fringe images modulated on the surface of the object under test. The synchronization trigger module controls the timing relationship between the binary mode projector and the imaging camera. The calibration board is used for offline calibration of the intrinsic and extrinsic parameters of the projector and the camera. The processing unit performs parameter acquisition, target fringe generation, spatial pulse width modulation, one-dimensional blue noise binarization, multi-depth phase domain joint optimization, and three-dimensional point cloud reconstruction.
5. The structured light three-dimensional measurement method based on spatial pulse width modulation blue noise jitter according to claim 2, characterized in that, The forward model represents a mapping relationship that predicts what kind of response image the camera should acquire, starting from the projection pattern and the optical state of the system, given the known projection pattern and system optical state. The camera response of the binary projection image is calculated based on this mapping relationship, and then noise and residual background are superimposed to calculate the predicted camera response of the binary projection image.
6. The structured light three-dimensional measurement method based on spatial pulse width modulation blue noise jitter according to claim 1, characterized in that, The multi-frequency, multi-step continuous sinusoidal target stripe represents a sequence of continuous sinusoidal grayscale stripes generated by multiple different stripe frequencies, each frequency using multi-step phase shifting; the spatial coding scale represents the length of the local coding window configured for each stripe frequency, used to divide the continuous sinusoidal target stripe into local coding windows of fixed length along the stripe normal direction, so as to determine the number of bright pixels that should be opened within the window.
7. The structured light three-dimensional measurement method based on spatial pulse width modulation blue noise jitter according to claim 1, characterized in that, For vertical stripes, the stripe normal direction is horizontal, so the window is divided along the horizontal direction; for horizontal stripes, the stripe normal direction is vertical, so the window is divided along the vertical direction; for diagonal stripes, the window is divided along the pixel axis with the larger stripe normal component.
8. The structured light three-dimensional measurement method based on spatial pulse width modulation blue noise jitter according to claim 1, characterized in that, When converting continuous sinusoidal target fringes into binary fringes, the number of bright pixels to be enabled in each encoding window must be an integer, while the number of bright pixels calculated from the accumulated target brightness value is usually not an integer. Direct rounding will produce brightness quantization error in that window. To avoid losing this error, the remaining brightness error after rounding in the current window is passed to the next window as a residual. It is then merged with the accumulated target brightness value in the next window and rounded again. This allows the quantization error to accumulate and be compensated between adjacent windows, ensuring that the local average brightness generally approximates the continuous sinusoidal target fringes.
9. A structured light three-dimensional measurement system based on spatial pulse width modulation blue noise jitter, characterized in that, include: Multi-depth joint response model module: Obtain geometric calibration parameters and projection imaging responses at multiple measurement depths, and establish a multi-depth joint response model; Sinusoidal target fringe determination module: Based on the multi-depth joint response model, determine the multi-frequency, multi-step sinusoidal target fringes and the spatial coding scale corresponding to each fringe frequency; Initial binary stripe generation module: Based on the sinusoidal target stripe and the corresponding spatial coding scale, the initial binary stripe is generated by spatial pulse width modulation through residual propagation and combined with one-dimensional blue noise sorting. Optimized binary stripe generation module: Input the initial binary stripes into the multi-depth joint response model, and adjust the positions of bright and dark pixels according to the deviation between the predicted phase and the target phase to obtain optimized binary stripes; Projection Acquisition and 3D Reconstruction Module: Uses optimized binary fringe patterns for synchronous projection acquisition and 3D reconstruction.
