A multi-threaded regularized phase tracking single interference fringe solution method
Multi-threading technology is used to perform block parallel calculation and phase splicing of interference images, combined with binary edge detection to automatically determine parameters, which solves the problem of slow RPT calculation speed and achieves efficient phase solution, which is suitable for dynamic measurement.
Patent Information
- Application Number
- CN202410704570.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-03
AI Technical Summary
The existing regularized phase tracking method (RPT) is slow in calculation speed and cannot achieve parallel processing, resulting in long solution time.
Multi-threading technology is used to process the interference image into blocks. After calculating the phase of each image block in parallel, phase demodulation of the overall image is achieved through phase splicing, and stripe width and neighborhood parameters are automatically determined through binary edge detection to reduce Starting point selection quantity.
It improves the calculation accuracy and speed of RPT technology and realizes dynamic measurement, which has the advantages of fast speed and high precision.
Smart Images

Figure CN118279330B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of phase-shift interference, and in particular to a multi-threaded regularized phase tracking single-width interference fringe solution method. Background Art
[0002] Phase-shift interferometry can achieve high measurement accuracy, however, it relies on collecting multiple interference images with specific phase deviations. This method has extremely high requirements for environmental stability, including environmental factors such as mechanical vibration and air flow, which may have a negative impact on the measurement results.
[0003] Therefore, this technique is usually not suitable for on-site instant measurements. There are also Fourier transform methods that only require a single fringe image for phase extraction, but the accuracy of its de-phase is usually not as good as the phase shifting technique.
[0004] In addition, the Fourier method cannot directly process interference images containing closed fringes and is sensitive to fringe image noise.
[0005] At present, regularized phase tracking (RPT) is an effective method for solving the phase of a single closed interference fringe pattern, especially in producing continuous and uninterrupted results, without the need for unwrapping, and showing significant advantages in strong anti-interference ability to high-frequency noise. This method guides the phase demodulation process by regularizing the interference fringes and adding a global constraint condition, so that the demodulation result not only meets the correctness of the local phase calculation, but also meets the optimization goal of global phase smoothness and continuity.
[0006] However, this technology takes a long time to calculate and has dependencies in its loop iterative optimization process, that is, the output of an iteration will be used as the input of the next iteration, and it cannot be converted into matrix operations or other methods to achieve parallelization and thus reduce processing time.
[0007] Therefore, the present invention provides a parallel regularized phase tracking algorithm to overcome the problem of slow calculation of the existing RPT technology. Summary of the invention
[0008] In view of the shortcomings of the prior art, the purpose of the present invention is to provide a multi-threaded regularized phase tracking single interference fringe solution method. On the one hand, by dividing the fringe interference image into blocks with certain overlapping parts, using multi-threading technology to perform parallel RPT calculations on each image block, phase splicing is used to achieve phase demodulation of the entire image. On the other hand, the number of starting point selections is reduced by selecting a common starting point for adjacent fringe blocks, and the fringe width is obtained by applying binary edge detection to each segmented block, and the neighborhood parameters are automatically determined, thereby improving the calculation accuracy and convenience of the RPT technology. In order to solve the problems raised in the above background technology.
[0009] In order to achieve the above object, the present invention is implemented by the following technical solution: a multi-threaded regularized phase tracking single interference fringe solution method, comprising the steps of:
[0010] S1. Remove the background light intensity and normalize the original image to obtain a grayscale image within the set range. , Represented as phase information; Expressed as interference image coordinates;
[0011] S2, according to the number of threads of the processor and the actual size of the image, determine the maximum number of segmentation blocks that does not exceed the number of threads of the processor to perform image segmentation, and set the overlap ratio between the segmented sub-image blocks to select the starting point to simplify the stitching process;
[0012] S3, by binarizing the normalized interference image and applying the Sobel operator to perform edge detection, the stripe edges of the interference image are extracted to obtain a binary logical image; the edge lines are identified by using a connected component algorithm and marked as different components, each component representing a stripe edge, a corresponding mask is created for the marked single stripe edge, and the edge connected component currently being processed is subtracted from the complete edge map to obtain a new logical image containing all other edges except the current edge; the adjacent stripe widths are obtained by measuring the Euclidean distance from each zero pixel point to the nearest non-zero pixel point in the logical image and applying a mask, and finally the neighborhood range that best characterizes the stripe characteristics of the interference image is determined based on this, and the neighborhood parameters are determined;
[0013] S4, assigning a unique identifier to each segmented interference image to mark its original position, and importing them into corresponding parallel processing pools respectively, so as to execute parallel computing tasks on multiple CPU cores simultaneously until the computing of all threads is completed;
[0014] S5. Based on the parallel RPT algorithm, the parallel calculation results are merged to implement the phase stitching operation. The edge error of the segmented interference image set using the same starting point is reduced through the weighted fusion algorithm. The phase difference of the segmented interference image set using different starting points is calculated and adjusted to eliminate the difference, and finally the overall solution phase of the segmented interference image set is obtained.
[0015] As a second aspect of the present invention, a multi-threaded regularized phase tracking single-frame interference fringe solution system is proposed, comprising:
[0016] The interference image preprocessing unit removes the background light intensity and normalizes the acquired original image to obtain a grayscale image within the set range. , Represented as phase information; Expressed as interference image coordinates;
[0017] The interference image segmentation and starting point selection unit determines the maximum number of segmentation blocks that does not exceed the number of processor threads according to the number of processor threads and the actual size of the image to perform image segmentation, and sets the overlap ratio between the segmented sub-image blocks to select the starting point, thereby simplifying the stitching process;
[0018] A neighborhood parameter determination unit is configured to perform binarization processing on the normalized interference image and apply the Sobel operator to perform edge detection, extract the stripe edges of the interference image, and obtain a binary logical image; use a connected component algorithm to mark the edge lines and create a corresponding mask to obtain a corresponding new logical image; and then determine the stripe width of the interference image by measuring the Euclidean distance from each zero pixel point to the nearest non-zero pixel point in the logical image and performing correlation calculation with the corresponding mask, and finally determine the neighborhood range that best characterizes the stripe characteristics of the interference image, calculate the stripe width, and determine the neighborhood parameters;
[0019] The multi-threaded parallel RPT operation unit assigns a unique identifier to each segmented interference image to mark its original position, and imports it into the corresponding parallel processing pool respectively, so as to execute parallel computing tasks on multiple CPU cores simultaneously until the calculation of all threads is completed;
[0020] The phase stitching and error correction unit combines the parallel calculation results based on the parallel RPT algorithm, reduces the edge error of the segmented interference image set using the same starting point through the weighted fusion algorithm, and calculates and adjusts the phase difference of the segmented interference image set using different starting points to eliminate the difference, and finally obtains the overall solution phase of the segmented interference image set.
[0021] Compared with the prior art, the present invention has the following beneficial effects:
[0022] On the one hand, the present invention divides the fringe interference image into blocks with certain overlapping parts, uses multi-threading technology to perform parallel RPT calculations on each image block, and then uses phase splicing to achieve phase demodulation of the overall image;
[0023] On the other hand, the number of starting point selections is reduced by selecting a common starting point for adjacent stripe blocks, and the stripe width is acquired by applying binary edge detection to each segmented block, and the neighborhood parameters are automatically determined, thereby improving the calculation accuracy and convenience of the RPT technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The disclosure of the present invention is described with reference to the accompanying drawings. It should be understood that the drawings are only for illustrative purposes and are not intended to limit the scope of protection of the present invention. In the drawings, the same reference numerals are used to refer to the same components. Among them:
[0025] Figure 1 A schematic diagram of a solution method flow chart proposed in an embodiment of the present invention;
[0026] Figure 2 This is a schematic diagram of an example of performing eight-thread segmentation on an interference image according to an embodiment of the present invention;
[0027] Figure 3 It is a schematic diagram of performing fringe edge detection after binarization processing on an interference fringe image according to an embodiment of the present invention;
[0028] Figure 4 A schematic diagram of the final solution continuous phase arrangement proposed in one embodiment of the present invention;
[0029] Figure 5 It is a schematic diagram of the phase arrangement after the wrapping process proposed in one embodiment of the present invention. DETAILED DESCRIPTION
[0030] It is easy to understand that according to the technical solution of the present invention, without changing the essential spirit of the present invention, a person skilled in the art can propose a variety of interchangeable structural modes and implementation modes. Therefore, the following specific implementation modes and drawings are only exemplary descriptions of the technical solution of the present invention, and should not be regarded as the whole of the present invention or as a limitation or restriction to the technical solution of the present invention.
[0031] The present invention is further described in detail below with reference to the accompanying drawings, but is not intended to limit the present invention.
[0032] As an understanding of the technical concept and implementation principle of the present invention, when solving the phase of a single closed interference fringe pattern, the existing regularized phase tracking method (RPT) guides the phase demodulation process by regularizing the interference fringes and adding a global constraint condition formula, so that the demodulation result not only meets the correctness of the local phase calculation, but also meets the optimization goal of global phase smoothness and continuity:
[0033] (1)
[0034] In the formula Expressed as neighborhood parameter; Represented as a point in the neighborhood; Represented as the phase of the iterative calculation process; is an identifier. If the point has been calculated, it is marked as 1, otherwise it is marked as 0; Expressed as the normalized interference image intensity; It is represented as the regularization coefficient.
[0035] It can be seen that the existing phase solution process using the regularized phase tracking method (RPT) is to iteratively optimize the above function so that Minimal process.
[0036] However, the existing regularized phase tracking (RPT) technology has a long calculation time, and the above iterative optimization process has a dependency, that is, the output of the iteration will be used as the input of the next iteration, and it cannot be converted into matrix operations to achieve parallelization and thus reduce processing time.
[0037] To this end, the present invention proposes a multi-threaded regularized phase tracking single interference fringe solution method. The purpose is, on the one hand, to divide the fringe interference image into blocks with certain overlapping parts, use multi-threading technology to perform parallel RPT calculations on each image block, and then use phase splicing to achieve phase demodulation of the entire image; on the other hand, the number of starting point selections is reduced by selecting a common starting point for adjacent fringe blocks, and the fringe width is obtained by applying binary edge detection to each segmented block, and the neighborhood parameters are automatically determined, thereby improving the calculation accuracy and convenience of the RPT technology.
[0038] Compared with the prior art, the technology proposed in the present invention only requires a single interference image and allows fringe closure, and the operation speed is greatly improved compared with the traditional RPT, and dynamic measurement can be realized, with the advantages of fast speed and high precision.
[0039] When implementing it, Figure 1 As shown, as an embodiment of the present invention, a multi-threaded regularized phase tracking single interference fringe solution method is proposed, comprising the steps of:
[0040] S1. Interference image preprocessing,
[0041] The original image is subjected to background light intensity removal and normalization to obtain a grayscale image within the set range. , Represented as phase information; Expressed as interference image coordinates;
[0042] It should be noted that, in order to ensure accurate measurement and easy subsequent analysis, it is preferred to use a monochromatic light source to provide clearer interference fringes, so as to facilitate more accurate measurement of the displacement or deformation of the object. At the same time, since the analysis of monochromatic interference fringes is usually simpler than that of polychromatic light, because they do not contain complex spectral components, the complexity of data processing can be greatly reduced;
[0043] In specific implementation, the intensity of monochromatic light interference fringes is defined as:
[0044] (2)
[0045] In the formula, It is expressed as the background light intensity, which is a DC term; For the modulation system; Represented as phase information; is the image coordinate;
[0046] When performing background removal and normalization operations on the acquired original image, in order to achieve the effect of removing interference, standardizing data and improving contrast, the background light intensity needs to be Set to 0, modulation index Set to 1 to get a grayscale image ranging from -1 to 1 This is because setting the background light intensity to 0 can eliminate irrelevant light intensity changes, so that the analysis is focused on the light intensity changes caused by the interference effect; at the same time, the normalization operation sets the modulation to 1, which can eliminate the dimensional and proportional differences between different interference images, making it easier to compare and analyze; scaling the image data to the range of -1 to 1 can improve the visibility and contrast of the interference fringes, which is helpful for subsequent image processing and analysis steps.
[0047] The present invention also comprises the steps of:
[0048] S2, interference image segmentation and starting point selection,
[0049] According to the number of processor threads and the actual size of the image, the maximum number of segmentation blocks that does not exceed the number of processor threads is determined for image segmentation, and the overlap ratio is set between the segmented sub-image blocks to select the starting point and simplify the stitching process.
[0050] It should be noted that the maximum number of segmentations mentioned above should not be greater than the number of processor threads required to achieve maximum efficiency in parallel computing. Specific implementation method for image segmentation: Based on the processor, the number of rows and columns of pixels of the interference image is obtained, wherein, if the resolution of the interference image is greater than the preset memory threshold, scaling is performed. In practice, if the image resolution is high and the memory usage is large, a scaling operation can be performed, and then the overall interference image is divided into several sub-image blocks according to the number of computer processor threads. Specific implementation method for starting point selection: If Figure 2 As shown, the edge ranges of several sub-image blocks are expanded to ensure that there is a set overlap ratio between adjacent segmented interference images, which is generally set to 10%. Among them, a starting point is selected according to four adjacent interference images on the X-axis and Y-axis, thereby reducing the number of starting point selections and splicing times.
[0051] The present invention also comprises the steps of:
[0052] S3, calculate the interference image fringe width and determine the neighborhood parameters,
[0053] By binarizing the normalized interference image and applying the Sobel operator for edge detection, the stripe edges of the interference image are extracted to obtain a binary logical image; the connected component algorithm is used to identify the edge lines and mark them as different components, each component representing a stripe edge, and a corresponding mask is created for the marked single stripe edge. The edge connected component currently being processed is subtracted from the complete edge map to obtain a new logical image containing all other edges except the current edge; the Euclidean distance from each zero pixel point in the logical image to the nearest non-zero pixel point, that is, the nearest stripe, is measured and a mask is applied to obtain the adjacent stripe width, and finally the neighborhood range that optimally characterizes the stripe characteristics of the interference image is determined based on this, and the neighborhood parameters are determined.
[0054] It should be noted that the connected component algorithm used in S3 can directly obtain the stripe width. The obtained mask is 0 at the edge line and 1 at other positions. Multiplying the mask with the original binary image is a new image with specific stripes removed. After the original distance calculation algorithm is applied to the image to obtain the distance matrix, the matrix is multiplied (AND operation) with the inverted mask (that is, 1 at the line and 0 at other positions) to directly obtain the corresponding adjacent stripe distance. After obtaining all the adjacent stripe distances, the neighborhood parameters can be obtained by performing operations such as averaging.
[0055] It is understandable that in RPT, choosing a suitable neighborhood is particularly important, because the size of the neighborhood directly affects the accuracy and robustness of the phase solution. A reasonable neighborhood should be able to fully cover the characteristics of the stripes while avoiding the introduction of unnecessary noise by an overly large neighborhood. Figure 3 As shown, S3, calculating the interference image fringe width and determining the specific implementation steps of the neighborhood parameters include:
[0056] S3-1, perform a binarization operation on the normalized interference image. The area where the light and dark stripes meet is the stripe edge of the interference image. Use the Sobel operator to perform edge detection and extraction to obtain a binary logical image.
[0057] S3-2, using the connected component algorithm, identify edge lines and mark each edge differently, create a corresponding mask, and obtain a new binary image containing all other edges except the current edge;
[0058] Measure Euclidean distance:
[0059] (3)
[0060] In the formula, They are represented as zero pixel points of the two-dimensional interference image respectively; They are respectively represented as non-zero pixels of the two-dimensional interference image, i.e., edge lines; It is represented as a two-point distance matrix. The size of the matrix is consistent with the size of the interference image. The distance between adjacent fringes can be obtained by performing a logical AND operation with the distance matrix after the corresponding mask is inverted.
[0061] S3-3. According to the characteristics of the interference image fringes, the median or mean of the distances between all adjacent fringes in the interference image is solved to obtain the value That is the fringe width of the interference image;
[0062] Finally, determine the neighborhood N range as .
[0063] The present invention also comprises the steps of:
[0064] S4, perform multi-threaded parallel RPT operations,
[0065] Each segmented interference image is assigned a unique identifier to mark its original position, and is imported into the corresponding parallel processing pool so that parallel computing tasks can be executed simultaneously on multiple CPU cores until the calculation of all threads is completed.
[0066] It should be noted that when creating a parallel pool, this operation is required to allow the program to run code in parallel on different CPU cores.
[0067] The present invention also comprises the steps of:
[0068] S5, phase splicing and error correction,
[0069] Based on the parallel RPT algorithm, the parallel calculation results are merged, and the edge error of the segmented interference image set using the same starting point is reduced through the weighted fusion algorithm. The phase difference of the segmented interference image set using different starting points is calculated and adjusted to eliminate the difference, and finally the overall solution phase of the segmented interference image set is obtained.
[0070] It should be noted that if Figure 4 , Figure 5 As shown, before performing phase stitching, it is first necessary to determine whether each segmented interference image uses the same starting point based on the identifier of each segmented interference image, and then classify and implement the stitching operation based on whether the starting points are the same. In specific implementation,
[0071] First, the segmented interference image set with the same starting point is processed. It can be understood that there is no phase difference in the settlement results of the same starting point, that is, theoretically, they can be directly merged and spliced, but the phase solution accuracy of the RPT algorithm at the edge of the image is reduced. Therefore, it is necessary to reduce the error by weighted fusion. The specific implementation method is as follows:
[0072] For the common area of adjacent solution matrices, create a weighting coefficient that increases linearly from the edge to the center; set the coefficient of the solution edge to 0 and the common area to 1 on the center side of the solution result. When merging the phase map, for the common area of each part, use the weighting coefficient calculated in the previous step to perform weighted averaging on the phase value:
[0073] (4)
[0074] (5)
[0075] In the formula, It is indicated as the merge phase; Represented as the common part of adjacent solution parts; It is represented as a linear weight; N is the width from one end to the other end of the overlapping area of adjacent images, the number of pixels; It is represented as a position index from one end to the other along the X-axis or Y-axis in the overlapping area; for the non-common area, the original phase value is directly used. It can be understood that the non-common area is a unique area for each part.
[0076] Secondly, after the segmented interferometric image sets with the same starting point are merged, if the parallel RPT algorithm has multiple starting points, it is considered that the continuous phase results calculated by multiple starting points will have The phase difference is , at this time, further splicing operation is performed, that is, secondary splicing processing, the purpose is to eliminate the difference. The specific implementation method is:
[0077] By selecting an area or several points in the common area, calculate the average phase difference :
[0078] (6)
[0079] Since the phase difference may contain measurement noise, a rounding algorithm can be used to get the closest value;
[0080] According to the calculated The overall phase of one of the results is adjusted to eliminate the phase difference between the two parts:
[0081] (7)
[0082] In the formula, It is represented by the original solution phase that needs to be adjusted; It is expressed as the adjusted phase value;
[0083] Finally, after the above steps, Figure 4 As shown, the overall solution phase is finally obtained.
[0084] As an embodiment of the present invention, the above stitching steps can be implemented in a matrix manner to speed up the stitching processing speed of each segmented interference image and simplify the operation.
[0085] As a second aspect of the present invention, a multi-threaded regularized phase tracking single-frame interference fringe solution system is proposed, comprising:
[0086] The interference image preprocessing unit removes the background light intensity and normalizes the acquired original image to obtain a grayscale image within the set range. , Represented as phase information; Expressed as interference image coordinates;
[0087] The interference image segmentation and starting point selection unit determines the maximum number of segmentation blocks that does not exceed the number of processor threads according to the number of processor threads and the actual size of the image to perform image segmentation, and sets the overlap ratio between the segmented sub-image blocks to select the starting point, thereby simplifying the stitching process;
[0088] The neighborhood parameter determination unit performs binarization processing on the normalized interference image and performs edge detection using the Sobel operator to extract the fringe edges of the interference image and obtain a binary logical image; uses the connected component algorithm to mark the edge lines and create a corresponding mask to obtain a corresponding new logical image; then determines the fringe width of the interference image by measuring the Euclidean distance from each zero pixel point to the nearest non-zero pixel point in the logical image and performing correlation calculations with the corresponding mask, and finally determines the neighborhood range that best characterizes the fringe characteristics of the interference image, calculates the fringe width, and determines the neighborhood parameters;
[0089] The multi-threaded parallel RPT operation unit assigns a unique identifier to each segmented interference image to mark its original position, and imports it into the corresponding parallel processing pool respectively, so as to execute parallel computing tasks on multiple CPU cores simultaneously until the calculation of all threads is completed;
[0090] The phase stitching and error correction unit combines the parallel calculation results based on the parallel RPT algorithm, reduces the edge error of the segmented interference image set using the same starting point through the weighted fusion algorithm, and calculates and adjusts the phase difference of the segmented interference image set using different starting points to eliminate the difference, and finally obtains the overall solution phase of the segmented interference image set.
[0091] The technical scope of the present invention is not limited to the contents in the above description. Those skilled in the art can make various deformations and modifications to the above embodiments without departing from the technical idea of the present invention, and these deformations and modifications should all fall within the protection scope of the present invention.
Claims
1. A multi-threaded regularized phase tracking single-frame interference fringe solution method, Features: Includes steps: S1. Remove the background light intensity and normalize the original image to obtain a grayscale image within the set range. , Represented as phase information; Expressed as interference image coordinates; S2, according to the number of threads of the processor and the actual size of the image, determine the maximum number of segmentation blocks that does not exceed the number of threads of the processor to perform image segmentation, and set the overlap ratio between the segmented sub-image blocks to select the starting point to simplify the stitching process; S3, extracting the stripe edges of the interference image by binarizing the normalized interference image and applying the Sobel operator for edge detection to obtain a binary logical image; using a connected component algorithm to identify edge lines and mark them as different components, wherein each component represents a stripe edge, creating a corresponding mask for the marked single stripe edge, subtracting the edge connected component currently being processed from the complete edge map, and obtaining a new logical image containing all other edges except the current edge; obtaining the adjacent stripe width by measuring the Euclidean distance from each zero pixel point to the nearest non-zero pixel point in the logical image and applying a mask, and finally determining the neighborhood range that best characterizes the stripe characteristics of the interference image and determining the neighborhood parameters; S4, assigning a unique identifier to each segmented interference image to mark its original position, and importing them into corresponding parallel processing pools respectively, so as to execute parallel computing tasks on multiple CPU cores simultaneously until the computing of all threads is completed; S5. Based on the parallel RPT algorithm, the parallel calculation results are merged to implement the phase stitching operation. The edge error of the segmented interference image set using the same starting point is reduced through the weighted fusion algorithm. The phase difference of the segmented interference image set using different starting points is calculated and adjusted to eliminate the difference, and finally the overall solution phase of the segmented interference image set is obtained.
2. According to claim 1, a multi-threaded regularized phase tracking single-width interference fringe solution method, Features: In S2, A specific implementation method of image segmentation is as follows: based on a processor, the number of rows and columns of pixels of the interference image is obtained, wherein if the resolution of the interference image is greater than a preset memory threshold, scaling is performed, and then the overall interference image is divided into a number of sub-image blocks according to the number of threads; A specific implementation method for selecting a starting point is to expand the edge range of several of the sub-image blocks to ensure that there is a set overlap ratio between adjacent segmented interference images, wherein a starting point is selected according to four adjacent interference images on the X-axis and Y-axis, thereby reducing the number of starting point selections and splicing times.
3. According to claim 1, a multi-threaded regularized phase tracking single-width interference fringe solution method, Features: In S3, The fringe edge is the region where the light and dark fringe boundaries meet when the normalized interference image is binarized; The specific implementation method of determining the neighborhood parameters is: First, the connected component algorithm is used to identify edge lines and mark each edge differently, create a corresponding mask, and obtain a new binary image containing all other edges except the current edge; Measure Euclidean distance: In the formula, They are represented as zero pixel points of the two-dimensional interference image respectively; They are respectively represented as non-zero pixels of the two-dimensional interference image, i.e., edge lines; Represented as a two-point distance matrix; Secondly, according to the fringe characteristics of the interference image, the median or mean value of all adjacent fringe distances of the interference image is solved to obtain the value That is the fringe width of the interference image; Finally, determine the neighborhood N range as .
4. According to claim 1, a multi-threaded regularized phase tracking single-width interference fringe solution method, Features: Before performing phase stitching, it is first necessary to determine whether each segmented interference image uses the same starting point based on the identifier of each segmented interference image, and then classify and perform the stitching operation based on whether the starting points are the same.
5. A multi-threaded regularized phase tracking single-width interference fringe solution method according to claim 1 or 4, Features: In S5, The specific implementation method of reducing edge errors by weighted fusion algorithm for a set of segmented interference images using the same starting point is as follows: First, for the common area of adjacent solution matrices, create a weighting coefficient that increases linearly from the edge to the center; Secondly, set the coefficient of the edge of the solution to 0 and the coefficient of the common area close to the center of the solution result to 1. When merging the phase map, for each part of the common area, use the weighted coefficient calculated in the previous step to perform weighted averaging on the phase value: In the formula, It is indicated as the merge phase; Represented as the common part of adjacent solution parts; It is represented as a linear weight; N is the width from one end to the other end of the overlapping area of adjacent images, the number of pixels; It is expressed as the position index from one end to the other along the X-axis or Y-axis in the overlapping area; for non-common areas, the original phase value is used directly.
6. A multi-threaded regularized phase tracking single-width interference fringe solution method according to claim 5, Features: After the segmented interferometric image sets with the same starting point are merged, if the parallel RPT algorithm has multiple starting points, the continuous phase results calculated by the multiple starting points will have The phase difference; At this point, a secondary splicing process is required to eliminate the differences.
7. A multi-threaded regularized phase tracking single-width interference fringe solution method according to claim 6, Features: The specific implementation method of the secondary stitching process to obtain the overall solution phase of the segmented interference image set is: First, by selecting an area or several points in the common area, the average phase difference is calculated : Second, use the rounding algorithm to get the nearest value; Again, according to the calculated The overall phase of one of the results is adjusted to eliminate the phase difference between the two parts: In the formula, It is represented by the original solution phase that needs to be adjusted; It is expressed as the adjusted phase value; Finally, the overall solution phase of the segmented interference image set is obtained.
8. A multi-threaded regularized phase tracking single-width interference fringe solution method according to claim 1, Features: In S5, Matrix operation is used to obtain the overall solution phase of the segmented interference image set to speed up the splicing processing speed of each segmented interference image.
9. A multi-threaded regularized phase tracking single interference fringe solution system, based on the solution method according to any one of claims 1 to 8, Features: include: The interference image preprocessing unit removes the background light intensity and normalizes the acquired original image to obtain a grayscale image within the set range. , Represented as phase information; Expressed as interference image coordinates; The interference image segmentation and starting point selection unit determines the maximum number of segmentation blocks that does not exceed the number of processor threads according to the number of processor threads and the actual size of the image to perform image segmentation, and sets the overlap ratio between the segmented sub-image blocks to select the starting point, thereby simplifying the stitching process; A neighborhood parameter determination unit is configured to perform binarization processing on the normalized interference image and apply the Sobel operator to perform edge detection, extract the stripe edges of the interference image, and obtain a binary logical image; use a connected component algorithm to mark the edge lines and create a corresponding mask to obtain a corresponding new logical image; and then determine the stripe width of the interference image by measuring the Euclidean distance from each zero pixel point to the nearest non-zero pixel point in the logical image and performing correlation calculation with the corresponding mask, and finally determine the neighborhood range that best characterizes the stripe characteristics of the interference image, calculate the stripe width, and determine the neighborhood parameters; The multi-threaded parallel RPT operation unit assigns a unique identifier to each segmented interference image to mark its original position, and imports it into the corresponding parallel processing pool respectively, so as to execute parallel computing tasks on multiple CPU cores simultaneously until the calculation of all threads is completed; The phase stitching and error correction unit combines the parallel calculation results based on the parallel RPT algorithm, reduces the edge error of the segmented interference image set using the same starting point through the weighted fusion algorithm, and calculates and adjusts the phase difference of the segmented interference image set using different starting points to eliminate the difference, and finally obtains the overall solution phase of the segmented interference image set.
