Phase unwrapping method
By performing two noise reduction on the holographic micrograph and using phase quality evaluation factors combined with phase quality diagram and edge detection operator, the problem of speckle noise in digital holographic microscopy is solved, and high-quality phase unwrapping is achieved reconstruction.
Patent Information
- Application Number
- CN202311678853.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-07
- Publication Date
- 2024-11-01
AI Technical Summary
In existing digital holographic microscopy technology, speckle noise damages the quality of image reconstruction. The existing numerical processing methods use pure multiplication or additive phase models, and cannot accurately describe the impact of speckle on image reconstruction, resulting in noise suppression deviation.
The phase dewrapping method is adopted, and the holographic micrograph is obtained for decomposition and the noise reduction is carried out twice. The phase quality evaluation factor combined with the phase quality diagram and the edge detection operator is used to guide the noise reduction, and the preservation effect of high-quality phase areas is enhanced. Eliminates noise from low-mass phase areas.
It effectively reduces the speckle noise of the image, improves the quality of phase dewrapping and reconstruction, and enhances the effect of detail preservation and noise cancellation.
Smart Images

Figure CN118887119A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to but are not limited to the field of digital image processing technology, and in particular to a phase unwrapping method. Background Art
[0002] Digital holographic microscopy uses photoelectric sensors and computers instead of dry films to achieve digital image recording and reconstruction, and has shown very broad application prospects in many fields such as digital morphology, spatial measurement of deformation and particle fields, digital three-dimensional display and microscopy. In digital holographic microscopy (DHM), laser has become a commonly used light source due to its excellent coherence. However, this method adds speckle noise to the hologram, which will damage the quality of image reconstruction.
[0003] In recent years, many coherent noise reduction methods have emerged in digital holography. These methods can be divided into three categories: low-coherence light source illumination, multi-channel hologram time integration, and digital image processing techniques. In the low-coherence method, a low spatial or temporal coherence light source is used for illumination. These methods are achieved by using light-emitting diodes, superluminescent diodes, and partially coherent light. These methods can effectively reduce noise from the source, however, due to the limited coherence length of the low-coherence light source, the interference area is reduced, which complicates the experimental process. In the time integration method, multi-wavelength, multi-linear polarization beams, or multi-mode lasers are used to average reconstructed images with different noise distributions (such as moving objects, cameras, or hologram apertures) and resample the hologram. By integrating multiple images with different coherent noise patterns, the coherent noise can be reduced; however, the repeated recording and reconstruction process increases the complexity of the experiment and requires the optical path structure to be sufficiently stable. Another type of method is based on digital image processing technology, including mean filtering, Gaussian filtering, median filtering, wavelet filtering, non-local mean filtering, block matching and three-dimensional filtering, anisotropic diffusion, window Fourier filtering, and two-dimensional empirical mode decomposition. However, since these methods usually use pure multiplication or additive phase models, these numerical processing methods are not very satisfactory in achieving high-quality phase unwrapping reconstruction. It cannot accurately describe the impact of speckle on image reconstruction, which may lead to deviations in the algorithm's noise suppression. Summary of the invention
[0004] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
[0005] The embodiment of the present application provides a phase unwrapping method, which can enhance the preservation effect to preserve details in high-quality phase regions, and enhance the diffusion effect to eliminate image noise in low-quality phase regions, thereby achieving high-quality phase unwrapping reconstruction.
[0006] The embodiment of the present application provides a phase unwrapping method, including: acquiring a holographic micrograph; decomposing the holographic micrograph to obtain a wrapped phase; denoising the wrapped phase to obtain a denoised wrapped phase; unwrapping according to the denoised wrapped phase to obtain an unwrapped phase; wherein, denoising the wrapped phase to obtain a denoised wrapped phase includes: performing a primary denoising on the wrapped phase to obtain a first denoised image; performing a secondary denoising on the first denoised image to obtain a denoised wrapped phase; performing a secondary denoising on the first denoised image to obtain a denoised wrapped phase, including: obtaining a quality coefficient of image pixels based on a quality map of the first denoised image; normalizing the quality coefficient of the image pixels to obtain a normalized quality coefficient; obtaining a phase quality evaluation factor based on the normalized quality coefficient and an edge detection operator; and denoising the first denoised image based on the calculation of the phase quality evaluation factor to obtain the denoised wrapped phase.
[0007] In one embodiment of the present application, the quality coefficient of the image pixel is obtained based on the quality map of the holographic micrograph after noise reduction, including: obtaining the quality coefficient of the image pixel according to the calculation of the wrapped phase map of the quality map, the direction of the phase gradient of the quality map, the window size of the quality map and the average phase gradient within the window.
[0008] In one embodiment of the present application, the quality coefficient of the image pixels is normalized to obtain a normalized quality coefficient, including: calculating according to the quality coefficient to obtain a maximum value of the quality coefficient and a minimum value of the quality coefficient; subtracting the minimum value of the quality coefficient from the quality coefficient to obtain a first value; subtracting the minimum value of the quality coefficient from the maximum value of the quality coefficient to obtain a second value; dividing the first value by the second value to obtain a third value; and subtracting the third value from 1 to obtain the normalized quality coefficient.
[0009] In one embodiment of the present application, the phase quality evaluation factor is obtained based on the normalized quality coefficient and the edge detection operator, including: subtracting the second-order differential operator from 1 to obtain a fourth value; multiplying the fourth value by the normalized quality coefficient to obtain a fifth value; adding the fifth value to the second-order differential operator to obtain the phase quality evaluation factor.
[0010] In one embodiment of the present application, the secondary denoising of the first denoised image to obtain a denoised wrapping phase also includes: obtaining a gradient field of the image based on calculation of a quality coefficient of the image pixels; obtaining a target vector field of the image by calculating a gradient vector of the gradient field of the image; and denoising the first denoised image by adjusting parameters of the target vector field to obtain a denoised wrapping phase.
[0011] In one embodiment of the present application, the target vector field of the image is obtained by calculating the gradient vector of the gradient field of the image, including: obtaining ordered eigenvalues by calculating based on the gradient vector of the gradient field; obtaining weights according to the calculation of the ordered eigenvalues; and optimizing the vector field of the image based on local changes of the weights to obtain the target vector field of the image.
[0012] In one embodiment of the present application, the weight is calculated based on the ordered eigenvalues, including: obtaining a first real eigenvalue and a second real eigenvalue of the ordered eigenvalues; subtracting the second real eigenvalue from the first real eigenvalue to obtain a first eigenvalue; obtaining a second eigenvalue based on calculation of the first real eigenvalue, the second real eigenvalue and a first parameter value; and obtaining the weight by dividing the first eigenvalue by the second eigenvalue.
[0013] In one embodiment of the present application, the denoising of the wrapped phase to obtain a first denoised image includes: determining similar blocks near each target block of the wrapped phase, and forming the similar blocks into a three-dimensional array; performing a two-dimensional transformation on the two-dimensional blocks in each three-dimensional matrix in the three-dimensional array, and performing a one-dimensional transformation in the third dimension of the three-dimensional matrix to obtain an initially transformed image block; performing a hard threshold transformation on the initially transformed image block to statistically obtain the number of non-zero components; obtaining a processed image block by performing a one-dimensional inverse transformation and a two-dimensional inverse transformation in the third dimension; inversely transforming the processed image block and putting it back in place, using the number of non-zero components to count the superposition weights, dividing the superimposed image by the weight of each point to obtain a first denoised image.
[0014] In one embodiment of the present application, the secondary denoising of the first denoised image to obtain the denoised wrapped phase also includes: stacking the blocks of the first denoised image and the blocks of the holographic micrograph into two three-dimensional arrays respectively; performing two-dimensional transformation and one-dimensional transformation on the three-dimensional matrices in the two three-dimensional arrays, scaling the coefficients of the three-dimensional matrix formed by the holographic micrograph using Wiener filtering, and aggregating to obtain the second denoised image; and unwrapping the second denoised image to obtain the denoised wrapped phase.
[0015] In one embodiment of the present application, the step of acquiring a holographic micrograph and decomposing the holographic micrograph to obtain a wrapped phase includes: decomposing the holographic micrograph using Fourier transform to obtain amplitude and phase information of the holographic micrograph; and obtaining the wrapped phase based on the amplitude and the phase information.
[0016] The phase unwrapping method provided in the embodiment of the present application first obtains a holographic micrograph, decomposes the holographic micrograph to obtain a corresponding wrapped phase, then denoises the wrapped phase to obtain a corresponding denoised wrapped phase, and then unwrappes the denoised wrapped phase to obtain an unwrapped phase; wherein the step of denoising the wrapped phase to obtain a denoised wrapped phase includes: first denoising the wrapped phase once to obtain a first denoised image; then denoising the first denoised image twice to obtain a denoised wrapped phase. The embodiment of the present application denoises the holographic micrograph twice, and during the second denoising, a phase quality evaluation factor combining a phase quality map and an edge detection operator is used to guide the denoising process, so that the preservation effect can be enhanced in high-quality phase regions to preserve details, and the diffusion effect can be enhanced in low-quality phase regions to eliminate image noise, effectively reducing the image speckle noise, thereby achieving high-quality phase unwrapping reconstruction. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 is a flow chart of phase unwrapping provided in an embodiment of the present application;
[0018] Figure 2 is a flow chart of the decomposition of a holographic micrograph provided in an embodiment of the present application;
[0019] Figure 3 is a flow chart of secondary noise reduction provided by an embodiment of the present application;
[0020] Figure 4 is a flow chart of quality coefficient normalization provided in an embodiment of the present application;
[0021] Figure 5 It is a flow chart of calculating the phase quality evaluation factor based on the second-order differential operator and the normalized quality coefficient provided in an embodiment of the present application;
[0022] Figure 6 is a flow chart of secondary noise reduction provided by another embodiment of the present application;
[0023] Figure 7 is a specific method flow chart of step S800 provided in an embodiment of the present application;
[0024] Figure 8 is a specific method flow chart of step S820 provided in an embodiment of the present application;
[0025] Fig. 9 It is a schematic diagram of the result of phase unwrapping after two noise reduction steps provided in an embodiment of the present application. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0027] It should be noted that, although the logical order is shown in the flowchart, in some cases, the steps shown or described can be performed in a different order from that in the flowchart. The terms "first", "second", etc. in the specification, claims and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be noted that the structures, proportions, sizes, etc. illustrated in the drawings of this specification are only used to match the contents disclosed in the specification for people familiar with this technology to understand and read, and are not used to limit the limiting conditions that the present invention can be implemented, so they have no technical substantive significance. Any modification of the structure, change of the proportional relationship or adjustment of the size, without affecting the effects that the present invention can produce and the purposes that can be achieved, should still fall within the scope of the technical content disclosed by the present invention. At the same time, the terms such as "upper", "lower", "left", "right", "middle" and "one" quoted in this specification are only for the convenience of narration, and are not used to limit the scope of the implementation of the present invention. The change or adjustment of the relative relationship should also be regarded as the scope of the implementation of the present invention without substantially changing the technical content.
[0028] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0029] At present, digital image processing technologies include mean filtering, Gaussian filtering, median filtering, wavelet filtering, non-local mean filtering, block matching and three-dimensional filtering, anisotropic diffusion, window Fourier filtering, two-dimensional empirical mode decomposition, etc. However, since these methods usually use pure multiplication or additive phase models, these numerical processing methods are not very satisfactory in achieving high-quality phase unwrapping reconstruction. It cannot accurately describe the impact of speckle on image reconstruction, which may lead to deviations in the algorithm's noise suppression.
[0030] The phase unwrapping method provided in the embodiment of the present application first obtains a holographic micrograph, then decomposes the holographic micrograph to obtain a corresponding wrapped phase, then denoises the wrapped phase to obtain a denoised wrapped phase, and then unwrappes the denoised wrapped phase to obtain a corresponding unwrapped phase, wherein in the process of denoising the wrapped phase, the process may also include: denoising the wrapped phase once to obtain a first denoised image, and then denoising the first denoised image twice to obtain a denoised wrapped phase. The embodiment of the present application denoises the holographic micrograph twice, and during the second denoising, a phase quality evaluation factor combining a phase quality map and an edge detection operator is used to guide the denoising process, so that the preservation effect can be enhanced in high-quality phase regions to preserve details, and the diffusion effect can be enhanced in low-quality phase regions to eliminate image noise, thereby achieving high-quality phase unwrapping reconstruction.
[0031] The embodiments of the present application are further described below in conjunction with the accompanying drawings.
[0032] like Figure 1 As shown, Figure 1 4 is a flow chart of phase unwrapping provided by an embodiment of the present application. The phase unwrapping method includes but is not limited to steps S100 to S400.
[0033] Step S100: obtaining a holographic micrograph;
[0034] Step S200: decomposing the holographic micrograph to obtain a wrapped phase;
[0035] Step S300: De-noising the wrapped phase to obtain a denoised wrapped phase;
[0036] Step S400: performing unwrapping according to the denoised wrapped phase to obtain an unwrapped phase.
[0037] In a feasible embodiment, the holographic micrograph may be an image formed by recording the object on a high-resolution holographic film using a panoramic camera with laser as the light source. Generally, the holographic micrograph exists in the form of interference fringes.
[0038] In a possible embodiment, if Figure 2 As shown, Figure 2 1 is a flow chart of the decomposition of a holographic micrograph provided in an embodiment of the present application. In the process of decomposing the holographic micrograph to obtain the wrapped phase, the specific steps of the decomposition process may include but are not limited to step S500 and step S600.
[0039] Step S500: Decomposing the holographic micrograph by Fourier transform to obtain amplitude and phase information of the holographic micrograph;
[0040] Step S600: Obtain the wrapped phase according to the amplitude and phase information.
[0041] In a feasible embodiment, due to the discontinuity of pixels of the holographic micrograph, the image is discrete, and the holographic micrograph can be decomposed using fast Fourier transform. The steps of this method may include but are not limited to steps S10 to S40.
[0042] Step S10: Calculate two-dimensional fast Fourier transform;
[0043] Since the result of the fast Fourier transform processing is a complex array that is difficult to directly visualize, the complex array can be converted into a two-dimensional space. In addition, the result of the fast Fourier transform can be visualized through a spectrum or a phase angle.
[0044] Step S20: moving the zero frequency domain portion to the center of the spectrum;
[0045] In this step, the white area in the spectrum image can show higher frequencies, and the corners in the spectrum image can represent low frequencies. Since the fast Fourier transform has the characteristics of translation and rotation, the spectrum can be moved without losing any information, and by moving the zero-frequency part to the center of the spectrum, the spectrum image can be made clearer.
[0046] Step S30: moving the zero frequency domain part back to the original position;
[0047] Step S40: Calculate the two-dimensional inverse fast Fourier transform.
[0048] The frequency spectrum information can be converted back into a grayscale image through step S30 and step S40. In addition, the amplitude and phase information of the holographic micrograph can be obtained through the frequency spectrum information.
[0049] In a feasible embodiment, during the process of denoising the wrapped phase, the wrapped phase may be denoised once to obtain a first denoised image, and then the first denoised image may be denoised twice to obtain a final denoised wrapped phase.
[0050] In a possible embodiment, if Figure 3 As shown, Figure 3 3 is a flowchart of secondary denoising provided by an embodiment of the present application. When secondary denoising is performed on the first denoised image, the specific steps of the secondary denoising may include but are not limited to steps S310 to S340.
[0051] Step S310: obtaining a quality coefficient of an image pixel based on a quality map of the first denoised image;
[0052] Step S320: normalizing the quality coefficient of the image pixels to obtain a normalized quality coefficient;
[0053] Step S330: obtaining a phase quality evaluation factor based on the normalized quality coefficient and the edge detection operator;
[0054] Step S340: De-noising the first denoised image according to the indication of the phase quality evaluation factor to obtain a denoised wrapped phase.
[0055] In a feasible embodiment, the quality map of the first denoised image may be a derivative variance-related quality map of the first denoised image, which combines the advantages of the derivative variance quality map and the related quality map. Based on the derivative variance-related quality map, the quality coefficient of the image pixel can be defined more accurately.
[0056] In a feasible embodiment, the quality coefficient of the pixel (x, y) of the first denoised image pixel may be defined as:
[0057]
[0058] Where u is the wrapped phase diagram, is the direction of the x phase gradient, is the direction of the y phase gradient, k is the window size centered on the pixel, and is the average phase gradient within the window.
[0059] In a feasible embodiment, in order to maintain the stability of the image during the noise reduction process, the quality coefficient of the image pixels can be normalized, such as Figure 4 As shown, Figure 4 Detailed description of the process of normalizing the quality coefficients of the present invention is given in Figure 3. Specific steps of the normalization process may include but are not limited to steps S321 to S325.
[0060] Step S321: according to the calculation of the quality coefficient, the maximum value and the minimum value of the quality coefficient are obtained;
[0061] Step S322: subtracting the minimum value of the quality coefficient from the quality coefficient to obtain a first value;
[0062] Step S323: subtract the minimum value of the quality coefficient from the maximum value of the quality coefficient to obtain a second value;
[0063] Step S324: Divide the first value by the second value to obtain a third value;
[0064] Step S325: Subtract the third value from 1 to obtain a normalized quality coefficient.
[0065] In this embodiment, the quality coefficient is normalized to adjust the eigenvalues of different dimensions in the image to a similar range, so that the image can converge more smoothly during the denoising process.
[0066] In a feasible embodiment, since the edge of the phase image may contain some important details, the Canny operator is introduced to better identify the edge details of the phase image during the noise reduction process. It is worth noting that the Canny operator is a second-order differential operator widely used in edge detection, which is less sensitive to noise and can be used to eliminate false edges.
[0067] In a possible embodiment, if Figure 5 As shown, Figure 5 This is a flow chart of calculating a phase quality evaluation factor based on a second-order differential operator and a normalized quality coefficient provided in an embodiment of the present application. The phase quality evaluation factor can be calculated by combining a second-order differential operator and a normalized quality coefficient, and the specific steps of the calculation process may include but are not limited to steps S331 to S333.
[0068] Step S331: Subtract the second-order differential operator from 1 to obtain a fourth value;
[0069] Step S332: multiplying the fourth value by the normalized quality coefficient to obtain a fifth value;
[0070] Step S333: Add the fifth value to the second-order differential operator to obtain a phase quality evaluation factor.
[0071] The second-order differential operator is a Canny edge detection function composed of a binary matrix. When the Canny operator detects a pixel as an edge pixel, the value of the second-order differential operator is 1; otherwise, the value of the second-order differential operator is 0.
[0072] According to the phase quality evaluation factor, the phase region with less noise and edges can be regarded as a high-quality region, and the phase region with more noise and isolated noise pixels can be regarded as a low-quality region. When in a high-quality phase region, the value of the second-order differential operator tends to 1, and when in a low-quality phase region, the value of the second-order differential operator tends to 0.
[0073] In a feasible embodiment, according to the indication of the phase quality evaluation factor, the vector field of the image can be iteratively optimized when the image is subjected to secondary denoising.
[0074] In a possible embodiment, if Figure 6 As shown, Figure 6This is a flowchart of secondary denoising provided by another embodiment of the present application. When secondary denoising is performed on the first denoised image, the specific steps of the secondary denoising process may include but are not limited to steps S700 to S900.
[0075] Step S700: Obtaining the gradient field of the image according to the calculation of the quality coefficient of the image pixels;
[0076] Step S800: Obtaining a target vector field of the image by calculating the gradient vector of the gradient field of the image;
[0077] Step S900: performing denoising processing on the first denoised image by adjusting the parameters of the target vector field to obtain a denoised wrapped phase.
[0078] It should be noted that the gradient of an image can be used to represent the degree and direction of change of each point in the image.
[0079] In a feasible embodiment, by calculating the direction of the gradient vector of each point in the image, the gradient field can be decomposed into components in different directions. Each direction vector is usually specified by the gradient field of the image. Therefore, the vector field can better retain the directional information in the image, thereby facilitating subsequent image reconstruction and iteration.
[0080] In a possible embodiment, if Figure 7 As shown, Figure 7 This is a further explanation of step S800. When calculating the gradient vector of the gradient field of the image, the specific steps of the calculation process may include but are not limited to steps S810 to S830.
[0081] Step S810: performing calculation based on the gradient vector of the gradient field to obtain ordered eigenvalues;
[0082] Step S820: Obtaining weights according to the calculation of ordered eigenvalues;
[0083] Step S830: Based on the local change of the weight, the vector field of the image is optimized to obtain the target vector field of the image.
[0084] In a possible embodiment, assuming u:Ω→ is a grayscale image, is a domain with ||v||2=1. Assuming u is a given noise image, when the structure tensor J in the vector field of the image ρ (u) has two orthogonal eigenvectors v1 and v2, and the corresponding real eigenvalues are λ1(x) and λ2(x). When λ1(x)>λ2(x), the ordered eigenvalues can be expressed as:
[0085]
[0086] Among them, K σ ,K ρ are Gaussian kernels with standard deviations σ and ρ respectively.
[0087] In a feasible embodiment, the vector field of the image is optimized, and the gradient in each direction of the vector field can be smoothly calculated to reduce the noise of the image. In this optimization process, some smoothing filters or regularization terms can usually be used for optimization, and the smoothness of the vector field of the image can be controlled by adjusting parameters.
[0088] In a possible embodiment, the target vector field may be a relatively smoother vector field.
[0089] In a possible embodiment, if Figure 8 As shown, Figure 8 This is a further description of step S820. The specific steps of step S820 may include but are not limited to steps S821 to S824.
[0090] Step S821: Obtain the first real eigenvalue and the second real eigenvalue of the ordered eigenvalue;
[0091] Step S822: subtract the second real eigenvalue from the first real eigenvalue to obtain the first eigenvalue;
[0092] Step S823: Obtain a second eigenvalue according to calculation of the first real eigenvalue, the second real eigenvalue and the first parameter value;
[0093] Step S824: Divide the first eigenvalue by the second eigenvalue to obtain a weight.
[0094] In a feasible embodiment, when the first parameter value is greater than 0, a local estimate of the anisotropy in the vector field can be used as the weight ω(x), and the local change of the weight ω(x) can be expressed as b=(1,β(x)). When β(x) is closer to 1, the vector field optimization process of the image is more isotropic.
[0095] In a feasible embodiment, β can be rescaled to [0,1] to change β(x), which is defined as follows:
[0096]
[0097] Among them, anisotropy(x)=1-ω(x), when the value is close to 1, it corresponds to the isotropic region.
[0098] In a feasible embodiment, assuming ω(x)∈[0,1], the target vector field of the image is a vector field with a smooth anisotropy weight close to 0, while maintaining the calculated vector field in the region with strong anisotropy. In this way, in the process of optimizing the vector field v of the image, the following problems about the vector field v can be solved:
[0099]
[0100] in, is the local direction of anisotropy, corresponding to Therefore, when calculating the gradient vector of the gradient field of the image, a smoother vector field can be calculated.
[0101] In a feasible embodiment, during the secondary denoising of the first denoised image, an iterative optimization method can be used to continuously adjust the smoothing parameters to achieve a better denoising effect. This method helps to find a balance between noise reduction and image structure preservation.
[0102] In a feasible embodiment, a denoising mathematical model can be defined as follows:
[0103]
[0104] Where q is the order of regularization, α is the vector of regularization parameters, is the remaining wrapped phase noise image after BM3D filtering, M is the weight field set, η>0 is the regularization parameter, and u ◇ is the noisy image after the first stage of BM3D processing. The anisotropy is introduced by a set of weight coefficients M and the resulting appropriately weighted divergence of order q.
[0105] The mathematical model contains many parameters, which basically depend on the noise level, structural imaging information, spatial variation direction information of the structural tensor, and the weight of the derivative sparsity. This makes the denoising mathematical model highly customizable, but to a certain extent, the model is also quite sensitive to the parameters. In order to simplify the parameter selection, a simplified joint model can be used. The joint model contains the recommended parameter selection, which is suitable for images with large dominant structures and for reconstructing images from scattered data. Assume Q = 3, M q =(I,...,I,M),α q =(α q,0 ,+∞,...,+∞), q=1,2,3, thus, the denoising mathematical model can be simplified as:
[0106]
[0107] The calculations of u and v are performed alternately to update the estimate of the direction v. This updating strategy will allow for refinement of the directionality calculations in the image.
[0108] In a feasible embodiment, in the process of performing a denoising operation on the wrapped phase to obtain the first denoised image, the maximum number of similar blocks near each target block in the wrapped phase image can be determined first. The determination process may include: first selecting some reference blocks of size K x K in the wrapped phase image, then selecting an area of appropriate size around the reference block for searching, finding some blocks with the smallest difference, and obtaining some similar blocks. Then, these similar blocks are formed into a three-dimensional matrix. In this process, the reference blocks are also integrated into the three-dimensional matrix. Then, these similar blocks are sorted from large to small according to the distance between the blocks, and stacked into a three-dimensional array. Then, two-dimensional transformation is performed on the two-dimensional blocks in each three-dimensional matrix, and then one-dimensional transformation is performed in the third dimension of the three-dimensional matrix to obtain the initial transformed image block; the initial transformed image block is subjected to hard threshold transformation, and the number of non-zero components is obtained by counting, and then the processed image block is obtained by one-dimensional inverse transformation and two-dimensional inverse transformation in the third dimension. The processed image block is subjected to inverse transformation, and then put back to the original position, and the weight is superimposed by counting the number of non-zero components. The stacked image is divided by the weight of each point to obtain the first denoised image. The weight depends on the number of zeros and the noise intensity. The noise points of the first denoised image obtained after one denoising can be largely removed.
[0109] In a feasible embodiment, when performing secondary denoising on the first denoised image, the secondary denoising process may also include but is not limited to the following steps:
[0110] Step 1: stacking the image blocks of the first noise reduction image and the image blocks of the holographic micrograph into two three-dimensional arrays respectively;
[0111] Step 2: Perform two-dimensional and one-dimensional transformations on both three-dimensional matrices, and then use Wiener filtering to scale the coefficients of the three-dimensional matrix formed by the holographic micrograph, and aggregate to obtain a second denoised image;
[0112] The two-dimensional transformation may adopt DCT transformation. In addition, the coefficient may be obtained through the value of the three-dimensional matrix and the noise intensity in a primary denoising.
[0113] In a feasible embodiment, in order to verify the phase unwrapping reconstruction result of the phase unwrapping method of the present application, a noisy hologram is used for noise reduction and then unwrapped. The experimental results are as follows: Fig. 9As shown, (a) is a wrapped phase image with noise, (b) is a denoised wrapped phase image, (c) is a three-dimensional phase image of an unwrapped phase with noise, and (d) is a three-dimensional phase image of an unwrapped phase after denoising. The results show that the phase edges and details of the wrapped phase image after denoising and reconstruction by the present application are clearer and more intuitive, easier to observe, and have higher accuracy.
[0114] This embodiment performs two denoising operations on the holographic micrograph, and uses a phase quality evaluation factor that combines a phase quality map with an edge detection operator to guide the denoising process during the second denoising operation. This can enhance the preservation effect in high-quality phase regions to preserve details, and enhance the diffusion effect in low-quality phase regions to eliminate image noise, thereby effectively reducing the speckle noise of the image and greatly improving the accuracy of phase reconstruction, thereby achieving high-quality phase unwrapping reconstruction.
[0115] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A phase unwrapping method, comprising: Acquire holographic micrographs; Decomposing the holographic micrograph to obtain a wrapping phase; Denoising the wrapped phase to obtain a denoised wrapped phase; Perform unwrapping according to the denoised wrapped phase to obtain an unwrapped phase; The denoising of the wrapped phase to obtain the denoised wrapped phase includes: performing a primary denoising on the wrapped phase to obtain a first denoised image; performing a secondary denoising on the first denoised image to obtain the denoised wrapped phase; The performing secondary denoising on the first denoised image to obtain a denoised wrapped phase includes: obtaining a quality coefficient of image pixels based on a quality map of the first denoised image; normalizing the quality coefficient of the image pixels to obtain a normalized quality coefficient; obtaining a phase quality evaluation factor based on the normalized quality coefficient and an edge detection operator; and denoising the first denoised image according to an indication of the phase quality evaluation factor to obtain the denoised wrapped phase.
2. The phase unwrapping method according to claim 1, characterized in that: The quality coefficient of the image pixel is obtained based on the quality map of the holographic micrograph after noise reduction, including: obtaining the quality coefficient of the image pixel according to the calculation of the wrapped phase map of the quality map, the direction of the phase gradient of the quality map, the window size of the quality map and the average phase gradient in the window.
3. The phase unwrapping method according to claim 1, characterized in that: The normalizing the quality coefficient of the image pixels to obtain a normalized quality coefficient includes: calculating according to the quality coefficient to obtain a maximum value and a minimum value of the quality coefficient; subtracting the minimum value of the quality coefficient from the quality coefficient to obtain a first value; subtracting the minimum value of the quality coefficient from the maximum value of the quality coefficient to obtain a second value; dividing the first value by the second value to obtain a third value; and subtracting the third value from 1 to obtain the normalized quality coefficient.
4. The phase unwrapping method according to claim 1, characterized in that: The obtaining of the phase quality evaluation factor based on the normalized quality coefficient and the edge detection operator includes: subtracting the second-order differential operator from 1 to obtain a fourth value; multiplying the fourth value by the normalized quality coefficient to obtain a fifth value; and adding the fifth value to the second-order differential operator to obtain the phase quality evaluation factor.
5. The phase unwrapping method according to claim 1, characterized in that: The performing secondary denoising on the first denoised image to obtain a denoised wrapped phase also includes: obtaining a gradient field of the image based on calculation of a quality coefficient of the image pixels; obtaining a target vector field of the image by calculating a gradient vector of the gradient field of the image; and performing denoising on the first denoised image by adjusting parameters of the target vector field to obtain a denoised wrapped phase.
6. The phase unwrapping method according to claim 5, characterized in that: The step of obtaining a target vector field of the image by calculating a gradient vector of the gradient field of the image includes: obtaining ordered eigenvalues by calculating based on the gradient vector of the gradient field; obtaining weights according to the calculation of the ordered eigenvalues; and optimizing the vector field of the image based on a local change of the weights to obtain the target vector field of the image.
7. The phase unwrapping method according to claim 6, characterized in that: The step of calculating the weight according to the ordered eigenvalues includes: obtaining a first real eigenvalue and a second real eigenvalue of the ordered eigenvalues; subtracting the second real eigenvalue from the first real eigenvalue to obtain a first eigenvalue; obtaining a second eigenvalue according to calculation of the first real eigenvalue, the second real eigenvalue and a first parameter value; and dividing the first eigenvalue by the second eigenvalue to obtain the weight.
8. The phase unwrapping method according to claim 1, characterized in that: The method of performing a denoising operation on the wrapped phase to obtain a first denoised image includes: determining similar blocks near each target block of the wrapped phase, and forming the similar blocks into a three-dimensional array; performing a two-dimensional transformation on the two-dimensional blocks in each three-dimensional matrix in the three-dimensional array, and performing a one-dimensional transformation on the third dimension of the three-dimensional matrix to obtain an initially transformed image block; performing a hard threshold transformation on the initially transformed image block to obtain the number of non-zero components by counting; obtaining a processed image block by performing a one-dimensional inverse transformation and a two-dimensional inverse transformation in the third dimension; performing an inverse transformation on the processed image block and putting it back in place, using the number of non-zero components to count the superposition weights, and dividing the superimposed image by the weight of each point to obtain a first denoised image.
9. The phase unwrapping method according to claim 8, characterized in that: The method of performing secondary denoising on the first denoised image to obtain a denoised wrapped phase also includes: stacking the blocks of the first denoised image and the blocks of the holographic micrograph into two three-dimensional arrays respectively; performing two-dimensional transformation and one-dimensional transformation on the three-dimensional matrices in the two three-dimensional arrays, scaling the coefficients of the three-dimensional matrix formed by the holographic micrograph by using Wiener filtering, and aggregating to obtain a second denoised image; and unwrapping the second denoised image to obtain the denoised wrapped phase.
10. The phase unwrapping method according to claim 1, characterized in that: The method of acquiring a holographic micrograph and decomposing the holographic micrograph to obtain a wrapped phase includes: decomposing the holographic micrograph by Fourier transform to obtain amplitude and phase information of the holographic micrograph; and obtaining the wrapped phase according to the amplitude and the phase information.
Citation Information
Cited By
Imaging data transmission method and system based on holographic image
CN120428531A
High-reflective surface deformation feature image generation method, deformation detection method and device
CN122793035A
