This application claims priority of Chinese Patent Application No. 202410126225.5, filed on Jan. 30, 2024, the entire contents of which are incorporated herein by reference.
The present application relates to the technical field of optical measurement and, more particularly, to a structured light three-dimensional measurement method based on joint multi-frequency heterodyne and time-gated overlapping coding strategy.
Structured light imaging is a method that captures the three-dimensional topography of a surface using specific patterns of light. It maintains various advantages including easy implementation, non-contact, speediness, high precision, low cost, etc., and is widely applied in industrial production, medical imaging and computer vision.
At present, multiple phase-shifting patterns are widely used in structured light three-dimensional measurement methods to calculate the three-dimensional morphology. Particularly, in a structured light three-dimensional measurement method, a single-frequency phase-shifting fringe pattern set and a Gray code pattern are used and re-arranged in time domain. Due to the limited frames of image to be used in one single measurement, high-speed three-dimensional topography that is necessary for dynamic recording is promised. The Gray code pattern herein is used for the phase unwrapping, which, however is complex in computation and requires high hardware performance. Besides, the phase-shifting fringe images that contain only a single frequency typically lead to poor stability of phase-unwrapping.
In view of this, the present application proposes a structured light three-dimensional measurement method based on joint multi-frequency heterodyne and time-gated overlapping coding strategy. The goal is to improve the stability of phase-unwrapping while maintaining the advantages in existing structured light three-dimensional measurement methods that utilize single-frequency phase-shifting fringe images.
To this end, the present application provides the following solutions.
Preferably, the method is applied to a structured light three-dimensional measurement system. The system includes a computation module, a projector module and an image acquisition module. The three-dimensional measurement method includes:
Preferably, extracting each wrapped phase map by using the time-gated overlapping coding strategy includes:
Preferably, calculating the wrapped phase map pertained to each group of fringe images by using the phase-shifting method includes:
Preferably, calculating the unwrapped phase map pertained to each target wrapped phase map set by using the multi-frequency heterodyne method includes:
Preferably, calculating the heterodyne phase between any two wrapped phases with different spatial frequencies in a target wrapped phase map set includes:
Preferably, performing weighted averaging on the heterodyne phase pertained to each of the spatial frequencies in the heterodyne phase set according to the averaging-error effect includes:
It can be found from the above technical solutions that the present application proposes a structured light three-dimensional measurement method based on joint multi-frequency heterodyne and time-gated overlapping coding strategy. The computation module generates at least two groups of sinusoidal fringe images that maintain a fixed number of phase-shifting steps but different spatial frequencies to obtain a sinusoidal fringe image set. The projector module projects the sinusoidal fringe images collected from the sinusoidal fringe image set onto an interrogated target in a continuous loop. The image acquisition module synchronously collects fringe images modulated by a surface of the target to obtain a fringe image set. The computation module groups the fringe images collected from the fringe image set according to the number of phase-shifting steps, and calculates the wrapped phase map pertained to each group of the fringe images according to the phase-shifting method to obtain a wrapped phase map sequence. The wrapped phase maps are firstly extracted with the time-gated overlapping coding strategy. And then, the wrapped phase maps are sorted according to the spatial frequency to obtain a set pertained to a target. Subsequently, the phases are unwrapped by using the multi-frequency heterodyne method. Finally, the unwrapped phase map sequence in conjunction with the calibration parameters are used to obtain a three-dimensional point cloud sequence by taking the properties of similar triangles. The present application proposes a measurement method that uses a series of sinusoidal fringe images at different spatial frequencies, the temporal correlation among the fringe images is fully exploited by the proposed time-gated overlapping coding projection strategy to further improve the measurement accuracy. Furthermore, the present application uses multi-frequency heterodyne method for phase unwrapping, promising high stability of phase-unwrapping and high measurement accuracy. Besides, only a few sinusoidal fringe images need to be used to complete one single measurement, highly promoting the measuring speed. At last, the phase unwrapping is achieved with the developed multi-frequency heterodyne method, which maintains lightweight computation and low-cost hardware.
To clarify the technical solution in the present application or other existing technologies, a brief description on the attached drawings that are used in the present application or other existing technologies is given below. The drawings attached below are used only in the present application. To the technicians in this community, they could make similar drawings other than those attached below without taking creative efforts.
Technical solutions in the present application will be specifically described as below by using the drawings attached. Obviously, the examples described below are only a part of those in the present application. All the examples that are based on the one proposed in the present application and made by the technicians in this community without taking creative efforts are within the scope of protection claimed in the present application.
The principle of the structured light three-dimensional measurement method based on joint multi-frequency heterodyne and time-gated overlapping coding strategy in the present application is introduced. As shown in
In step S01, the computation module generates at least two groups of sinusoidal fringe images that maintain a fixed number of phase-shifting steps but different spatial frequencies, and uploads the same to the projector module.
Specifically, the computation module 1 generates a set of sinusoidal fringe images with a total of M spatial frequencies and N phase-shifting steps. Then, the generated image set is uploaded to the projector module 2. Take the sinusoidal structured light that contains three spatial frequencies (i.e., M=3) and four phases (i.e., N=4) as an example, the size of projection pattern is set to be the same as the inherent resolution of the projector (i.e., 1140×912), and the three spatial frequencies are 1/36, 1/35, and 1/30, respectively. An 8-bit sinusoidal fringe image can be generated according to Formula 1,
where p(∈{36,35,30}) is the reciprocal of spatial frequency pertained to the sinusoidal fringe image, i.e., the number of fringes in the sinusoidal fringe image; n(∈{1,2,3,4}) represents the number of phase-shifting steps; and (u,v) represents the coordinate of a pixel of the sinusoidal fringe image with u=1, 2, . . . , 1140 and v=1, 2, . . . , 912. The sinusoidal fringe images are re-organized in a sequence of I36,1, I36,2, I36,3, I36,4, I35,1, I35,2, I35,3, I35,4, I30,1, I30,2, I30,3, I30,4, and uploaded to the projector module 2.
In step S03, the image acquisition module that is synchronized to the projector module captures the fringe images modulated by the target surface, and uploads the same to the computation module.
Specifically, each sinusoidal fringe image that projected by the projector module 2 is modulated by the target surface, and is simultaneously captured by the image acquisition module 3. Then, the captured sinusoidal fringe images are uploaded to the computation module 1. For example, the sinusoidal fringe images that captured by the image acquisition module 3 and uploaded to the computation module 1 can be expressed as {I1′, I2′, I3′, . . . , IL′} with a length of L(=3×4×k), where k(=1, 2, 3, . . . , +∞) represents the number of cyclically projecting loops.
In step S04, the fringe images that are uploaded to the computation module are grouped according to the number of phase-shifting steps to calculate the corresponding wrapped phase map by using the phase-shifting method.
Specifically, the computation module 1 groups the fringe images that are uploaded from the image acquisition module 3 according to the spatial frequency. Subsequently, each group the fringe images that is pertained to a specific spatial frequency is used to calculate the wrapped phase map by using the phase shifting method. Take the sinusoidal structured light that contains three spatial frequencies (i.e., M=3) and four phases (i.e., N=4) as an example, the four fringe images pertained to a fixed spatial frequency are grouped together. Assuming that cyclic projections are performed with the number of loops being k, a total of S(=M×k) groups that have N target-modulated sinusoidal fringe images can then be obtained. Following the phase-shifting method, the wrapped phase maps pertained to each group of sinusoidal fringe images can be calculated. Specifically, the wrapped phase maps {θ1, θ2, θ3, . . . , θS} can be calculated according to Formula 2
where (x,y) represents a pixel coordinate of a fringe image; {Is,1, Is,2, Is,3, Is,4} represent the fringe images in a group with a fixed spatial frequency but varied number of phase-shifting steps.
In step S05, the wrapped phase maps are firstly extracted by using the time-gated overlapping coding strategy, and then are sorted according to the spatial frequency.
Specifically, the wrapped phase maps that correspond to each of the fringe image groups are extracted. And then, these wrapped phase maps are sorted in ascending order of the spatial frequency, representing the phase maps that account for one complete measurement (ψ).
In step S06, the unwrapped phase maps that corresponds to each set of wrapped phase maps are calculated based on the multi-frequency heterodyne method.
Specifically, the unwrapped phase maps that corresponds to each set of wrapped phase maps are calculated based on the multi-frequency heterodyne method. The number of the unwrapped phase maps is M(k−1)+1, equal to that of the measurements (ψ).
In step S07, the unwrapped phase maps combined with the calibration parameters are used to calculate the corresponding three-dimensional point clouds according to the properties of similar triangles.
Specifically, the three-dimensional point clouds are calculated by using the unwrapped phase maps together with the parameters of both the camera and projector confirmed by the pre-calibration process. The total number of the point cloud results is M(k−1)+1.
The present application provides a method of structured-light three-dimensional measurement that utilizes the joint multi-frequency heterodyne and time-gated overlapping coding strategy. The computation module generates a series of sinusoidal fringe images with a fixed number of phase-shifting steps but varied spatial frequencies (two kinds at least). Firstly, the projector module projects the sinusoidal fringe images onto the interrogated target in a continuous loop. Then, the image acquisition module synchronously collects the fringe images modulated by the target. Subsequently, the fringe images are grouped in the computation module according to the number of phase-shifting steps, and processed to obtain the corresponding wrapped phase maps according to the phase-shifting are re-organized based on the time-gated overlapping coding strategy and sorted according to the spatial frequency. Moreover, the wrapped phase maps are used to calculate the corresponding unwrapped phase maps by using the multi-frequency heterodyne method. Finally, each of the unwrapped phase map sets is used to derive the corresponding three-dimensional point cloud by using the properties of the similar triangles in conjunction with the calibration parameters. The present application proposes a measurement method that uses a series of sinusoidal fringe images at different spatial frequencies, the temporal correlation among the fringe images is fully exploited by the proposed time-gated overlapping coding projection strategy to further improve the measurement accuracy. Furthermore, the present application uses multi-frequency heterodyne method for phase unwrapping, promising high stability of phase-unwrapping and high measurement accuracy. Besides, only a few sinusoidal fringe images need to be used to complete one single measurement, highly promoting the measuring speed. At last, the phase unwrapping is achieved with the developed multi-frequency heterodyne method, which maintains lightweight computation and low-cost hardware.
The example of the present application introduces the process of calculating an unwrapped phase corresponding to the target wrapped phase set based on a multi-frequency heterodyne method to obtain an unwrapped phase sequence in step S06.
In step S061, a heterodyne phase between any two wrapped phases with different spatial frequencies in the target wrapped phase set is calculated to obtain a heterodyne phase set.
Specifically, assuming that φ1, φ2, . . . , φM are the wrapped phase maps with h1, h2, . . . , hM being the corresponding spatial frequencies sorted in descending order. Φ1 is the multi-frequency heterodyne phase-unwrapping result that unwrapped with wrapped phase map φ1. The unwrapped phase maps that correspond to each set of the target wrapped phase maps Φm (m=1, 2, 3, . . . , M) are calculated following formula 3
where [⋅, ⋅, . . . , ⋅] is a multi-frequency heterodyne phase unwrapping operation and round[⋅] represents a rounding function. M is the number of spatial frequencies; φm (m=1, 2, 3, . . . , M) represents the wrapped phase maps pertained to the spatial frequencies (hm (m=1, 2, 3, . . . , M)) that sorted in an ascending order, respectively.
For the wrapped phase maps θi and θj that are pertained to the spatial frequencies fi and fj, the dual-frequency heterodyne phase map θij is calculated as follows:
The dual-frequency heterodyne unwrapping operation [θi:θj] is performed on θi and θj as follows:
therefore [⋅:⋅] represents a dual-frequency heterodyne phase unwrapping operation.
The multi-frequency heterodyne unwrapping result of φm (m=1, 2, 3, . . . , M) is derived as below:
where [φ1, φ2, φ3, . . . , φM] represents the multi-frequency heterodyne unwrapped phase map that pertained to the spatial frequency h1.
Take the sinusoidal structured light (M=3, N=4) with the spatial frequencies of
and as an example: an initial wrapped phase map corresponding to the zth (z=(3, 4, 5, . . . , 3k) and k(=1, 2, 3, . . . , +∞) represents the number of cyclically projecting loops) wrapped phase map φz includes: wrapped phase maps φz-2, φz-1 and φz. The wrapped phases are sorted in an ascending order according to corresponding spatial frequencies, and a target wrapped phase maps θz1, θz2 and θz3 corresponding to the zth unwrapped phase map is obtained. Spatial frequencies corresponding to θz1, θz2 and θz3 are 1/30, 1/35, and 1/36, respectively. A heterodyne unwrapped phase map corresponding to the zth frame of the wrapped phase θz is calculated as follows:
The multi-frequency heterodyne unwrapped phase map that pertained to the all spatial frequencies Φm (m=1, 2, 2, . . . , M) can be calculated as follow:
where φm (m=1, 2, 3, . . . , M) represents the wrapped phase maps pertained to the spatial frequencies (hm (m=1, 2, 3, . . . , M)) that sorted in an ascending order, respectively.
In step S062, according to an average error effect, weighted averaging is performed on the heterodyne phase corresponding to each of the spatial frequencies in the heterodyne phase set to obtain the unwrapped phase corresponding to the target wrapped phase set.
Specifically, weighted averaging is performed on the heterodyne phase corresponding to each of the spatial frequencies in the heterodyne phase set according to Formula 6,
where Φ is the final unwrapped phase map of multi-frequency phase unwrapping; M is the number of spatial frequencies; φm (m=1, 2, . . . , M) and Φm (m=1, 2, . . . , M) represent the wrapped phase maps and multi-frequency heterodyne unwrapped phase maps pertained to spatial frequencies hm (m=1, 2, . . . , M), respectively.
An example that shows the calculation of the zth multi-frequency unwrapped phase map with M=3 and spatial frequencies of
and is taken as below.
An initial wrapped phase set corresponding to the zth wrapped phase map includes: wrapped phases θz-2, θz-1 and θz. The wrapped phase maps are sorted in an ascending order according to corresponding spatial frequencies, and a target wrapped phase map set θz1, θz2 and θz3 corresponding to the zth wrapped phase map is obtained. Spatial frequencies corresponding to θz1, θz2 and θz3 are 1/30, 1/35, and 1/36. A triple-frequency heterodyne phase map corresponding to the zth wrapped phase map is calculated as follows:
where Φz1, Φz2 and Φz3 are unwrapped phase maps corresponding to spatial frequencies of 1/36, 1/35, and 1/30; Φfinal is the triple-frequency heterodyne unwrapped phase map corresponding to an zth wrapped phase map θz; and an unwrapped phase sequence {Φ3:Φ4:Φ5: . . . :Φ3×k} with a length of 3k−2 is obtained.
Finally, it is also to be noted that in this specification, relational terms such as “first” and “second” are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such an actual relationship or order between these entities or operations. Moreover, the terms “including”, “containing” or any other variations are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed or elements inherent to such a process, method, article or device. Without further restrictions, an element defined by the phrase “including one” does not exclude the existence of other identical elements in the process, method, article or device including the element.
Various examples are described in this specification in a progressive manner, with each example focusing on differences from the other examples. The same and similar parts among the various examples can only be referred to each other.
The previous description of the disclosed examples is provided to enable those skilled in the art to implement or use the present application. Many modifications to these examples will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other examples without departing from the spirit or scope of the present application. Therefore, the present application is not limited to the examples shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Number | Date | Country | Kind |
---|---|---|---|
202410126225.5 | Jan 2024 | CN | national |
Number | Name | Date | Kind |
---|---|---|---|
20050088745 | Cathey | Apr 2005 | A1 |
20120281087 | Kruse | Nov 2012 | A1 |
20150070472 | Chen | Mar 2015 | A1 |
20150109423 | Shimodaira | Apr 2015 | A1 |
20190271540 | Da | Sep 2019 | A1 |
20190379881 | Tewes | Dec 2019 | A1 |
Number | Date | Country |
---|---|---|
114018176 | Feb 2022 | CN |
114526692 | May 2022 | CN |
116399254 | Jul 2023 | CN |
2022198974 | Sep 2011 | WO |