Least square iteration phase unwrapping method based on four-step phase shift reconstruction and improvement
By employing a four-step phase-shift reconstruction and an improved least-squares iterative phase unwrapping method, the difficulties of unwrapping in phase unwrapping under noise and complex conditions are resolved, achieving high-precision and robust phase unwrapping results.
Patent Information
- Application Number
- CN202411042882.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-07-31
AI Technical Summary
In existing technologies, phase unwrapping algorithms have difficulty effectively handling phase unwrapping difficulties caused by noise, local shadows, broken stripe patterns, and undersampling, especially under complex conditions.
A least-squares iterative phase unwrapping method based on four-step phase-shift reconstruction and improvement is adopted. By generating four reference light fields and interfering with the object light field, a discrete Poisson equation is established and solved iteratively multiple times to optimize the partial derivative of the true phase and the difference of the wrapped phase difference, thereby minimizing the unwrapping error.
Improve unpacking accuracy, reduce errors, enhance algorithm robustness, and ensure phase unpacking quality and computational efficiency under noisy and complex conditions.
Smart Images

Figure CN118896545A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of structured light three-dimensional measurement, and in particular to a least squares iterative phase unwrapping method based on four-step phase shift reconstruction and improvement. Background Art
[0002] When performing optical measurements, a key step in processing interference signals and extracting light field information is to calculate the inverse tangent function. Since the inverse tangent function will cause the recovered phase data to be wrapped between [-π, +π], when the phase change is greater than one wavelength, it will cause phase discontinuity, so the true measurement information distribution cannot be directly obtained. Therefore, in order to obtain the true phase distribution, the truncated wrapped phase must be connected during actual measurement. This process is called phase unwrapping.
[0003] At present, the classic phase unwrapping algorithms can be divided into two categories: one is the path integral type algorithm represented by the branch cutting method and the quality map guided method, and the other is the path independent type algorithm represented by the least squares method. (1) The path integral type algorithm uses various strategies to find the best integral path and integrates the path to obtain the true phase after unwrapping. At the same time, by bypassing the noise area, it reduces or avoids the cumulative effect of error transmission during the phase unwrapping process; (2) The most typical representative of the path independent type algorithm is the minimum norm method, which transforms the unwrapping into a target optimization problem. Its principle is based on the minimum norm criterion framework, defines an equivalent function that can reflect the difference between the unwrapped phase gradient and the wrapped phase gradient, and then uses a reasonable and effective mathematical method to find the solution that minimizes the cost function. In principle, phase unwrapping seems to be a very simple problem, but in practice, the wrapped phase often contains noise, local shadows, fringe pattern breaks, and undersampling and error transmission caused by the phase changing too fast in space, making phase unwrapping a very difficult problem.
[0004] Although many experts and scholars at home and abroad have proposed many algorithms, there is currently no algorithm that can completely solve all the problems faced in phase unwrapping. Therefore, it is necessary to conduct in-depth and thorough research on the phase unwrapping algorithm and find a digital holographic microscopy phase unwrapping method suitable for various complex situations. Summary of the invention
[0005] In order to solve the problems existing in the prior art, the present invention provides a phase unwrapping method based on four-step phase shift reconstruction and improved least squares iterative method. The method includes: obtaining the object light field on the imaging surface after the light field passes through the lens during holographic photography; generating four reference light fields by changing the reference light phase to interfere with the object light field, obtaining a four-step phase shift hologram and performing inverse tangent calculation to obtain a wrapped phase map; establishing a discrete Poisson equation of the wrapped phase map according to the improved least squares method, and solving the discrete Poisson equation for multiple iterations to obtain the true phase of the wrapped phase map. The present invention uses an unwrapping algorithm that is optimized by multiple iterations of the least squares method to minimize the differential value of the partial derivative of the true phase and the wrapped phase difference, effectively reducing the unwrapping error under noise, and introducing the Poisson equation to improve the robustness of the algorithm while improving the quality of phase unwrapping.
[0006] The present invention adopts the following technical solution, based on four-step phase shift reconstruction and improved least squares iterative phase unwrapping method, including:
[0007] Obtain the object light field on the imaging surface after the light field passes through the lens during holographic photography;
[0008] By changing the phase of the reference light, four reference light fields are generated and interfere with the object light field respectively to obtain a four-step phase-shifted hologram.
[0009] Performing arc tangent calculation according to the four-step phase shift hologram to obtain a wrapped phase image;
[0010] A discrete Poisson equation of the wrapped phase diagram is established according to an improved least square method, and the real phase of the wrapped phase diagram is obtained by iteratively solving the discrete Poisson equation established by the improved least square method for multiple times.
[0011] Furthermore, four reference light fields are generated by changing the phase of the reference light, and interfere with the object light field respectively to obtain a four-step phase-shift hologram, including:
[0012] Assume that the object light field and the reference light field at point (x, y) in the holographic process are and R(x,y)=r(x,y)e jφ(x,y) , the reference light and the object light interfere with each other, and the phase of the object light is: The reference light and the object light interfere with each other to record the phase of the object light: I(x,y):
[0013]
[0014] Among them, o(x,y) represents the amplitude of the object light wave, represents the phase distribution of the object light field; r(x,y) represents the amplitude of the reference light field, and φ(x,y) represents the phase distribution of the reference light field;
[0015] The phase of the reference light is changed each time The four reference light fields are obtained as follows:
[0016] R i (x,y)=R(x,y)exp[j(i-1)π / 2],i=1,2,3,4
[0017] The four-step phase-shift hologram is obtained as follows:
[0018]
[0019] Among them, I1 represents the image plane hologram Figure 1 ; I2 represents image plane holography Figure 2 ; I3 represents image plane holography Figure 3 ; I4 represents image plane holography Figure 4 ; o(x,y) represents the amplitude of the object light wave, represents the phase distribution of the object light field; r(x,y) represents the amplitude of the reference light field, and φ(x,y) represents the phase distribution of the reference light field.
[0020] Furthermore, the wrapped phase map is obtained by performing an inverse tangent calculation based on the four-step phase shift hologram, and the expression is:
[0021]
[0022] in, represents the phase distribution of the object light field; φ(x,y) represents the phase distribution of the reference light field; I1 represents the image plane hologram Figure 1 ; I2 represents image plane holography Figure 2 ; I3 represents image plane holography Figure 3 ; I4 represents image plane holography Figure 4 .
[0023] Furthermore, a discrete Poisson equation of the wrapped phase diagram is established according to an improved least squares method, including:
[0024] Set the wrap phase to is the true phase, and The wrapping phases in the x-direction and the y-direction in the wrapping phase diagram are respectively and but:
[0025]
[0026] Among them, W is the wrapping operator;
[0027] The wrapped phase difference expression of the wrapped phase image is established based on the improved least squares algorithm:
[0028]
[0029] In the above formula, φ i,j Taking the derivative and setting it to 0, we get the Poisson equation:
[0030] φ i+1,j +φ i,j +φ i,j+1 -φ i,j-1 -4φ i,j =ρ i,j
[0031] in, Indicates the value of the wrap phase.
[0032] Further, the discrete Poisson equation is solved by multiple iterations, including:
[0033] The boundary conditions of the discrete Poisson equation are:
[0034]
[0035]
[0036] Substituting the wrapping phase in the x-direction and y-direction of the wrapping phase diagram into the discrete Poisson equation, we obtain:
[0037]
[0038] make Then we have:
[0039] k i+1,j +k i-1,j +k i,j+1 +k i,j-1 -k i,j =a i,j
[0040] The above formula is iteratively solved until the solution no longer changes, thereby obtaining the true phase of the wrapped phase diagram.
[0041] The beneficial effects of the present invention are as follows: in order to solve the problem of unwrapping phase under the condition of large noise or steep gradient, the present invention proposes an unwrapping algorithm based on multiple iterative optimization of least squares method: in order to minimize the difference between the partial derivative of the true phase and the wrapped phase difference, the algorithm uses the Poisson equation obtained by differentiation, combines boundary conditions and iterative least squares solution strategy, and transforms the unwrapping problem into an equivalent continuous minimization problem, and finally obtains the optimal solution, thereby obtaining a better unwrapping result; through multiple iterative solutions: (1) the error is reduced to a certain extent, and the unwrapping accuracy under noise is improved; (2) while improving the phase unwrapping quality, the difference between the partial derivative of the true phase and the wrapped phase difference is minimized, thereby reducing the calculation time; (3) the boundary conditions in the iterative process are all integers, which further improves the robustness of the unwrapping algorithm. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0043] Figure 1 It is a flow chart of a method for phase unwrapping based on four-step phase shift reconstruction and improved least squares iterative phase unwrapping according to an embodiment of the present invention;
[0044] Figure 2 A schematic diagram of a least squares algorithm unwrapping simulation experiment result according to an embodiment of the present invention;
[0045] Figure 3 This is a schematic diagram of a microscopic digital holographic optical path structure for observing onion cells according to an embodiment of the present invention;
[0046] Figure 4 This is a four-step phase-shifting microscopic digital holographic simulation experiment result of an embodiment of the present invention - a hologram and a schematic diagram of the reconstructed phase. DETAILED DESCRIPTION
[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0048] The flowchart of the method for phase unwrapping based on four-step phase shift reconstruction and improved least squares iteration is as follows: Figure 1As shown, including:
[0049] Obtain the object light field on the imaging surface after the light field passes through the lens during holographic photography;
[0050] In the holographic process of the embodiment of the present invention, it is assumed that the object light field and the reference light field at a certain point (x, y) are respectively and R(x,y)=r(x,y)e jφ(x,y) The reference light and the object light interfere with each other, so the phase of the object light is recorded as:
[0051]
[0052] like Where k = 0, ±1, ±2..., then a bright fringe will appear at (x, y); if Then dark fringes will appear at (x, y). Therefore, a hologram is actually an interference pattern. The phase difference between the object light and the reference light produces alternating light and dark interference fringes, which are used to record the phase.
[0053] By changing the phase of the reference light, four reference light fields are generated and interfere with the object light field respectively to obtain a four-step phase-shifted hologram.
[0054] The four-step phase shift method used in the embodiment of the present invention is usually used in image plane holography, that is, the holographic recording surface needs to be placed on the image plane of the system with clear imaging. The phase shift method needs to accurately change the phase of the reference light to reconstruct the light field phase and take at least two digital holograms. Taking the typical four-step phase shift method as an example, the reference light phase is changed by The four reference light fields are:
[0055] R i (x,y)=R(x,y)exp[j(i-1)π / 2],i=1,2,3,4
[0056] Four different holograms are recorded accordingly:
[0057]
[0058] Performing arc tangent calculation according to the four-step phase shift hologram to obtain a wrapped phase image;
[0059] The phase difference between the object light field and the reference light field at (x, y) can be calculated by the following formula:
[0060]
[0061] A discrete Poisson equation of the wrapped phase image is established according to the least square method, and the real phase of the wrapped phase image is obtained by solving the discrete Poisson equation through multiple iterations;
[0062] Set the wrap phase to is the true phase, and The wrapping phases in the x-direction and the y-direction in the wrapping phase diagram are respectively and but:
[0063]
[0064] Where W is the wrapping operator; the purpose is to add or subtract 2π to the wrapping phase to ensure and Located between [-π,π].
[0065] In order to minimize the difference between the partial derivative of the true phase and the wrapped phase difference, the embodiment of the present invention establishes the wrapped phase difference expression of the wrapped phase diagram based on the improved least squares algorithm:
[0066]
[0067] In the above formula, φ i,j Taking the derivative and setting it to 0, we get the Poisson equation:
[0068] φ i+1,j +φ i,j +φ i,j+1 -φ i,j-1 -4φ i,j =ρ i,j
[0069] in, Indicates the value of the wrap phase.
[0070] The boundary conditions of the discrete Poisson equation are:
[0071]
[0072]
[0073] Substituting the wrapping phase in the x-direction and y-direction of the wrapping phase diagram into the discrete Poisson equation, we obtain:
[0074]
[0075] make Then we have:
[0076] k i+1,j +k i-1,j +k i,j+1 +k i,j-1 -k i,j =a i,j
[0077] The above formula is iteratively solved until the solution no longer changes, thereby obtaining the true phase of the wrapped phase diagram.
[0078]
[0079] The sudden change caused by the inverse tangent in the operation process is transformed into a smooth and continuous phase diagram, which can approximate the real phase value and improve the accuracy. Compared with the traditional iteration, the technical means proposed in the embodiment of the present invention solves the problem that if the phase inconsistency area is passed during the unwrapping process, the phase error will be propagated in the entire space. The present invention uses the data fusion algorithm to improve the least squares iteration. Even when the noise is relatively large, the real wrapped phase can still be solved normally by using the present invention. The solved wrapped phase can be compared with the real phase and can be close to the result when the external noise coefficient is 0.06, which can better restore the wrapped phase. The unwrapped phase is basically consistent with the original phase. At the same time, it can also smooth the defects of the real phase, that is, if there are peaks or steep slopes, corresponding smoothing can be performed, which improves the stability and accuracy of the algorithm to a certain extent.
[0080] Another specific embodiment of the present invention is Figure 2 As shown in Figure 2, the simulation results of unwrapping using the least squares algorithm are given. Figure 2 a, 2b are the wrapped phase without noise (noise coefficient mu = 0) and its unwrapped result, Figure 2 c, 2d are the wrapped phases with noise (noise coefficient mu = 0.3) and their unwrapped results. Comparing the two, we can see that the least squares algorithm can obtain accurate results when there is no noise. Once there is noise, the results will show the phenomenon of peak clipping and gully filling. This is because the least squares algorithm requires the use of cosine transform or Fourier transform. As long as there is noise at one point in the wrapped phase, it will definitely propagate to other points in the two-dimensional space, resulting in errors in the unwrapped phases of all points. Therefore, it is usually not possible to obtain an accurate solution directly using the least squares algorithm. However, since the least squares method is a global algorithm, there will be no discontinuities such as pulling lines in the solution. The least squares unwrapping algorithm obtains a continuously changing smooth surface, which can better restore the original surface. However, compared with the original surface, the ordinate of the surface is smaller, so the surface is smoother, the values of each point have certain changes, and the overall error is small. Although there are certain error points in the wrapped phase diagram, compared with the other two methods, this algorithm can approach the true phase value through multiple iterations to improve accuracy, such as Figure 2 e and 2f.
[0081] In another specific embodiment of the present invention, the hologram shot in the experiment is used to complete the relevant data processing of the reconstructed object light field and the reconstructed light field phase, and the four-step phase shift method is used for calculation. The optical path is as follows Figure 3The figure shows a microscopic digital holographic optical path for observing onion cells; the He-Ne laser beam (wavelength λ=632.8nm) is split into two beams after passing through the beam splitter BS1, one of which is irradiated onto the sample through the reflector M, and the microscope objective projects the transmitted light onto the photoelectric coupler CCD, and the other beam passes through the beam expander BE and the pinhole filter h, and then becomes a plane beam through the collimator lens L. The reflector PZT M driven by the piezoelectric ceramic tube and the beam splitter BS2 reflects onto the CCD as the recording reference light. In the experiment, the PZT is controlled by a computer to make precise phase, and four holograms are recorded, and the reconstructed phase is calculated using the inverse tangent function.
[0082] like Figure 4 The hologram and reconstructed phase after Matlab simulation are shown. Figure 4 (a)- Figure 4 (d) represents the four-step phase-shift hologram, Figure 4 (e) represents the reconstruction phase, Figure 4 (f) is the reconstructed phase profile showing that the reconstructed phase is wrapped in Inside.
[0083] According to the simulation results Figure 4 (f) It can be seen that the four-step phase shift method can effectively solve the fringe phase information even when there is a certain amount of noise in the sinusoidal fringe pattern, thereby calculating the accurate absolute phase. The phase-shifted fringe pattern reflected to the CCD by the reflector PZT M and the beam splitter BS2 is unwrapped by multiple iterations using the least squares method. Only four phase-shifted fringe patterns are needed to perform phase solution and unwrapping, and finally obtain the three-dimensional phase information of the object.
[0084] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. Based on four-step phase shift reconstruction and improved least squares iterative phase unwrapping method, It is characterized in that include: Obtain the object light field on the imaging surface after the light field passes through the lens during holographic photography; By changing the phase of the reference light, four reference light fields are generated and interfere with the object light field respectively to obtain a four-step phase-shifted hologram. Performing arc tangent calculation according to the four-step phase shift hologram to obtain a wrapped phase image; A discrete Poisson equation of the wrapped phase diagram is established according to an improved least square method, and the real phase of the wrapped phase diagram is obtained by iteratively solving the discrete Poisson equation established by the improved least square method for multiple times.
2. The phase unwrapping method based on four-step phase shift reconstruction and improved least squares iterative method according to claim 1, Features: By changing the phase of the reference light, four reference light fields are generated and interfered with the object light field respectively to obtain a four-step phase-shifted hologram, including: Assume that the object light field and the reference light field at point (x, y) in the holographic process are and R(x,y)=r(x,y)e jφ(x,y) , the reference light and the object light interfere with each other, and the phase of the object light is: The reference light and the object light interfere with each other to record the phase of the object light: I(x,y): Among them, o(x,y) represents the amplitude of the object light wave, represents the phase distribution of the object light field; r(x,y) represents the amplitude of the reference light field, and φ(x,y) represents the phase distribution of the reference light field; The phase of the reference light is changed each time The four reference light fields are obtained as follows: R i (x,y)=R(x,y)exp[j(i-1)π / 2],i=1,2,3,4 The four-step phase-shift hologram is obtained as follows: Among them, I1 represents image plane hologram 1; I2 represents image plane hologram 2; I3 represents image plane hologram 3; I4 represents image plane hologram 4; o(x, y) represents the amplitude of the object light wave, represents the phase distribution of the object light field; r(x,y) represents the amplitude of the reference light field, and φ(x,y) represents the phase distribution of the reference light field.
3. The phase unwrapping method based on four-step phase shift reconstruction and improved least squares iterative method according to claim 1, Features: The wrapped phase diagram is obtained by performing inverse tangent calculation based on the four-step phase shift hologram, and the expression is: in, represents the phase distribution of the object light field; φ(x, y) represents the phase distribution of the reference light field; I1 represents image plane hologram 1; I2 represents image plane hologram 2; I3 represents image plane hologram 3; I4 represents image plane hologram 4.
4. The phase unwrapping method based on four-step phase shift reconstruction and improved least squares iterative method according to claim 1, Features: The discrete Poisson equation of the wrapped phase diagram is established according to the improved least square method, including: Set the wrap phase to is the true phase, and The wrapping phases in the x-direction and the y-direction in the wrapping phase diagram are respectively and but: Where W is the wrapping operator; k i,j represents integers, which form discontinuous platforms in two-dimensional space—truncated platforms; The wrapped phase difference expression of the wrapped phase image is established based on the improved least squares algorithm: In the above formula, φ i,j Taking the derivative and setting it to 0, we get the Poisson equation: f i+1,j +φ i,j +φ i,j+1 -f i,j-1 -4f i,j =ρ i,j in, Indicates the value of the wrap phase.
5. The phase unwrapping method based on four-step phase shift reconstruction and improved least squares iterative method according to claim 4, Features: The discrete Poisson equation is solved iteratively multiple times, including: The boundary conditions of the discrete Poisson equation are: Substituting the wrapping phase in the x-direction and y-direction of the wrapping phase diagram into the discrete Poisson equation, we obtain: make Then we have: k i+1,j +k i-1,j +k i,j+1 +k i,j-1 -k i,j =a i,j The above formula is iteratively solved until the solution no longer changes, thereby obtaining the true phase of the wrapped phase diagram.
Citation Information
Patent Citations
Full-field three-dimensional measurement method
CA2528791A1
Phase unwrapping method based on shearing principle
CN102012668A
Interference fringe image phase unwrapping method based on fringe contour line direction
CN113587851A
Off-axis digital holographic image reproduction method based on MATLAB
CN117806143A
Digital holographic wrapped phase distortion compensation method based on deep learning
WO2024087406A1
Cited By
Dot matrix auxiliary focusing digital holographic microscope system and holographic reconstruction method
CN119620574A
