An improved B-spline non-rigid registration method for atmospheric turbulence image distortion correction

By introducing the particle swarm algorithm's adjustable exponential damping factor LM algorithm into B-spline non-rigid image registration, the problem of unstable correction performance of traditional methods in atmospheric turbulence image correction is solved, and higher image correction quality is achieved. and stability.

CN114581497BActive Publication Date: 2024-09-10HEFEI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210398879.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-16
Publication Date
2024-09-10
Estimated Expiration
2042-04-16

AI Technical Summary

Technical Problem

The traditional B-spline non-rigid image registration based on LM acceleration has unstable correction performance when correcting the geometric deformation of atmospheric turbulence images, especially when the image distortion is severe, it is difficult to effectively correct.

Method used

The adjustable exponential damping factor LM algorithm fused with the particle swarm algorithm is used to obtain the optimal control point matrix of the image deformation field, and the image registration is achieved through B-spline non-rigid transformation to improve the stability of the correction performance.

Benefits of technology

Significantly reduce the number of iterations, improve the convergence speed, enhance global optimization capabilities, achieve lower mean square error, higher peak signal-to-noise ratio and higher structural similarity, and improve the quality of image correction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114581497B
    Figure CN114581497B
Patent Text Reader

Abstract

An improved B-spline non-rigid registration method for atmospheric turbulence image distortion correction relates to the field of atmospheric optics, and mainly solves the problem of unstable correction performance of traditional registration methods when atmospheric turbulence images are severely distorted. The steps are: input an image sequence degraded by atmospheric turbulence, take the average frame of the image sequence as a reference image, and each frame in the image as a floating image; generate a uniform grid control point matrix; use B-spline non-rigid transformation to generate an image deformation field; transform the floating image according to the deformation field, and perform a normalized square difference with the reference image as the objective function of image registration similarity; use the LM algorithm with an adjustable exponential damping factor fused with a particle swarm algorithm to obtain the optimal control point matrix when the objective function is minimized; and obtain the registered floating image based on the optimal control point matrix. The present invention has good stability when processing multi-frame distorted turbulence images, and can obtain good image correction quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of atmospheric optics, and in particular relates to an improved B-spline non-rigid registration method for atmospheric turbulence image distortion correction. Background Art

[0002] Atmospheric turbulence is an irregular random motion of the atmosphere. This random motion causes random fluctuations in the atmospheric refractive index. Therefore, when light propagates in atmospheric turbulence, it causes atmospheric turbulence effects such as light spot drift, beam expansion, and light spot flicker. For imaging detection of long-distance targets, this turbulence effect directly causes random geometric distortion and spatiotemporal variable blurring of the image, which greatly interferes with the detection of long-distance targets in the atmosphere. How to eliminate the influence of atmospheric turbulence has always been a difficult problem in the field of visible / infrared detection.

[0003] In order to correct the geometric distortion of images under atmospheric turbulence conditions, image registration methods are usually used. Since the geometric distortion of images caused by turbulence is random, non-rigid registration methods are mostly used. Compared with other non-rigid registration methods, non-rigid image registration based on B-spline has higher registration results due to its smoothness, fast interpolation and multi-resolution hierarchy. However, when the traditional B-spline non-rigid image registration based on LM acceleration is applied to the correction of geometric deformation of turbulent images, the correction performance is unstable when the image distortion is severe. Summary of the invention

[0004] The purpose of the present invention is to propose an improved B-spline non-rigid registration method for atmospheric turbulence image distortion correction. For the first time, an adjustable exponential damping factor LM algorithm fused with a particle swarm algorithm is proposed to obtain the optimal control point matrix of the image deformation field, thereby obtaining the registered image after the B-spline non-rigid transformation and improving the stability of the correction performance.

[0005] In order to achieve the above object, the technical solution adopted by the present invention is:

[0006] An improved B-spline non-rigid registration method for atmospheric turbulence image distortion correction includes the following steps:

[0007] Step 1: Input the image sequence degraded by atmospheric turbulence, take the average frame of the image sequence as the reference image R, and each frame in the image sequence as the floating image G. Assuming that the sizes of the reference image and the floating image in the x and y directions are m and n respectively, the total number of pixels in each frame is m×n;

[0008] Step 2, generating a uniform grid control point matrix S for B-spline non-rigid transformation, wherein the grid coverage area composed of the control point matrix has 3 more pixels in both the x-direction and the y-direction than the floating image;

[0009] Step 3, using B-spline non-rigid transformation to generate an image deformation field, where the image deformation field is obtained by multiplying and summing a plurality of third-order B-spline basis functions with a control point matrix;

[0010] Step 4, using the deformation field obtained in step 3, transform the floating image, and perform normalized square difference between the transformed image and the reference image as the objective function of image registration similarity;

[0011] Step 5, using the LM algorithm with adjustable exponential damping factor integrated with the particle swarm algorithm, the optimal control point matrix when the objective function is minimized is obtained;

[0012] Step 6: Calculate the deformation field based on B-spline non-rigid transformation using the optimal control point matrix obtained in step 5, and subtract the deformation field at the corresponding position from the original pixel position of the floating image to obtain the registered floating image.

[0013] Compared with the existing methods, the present invention has the following significant advantages:

[0014] (1) The exponential damping factor can reduce the number of iterations and improve the convergence speed.

[0015] (2) The particle swarm algorithm is used to obtain the initial value and enhance the global optimization ability of the LM algorithm.

[0016] (3) When processing multiple frames of images, the proposed method has good stability and can achieve lower mean square error, higher peak signal-to-noise ratio, and higher structural similarity under different image distortion conditions, thereby obtaining better image correction quality. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is the algorithm flow chart of the present invention.

[0018] Figure 2 The flowchart of the LM algorithm with adjustable exponential damping factor integrated with the particle swarm algorithm.

[0019] Figure 3 The processing results of the “Chimney” sequence: (a) reference image (sequence average image); (b) floating image; (c) B-spline non-rigid registration image based on the LM algorithm; (d) registration image of the present invention.

[0020] Figure 4 It is the mean square error of the “Chimney” sequence obtained by the present invention and the B-spline non-rigid registration process based on the LM algorithm.

[0021] Figure 5 It is the peak signal-to-noise ratio of the “Chimney” sequence obtained by the present invention and the B-spline non-rigid registration processing based on the LM algorithm.

[0022] Figure 6 This is the structural similarity of the "Chimney" sequence obtained by the present invention and the B-spline non-rigid registration process based on the LM algorithm.

[0023] Figure 7 The processing results of the “Building” sequence: (a) reference image (sequence average image); (b) floating image; (c) B-spline non-rigid registration image based on LM algorithm; (d) registration image of the present invention.

[0024] Figure 8 It is the mean square error of the “Building” sequence obtained by the present invention and the B-spline non-rigid registration process based on the LM algorithm.

[0025] Fig. 9 It is the peak signal-to-noise ratio of the “Building” sequence obtained by the present invention and the B-spline non-rigid registration process based on the LM algorithm.

[0026] Fig.10 It is the structural similarity of the "Building" sequence obtained by the present invention and the B-spline non-rigid registration process based on the LM algorithm. DETAILED DESCRIPTION

[0027] In order to solve the problem that the traditional B-spline non-rigid image registration based on LM acceleration is unstable when applied to correct the geometric deformation of turbulent images when the image distortion is serious. The present invention proposes an improved B-spline non-rigid registration method for atmospheric turbulence image distortion correction, such as Figure 1 As shown, the implementation steps are as follows: 1) Input the image sequence after atmospheric turbulence degradation, take the average frame of the image sequence as the reference image, and each frame in the image as the floating image; 2) Generate a uniform grid control point matrix for B-spline non-rigid transformation; 3) Generate the image deformation field using B-spline non-rigid transformation; 4) According to the deformation field, transform the floating image, and the normalized square difference between the transformed image and the reference image is used as the objective function of image registration similarity; 5) Use the LM algorithm with adjustable exponential damping factor fused with the particle swarm algorithm to obtain the optimal control point matrix when the objective function is minimized; 6) According to the optimal control point matrix, obtain the registered floating image. The specific steps are as follows:

[0028] Step 1: Input the image sequence degraded by atmospheric turbulence, take the average frame of the image sequence as the reference image R, and each frame in the image sequence as the floating image G. Assuming that the sizes of the reference image and the floating image in the x and y directions are m and n respectively, the total number of pixels in each frame is m×n.

[0029] Step 2: Generate a uniform grid control point matrix S for B-spline non-rigid transformation. Assume that the dimensions of the control point matrix S in the x-direction and y-direction are k x and k y In order to make the grid formed by the control point matrix completely cover the image size, the grid spacing of the control points in the x direction is set to l x , the grid spacing in the y direction is l y , then according to the uniform grid generation method, k x , k y With l x , l y The relationship between them is as follows:

[0030]

[0031] In formula (1), represents rounding down, so the total number of control points is k = k x k y .

[0032] Step 3: Generate the image deformation field by using B-spline non-rigid transformation. The deformation field D(x, y) is expressed as:

[0033]

[0034] Where S is the control point matrix.

[0035]

[0036] B 0 (u), B 1 (u), B 2 (u), B 3 (u) and B 0 (v) B 1 (v) B 2 (v) B 3 (v) is the third-order B-spline basis function, expressed as:

[0037]

[0038]

[0039] Step 4: Use the deformation field D(x,y) obtained in step 3 to transform the floating image. The transformed floating image is represented as G((x,y)-D(x,y)). The purpose of image registration is to make the transformed floating image sufficiently close to the reference image. In order to measure the similarity between the deformed floating image and the reference image, the normalized sum of square differences is used as the objective function, which is expressed as:

[0040]

[0041] Among them, S is the control point matrix, f is the defined objective function, x and y are the position coordinates in the floating image and the reference image respectively, and ||·|| is the 2-norm.

[0042] Substituting formula (2) into formula (6), we can get:

[0043]

[0044] Step 5. In order to solve the minimum value of the objective function in the above step 4 and thus obtain the optimal control point matrix, the present invention proposes a tunable exponentially damped factor LM algorithm integrating the particle swarm algorithm, and its algorithm flow chart is as Figure 2 shown, and the algorithm includes the following steps:

[0045] C0. Obtain the initial value S of the control point matrix using the particle swarm algorithm 0 .

[0046] C1. Set the maximum number of iterations Maxiter and the initial value of the damping factor λ.

[0047] C2. If the number of iterations is less than the maximum number of iterations, calculate the Jacobian matrix J of the control points and the sum of the normalized squared differences to calculate the objective function f.

[0048] C3. Calculate the iteration step size, which is represented by the following formula:

[0049] ΔS = -J T f / (J T J + λI) (8)

[0050] In the formula, J T is the transpose matrix of J (the same below), and I is the identity matrix.

[0051] C4. Calculate the updated control point matrix S = S 0 + ΔS, and calculate the updated objective function f' according to the sum of the normalized squared differences, and calculate the gain factor according to the following formula:

[0052] r = (f - f') / (-S T λJ T f) (9)

[0053] S T is the transpose of S.

[0054] C5. If the gain factor r is less than 0.3:

[0055] When f < f',

[0056] λ = p λ , where 1 < p < 2 (10)

[0057] When f ≥ f',

[0058]

[0059] C6. If the gain factor r is greater than 1, then:

[0060]

[0061] C7. If the gain factor r satisfies 1 ≥ r ≥ 0.3, then:

[0062] λ=λ (13)

[0063] C8. If the maximum number of iterations has not been reached, repeat steps C2-C7.

[0064] C9. If the maximum number of iterations is reached, the algorithm ends and the optimal control point matrix S' is output.

[0065] Step 6, using the optimal control point matrix S' obtained in step 5, calculate the registered floating image G', expressed as:

[0066]

[0067] The effects of the present invention are further described below in conjunction with simulation results.

[0068] 1. Simulation conditions:

[0069] The experimental platform is an Intel(R) Core(TM) i7-11800H@2.30GHz, 16GB memory, PC running Windows7, and the programming language is MatlabR2016b.

[0070] 2. Simulation content and result analysis:

[0071] Simulation 1, the turbulence-degraded "chimney" image sequence is registered using the present invention and the LM-based B-spline non-rigid registration method. The results are shown in Figure 3 ,in Figure 3 (a) is the reference image, and the average frame of the video sequence is used as the reference image. Figure 3 (b) is a floating image (one frame of the degraded sequence). Figure 3 (c) is the B-spline non-rigid registration image based on the LM algorithm. Figure 3 (d) is the registered image obtained by the present invention. Figure 3 It can be seen that the geometric distortion of the image registered by the present invention is effectively corrected.

[0072] In order to quantitatively describe the quality of the “chimney” image after registration, the mean square error (MSE), peak signal-to-noise ratio (PSNR) and structural similarity (SSIM) are used to compare the correction results of each frame of the image, as shown in the figure. Figure 4-6 As shown in the figure, it can be seen that the present invention reduces the mean square error of the registered image and improves the peak signal-to-noise ratio and structural similarity of the registered image. In particular, in some image frames, the peak signal-to-noise ratio is improved by more than 5dB.

[0073] Simulation 2, the turbulence-degraded "building" image sequence is registered using the present invention and the LM-based B-spline non-rigid registration method. The results are shown in Figure 7 ,in Figure 7 (a) is the reference image, and the average frame of the video sequence is used as the reference image. Figure 7 (b) is a floating image (one frame of the degraded sequence). Figure 7 (c) is the B-spline non-rigid registration image based on the LM algorithm. Figure 7 (d) is the registered image obtained by the present invention. Figure 7 It can be seen that the geometric distortion of the image registered by the present invention is effectively corrected.

[0074] In order to quantitatively describe the quality of the “building” image after registration, the mean square error (MSE), peak signal-to-noise ratio (PSNR) and structural similarity (SSIM) are used to compare the correction results of each frame of the image, respectively. Figure 8-10 As shown in the figure, it can be seen that the present invention reduces the mean square error of the registered image and improves the peak signal-to-noise ratio and structural similarity of the registered image.

[0075] The above contents are merely examples and explanations of the concept of the present invention. The technicians in this technical field may make various modifications or additions to the specific embodiments described or replace them in a similar manner. As long as they do not deviate from the concept of the invention or exceed the scope defined by the claims, they should all fall within the protection scope of the present invention.

Claims

1. An improved B-spline non-rigid registration method for atmospheric turbulence image distortion correction, characterized in that: It includes the following steps: Step 1: Input the image sequence degraded by atmospheric turbulence. Take the average frame of the image sequence as the reference image R, and each frame in the image sequence as the floating image G. Assume that the sizes of the reference image and the floating image in the x and y directions are m and n respectively, then the total number of pixels in each frame image is m×n; Step 2: Generate a uniform grid control point matrix S for B-spline non-rigid transformation. The grid coverage area composed of the control point matrix has 3 more pixels than the floating image in both the x and y directions; Step 3: Generate an image deformation field in the way of B-spline non-rigid transformation. The image deformation field is obtained by multiplying and summing multiple third-order B-spline basis functions with the control point matrix; specifically: Generate an image deformation field in the way of B-spline non-rigid transformation. The deformation field D(x,y) is expressed as: where S is the control point matrix; B0(u), B1(u), B2(u), B3(u) and B0(v), B1(v), B2(v), B3(v) are third-order B-spline basis functions, expressed as: Step 4: Use the deformation field obtained in Step 3 to transform the floating image. The normalized mean square difference between the transformed image and the reference image is used as the objective function of image registration similarity; Step 5: Use the LM algorithm with adjustable exponential damping factor that combines the particle swarm algorithm to obtain the optimal control point matrix when the objective function is minimized; specifically: Use the LM algorithm with adjustable exponential damping factor that combines the particle swarm algorithm to solve the minimum value of the objective function in Step 4, so as to obtain the optimal control point matrix. The algorithm includes the following steps: C0. Use the particle swarm algorithm to obtain the initial value S0 of the control point matrix; C1. Set the maximum number of iterations Maxiter and the initial value of the damping factor λ; C2. If the number of iterations is less than the maximum number of iterations, calculate the Jacobian matrix J of the control points and the sum of the normalized mean square differences to calculate the objective function f; C3. Calculate the iteration step size, which is expressed by the following formula: ΔS=-J T f / (J T J+λI) (8) Where J T is the transposed matrix of J, and I is the identity matrix; C4. Calculate the updated control point matrix S = S0 + ΔS, and calculate the updated objective function f' according to the sum of the normalized mean square differences, and calculate the gain factor according to the following formula: r=(f-f’) / (-S T λJ T f) (9) S T is the transpose of S; C5. If the gain factor r is less than 0.3: When f < f': λ=p λ , where 1 <p<2(10) When f ≥ f': C6. If the gain factor r is greater than 1, then: C7. If the gain factor r satisfies 1 ≥ r ≥ 0.3, then: λ = λ(13) C8. If the maximum number of iterations is not reached, repeat steps C2 - C7; C9. If the maximum number of iterations is reached, the algorithm ends and outputs the best control point matrix S'; Step 6: Use the optimal control point matrix obtained in Step 5 to calculate the deformation field based on B-spline non-rigid transformation. Subtract the deformation field at the corresponding position from the original pixel position of the floating image, which is the registered floating image.

2. The registration method according to claim 1, characterized in that: Specifically, Step 2 is: Assume that the dimensions of the control point matrix S in the x-direction and y-direction are k respectively x and k y In order to make the grid formed by the control point matrix completely cover the image size, the grid spacing of the control points in the x direction is set to l x , the grid spacing in the y direction is l y , then according to the uniform grid generation method, k x , k y With l x , l y The relationship between them is as follows: In formula (1), represents rounding down, so the total number of control points is k = k x k y .

3. The registration method according to claim 1, characterized in that: Specifically, Step 4 is: The floating image is transformed using the deformation field D(x,y) obtained in step 3. The transformed floating image is represented as G((x,y)-D(x,y)). The purpose of image registration is to make the transformed floating image sufficiently close to the reference image. In order to measure the similarity between the deformed floating image and the reference image, the normalized sum of square differences is used as the objective function, which is expressed as: Where S is the control point matrix, f is the defined objective function, x and y are the position coordinates in the floating image and the reference image, respectively, and ||·|| is the 2-norm; Substituting formula (2) into formula (6), we can obtain:

4. The registration method according to claim 1, characterized in that: The step 6 is specifically as follows: Using the optimal control point matrix S' obtained in step 5, calculate the registered floating image G', which is expressed as: