A multi-color projection synchronous acquisition phase recovery and decoding method
By employing a multi-projection architecture and interpolation completion technology, the challenges of spectral crosstalk and phase calculation in multi-view structured light imaging are solved, achieving efficient multi-color synchronous acquisition, phase recovery, and decoding. This improves the accuracy and speed of 3D reconstruction and is applicable to various computing platforms.
Patent Information
- Application Number
- CN202611474172.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-21
- Publication Date
- 2026-11-27
AI Technical Summary
In existing technologies, multi-view structured light imaging schemes suffer from low imaging frame rates, making it difficult to meet the needs of dynamic object scanning and high-speed online industrial inspection. Furthermore, they lack effective methods for multi-color synchronous acquisition, phase recovery, and decoding, resulting in difficulties in splitting the images output by the color camera and calculating the phase.
A multi-projection architecture is adopted, which consists of a system of three projectors and one camera. Narrowband light sources and filters with different center wavelengths are configured. By combining interpolation completion and filtering to suppress false colors, cross-band crosstalk noise is eliminated step by step. Wrap phase solution and absolute phase unwrapping are performed to generate a three-dimensional mesh model.
It achieves high-precision 3D reconstruction, eliminates the influence of spectral crosstalk, improves imaging speed, is compatible with all conventional color CMOS cameras on the market, has strong hardware adaptability, low cost, is suitable for multiple computing platforms, and realizes fully closed-loop automated processing.
Smart Images

Figure CN123181731A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of structured light three-dimensional measurement technology, and in particular to a method for phase recovery and decoding of multi-color projection synchronous acquisition. Background Technology
[0002] Structured light 3D imaging technology has become one of the mainstream 2D and 3D reconstruction technologies in fields such as industrial inspection, reverse engineering, and biomedicine due to its advantages such as high measurement accuracy, non-contact measurement, and strong scene adaptability. Its core principle is to project an coded structured light stripe pattern onto the surface of the object being measured using a projection device, and then use an imaging device to acquire the deformed stripe image after it has been highly modulated by the object's surface. Finally, by combining phase calculation technology and triangulation principles, the 3D topography information of the object's surface can be recovered.
[0003] In existing technologies, multi-view structured light imaging schemes are widely used to overcome the imaging occlusion blind spots inherent in single projection perspectives. Currently, such schemes mainly employ a time-division acquisition mode, which utilizes multiple projectors paired with monochrome or black-and-white cameras, controlling each projector to project structured light patterns sequentially over time, completing image acquisition and subsequent 3D reconstruction for each perspective in a time-division manner. However, the time-division acquisition mode has inherent drawbacks: multiple sequential shots significantly increase the total time for image acquisition and data processing, resulting in a low imaging frame rate, making it difficult to meet the time-sensitive requirements of applications such as dynamic object scanning and high-speed online industrial inspection.
[0004] To address the low efficiency of time-division acquisition, those skilled in the art have attempted to develop synchronous imaging schemes to improve imaging speed through simultaneous multi-projection and single-exposure acquisition. However, this approach faces several technical hurdles in practical implementation, including: the raw Bayer format images output by the color camera are difficult to effectively decompose into independent images corresponding to different projection bands, leading to difficulties in subsequent phase calculation; severe crosstalk exists between the color channels of the color camera due to the spectral responses of different projection bands, and this crosstalk is difficult to eliminate at its source; and there is a lack of effective methods for synchronizing, accurately recovering, and decoding multiple color channels. Due to these technical challenges, the industry currently lacks mature and practical multi-color synchronous acquisition 3D reconstruction products and related technical solutions, and the mainstream market still relies entirely on time-division acquisition.
[0005] Therefore, there is an urgent need for a multi-color projection synchronous acquisition phase recovery and decoding method that can achieve simultaneous acquisition of the three-color phases in a single frame image while efficiently suppressing inter-channel crosstalk, all while ensuring imaging accuracy. Based on this, this invention proposes a multi-color projection synchronous acquisition phase recovery and decoding method. Summary of the Invention
[0006] This invention provides a method for phase recovery and decoding of multi-color projection synchronous acquisition, characterized in that it includes: S1. Configure a multi-projection architecture and acquire four original images of the object under test through the multi-projection architecture; S2. Perform channel splitting on the four original images to extract the RGB sparse map, and then perform interpolation to complete and filter to suppress false colors to obtain four initial RGB three-channel images. S3. For the four initial RGB three-channel images, the principle of phase consistency between different channel bands is used as the crosstalk detection criterion. Cross-band crosstalk noise is eliminated step by step from the intensity domain, frequency domain and spatial domain to obtain four sets of pure three-channel real light intensity images. S4. Perform phase wrapping and absolute phase unwrapping on the four sets of pure three-channel true light intensity maps to obtain the final continuous absolute phase map of the three channels. S5. The three-dimensional mesh model of the object under test is generated by fusing the continuous absolute phase map of the final three channels through single-view 3D reconstruction and multi-view point cloud registration.
[0007] The multi-color projection synchronous acquisition phase recovery and decoding method described above, wherein a multi-projection architecture is configured and four original frames of the object under test are acquired through the multi-projection architecture, specifically comprising the following sub-steps: A multi-projection architecture consisting of three projectors and one camera; Projection pattern configuration of three projectors; Based on the synchronous trigger pulse, the three projectors synchronously switch the projected pattern, and the camera captures four frames of original images.
[0008] The multi-color projection synchronous acquisition phase recovery and decoding method described above involves channel splitting of four original images to extract RGB sparse maps, followed by interpolation completion and filtering to suppress false colors, resulting in four initial RGB three-channel images. The method comprises the following sub-steps: The four original images are split into R, G, and B sparse maps that retain only the corresponding color sample values; Based on color difference consistency, adaptive interpolation is performed on the R, G, and B sparse maps to obtain four sets of initial RGB three-channel images. False color suppression is performed on edge region pixels in four initial RGB three-channel images.
[0009] The multi-color projection synchronous acquisition phase recovery and decoding method described above involves splitting four original images into R, G, and B sparse maps that retain only the corresponding color sample values. Specifically, for each of the four original Bayer format images, the position type is determined pixel by pixel according to the GR / BG checkerboard arrangement rule. Based on the pixel position type, the original image is split into three sparse maps: R, G, and B. In each sparse map, only the sample value corresponding to the color position is retained, and the remaining positions are empty.
[0010] As described above, in a multi-color projection synchronous acquisition phase recovery and decoding method, cross-band crosstalk noise refers to the interference component formed when light from a certain projection band enters the image of other band channels due to overlapping spectral responses of color cameras, multipath reflections from object surfaces, etc.
[0011] The multi-color projection synchronous acquisition phase recovery and decoding method described above involves performing phase wrapping and absolute phase unwrapping on four sets of pure three-channel true light intensity maps to obtain the final continuous absolute phase map of the three channels. This process is specifically divided into the following sub-steps: The phase wrapping solution is performed on four sets of pure three-channel true light intensity maps to obtain the phase wrapping maps of the three-band channels; Unwrap the wrapped phase map of the three-band channel to obtain the continuous absolute phase map of the three-band channel; The continuous absolute phase maps of the three-band channels are obtained by multi-frequency heterodyne analysis to avoid phase ambiguity, resulting in the final continuous absolute phase maps of the three channels.
[0012] The multi-color projection synchronous acquisition phase recovery and decoding method described above involves generating a 3D mesh model of the object under test by fusing the final three-channel continuous absolute phase map through single-view 3D reconstruction and multi-view point cloud registration. This process is specifically divided into the following sub-steps: Three-dimensional reconstruction was performed on the continuous absolute phase map of the three channels to obtain three sets of optimized single-view point clouds; Three sets of optimized single-view point clouds were fused together after coarse and fine registration to obtain a complete 3D point cloud; The complete 3D point cloud is reconstructed into a 3D mesh model of the object under test through meshing.
[0013] The beneficial effects achieved by this invention are as follows: (1) Significant color crosstalk suppression effect. This invention addresses industry pain points such as spectral crosstalk, interpolation false color, and stripe aliasing from multiple dimensions including hardware, intensity domain, frequency domain, and spatial domain, thereby reducing the impact of color crosstalk on reconstruction accuracy from the root cause; (2) Adapt to Bayer's native imaging characteristics. The Bayer image de-mosaic algorithm is specifically optimized to solve the problem that the original image of a color camera cannot be directly separated into three color phases. No modification to the camera hardware is required. It is compatible with all conventional color CMOS cameras on the market, with strong hardware adaptability and low implementation cost; (3) High accuracy of 3D reconstruction with no imaging blind spots. Combined with multi-frequency heterodyne phase decoding technology, the phase ambiguity problem is effectively solved; at the same time, relying on the 120° ring three-view layout and high-precision point cloud fusion algorithm, the single-view imaging occlusion defect is completely made up for, realizing all-round 3D reconstruction of the object under test without blind spots, and the performance is far superior to traditional time-division acquisition equipment; (4) High degree of integration and strong practicality. This invention forms a fully closed-loop automated processing flow from image acquisition, preprocessing, cross-color filtering, phase decoding, 3D reconstruction to multi-view fusion. It can be ported to various computing platforms such as SOC, FPGA, and host computer, which is convenient for industrial mass application. Attached Figure Description
[0014] 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.
[0015] Figure 1 This is a flowchart of a multi-color projection synchronous acquisition phase recovery and decoding method provided in Embodiment 1 of this application.
[0016] Figure 2 This is a schematic diagram showing the overall position of the multicolor projector and color camera in this application.
[0017] Figure 3 This is a schematic diagram of the components of the projector and camera in this application. Detailed Implementation
[0018] 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. Example
[0019] like Figure 1 As shown, Embodiment 1 of this application provides a method for phase recovery and decoding of multi-color projection synchronous acquisition, including: S1. Configure a multi-projection architecture and acquire four original images of the object under test through the multi-projection architecture.
[0020] S11 consists of three projectors and one camera forming a multi-projection architecture.
[0021] This method relies on a multi-projection architecture, specifically consisting of a projection section and an imaging section. The projection section includes three digital light processing (DLP) projectors, and the imaging section includes a color complementary metal-oxide-semiconductor (CMOS) camera. The three DLP projectors employ narrowband light sources with center wavelengths of 450nm (blue), 550nm (green), and 630nm (red), respectively. They are arranged in a 120° circular array around the color CMOS camera in the horizontal plane, with all three projectors having the same working distance. (Specific details are as follows...) Figure 2 As shown, the color CMOS camera is positioned directly above the object being measured, with its optical axis perpendicular to the surface of the object, and its field of view covers the common field of view area.
[0022] Each projector contains a light source, a DMD chip, and an optical engine lens. A narrowband filter matching its own wavelength is mounted at the front of the lens to filter stray light deviating from the center wavelength. The color CMOS camera device includes a CMOS color sensor, a fixed-focus lens, and a composite color filter mounted in front of the lens, specifically as follows... Figure 3 As shown. The color CMOS sensor output format is Bayer, the color filter array is arranged in a GR / BG checkerboard pattern, the resolution is 2448×2048 pixels, and the composite color separation filter has three passbands centered at 450nm, 550nm and 630nm, which are used to help isolate ambient stray light and form dual spectral isolation with the narrowband filter at the projection end.
[0023] The multi-projection architecture also includes a control and processing unit, specifically a SOC processor and a host computer processor. The SOC processor is responsible for synchronously triggering the three projectors and cameras, and buffering the raw Bayer data output by the cameras; the host computer processor is responsible for all subsequent computational processes such as image preprocessing, phase decoding, 3D reconstruction, and multi-view point cloud fusion.
[0024] S12. Projection pattern configuration of the three projectors.
[0025] The sinusoidal stripe pattern projected by the three projectors satisfies the following condition: Same spatial period: The spatial period of the stripes projected onto the central reference plane of the object under test is consistent (20 pixels each, with the camera image plane as a reference), ensuring consistent phase sensitivity of the three channels.
[0026] Different carrier frequencies: By design, the equivalent directions of the stripes projected by the three DLP projectors in the camera image are 0°, 60° and 120° respectively. The three occupy different angular positions in the two-dimensional spectrum and are 60° apart from each other to avoid spectrum overlap; the stripe coding direction inside each projector is determined by conversion based on the geometric relationship between its spatial pose and the camera pose.
[0027] Different initial phases: The initial phases of the first frame of the three DLP projectors are set to 0 for blue light, π / 3 for green light, and 2π / 3 for red light, respectively, to balance the brightness superposition of the three color stripes and avoid complete overlap of bright and dark peaks.
[0028] Four-step phase-shift sequence: Each projector projects four frames of sinusoidal fringes, with a phase shift step of π / 2 between adjacent frames. The grayscale values of the projected pattern change according to a sinusoidal law, and the bias grayscale and modulation amplitude ensure that the pattern is always positive and has sufficient contrast.
[0029] S13. Based on the synchronous trigger pulse, the three projectors synchronously switch the projected pattern, and the camera captures four frames of original images.
[0030] The SOC processor generates the main trigger pulse and sends it simultaneously to three DLP projectors and a color CMOS camera device, with a trigger time deviation of no more than 1μs.
[0031] Upon receiving a trigger signal, three DLP projectors synchronously switch the projected pattern onto the object under test at the same frame rate, with a switching time deviation of no more than 1μs per frame. The color CMOS camera begins exposure after a fixed delay following the trigger. During exposure, the projected pattern remains stable, with each exposure corresponding to a stable projected pattern. Four exposures sequentially complete the acquisition of four phase-shift steps. Each frame of raw Bayer image output by the color CMOS camera is transmitted to the SOC processor buffer via the LVDS interface. After the four frames are acquired, they are uploaded in batches to the host computer processor.
[0032] Four original Bayer format images, with pixel values ranging from 0 to 255. Each frame contains stripe modulation information in three bands: blue, green, and red. The 450nm stripe is mainly captured by the B channel pixels, the 550nm stripe is mainly captured by the G channel pixels, and the 630nm stripe is mainly captured by the R channel pixels.
[0033] In addition to projecting the main fringe group (high frequency, period 20 pixels) as described above, the three DLP projectors also simultaneously project a low-frequency fringe group (e.g., period 80 pixels) to expand the measurement range and avoid phase ambiguity. This low-frequency fringe group is also captured by the camera in four original frames, and subsequent operations are the same as those for the main fringe group.
[0034] S2. Channel splitting is performed on the four original images to extract RGB sparse maps. After interpolation and filtering to suppress false colors, four sets of initial RGB three-channel images are obtained.
[0035] This step performs de-mosaic processing on the four original images acquired, filling in the missing color values at each pixel location, suppressing false colors and zipper effects caused by conventional interpolation, and solving the problem that Bayer format cannot directly separate three-color images.
[0036] De-mosaicing and generating an initial RGB three-channel image involves the following sub-steps: S21. Split the four original images into R, G, and B sparse maps that retain only the corresponding color sample values.
[0037] The four original images are in Bayer format, with pixel positions arranged in a GR / BG checkerboard pattern: odd-numbered columns in odd-numbered rows and even-numbered columns in even-numbered rows are G pixels, even-numbered columns in odd-numbered rows are R pixels, and odd-numbered columns in even-numbered rows are B pixels. For each of the four original Bayer format images, the position type is determined pixel by pixel according to the GR / BG checkerboard pattern. Based on the pixel position type, the original image is split into three sparse maps: R, G, and B. In each sparse map, only the sampled value corresponding to the color position is retained, and the remaining positions are empty. The same operation is performed on the four original images, resulting in a total of twelve sparse maps.
[0038] S22. Based on color difference consistency, adaptive interpolation is performed on the R, G, and B sparse maps to obtain four sets of initial RGB three-channel images.
[0039] After obtaining the sparse map, this step utilizes the characteristic that color difference (RG, BG) is smoother than the color value itself to fill in the missing values of each channel along the direction of least local change, generating a complete RGB three-channel image.
[0040] First, interpolation is performed on the green channel: For each pixel location (i.e., R or B position) in the G sparse graph that lacks a G value, horizontal and vertical candidate values are calculated: the horizontal candidate value is the average of the two G pixels to the left and right of that location, and the vertical candidate value is the average of the two G pixels above and below it. Then, the interpolation direction is determined: the color difference change in the horizontal and vertical directions at that location is calculated. Taking position R as an example (where a G value is missing), there is one G pixel immediately to its left and right, and each of these two G pixels is immediately to its right by an R pixel (an adjacent R pixel in the same row as position R). The horizontal color difference is the value of the left G pixel minus the value of its immediate left R pixel, resulting in the first color difference; the value of the right G pixel minus the value of its immediate right R pixel, resulting in the second color difference. The absolute value of the difference between these two color differences is used to measure the change in horizontal color difference; the vertical color difference is calculated similarly. The direction with the smaller color difference change is selected, and the candidate value in that direction is taken as the missing G value; if the color difference changes in the two directions are similar, the average of the two candidate values is taken.
[0041] Next, interpolation is performed on the missing R and B channel values at position G. Based on the interpolated complete G channel image, for the missing R value at position G, if there are R pixels to the left and right of position G, the difference between the two R pixels and their corresponding G values is calculated. The average of these two differences is then added back to the original G value at position G to obtain the missing R value. For the missing B value at position G, the interpolation method is exactly the same as for the R value. First, the neighborhood arrangement of position G determines whether the B pixel is located vertically or horizontally. Then, two B pixels are taken along this direction for color difference interpolation to obtain the missing B value. Color difference interpolation ensures that the difference between the R value and the G value remains consistent in a local direction, which is better than directly averaging the original R value in a specific direction.
[0042] Finally, interpolation is performed at the positions where R and B are missing. For a missing B value at position R (or a missing R value at position B), taking the missing B value at position R as an example, there is one B pixel at each of the four corners of that R position: top left B, top right B, bottom left B, and bottom right B. In the main diagonal direction (top left to bottom right): subtract the interpolated G value at the top left B pixel position from the value of the top left B pixel to obtain color difference one; subtract the interpolated G value at the bottom right B pixel position from the value of the bottom right B pixel to obtain color difference two. The absolute value of the difference between these two color differences is the color difference change in the main diagonal direction. Similarly, color difference three and color difference four are calculated in the secondary diagonal direction (top right to bottom left). The absolute value of the difference between these two color differences is the color difference change in the secondary diagonal direction. Select the diagonal direction with the smaller color difference change, take the average of the two color differences in that direction, and add it back to the G value of the center R position itself to obtain the missing B value at that position. If the changes in the two directions are similar, the average of the four color differences is added back to the center G value to determine the missing B value at that location. For a missing R value at location B, the operation is exactly the same; simply replace the aforementioned B pixel with an R pixel.
[0043] For pixels within 2 pixels of the image edge, the required neighborhood range for interpolation may exceed the image boundary. Therefore, the entire image is first mirrored by 2 pixels to ensure that edge pixels also have a complete neighborhood. Then, the above interpolation operation is performed uniformly, and the original size is cropped after interpolation. Pixels with a value of 255 or 0 are considered invalid references and are not included in color difference calculation and averaging. If there is no valid reference pixel in the neighborhood of a missing location, the median of the valid pixels in that channel of the entire image is used for filling.
[0044] After completing the above three stages on the three sparse maps of each original image frame, the image frame will have complete R, G, and B full-resolution channel maps, which are combined into one set. This process is repeated for all four original images, resulting in four sets of initial RGB three-channel images.
[0045] S23. Perform false color suppression on edge region pixels in the four initial RGB three-channel images.
[0046] After interpolation, isolated aberration pixels may appear in edge regions due to spatial switching of the interpolation direction, manifesting as false colors and a zipper effect. For each pixel in each channel image of each group, the local gradient magnitude within a 3×3 neighborhood window is calculated. Pixels with gradient magnitudes exceeding the median of the entire image for that channel are marked as edge regions and subjected to median filtering with a 3-pixel window. Median filtering is performed independently on edge region pixels in the R, G, and B channel images of each group. Flat regions with gradient magnitudes below the median are left unprocessed to maintain the smoothness of the interpolation result. The median filtering operation only eliminates discontinuous isolated values generated by interpolation and does not change the stripe frequency structure or crosstalk morphology of the image.
[0047] The final output consists of four sets of initial RGB three-channel images with pseudo-color suppression.
[0048] S3. For the four initial RGB three-channel images, the principle of phase consistency between different channel bands is used as the crosstalk detection criterion. Cross-band crosstalk noise is eliminated step by step from the intensity domain, frequency domain and spatial domain to obtain four sets of pure three-channel true light intensity images.
[0049] The four initial RGB three-channel images after false color suppression simultaneously contain the fringe modulation information of each band, as well as interference components caused by the overlapping of the color camera's spectral response and multipath reflection from the object's surface, resulting in light from a certain projection band entering other band channel images. The purpose of this step is to eliminate crosstalk and output a clean RGB three-channel true light intensity map.
[0050] S31. Determine the calibration parameters and calculate the calibration frequency-direction geometric lookup table, piecewise linear table, and calibration error prior diagram using the calibration whiteboard.
[0051] Several sub-steps in this process rely on prior system parameters. These parameters are obtained through calibration before the formal measurement and are pre-calculated and stored offline in the system. They are directly called during the measurement phase and are no longer calculated online. The specific calibration and calculation process is as follows: Calibration environment: darkroom, using a standard barium sulfate white board as the calibration target.
[0052] The data collection process is as follows: First, turn off all projectors and continuously capture 10 frames of dark-field images using a color CMOS camera. Then, calculate the arithmetic mean of the grayscale values for each pixel in these 10 frames to obtain the average dark current value at each pixel location, thus forming a dark current background map. ; Next, three DLP projectors were controlled to project uniform white light sequentially and individually, with the grayscale value set to 80% of the maximum brightness. During projection by each projector, a color CMOS camera continuously captured 10 frames of images. The arithmetic mean of the grayscale values of each pixel in these 10 frames was calculated to obtain the single-band response map corresponding to the individual projector's wavelength. ,in These represent the projection wavelengths, corresponding to blue (450nm), green (550nm), and red (630nm), respectively. These represent the camera output channels, corresponding to the camera's blue, green, and red channels, respectively. This represents the average response value of the camera's i-th channel at pixel (x,y) when the j-th projection band is illuminated alone.
[0053] Finally, three DLP projectors are controlled to synchronously project four-step phase-shifted sinusoidal fringe patterns of their respective bands onto a white board. Each projector switches patterns sequentially in four phase-shift steps, with a phase-shift step size of π / 2. That is, the phase shifts corresponding to the four frames of patterns are 0, π / 2, π, and 3π / 2, respectively. The switching of the three DLP projectors is synchronously triggered by the SOC processor at each phase-shift step, and the color CMOS camera synchronously exposes after each projected pattern stabilizes, acquiring a total of four frames of synchronous fringe images with crosstalk. The fringe spatial period refers to the fringe period observed on the camera image plane after being projected onto the white board reference plane, and it is consistent with the period observed during the actual measurement, for example, 20 pixels.
[0054] Based on single-band response map Calculate the flat-field gain coefficient: For each camera channel i, take the single-band response map corresponding to its main response projection band (strongest response, highest signal-to-noise ratio). For example, for the blue channel, the corresponding single-band response map is... Calculate the average response value of the entire map. Then calculate the flat field gain coefficient for each pixel. The flat gain coefficient is used to correct the difference in response sensitivity of each pixel. There are three camera channels, and one flat gain map for each channel, which is used to store the flat gain coefficient of that channel.
[0055] It also includes factory calibration parameters, specifically linear gain. (The linear response ratio of the camera's i-th channel to the incident light intensity in its principal response band), second-order nonlinear coefficients (The degree to which the camera's i-th channel deviates from linearity under higher light intensity), linear crosstalk coefficient (The proportion of linear crosstalk response generated by the light of the j-th projection band in the i-th channel of the camera (i≠j), and the nonlinear crosstalk correction coefficient) (The crosstalk correction coefficient caused by detector nonlinearity in the i-th channel of the camera for the j-th projection band is used to compensate for the nonlinear deviation of the crosstalk response under high light intensity.) These parameters are obtained through spectral response testing and standard light intensity response curve calibration at the factory, written into the system firmware, and remain constant across the full-frame range.
[0056] Offline pre-calculation A: Frequency-direction geometry lookup table.
[0057] The purpose of this pre-calculation is to establish, using known system geometric parameters, the mapping relationship between pixel coordinates and coarse depth estimates to the expected spatial frequencies and directions of the three projection bands (blue, green, and red) at that pixel on the camera image plane before formal measurement. This allows step S33 to directly look up the table to obtain the expected frequency and direction of the stripes pixel by pixel before frequency domain filtering, replacing online time-frequency analysis.
[0058] The input conditions are: intrinsic parameters of the color CMOS camera (focal length, principal point coordinates, distortion coefficients), extrinsic parameters of the three DLP projectors relative to the camera (rotation matrix and translation vector, given by the calibration results of the 120° circular mounting layout), and depth range (300mm to 800mm along the camera optical axis).
[0059] The calculation method is as follows: Divide the camera image plane into several blocks of 16×16 pixels, and take the center pixel coordinates of each block as the representative position of the block; for the center of each block, take 101 depth values in the depth direction with a step size of 5mm, from 300mm to 800mm. For each depth value, determine the spatial point position corresponding to the center pixel of the block. Assume that the spatial point is located on a depth plane perpendicular to the camera optical axis, that is, the local surface normal is parallel to the camera optical axis; for this spatial point, calculate the expected frequency and expected direction of the stripes projected by three DLP projectors at this location. Taking a certain projector as an example: determine the relative geometric relationship between its projection center and the spatial point by the projector's extrinsic parameters, project the spatial point onto the projector's image coordinate system to obtain the projector image coordinates. At this coordinate, the direction of the equiphase lines of the projected stripe pattern, i.e., the stripe direction, is known. Take the direction vector of the equiphase line direction in the projector image plane. The direction vector is mapped onto the depth plane along the line connecting the projector's optical center to the spatial point to obtain the direction of the three-dimensional equiphase lines. This three-dimensional direction is then projected onto the camera's image plane, and the resulting angle is the desired direction of the channel's fringes on the camera's image plane. The spatial period of the fringes formed by the projector on the depth plane (determined by the projection pattern period and projection geometric scaling) is then calculated. This spatial period is then projected onto the image plane via camera imaging to obtain the spatial frequency of the fringes on the image plane, which is the desired frequency of the channel. The above process is performed for each projector separately to obtain the desired frequencies of the three channels on the camera's image plane. and expected direction Where c is the channel label, ; For each block center and each channel, polynomial fitting is performed on the desired frequency and desired direction. Taking the desired frequency as an example: the desired frequency corresponding to 101 depth values is used as the dependent variable, and depth z is used as the independent variable. The least squares method is used to fit a polynomial. Initially, a third-order polynomial is tried, and the fitting residuals at the 101 depth points are calculated. If the maximum absolute value of the residual is greater than 0.15% of the mean of the desired frequency at the center of the block for that channel across the entire depth, the polynomial order is increased to fourth order, and the test is repeated. If the condition is still not met, a fifth-order polynomial is used, with a safety order upper limit set (such as seventh order). If the condition is still not met even after exceeding the upper limit, it indicates that the nonlinearity of the frequency change with depth at the center of the block is too strong, and polynomial fitting is no longer applicable. At this time, piecewise fitting is used for the block (the 101 depth layers are divided into two segments, and the fitting and storage are performed separately). The fitting and testing method for the desired direction is the same as that for the desired frequency, and the threshold for the absolute value of the residual is 0.15% of the mean of the desired direction at the center of the block for that channel across the entire depth. For each block center and each channel, the lowest-order expected frequency polynomial coefficients, direction polynomial coefficients, and their respective order markers that meet the accuracy requirements are stored together to form a frequency-direction geometric lookup table, with a total storage size of approximately 10MB. During use, for any pixel, its 16×16 block is first determined, the polynomial coefficients stored at the block center are retrieved, and the depth value at that pixel is substituted into the polynomial to calculate the expected frequency and direction. For pixels in the block boundary region, the expected frequency and direction are calculated using the polynomials from adjacent block centers and then bilinear interpolation is performed to obtain a smooth transition.
[0060] Offline pre-computation B: Piecewise linear tables for blue and red channels, and piecewise linear tables for phase difference-depth.
[0061] The purpose of this pre-calculation is to address the issue that three DLP projectors project fringes from different orientations, resulting in different phase values calculated for the same spatial point in the three projection bands (blue, green, and red). To compare the phase consistency of the three channels in the same space, it is necessary to transform the wrapper phases of the three projection bands to the same reference. This pre-calculation establishes a mapping lookup table from the wrapper phase of any channel to the equivalent wrapper phase of a selected reference channel, allowing direct comparison of the three channel phases. Simultaneously, three sets of phase difference-depth discrete correspondence tables are established for mapping the equivalent phase difference to depth values during coarse depth estimation.
[0062] Reference channel selection: The green band projection channel (G) is selected as the reference channel. The wrapping phases of the blue channel (B) and the red channel (R) are mapped to the equivalent wrapping phase space of the green channel.
[0063] The specific construction process is as follows: The camera image plane is divided into several blocks of 8×8 pixels, and the coordinates of the center pixel of each block are taken as the representative position; for the center of each block, combined with the intrinsic parameters of the color CMOS camera, sampling is performed along the line of sight corresponding to the pixel from 300mm to 800mm at a step size of 1mm to obtain 501 spatial sampling points at different depths. The three-dimensional coordinates of each spatial point are determined by back-projection of the pixel coordinates, depth value and camera intrinsic parameters through a pinhole model; for each spatial sampling point, the triangulation geometry between the three DLP projectors and the camera is used to calculate the corresponding projection coordinates of the point in the image coordinate system of the three projectors, and then the spatial phase value of the point in the fringe pattern of the three projection bands is obtained. The phase values of the three projection band channels conceptually correspond to the same spatial point, but their numerical values are different. For each spatial sampling point, the spatial phase value of the green channel is wrapped with 2π to obtain the equivalent wrapped phase of the green channel. At the same time, the spatial phase values of the blue channel and the red channel are wrapped with 2π to obtain the wrapped phase of the blue channel and the wrapped phase of the red channel, thus forming two sets of mapping pairs: the wrapped phase of the blue channel and the equivalent wrapped phase of the green channel, and the wrapped phase of the red channel and the equivalent wrapped phase of the green channel. Meanwhile, using the wrapped phases of the three projection bands, three sets of equivalent phase differences are calculated: the equivalent phase difference between blue and green, the equivalent phase difference between blue and red, and the equivalent phase difference between green and red. These are then compared with the depth value of the spatial sampling point to form three sets of phase difference-depth correspondence data. For each mapping pair, 501 pairs of data are accumulated along the depth direction to form a blue (red) channel equivalent phase mapping lookup table with the blue (red) channel wrapping phase as the independent variable and the green channel equivalent wrapping phase as the dependent variable. For each set of phase difference-depth correspondence data, 501 pairs of data are accumulated along the depth direction to form a phase difference-depth discrete correspondence table with the two band equivalent phase difference as the independent variable and the depth value as the dependent variable. The above lookup tables are compressed into a piecewise linear form for storage: with the wrapping phase value range [-π, π) as the interval, 32 nodes are evenly selected. For each node, the green channel equivalent wrapping phase value corresponding to that node is obtained by linear interpolation from the 501 pairs of original data. Only the equivalent wrapping phase value and node position at the 32 nodes are stored. The compression accuracy must meet the following requirements: After compression to 32 nodes, the equivalent wrapping phase at the 501 original sampling points is looked up using the compressed piecewise linear table to obtain an approximate value. The maximum deviation between the approximate value and the original mapping value should not exceed 0.01 radians. The three sets of phase difference-depth discrete correspondence tables are also compressed into a piecewise linear form with 32 nodes based on the phase difference value range, and the compression accuracy requirement is consistent with that of the phase mapping table. For the center position of each 8×8 pixel block, two independent lookup tables are stored, namely the compressed blue channel piecewise linear table and the red channel piecewise linear table, as well as the three sets of phase difference-depth piecewise linear tables, all stored in the form of piecewise linear nodes.
[0064] In practice, for any pixel in the image, its 8×8 block is first determined, and the piecewise linear table stored at the center of that block is retrieved. For the measured wrap-around phase value of the red (blue) channel at that pixel, it is substituted into the corresponding piecewise linear table. The interval between the two adjacent nodes into which it falls is first determined, and linear interpolation is performed between the stored values at the two ends of this interval to obtain the corresponding green channel equivalent wrap-around phase. For coarse depth estimation, the measured equivalent phase difference between the two bands at that pixel is substituted into the corresponding phase difference-depth piecewise linear table, and the depth value is interpolated. For pixels in the block boundary region, bilinear interpolation is performed after calculating the phase difference using the piecewise linear tables at the centers of adjacent blocks. Thus, the phases of the three projected band channels are unified to the green channel equivalent phase space.
[0065] Offline pre-calculation C: Calibration error prior plot.
[0066] The purpose of this pre-calculation is to calculate and save the calibration error prior map during the calibration stage, so that it can be deducted pixel by pixel from the equivalent phase deviation of the three projection band channels during actual measurement, in order to separate the systematic calibration error from the scene-related crosstalk.
[0067] The specific calculation process is as follows: During the calibration phase, using the synchronized stripe image of the whiteboard acquired during calibration, steps S32 to S34 are executed. However, in S34, multi-scale decomposition and correction are not performed; only phase resolution, equivalent phase transformation, and deviation calculation are performed. For each pixel and each projected band channel in the synchronized stripe image, the equivalent phase of the green channel after the piecewise linear table mapping of that pixel is subtracted from the mean of the equivalent phases of the green channels of the three projected bands at that pixel to obtain the original value of the equivalent phase deviation of that channel. The original value of the equivalent phase deviation of each projected band forms a calibration error prior map, denoted as... ,in , It is stored at full resolution and is the same size as the original image. Since the whiteboard is an ideal diffuse reflector with no multipath reflection, no surface color change, and no occlusion, the deviation in the prior calibration error diagram is entirely caused by system calibration error and hardware residue.
[0068] S32. Eliminate hardware crosstalk for the four initial RGB three-channel images, and output four corrected three-channel true light intensity maps and three stripe modulation maps.
[0069] This step processes the four initial RGB three-channel images separately. For each projection band image in each group, i.e., the R, G, and B channel images, the hardware-level crosstalk caused by the overlap of the spectral responses of the three color channels of the color CMOS camera and the nonlinearity of the detector response is eliminated in the intensity domain. The true incident light intensity of the blue, green, and red bands is restored, and four sets of corrected three-channel true light intensity images are output.
[0070] The specific processing procedure is as follows: First, perform dark current subtraction and flat-field correction pixel-by-pixel on the R, G, and B channel images in each group: subtract the value at the corresponding position in the dark current background image from the grayscale value in the corresponding channel image of that pixel, and then multiply by the coefficient at the corresponding position in the flat-field gain image of that channel to obtain the corrected response value. , This represents the grayscale response value of the camera's i-th color channel at pixel (x,y) in the initial RGB image corresponding to the k-th phase shift step, after dark current subtraction and flat-field correction. This operation eliminates the influence of sensor dark current and spatial non-uniformity of pixel response sensitivity. It is performed independently for each pixel, and each channel uses its own dark current background map and flat-field gain map.
[0071] The total output of channel i consists of three terms, specifically: ,in, Let i be the linear response of channel i to its own main response band. For channel i itself, it is a quadratic nonlinear term. These are the linear crosstalk term and the nonlinear crosstalk correction term introduced into this channel from the other two bands, respectively. For linear gain, For second-order nonlinear coefficients, For linear crosstalk coefficient, For nonlinear crosstalk correction coefficients, Let be the true incident light intensity (unknown quantity) of the response band corresponding to camera channel i. This represents the actual incident light intensity (unknown quantity) of the two projection bands other than i.
[0072] Determine the true light intensity in the three bands. A two-step method is used: For each phase shift step k, perform the following solution independently: Step 1: Ignore all quadratic terms in the total output formula (i.e.) and Write the linear equations for each of the camera's three channels, for example, the blue channel response is... The green channel response and the red channel response are similar; the three equations can be written in matrix form as follows: M is a 3×3 linear matrix, where the diagonal elements represent the linear gain of each channel. Right now Off-diagonal elements are linear crosstalk coefficients. , Let T be the true incident light intensity vectors for the three wavelength bands, and let T be the transpose. Solve the system of linear equations to obtain the initial values. ; Step 2: Initialize the values Substituting into the complete total output formula containing quadratic terms, we obtain the residual function. Define the residual function, where Let be a vector composed of all quadratic terms, and let its i-th component be . Jacobian matrix Given a 3×3 analytic matrix, perform one Newton update. The final solution is obtained. Since the coefficient of the quadratic term is much smaller than that of the linear term (typically a ratio of <5%), the residual after one-step correction is less than 0.1%, and no further iterations are required.
[0073] The corrected three-channel true light intensity map is as follows , represents the true intensity map of the projected band at the k-th phase shift step, where each pixel , To determine the true incident light intensity at pixel (x,y) for the c-th band at the k-th phase shift step, It corresponds to the three bands: blue, green, and red.
[0074] Simultaneously, based on the corrected four-step phase-shift image's true intensity map, the fringe modulation map for each channel is calculated. The superscripts c and k represent the image of channel c after phase shift frame correction at the k-th step, where k = 0, 1, 2, 3. The fringe modulation graph reflects the strength of the fringe signal in each channel. This indicates the signal strength of the c-th band fringe at pixel (x, y). The higher the modulation index, the clearer and more reliable the signal of that band fringe. This will be used as a reliability weight and basis for judgment in subsequent steps.
[0075] S33. Calculate the continuous reachability weight map of the three channels based on the fringe modulation map, perform frequency domain filtering on the four sets of corrected three-channel true light intensity maps, and output the four sets of filtered three-channel true light intensity maps and anomaly marker maps.
[0076] The purpose of this step is to separate the effective fringe spectrum from scene-level crosstalk in the frequency domain of the four sets of corrected three-channel true light intensity maps, and to generate three-channel continuous reachability weights for each pixel, providing a reliability metric for subsequent cross-channel consistency constraints. Specifically, this involves the following sub-steps: S331. Based on three stripe modulation graphs, calculate the continuous reachability weight graph of the three channels and a joint constraint weight graph of the three channels.
[0077] This step evaluates the availability of the fringe signal at each pixel using the three projected bands, specifically by calculating three continuous reachability weight maps. and a three-channel joint constraint weight diagram .
[0078] Based on stripe tone graph , Specifically including The fringe modulation plots for the blue, green, and red projection bands are given respectively. The relative modulation depth for each band is calculated as follows: , For each pixel (x, y), the maximum value of the modulation indices of the three bands is taken. The value range is [0,1], which is used to eliminate the fluctuation of the absolute level of modulation caused by the difference in the overall albedo of the object surface, so that the determination depends only on the relative strength relationship between the three bands.
[0079] For each pixel and each band c, use the sigmoid function to... Mapped to continuous reachability weights: ,in, For the sigmoid function, This is the high threshold of relative modulation, which is set to 0.2 in this embodiment, indicating that when the relative modulation of a certain band... When the modulation index of the band reaches or exceeds 0.2, that is, when the modulation index of the band is not less than 20% of the strongest band, the band signal is considered to be strong and reliable enough, and its continuous reachability weight should approach 1 (fully reachable). To represent the low threshold of the relative modulation, this embodiment sets the value to 0.1. When the value is significantly lower than 0.1, meaning the modulation density of that band is less than 10% of the strongest band, the mapping weight approaches 0, and the band is determined to be unreachable at this pixel. Weights transition continuously between these two values. Using continuous weights instead of hard classification is to avoid abrupt weight changes at occlusion boundaries that could cause artifacts in subsequent corrections. Specifically divided into , respectively, represent the continuous reachability weights of the blue, green, and red projection bands at pixel (x, y). The continuous reachability weights of all pixels in each band c constitute the continuous reachability weight map for that band. .
[0080] For each pixel, the geometric mean of the three band continuous reachability weights is taken to obtain the three-channel joint constraint weights: This weight reflects the degree to which all three channels are available simultaneously, and its value ranges from [0,1]. The joint constraint weights of all pixels' three channels constitute a joint constraint weight map of the three channels. This weight is used for multiplicative weighting of all subsequent consistency checks and corrections to achieve a soft transition and avoid boundary artifacts caused by hard threshold classification.
[0081] S332. Calculate the coarse depth value of each pixel using a three-level strategy.
[0082] The purpose of this step is to obtain a coarse depth value at each pixel for querying the frequency-direction geometry lookup table.
[0083] Level 1: Based on the four sets of corrected three-channel true light intensity maps output in step S32, the wrap-around phase of each band is calculated using a four-step phase-shifting method based on the four true light intensity maps (corresponding band images in the four sets) for each band c. This yields three wrapped phase maps. Using an offline pre-computed piecewise linear table, the blue band wrapped phase is then analyzed. Phase wrapping with red band Mapping to the green band equivalent phase space, we get The equivalent phase of the green band is its own enveloping phase. For each pixel (x, y), calculate the pairwise equivalent phase difference between the three groups, and map it to coarse depth using an offline pre-computed phase difference-depth piecewise linear table. For each pixel, multiply the modulation values corresponding to each group of channels. Using the weights, a weighted average of the three depth estimates is taken to obtain a coarse depth value at pixel (x,y). Taken directly from three stripe tone charts The value at the corresponding pixel position is used to calculate the proportion of the modulation index product of each channel pair in all pixels to the median of the entire image. When the modulation index product of at least two channel pairs exceeds 30% of the median of the entire image, the weighted fusion result of that pixel is considered reliable and is directly adopted. Used as a coarse depth value; otherwise, the pixel is determined to be unreliable at level one.
[0084] Level 2: If Level 1 is unreliable, this level compares the modulation values of the three bands for the current pixel. The band corresponding to the maximum value is denoted as . Using the phase difference-depth piecewise linear table stored in the 8×8 block of the offline pre-computation B, the band is... Substituting the measured wrapper phase at this pixel into the table, the interpolated depth value is obtained. Only when When the modulation index is not less than 3 times the noise threshold, the depth estimate is considered usable. The noise threshold is determined by the standard deviation of the modulation index in the flat area of the whiteboard during the calibration stage. Although the absolute accuracy of the single-channel phase is not as good as that of the cross-channel differential, it is sufficient to drive the table lookup as a coarse estimate.
[0085] Level 3: If Level 2 is still unreliable (the highest modulation degree is less than 3 times the noise threshold), it indicates that the three-band fringe signal at this pixel is extremely weak. Therefore, find all pixels within an 11×11 neighborhood that have been assigned reliable depth values by Level 1 or Level 2, and use them as source pixels for depth propagation. If there are no reliable sources in the neighborhood, the pixel is first filled with the median depth value of all reliable pixels in the entire image, and simultaneously marked as coarse depth unreliable for subsequent frequency domain filtering weighting. Calculate the propagation weight for each source pixel; the propagation weight is equal to the joint constraint weight of the three channels of that source pixel. Multiply by a spatial Gaussian weight, which is calculated using a Gaussian function with the distance between the current pixel and the source pixels as the variable; the closer the distance, the larger the value. The Gaussian standard deviation is 3 pixels. Then, take a weighted average of the depth values of all source pixels in the neighborhood according to their respective propagation weights to obtain a coarse depth value for the current pixel. .
[0086] S333. Based on the coarse depth value of the pixel, take the average coarse depth within the pixel block, substitute it into the polynomial coefficients stored in the pre-calculated frequency-direction geometry lookup table, and obtain the pixel-by-pixel expected frequency map and expected direction map.
[0087] For each 16×16 pixel block, take the coarse depth values of all pixels within the block. The arithmetic mean of the values is used as the average coarse depth of the block. Pixels in the block with unreliable coarse depth markers are not included in the depth averaging and are ignored. If all pixels in the block are unreliable, the average coarse depth of the block is the median of the coarse depths of the reliable pixels in the entire image.
[0088] For each pixel block, the polynomial coefficients stored in the frequency-orientation geometry lookup table at the center of the block in the offline pre-computation A are taken. The average coarse depth value of the block is substituted into each polynomial to calculate the expected frequencies of the three channels on the camera image plane. and expected direction The calculation results are used as the nominal frequency and nominal direction of all pixels in the block.
[0089] To eliminate potential frequency and direction jumps between blocks, bilinear interpolation is performed on the block boundary regions. Specifically, for each pixel, the nominal frequency and direction of its 16×16 block, as well as the corresponding nominal frequencies and directions of its horizontal and vertical neighboring blocks, are taken. These are then weighted and mixed according to the distance from the pixel to the center of each neighboring block to obtain the desired frequency and direction for a smooth transition at that pixel. For the outermost blocks of the image, when neighboring blocks are lacking, the nominal frequency and direction of the block itself are used directly.
[0090] Finally, for pixels marked as having unreliable coarse depth and filled with mid-depth across the entire image, their expected frequency and expected direction are directly assigned using the nominal value of the block to which the pixel belongs, without cross-block interpolation, to avoid propagating directional deviations caused by unreliable depth.
[0091] The pixel-by-pixel expected frequency map and pixel-by-pixel expected direction map of each of the three projected bands, as well as the low-confidence block marker map, are obtained.
[0092] S334. Based on the desired frequency map and desired direction map, select a pre-generated frequency domain bandpass filter kernel for each block of the four sets of corrected three-channel real light intensity maps, perform frequency domain filtering, and determine the anomaly marker map.
[0093] This step constructs a narrow bandpass filter based on the pixel-by-pixel expected frequency map and the pixel-by-pixel expected direction map. In the frequency domain, the effective fringe spectrum is retained, and the crosstalk components and high-frequency random noise of other bands that do not coincide with the effective fringe spectrum are filtered out. Only the spectral components near the fringe carrier frequency of each band are retained, thus completing the fringe purification.
[0094] The specific steps are as follows: The spatial period of the three projected band fringes has been determined (referencing a 20-pixel period on the camera image plane). The distance of the corresponding frequency domain spectral peak from the zero-frequency position is 1 / 20 (period / pixel). Combining this with the nominal directions of the fringes in each band (blue 0°, green 60°, red 120°), the orientation of the spectral peak in the frequency domain is determined. Both factors together determine the position of the spectral peak in each band. In actual measurements, changes in object depth will cause frequency shifts and orientation deflections. The frequency shift generally does not exceed ±25% of the design value, and the orientation deflection generally does not exceed ±30° of the nominal direction. Therefore, the frequency dimension is taken within a range of ±25% centered on the design frequency, and the orientation dimension is taken within a range of ±30° centered on the nominal direction. Filter banks are then constructed for each of the three bands.
[0095] The filter bank pre-generation process is as follows: The frequency range of the band is divided into 16 levels, and the directional range is divided into 18 levels, resulting in 288 frequency-directional intervals for the band. For each interval, the frequency and directional values corresponding to the center of the interval are taken, and a two-dimensional elliptical Gaussian passband is generated on a 64×64 pixel frequency domain grid. The center of the ellipse is placed at the frequency domain position determined by the frequency and directional values, with the major axis along the direction and the minor axis perpendicular to the direction. The width along the major axis (stripe direction) is 0.05 times the frequency value, and the width along the minor axis (perpendicular to the stripe direction) is 0.1 times the frequency value. The passband value inside the ellipse is close to 1, and decays to 0 according to a Gaussian law outward, thus obtaining a filter core. The 288 filter cores of this band constitute the filter bank for this band. A total of three groups and 864 cores are generated for the three bands, all pre-generated offline. During measurement, the corresponding core of the corresponding band is directly selected according to the peak interval statistically analyzed within the block.
[0096] Each frame's true intensity map for the three projected bands is divided into 64×64 pixel blocks with a block size of 32 pixels (50% overlap). For each block, a histogram of the expected frequency and direction of all pixels within the block is calculated across 288 intervals. The interval corresponding to the peak value of the histogram is taken as the representative interval of the block, and the corresponding filter kernel is selected. A Fast Fourier Transform (FFT) is performed on the block to transform the image from the spatial domain to the frequency domain, obtaining the spectrum of the block. The filter kernel is multiplied point-by-point with this spectrum, and then an inverse FFT is performed to transform it back to the spatial domain, completing the frequency domain filtering. Each block of each intensity map in the four groups is filtered to obtain four groups of three-channel true intensity maps. Due to the 50% overlap between blocks, each pixel is covered by four blocks. The pixel values of the filtering results for each block are weighted and averaged according to the triangular weights of the distance from the pixel to the block center to obtain a filtered output with smooth block boundary transitions, eliminating block artifacts.
[0097] For each block, after selecting the filter core, check the actual spectrum of each band in the block one by one: if the position of the main peak of the spectrum of the band deviates from the expected frequency and direction given in S333 by more than ±10%, it means that the spectrum of the band in the block has been severely interfered with by scene-level crosstalk or the geometric derivation has failed. The filtering result of the band and the block is marked as spectrum abnormal, so that the weight of the band in the block can be reduced in step S34 when performing consistency correction. The blocks marked as spectrum abnormal are recorded through the abnormal marking diagram.
[0098] S34. Subtract the prior calibration error from the four sets of three-channel true light intensity images after filtering, decompose the deviation according to three scales, convert the phase deviation of the out-of-standard band into an intensity correction amount and superimpose it on the corresponding band image to obtain the four sets of three-channel true light intensity images after scale correction.
[0099] The purpose of this step is to detect and correct residual crosstalk in the spatial domain using the geometric consistency that must be satisfied between the three channels in the four sets of filtered three-channel true light intensity maps. Residual crosstalk refers to the crosstalk components that remain after hardware crosstalk elimination, which are related to the geometry and material properties of the measured object's surface. These mainly include multipath reflections, local scattering, and residual small deviations in the S32 analytical model parameters. These crosstalk components vary spatially with the specific measurement scene and cannot be eliminated in advance using globally fixed parameters, but they will disrupt the geometric consistency that should be satisfied between the phases of the three projection bands. Specifically, this is divided into the following sub-steps: S341. Perform prior calibration error subtraction on each pixel of the three package phase maps to obtain the residual deviation map.
[0100] Based on the equivalent phase of the blue band and red band obtained in step S332 Green band equivalent phase .
[0101] For each pixel in the three wrapped phase maps obtained in step S332, calculate the arithmetic mean of the equivalent phase of the three projected bands. Then, subtract the mean value from the equivalent phase of each band to obtain the equivalent phase deviation of each band. Let c be B, G, and R. From the equivalent phase deviation of each band... Subtract the original value of the equivalent phase deviation of the corresponding band in the offline pre-calculated C calibration error prior map pixel by pixel. The residual deviation after deducting calibration error is obtained. The calibration error prior map, obtained through whiteboard measurements during the calibration phase, reflects the spatial distribution of inherent system calibration errors and hardware residuals. After subtraction, the residual bias mainly includes scene-related crosstalk, multipath reflection, surface wavelength effects, and random noise. The residual biases for each of the three projection bands are calculated separately, yielding... Three full-resolution residual deviation maps.
[0102] S342. Based on the residual deviation map, scale correction is performed on the four sets of three-channel true light intensity maps after filtering to obtain the scale-corrected four sets of three-channel true light intensity maps.
[0103] The three residual deviation maps are decomposed and corrected step by step at three scales. The correction at each scale is independent. After the correction at the previous scale, the image needs to be updated and the phase needs to be recalculated before proceeding to the next scale.
[0104] Scale 1 (high frequency, 31×31 neighborhood): This scale targets crosstalk components that change rapidly within a 31×31 pixel range. These components typically originate from short-range effects of multipath reflection and local scattering.
[0105] right For each pixel in the three images, a 31×31 neighborhood is taken centered on that pixel. The average residual bias within this neighborhood is calculated to obtain a low-frequency background estimate. This low-frequency background estimate is then subtracted from the original residual bias of the pixel to obtain the high-frequency component. The high-frequency component reflects the abrupt change in the pixel's bias relative to the average level within its surrounding 31 pixels, and is a primary indicator of rapidly changing crosstalk.
[0106] The trigger threshold is set to twice the standard deviation of the phase fluctuation in the flat area of the whiteboard during the calibration phase, representing the system noise floor. Crosstalk that needs correction is only considered to exist at a certain pixel in a certain band when the absolute value of the high-frequency component exceeds this trigger threshold, thus avoiding correction of the noise itself. The correction magnitude is limited to 3% of the dynamic range of the image in that band to prevent excessive single correction from introducing new errors. The specific method for correcting this scale deviation is shown in step S343. After the correction is completed, the four phase-step intensity maps of that band are updated, the wrap-around phase of that band is recalculated, and the residual deviation map of that band is recalculated.
[0107] Scale 2 (mid-frequency, 15×15 neighborhood): This scale is designed for medium-speed crosstalk components that vary within the 15 to 31 pixel scale range.
[0108] On the residual deviation map after scale 1 correction and update, the mean residual deviation in a 31×31 neighborhood and the mean residual deviation in a 15×15 neighborhood are calculated for each pixel, and the difference between the two mean residual deviations is the mid-frequency component.
[0109] The trigger threshold is set to three times the standard deviation of the phase fluctuation in the flat area of the whiteboard during the calibration phase. This is stricter than scale 1 because the mid-frequency components may be influenced by contributions from surface color gradations; increasing the threshold reduces false triggers. The correction magnitude is limited to 2% of the dynamic range, which is more conservative than scale 1. The specific method for correcting this scale deviation is described in step S343. After correction, the residual deviation map is recalculated.
[0110] Scale 3 (Globally Gradually Varying Components): This scale targets crosstalk components that vary slowly over a wide range, with spatial scales exceeding 15 pixels. These components may originate from large-scale multipath reflections or global residuals from small drifts in S32 model parameters.
[0111] On the scale 2 corrected and updated residual deviation map, the mean residual deviation within a 15×15 neighborhood and the mean residual deviation of the whole image are calculated for each pixel. The difference between the two mean residual deviations is the global slowly varying component, which represents the deviation of the background at the 15-pixel scale of that pixel from the average level of the whole image.
[0112] The trigger threshold is set to 5 times the standard deviation of the phase fluctuation in the flat area of the whiteboard during the calibration stage. This is because the probability of surface wavelength effects and low-frequency calibration errors being mixed in among the globally slowly varying components is the highest. The threshold is set to 5 times the noise standard deviation to ensure that only explicit crosstalk is corrected. The specific method for correcting this scale deviation is shown in step S343, and the correction magnitude is limited to 1% of the dynamic range.
[0113] The correction amount is applied frame by frame to the band image that is determined to be corrected in the four sets of filtered three-channel true light intensity maps to obtain the updated four sets of three-channel true light intensity maps.
[0114] S343, Scale Correction Implementation Method.
[0115] The pixels and their corresponding projection bands that are determined to require correction at the current scale are identified based on the following criteria: For each pixel, three projection bands are counted whose absolute values of the deviation components exceed the trigger threshold at the current scale. If only one band exceeds the threshold, that band is designated as the correction band; if two or three bands exceed the threshold, the band with the largest absolute value of the deviation component is selected as the correction band; if no band exceeds the threshold, the pixel is skipped. The specific correction process is as follows: The band to be corrected is determined based on the above criteria. and its deviation component values (High-frequency components, mid-frequency components, globally slowly varying components), s represents the scale index; when only one band exceeds the standard, it means that the phase of that band is significantly deviated from the other two bands, and crosstalk is most likely concentrated in that band; when multiple bands exceed the standard, the band with the largest deviation is most deeply contaminated by crosstalk and should be corrected first. calculate Phase-intensity sensitivity Specifically, using the four-step phase shift formula for analytical derivation, the phase-intensity sensitivity for the current four frames is: ,in These are the current pixel values of the four-step phase-shifted frames for this channel; To set the lower limit threshold for modulation, 5% of the median modulation of the entire image is used to prevent sensitivity divergence. For modulation levels below... For pixels in this band, the signal is too weak and the phase is unreliable, so the correction is skipped directly. The calculated strength correction is and to Spatial Gaussian smoothing is performed with a smoothing radius of 2 pixels to ensure a continuous spatial transition of the correction amount, avoiding local abrupt changes and phase discontinuities between adjacent pixels caused by single-pixel correction. Multiply the smoothed intensity correction by the three-channel joint constraint weight at that pixel. Harmony system normalization factor , The stripe modulation density of the band to be corrected at a certain pixel; The median modulation index of the entire image for the band to be corrected is used. The joint constraint weights serve the following purposes: pixels with low availability across the three projection bands (such as occluded boundaries and shadow areas) have low confidence in correction, and the correction amount should be reduced. The modulation index normalization factor serves the following purposes: for pixels with a modulation index higher than the median of the entire image, the factor is 1, and the correction amount is not reduced; for pixels with a modulation index lower than the median, the factor is less than 1, and the correction amount is reduced accordingly. Both factors work together to ensure the conservatism and reliability of the correction. The absolute value of the weighted correction is truncated to a percentage of the dynamic range specified by the scale to prevent overshoot or the introduction of new errors caused by an excessively large single correction. The final truncation correction is added to the pixel position on the filtered true light intensity map of the four phase-shifted steps of this band, that is, the same intensity correction is applied synchronously to the four frames of the image of this band in the current processing stage.
[0116] The three scales are executed sequentially. After each scale is corrected, the image is updated and the phase is recalculated before proceeding to the next scale.
[0117] This step does not perform spatial smoothing filtering on the entire image. Instead, it applies a small intensity correction to the four-step phase-shifted image of that band only at locations where crosstalk is detected by geometric consistency testing. The correction amount itself undergoes slight spatial smoothing, but the original value remains unchanged in areas of the image that do not exceed the limit. Therefore, the object outline and stripe edge details are fully preserved, and edge blurring is not caused by filtering.
[0118] S344. Determine the arctangent accuracy of phase calculation under different scenarios.
[0119] When calculating the wrapped phase using the four-step phase-shifting method, the arctangent needs to be calculated. Generally, to speed up the calculation, the arctangent is approximated using a pre-generated lookup table. That is, the arctangent input is quantized into 4096×4096 discrete values, each corresponding to a pre-stored phase result, which can be obtained by looking up the table. This approximation introduces a small phase quantization error, which manifests as tiny, uncorrelated fluctuations between pixels in the image.
[0120] In steps S34 and S35, the bias calculation is based on the difference between the equivalent phases of the three projected bands. If lookup table quantization errors are mixed into the phase values, these errors will directly enter the residual bias and be treated as high-frequency components during multi-scale decomposition. When the scale 1 threshold is only twice the noise standard deviation, the lookup table error may approach or even exceed this threshold, leading to false triggering of corrections or inaccurate correction amounts.
[0121] Therefore, in the deviation calculation, multi-scale decomposition, and iterative deviation calculation stages of step S34, the arctangent in the phase solution is always calculated precisely (e.g., directly calculated by calling the arctangent function from the mathematical library), without using table lookup approximation. In other cases where phase accuracy is not critical (such as the phase solution in the coarse depth estimation of step S33), a 4096×4096 lookup table is still used to speed up the process and reduce computational costs.
[0122] This measure ensures that the phase values on which deviation detection and correction decisions are based do not contain systematic fluctuations caused by quantization, and that corrections are only performed at locations where crosstalk deviations actually exist.
[0123] S35. Iteratively refine the four sets of three-channel true light intensity maps after scale correction to obtain four sets of pure three-channel true light intensity maps.
[0124] Each of the three scale corrections in step S34 is performed only once, and the amount of correction is limited. When scene-level crosstalk is strong, a single correction is insufficient to make the phase of the three projection bands meet geometric consistency.
[0125] Using the scale-corrected four sets of three-channel true light intensity maps output in step S34 as input, the image is divided into 32×32 pixel macroblocks. Each macroblock maintains a state marker, initially all of which are in iteration. The maximum number of iterations is set to 5, and the convergence threshold is 0.01 radians. The specific iterative process is as follows: Step S341 is executed to calculate the residual deviation. For each macroblock in iteration, the residual deviation of all pixels within the block is counted, and the 90th percentile and maximum value of the deviation within the block are calculated. When the 90th quantile is below 0.01 radians and the maximum value is below 0.05 radians, the macroblock is marked as converged and will not be processed in subsequent iterations. For macroblocks still in iteration, the average deviation of the current macroblock is compared with the average deviation of the previous iteration. If the current deviation is more than 5% larger than the previous one, it indicates that the correction direction of the macroblock has gone out of control. The macroblock is then reverted to the image state of the previous round and marked as reverted, and will not be corrected further. For macroblocks still in iteration, there are 1024 pixels inside, and each pixel provides a pair of data: the residual deviation value of a certain projection band at that pixel. and the modulation value of the projection band at that pixel Expanding the two quantities of these 1024 pixels in pixel order yields two discrete sequences. For each projected band, the correlation coefficient is calculated using the corresponding residual bias sequence and modulation sequence to obtain the bias-modulation correlation coefficient for that band. One correlation coefficient is calculated for each of the three bands. When the correlation coefficients for all three bands are below 0.2, it indicates that the macroblock bias is unrelated to the intensity of fringe modulation (but rather to the effect of translucent material penetration, etc.), and it is marked as a material limitation. Correction is stopped, and the current image remains unchanged. For macroblocks still in the iteration process, the correction amount is calculated according to the correction methods in steps S342 and S343, but the correction amplitude is narrowed to 2% of the dynamic range and applied to the true intensity map of the four phase-shift steps for that band. This process continues until all macroblocks converge or the upper limit of 5 iterations is reached.
[0126] After the iteration, four sets of clean three-channel true light intensity maps are output. For macroblocks in the state of rollback or material limitation, they are marked as 1 (unreliable) in the unreliable region map, and the rest are marked as 0. When the iteration exits, the residual deviation map calculated in the first step of the last iteration is the final residual deviation map. It records the remaining deviation level in the image at the end of the iteration, reflecting which pixels' deviations have converged to within the threshold and which macroblocks still have high residuals after rollback or being marked as material limitation.
[0127] Through multi-scale deviation decomposition and iterative correction, the local phase jump caused by crosstalk is gradually corrected, and the equivalent phase of the three projection bands is restored to be smooth and consistent. At the same time, the correction process only targets systematic deviations, and random small noises are not amplified. Local phase jumps and small noises are effectively suppressed in the output pure three-channel true light intensity map.
[0128] S4. Perform phase wrapping and absolute phase unwrapping on the four sets of pure three-channel true light intensity maps to obtain the final continuous absolute phase map of the three channels.
[0129] This step involves performing phase wrapping and absolute phase unwrapping on four sets of pure three-channel true light intensity maps, outputting three sets of high-precision continuous absolute phase maps. Specifically, it consists of the following sub-steps: S41. Perform a wrapping phase solution on the four sets of pure three-channel true light intensity maps to obtain the wrapping phase map of the three-band channels.
[0130] Based on four sets of pure three-channel true light intensity maps, for each projection band c... Corresponding to the blue, green, and red bands respectively, the pure light intensity map of band c at four phase shift steps is taken. The wrapping phase is calculated pixel by pixel using the four-step phase shift method to initially obtain the phase distribution data of the object surface, thus obtaining the wrapping phase of the pixel in that band. The value range is [-π, π). This calculation is performed independently for each pixel and has no inter-pixel dependency.
[0131] The wrapping phase is calculated for each of the three projected bands, and the wrapping phase diagrams for each of the three bands are obtained. The wrapping phase is the principal phase value caused by the periodicity of the sinusoidal fringes, and there is a 2π jump, which requires further unwrapping.
[0132] S42. Unwrap the wrapped phase diagram of the three-band channel to obtain the continuous absolute phase diagram of the three-band channel.
[0133] This step unwraps the three wrapped phase maps respectively, eliminates the 2π periodic jumps in the wrapped phases, and restores the continuous phase distribution.
[0134] Specifically, the quality-guided branch-cutting method is adopted: the three fringe modulation maps output in step S32 are used as quality maps. Pixels with higher modulation are more reliable in their wrapped phase and are unwrapped first. Pixels with lower modulation are more affected by noise in their phase and should be processed later and under branch-cutting constraints. Then, the residual points in the wrapped phase map are detected (determined by the position where the 2×2 neighborhood loop integral in the wrapped phase map is not zero) and branch-cutting lines are set to constrain the unwrapping path to prevent the unwrapping error in low-quality areas from propagating outward.
[0135] The unwrapping process is performed independently on the wrapped phase maps of the three projected bands to obtain three continuous absolute phase maps.
[0136] S43. The continuous absolute phase map of the three-band channels is obtained by multi-frequency heterodyne to avoid phase ambiguity.
[0137] The absolute phase of a single-frequency fringe can be ambiguous at points of abrupt changes in object height. When the absolute phase difference between adjacent pixels exceeds 2π, it becomes impossible to determine whether the jump is due to a true depth change or phase wrapping. This step uses multi-frequency heterodyne technology to fuse the phase information of high-frequency fringes (high precision but small measurement range) and low-frequency fringes (large measurement range but low precision), expanding the measurement range while maintaining high-frequency precision and avoiding phase ambiguity.
[0138] Specifically, for each projection band, the absolute phase of the high-frequency fringes in that band is the continuous absolute phase map of the corresponding band obtained in step S42. The absolute phase of the low-frequency fringes is the continuous absolute phase map of the low-frequency fringes obtained by processing the four original images of the low-frequency fringes projected by the projector in step S1 through steps S2-S42. During fusion, the low-frequency absolute phase is used as coarse-level position information, and the high-frequency absolute phase is used as fine-level position information: first, the low-frequency phase is used to determine the 2π period interval to which the pixel belongs, and then the high-frequency phase is used to accurately locate it within that interval, resulting in a final absolute phase that is both unambiguous and highly accurate.
[0139] The above fusion operation is performed on the three projection bands respectively to obtain the final three consecutive absolute phase maps.
[0140] S5. The three-dimensional mesh model of the object under test is generated by fusing the continuous absolute phase map of the final three channels through single-view 3D reconstruction and multi-view point cloud registration.
[0141] This step involves independently converting each continuous absolute phase image into a single-view 3D point cloud, then registering and fusing the three point clouds into a complete 3D mesh model, outputting the final 3D topography data of the measured object. Specifically, it consists of the following sub-steps: S51. Perform three-dimensional reconstruction on the continuous absolute phase map of the three channels to obtain three sets of optimized single-view point clouds.
[0142] For the three consecutive absolute phase images output in step S4 (one for each projection band), combined with the calibrated intrinsic parameters of the color CMOS camera, the intrinsic and extrinsic parameters of the three DLP projectors, and their distortion coefficients, the absolute phase value of each projection band is converted into the spatial three-dimensional coordinates of the corresponding object surface point pixel by pixel using the principle of triangulation. Specifically, the absolute phase value corresponds to an equiphase line in the projector image plane, and this equiphase line determines a spatial ray through the projector's optical center; simultaneously, the pixel coordinates determine another spatial ray through the camera's optical center; the intersection of the two rays is the spatial position of the object surface point corresponding to that pixel. The pixel coordinates and projector image coordinates involved in the calculation are first corrected using the camera distortion coefficient and the projector distortion coefficient, respectively. The calculations are performed independently for each of the three projection bands, resulting in three sets of single-view original point clouds.
[0143] Statistical filtering is performed independently on each set of original point clouds: for each point in the point cloud, the mean and standard deviation of the distances to its nearest neighbors are calculated, and points with distance deviations exceeding a preset multiple (e.g., 2 times) are identified as outliers and removed; for the remaining local holes after removal, small holes are repaired by neighborhood interpolation. This results in three sets of filtered and optimized single-view 3D point clouds, each corresponding to a projection band viewpoint. The three sets of point clouds overlap in coverage and complement each other in occlusion areas.
[0144] S52. After coarse registration and fine registration, the three sets of optimized single-view point clouds are fused to obtain a complete three-dimensional point cloud.
[0145] This step utilizes the complementarity of the point clouds from three different perspectives to eliminate occlusion blind spots in single-view imaging, unifying the three sets of point clouds into the same coordinate system and fusing them into complete, blind-spot-free point cloud data. Specifically, it involves the following processes: During the triangulation process on the S51, the three sets of optimized single-view point clouds were transformed to the same camera coordinate system, and the initial alignment was naturally established. However, due to the influence of the extrinsic parameter calibration errors of the three projectors, there is a systematic mismatch on the order of millimeters in the overlapping area of the three sets of point clouds. The purpose of coarse registration is to use the correspondence between the point clouds in the overlapping area to solve a preliminary rigid body transformation based on this initial alignment, further reducing the mismatch in the overlapping area and providing better initial values for fine registration.
[0146] Coarse registration employs a common point cloud coarse alignment method: local geometric features are extracted from the overlapping regions between each pair of the three point clouds, and the rigid body transformation matrix is solved based on feature matching. This initially reduces the registration error of the three point clouds in the overlapping regions from the millimeter level to the sub-millimeter level. Local geometric features include Internal Shape Signature (ISS) keypoints, Fast Point Feature Histogram (FPFH), normal vector features, curvature features, etc.
[0147] Fine Registration: Based on coarse registration, an improved Iterative Closest Point (ICP) algorithm is used to perform fine registration on each pair of the three point clouds. The sum of the Euclidean distances between the nearest neighbor pairs within the overlapping region of the two point clouds is used as the cost function to iteratively solve for the optimal spatial transformation matrix, gradually reducing the registration error between the two point clouds. The improved ICP removes outlier point pairs whose distance exceeds a preset threshold in each iteration and introduces a transformation matrix change threshold in the convergence criterion to avoid getting trapped in local minima. After completing the blue-green and blue-red fine registrations sequentially, the registration error of the three point clouds in the overlapping region is reduced to the sub-millimeter level. The mean and standard deviation of the distances between all point pairs in this iteration are calculated. The preset threshold is the sum of the mean and k times the standard deviation, where k ranges from [2,3]. The transformation matrix change threshold includes: the rotation matrix change threshold is set to a change in rotation angle less than [2,3] between two adjacent iterations. The threshold for the change in translation vector in radians is set to be less than the change in displacement between two adjacent iterations. Convergence is determined when both conditions are met. A maximum of 50 iterations is also reserved as a fallback.
[0148] Point cloud fusion: The three sets of point clouds after fine registration are merged using a voxel-weighted fusion algorithm. The space is divided into a voxel grid with a set side length (1 to 3 times the average point spacing of the point clouds). For points from different viewpoints within each voxel, weights are assigned according to the distance from the point to the optical center of its respective viewpoint (the closer the distance, the greater the weight). The weighted average position is calculated as the representative point of the fused voxel. In overlapping areas, the point clouds from all three viewpoints contribute together, resulting in a smoother fusion. In occluded areas, the unoccluded viewpoints contribute individually, filling in the blind spots of a single viewpoint. After fusion, a complete point cloud without any blind spots is obtained.
[0149] S53. Reconstruct the complete 3D point cloud into a 3D mesh model of the object under test by meshing.
[0150] This step converts unorganized 3D point cloud data into a 3D mesh model with topological connections, outputting smooth, complete, and closed final 3D topographic data of the measured object.
[0151] Specifically, the Poisson reconstruction algorithm is used to process the fused complete 3D point cloud: The position of each point in the fused point cloud and its estimated neighborhood normal vector are used as input. An indicator function is fitted by solving the Poisson equation, and the isosurface of this indicator function is the optimal estimate of the object's surface. A triangular mesh is extracted from this isosurface to obtain the 3D mesh model of the object under test. Poisson reconstruction smooths local noise in the point cloud and maintains good surface continuity even in areas with uneven point cloud density. After reconstruction, the mesh boundaries are trimmed according to the actual coverage of the fused point cloud, removing redundant patches beyond the measurement range. The resulting 3D mesh model of the object under test has a smooth surface, complete structure, and no single-view occlusion blind spots, and can be directly used for industrial inspection, reverse engineering, and other applications.
[0152] 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 method for phase recovery and decoding of multi-color projection synchronous acquisition, characterized in that, include: S1. Configure a multi-projection architecture and acquire four original images of the object under test through the multi-projection architecture; S2. Perform channel splitting on the four original images to extract the RGB sparse map, and then perform interpolation to complete and filter to suppress false colors to obtain four initial RGB three-channel images. S3. For the four initial RGB three-channel images, the principle of phase consistency between different channel bands is used as the crosstalk detection criterion. Cross-band crosstalk noise is eliminated step by step from the intensity domain, frequency domain and spatial domain to obtain four sets of pure three-channel real light intensity images. S4. Perform phase wrapping and absolute phase unwrapping on the four sets of pure three-channel true light intensity maps to obtain the final continuous absolute phase map of the three channels. S5. The three-dimensional mesh model of the object under test is generated by fusing the continuous absolute phase map of the final three channels through single-view 3D reconstruction and multi-view point cloud registration.
2. The method for phase recovery and decoding of multi-color projection synchronous acquisition as described in claim 1, characterized in that, Configure a multi-projection architecture and acquire four original images of the object under test using the multi-projection architecture. The specific steps are as follows: A multi-projection architecture consisting of three projectors and one camera; Projection pattern configuration of three projectors; Based on the synchronous trigger pulse, the three projectors synchronously switch the projected pattern, and the camera captures four frames of original images.
3. The method for phase recovery and decoding of multi-color projection synchronous acquisition as described in claim 1, characterized in that, The four original images are split into channels to extract RGB sparse maps. After interpolation and filtering to suppress false colors, four initial RGB three-channel images are obtained. The specific steps are as follows: The four original images are split into R, G, and B sparse maps that retain only the corresponding color sample values; Based on color difference consistency, adaptive interpolation is performed on the R, G, and B sparse maps to obtain four sets of initial RGB three-channel images. False color suppression is performed on edge region pixels in four initial RGB three-channel images.
4. The method for phase recovery and decoding of multi-color projection synchronous acquisition as described in claim 3, characterized in that, The four original images are split into R, G, and B sparse maps that retain only the corresponding color sample values. Specifically, for each of the four original Bayer format images, the position type is determined pixel by pixel according to the GR / BG checkerboard arrangement rule. Based on the pixel position type, the original image is split into three sparse maps: R, G, and B. In each sparse map, only the sample value corresponding to the color position is retained, and the other positions are empty.
5. The method for phase recovery and decoding of multi-color projection synchronous acquisition as described in claim 1, characterized in that, Cross-band crosstalk noise refers to the interference components formed when light from a certain projection band enters the image of other band channels, caused by overlapping spectral responses of color cameras, multipath reflections from object surfaces, etc.
6. The method for phase recovery and decoding of multi-color projection synchronous acquisition as described in claim 1, characterized in that, The four sets of pure three-channel true light intensity maps are subjected to phase wrapping and absolute phase unwrapping to obtain the final continuous absolute phase map of the three channels. The specific steps are as follows: The phase wrapping solution is performed on four sets of pure three-channel true light intensity maps to obtain the phase wrapping maps of the three-band channels; Unwrap the wrapped phase map of the three-band channel to obtain the continuous absolute phase map of the three-band channel; The continuous absolute phase maps of the three-band channels are obtained by multi-frequency heterodyne analysis to avoid phase ambiguity, resulting in the final continuous absolute phase maps of the three channels.
7. The method for phase recovery and decoding of multi-color projection synchronous acquisition as described in claim 1, characterized in that, The final three-channel continuous absolute phase map is fused with single-view 3D reconstruction and multi-view point cloud registration to generate a 3D mesh model of the object under test. This process is divided into the following sub-steps: Three-dimensional reconstruction was performed on the continuous absolute phase map of the three channels to obtain three sets of optimized single-view point clouds; Three sets of optimized single-view point clouds were fused together after coarse and fine registration to obtain a complete 3D point cloud; The complete 3D point cloud is reconstructed into a 3D mesh model of the object under test through meshing.
