A method for infrared-visible light heterogeneous image matching

By converting infrared and visible light images into gradient direction maps and using a combined template matching method, the grayscale nonlinear distortion and noise problems of uncooled infrared and visible light heterosource image matching are solved, the matching accuracy and robustness are improved, and it is suitable for Target identification of air-to-ground guided weapons.

CN113128573BActive Publication Date: 2024-08-27BEIJING AEROSPACE FEITENG EQUIPMENT TECHNOLOGY CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110348571.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-31
Publication Date
2024-08-27
Estimated Expiration
2041-03-31

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively match uncooled infrared and visible light heterogeneous images, especially when image grayscale nonlinear distortion and noise exist, resulting in insufficient matching accuracy and robustness, making it difficult to meet the needs of air-to-ground guided weapons.

Method used

By converting infrared and visible light images into gradient direction maps, extracting gradient direction information, and using the combined template matching method and the block gradient sum method to automatically select blocks of interest, the matching of infrared-visible light heterosource images is achieved.

Benefits of technology

It improves the robustness and accuracy of heterosource image matching, solves the problems of scale changes and perspective changes, simplifies image information processing, and is suitable for target recognition of infrared imaging air-to-ground guided weapons.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113128573B
    Figure CN113128573B
Patent Text Reader

Abstract

An infrared-visible light heterogeneous image matching method, the method selects the original target template image in the visible light reference image through a task planning system, and performs feature detection and feature description on the template image to form a reference image feature file, and performs coordinate transformation on the template image according to real-time posture information, so that the target template image at each trajectory position has the same scale and viewing angle as the infrared real-time image obtained during actual flight, and matches the infrared real-time image feature information with the template image feature information to obtain the target position in the infrared real-time image. The present invention solves the problem that the commonly used template matching target recognition method is not suitable for scale changes and viewing angle changes through the integrated design of navigation, trajectory and image processing, simplifies the image information processing of the seeker, and improves the matching probability of template matching. It can be used for automatic target recognition in the terminal stage of infrared imaging air-to-ground guided weapons, and has good application prospects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to an uncooled infrared-visible light heterogeneous image matching method, in particular to an uncooled infrared and visible light image matching method in air-to-ground guided weapons, and belongs to the field of precision guidance. Background Art

[0002] Visible light cameras, infrared cameras, synthetic aperture radar (SAR) and satellite remote sensing images have been widely used in intelligence reconnaissance and precision guidance. The matching technology of images from different sources (heterogeneous images) is an important topic in precision guidance. Due to the difference in imaging mechanism, images from different image sensors are prone to grayscale nonlinearity, non-monotonicity and non-functional relationship distortion. Therefore, the images of the same object obtained under different imaging methods are very different, and the grayscale correlation between images will be seriously reduced. In some special cases, the nonlinear grayscale distortion of the image will also lead to the reversal of the image grayscale and structural direction, which brings great difficulties to image matching.

[0003] Uncooled infrared imaging guidance has the advantages of small size, light weight, low power consumption and low cost. It has become an important direction of infrared technology development. It has huge development space in the military field and is the focus of recent tactical guided weapons research. In particular, in recent years, uncooled infrared imaging devices have broken the monopoly of foreign countries. China has been able to independently develop uncooled infrared focal planes with high performance, which has promoted the rapid application of uncooled infrared in the military field. However, uncooled infrared imaging quality has its inherent defects, which brings great difficulties to subsequent image processing. The main manifestation is low sensitivity. The NETD is generally above 50mK, which is much higher than the 10mK of the cooled detector, resulting in a large difference between the uncooled imaging quality and the cooled detector. In addition, the thermal sensitive time constant of the sensitive material used in the detector is about 5-10ms. The vibration of the environment will cause obvious imaging tailing, further deteriorating the image quality, bringing problems such as blurred edges, unclear corners and contour features of the image, making the details of the real-time image and the reference image very different. It is difficult to obtain ideal matching accuracy and accuracy using traditional matching methods.

[0004] Commonly used image methods can be divided into transform domain-based and feature-based methods. The transform domain-based methods mainly include Fourier transform, wavelet transform, wash transform, etc., which are mainly applicable to the situation where there is a rigid transformation between images. The feature-based matching method has a wider range of adaptability. The detection algorithms mainly include corner feature detection, edge feature detection, regional feature detection, etc. Among them, the feature detection algorithms based on corners include Moravec detection algorithm, SUSAN detection algorithm, maximum stable extreme region (MSER) ​​detection algorithm, SIFT, PCA-SIFT, GLOD and SURF algorithms, etc.; the edge-based method mainly detects the edge, contour or line features of the image. Commonly used methods include Sobel operator, Roberts operator, Canny operator, LOG operator, watershed algorithm, level set method, Mean Shift clustering method, etc. These operators have poor robustness to noise and are difficult to meet actual needs in visual perception and edge determination; the common regional feature is template matching method. The advantages of this type of algorithm are simple algorithm, independent of image content, good versatility, and certain robustness to noise and occlusion; the disadvantages are large amount of calculation and sensitive to image distortion. Transform domain-based and feature-based matching algorithms have been relatively successful in applications to homologous images, but a large number of literature studies have found that these matching algorithms do not work well in heterogeneous image matching and are not suitable for problems such as grayscale nonlinear distortion, strong noise, and loss of local feature information in heterogeneous images. Summary of the invention

[0005] The technical problem solved by the present invention is to overcome the deficiencies of the prior art and provide an infrared-visible light heterogeneous image matching method.

[0006] The technical solution of the present invention is:

[0007] An infrared-visible light heterogeneous image matching method, the steps are as follows:

[0008] (1) Based on the ballistic attitude information at each moment, the visible light reference image is transformed to the same viewing angle as the infrared real-time image through perspective transformation, and several reference templates are selected from the visible light reference image to calculate the positional relationship between the center of each template and the target point;

[0009] (2) respectively processing the infrared real-time image and the visible light reference image to form an infrared gradient direction image and a visible light gradient direction image;

[0010] (3) Calculate the gradient value of each pixel in the infrared gradient directional map and the visible light gradient directional map respectively;

[0011] (4) In each reference object template gradient direction map, M*N sub-blocks are divided and the gradient sum of each sub-block is calculated, and the interest block of the reference object template is extracted according to the gradient sum of each sub-block;

[0012] (5) For each reference template, traverse the infrared gradient direction map with a certain step length according to the size of the reference template to obtain a number of areas to be matched, and perform the following operations on each area to be matched:

[0013] The infrared gradient directional map to be matched is divided into M*N sub-blocks, and each sub-block is matched with the interest block in the reference template to obtain the best matching result, that is, the position of the corresponding point of the same name in the infrared gradient directional map is obtained;

[0014] (6) Based on the positional relationship between each reference template and the target point and the position of the same-name point in the infrared gradient direction map, the target point position information is obtained in the infrared real-time image to complete the infrared-visible light heterogeneous image matching.

[0015] In step (2), the gradient G1(x, y) of the pixel point (x, y) in the infrared gradient directional map is defined as a vector, expressed as:

[0016]

[0017] Among them, G 1x is the gradient of the pixel point (x, y) in the x direction, G 1y is the gradient of the pixel point (x, y) in the y direction, and I1 is the pixel value of the pixel point (x, y);

[0018] The direction of the gradient is defined as

[0019] β1(x,y)=arctan(G 1y / G 1x )

[0020] Where β1(x,y) is the angle of the gradient G1(x,y) of the pixel point (x,y) relative to the x-axis.

[0021] In the infrared gradient directional map, the gradient value of the pixel point (x, y) |G1(x, y)| satisfies

[0022]

[0023] In step (2), the gradient G2(x, y) of each pixel point (x, y) in the visible light gradient direction map is defined as a vector, expressed as:

[0024]

[0025] Among them, G 2x is the gradient of the pixel point (x, y) in the x direction, G 2y is the gradient of the pixel point (x, y) in the y direction, and I2 is the pixel value of the pixel point (x, y);

[0026] The direction of the gradient is defined as

[0027] β2(x,y)=arctan(G 2y / G 2x )

[0028] Where β2(x,y) is the angle of the gradient G2(x,y) of the pixel point (x,y) relative to the x-axis.

[0029] In the step (3), the gradient value |G2(x,y)| of the pixel point (x,y) in the visible light gradient direction map satisfies

[0030]

[0031] In step (4), the gradient sum of each sub-block is equal to the sum of the gradient values ​​of all pixels in the sub-block.

[0032] In the step (4), the method for extracting the interest block of the reference template is as follows:

[0033] The reference template is divided into M*N sub-blocks, and the gradient sum of each sub-block is calculated respectively. The gradient sum of each sub-block is sorted from large to small, and the front k sub-blocks are selected as interest blocks, where k is greater than or equal to 3.

[0034] The position of the target point in the infrared gradient pattern is transmitted to the servo system or guidance system for subsequent application.

[0035] The advantages of the present invention compared with the prior art are:

[0036] (1) The present invention converts the infrared real-time image and the visible light reference image into a gradient direction map, retaining the common features between heterogeneous images;

[0037] (2) In the present invention, the interest block is automatically selected by the block gradient method, which avoids the subjectivity of manual selection and makes the algorithm more objective.

[0038] (3) The present invention solves the problem that template matching is not applicable to scale changes and perspective changes;

[0039] (4) The present invention adopts a combined template matching method to achieve target positioning, solving the robustness problem of heterogeneous image matching. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 Flow chart for realizing the method of the present invention;

[0041] Figure 2 It is the coordinate transformation relationship diagram in the present invention;

[0042] Figure 3Schematic diagram of images in the present invention, wherein (a) is an infrared real-time image, and (b) is a visible light reference image;

[0043] Figure 4 Schematic diagram of the image in the present invention, wherein (a) is an infrared real-time gradient image, and (b) is a visible light gradient image;

[0044] Figure 5 Schematic diagram of images in the present invention, wherein (a) is an infrared real-time gradient direction map, and (b) is a visible light gradient direction map;

[0045] Figure 6 is a reference object template selected from the visible light reference map of the present invention;

[0046] Figure 7 , Figure 8 Schematic diagram of the QATM algorithm in the present invention;

[0047] Fig. 9 These are the five matching situations of the QATM algorithm in the present invention;

[0048] Figure 10 to Figure 13 is the infrared corresponding interest block position matched by the QATM algorithm in the present invention;

[0049] Fig.14 It is the target position result obtained by the heterogeneous image matching algorithm in the present invention. DETAILED DESCRIPTION

[0050] Aiming at the characteristics of uncooled infrared and visible light images, the present invention proposes a regional matching method based on gradient direction. By constructing a gradient direction image, the gradient direction information of the infrared and visible light images is extracted, ensuring that the same features can be obtained when the grayscale difference between the infrared and visible light images is large; then the most similar positions of the infrared and visible light images are found through a matching algorithm to obtain the precise position of the target.

[0051] The present invention is applicable to the recognition of fixed ground targets of infrared imaging air-to-ground guided weapons. The visible light reference image used in the method is taken from a reconnaissance means such as a drone or a satellite image. The original target template image is selected from the reference image through a task planning system, and feature detection and feature description are performed on the template image to form a reference image feature file and bind it to the infrared seeker; during the flight of the missile body, the template image is coordinate transformed according to the real-time posture information of the missile body, so that the target template image at each trajectory position has the same scale and viewing angle as the infrared real-time image obtained during the actual flight. The seeker uses the same feature detection and feature description algorithm as the template image to process the real-time infrared image, obtain the feature information of the infrared real-time image, and finally match the infrared real-time image feature information with the template image feature information to obtain the target position in the infrared real-time image. The present invention solves the problem that the commonly used template matching target recognition method is not suitable for scale changes and viewing angle changes through the integrated design of navigation, trajectory and image processing, simplifies the image information processing of the seeker, and improves the matching probability of template matching. It can be used for automatic target recognition in the terminal stage of infrared imaging air-to-ground guided weapons and has good application prospects.

[0052] like Figure 1 As shown, the specific implementation steps of the present invention are as follows:

[0053] Step 1: According to the trajectory posture information at each moment, the visible light reference image is transformed to the same viewing angle as the infrared real-time image through perspective transformation. Several reference templates are selected in the visible light reference image, and the positional relationship between the center of each template and the target point is calculated.

[0054] like Figure 2 As shown, the process of image acquisition by the seeker is actually a process of converting from the world coordinate system to the camera coordinate system, then to the image coordinate system, and finally to the computer image coordinate system.

[0055] The origin of the camera coordinate system is the center of the lens, and the line of sight is z. c Axis negative direction, the camera is downward and aligned with z c The direction perpendicular to the axis is y c Positive axis, x c Axis and y c Axis, z c The axes are orthogonal to form a right-handed coordinate system. w ,y w ,z w ) to the camera coordinate system (x c ,y c ,z c ) can be expressed as follows:

[0056]

[0057] Where T1 is the translation vector (T x ,T y ,T z ), which is related to the spatial position of the seeker. R is the coordinate rotation matrix. The rotation matrix R is related to the attitude of the seeker and can be obtained using the Euler angle representation method. Figure 4 As shown, the yaw angle θ of the line of sight and the pitch angle and the roll angle φ, we can get:

[0058]

[0059] The image coordinate system is a two-dimensional coordinate system, and the origin is selected as the lens focus and z c The intersection of the axes, x u Axis, y u The axes are parallel to the x c Axis, y c Axis. From the camera coordinate system (x c ,y c ,z c ) to the image coordinate system (x u ,y u ) is:

[0060]

[0061] Where f is the focal length of the camera.

[0062] Computer image coordinate systems generally use integer coordinates, and their coordinate range is determined by the resolution of the specific image device. u ,y u ) to the computer image coordinate system (u,v) is:

[0063]

[0064] Where (c x ,c y ) is the image coordinate of the origin on the image plane, dx and dy are the x and y coordinates on the image plane respectively. u ,y u The size of the unit pixel in the direction.

[0065] Through the simulation of the above camera imaging process, the visible light template image can be rotated and transformed into the shooting angle of view of the infrared real-time image in a prescribed order.

[0066] Select several reference objects as templates in the transformed visible light image (such as Figure 6 As shown), and calculate the positional relationship between each template center and the target point.

[0067] Figure 3Schematic diagram of the image in the present invention, where (a) is the infrared real-time image and (b) is the visible light reference image

[0068] Step 2: Process the infrared real-time image and the visible light reference image through the Canny algorithm to form an infrared gradient direction map and a visible light gradient direction map.

[0069] The Canny edge detector is the first derivative of the Gaussian function, which is the optimal approximation operator for the product of signal-to-noise ratio and positioning [Canny 1986]. We will summarize the Canny edge detector algorithm through the following symbols. Let I[x,y] represent the image, and use the separable filtering method to convolve the image with the Gaussian smoothing filter. The result is a smoothed data array

[0070] F[x,y]=g[x,y;σ]*I[x,y] (5)

[0071] Where F[x,y] is the smoothed image and g[x,y;σ] is the Gaussian filter.

[0072] Edge detection is the most basic operation to detect significant local changes in an image. In one dimension, a step edge is related to the local peak of the first-order derivative of the image. The gradient is a measure of the change of a function, and an image can be regarded as an array of sampling points of a continuous function of the image intensity. Therefore, similar to the same dimension, significant changes in the grayscale value of an image can be detected using a discrete approximation function of the gradient. The gradient is the two-dimensional equivalent of the first-order derivative and is defined as a vector.

[0073] Canny gradient image is attached Figure 4 As shown, (a) is the infrared real-time image, and (b) is the visible light reference image.

[0074] The gradient direction map is as attached Figure 5 As shown, (a) is the infrared real-time image, and (b) is the visible light reference image.

[0075] Specifically, in the infrared gradient direction map, the gradient G1(x, y) of the pixel point (x, y) is defined as a vector, expressed as:

[0076]

[0077] Among them, G 1x is the gradient of the pixel point (x, y) in the x direction in the infrared gradient direction map, G 1y is the gradient of the pixel point (x, y) in the y direction in the infrared gradient directional map, and I1 is the pixel value of the pixel point (x, y) in the infrared gradient directional map;

[0078] The direction of the gradient is defined as

[0079] β1(x,y)=arctan(G 1y / G 1x )

[0080] Where β1(x,y) is the angle of the gradient G1(x,y) of the pixel point (x,y) in the infrared gradient direction map relative to the x-axis.

[0081] In the visible light gradient direction map, the gradient G2(x,y) of each pixel (x,y) is defined as a vector, expressed as:

[0082]

[0083] Among them, G 2x is the gradient of the pixel point (x, y) in the x direction in the visible light gradient direction map, G 2y is the gradient of the pixel point (x, y) in the y direction in the visible light gradient direction map, and I2 is the pixel value of the pixel point (x, y) in the visible light gradient direction map;

[0084] The direction of the gradient is defined as

[0085] β2(x,y)=arctan(G 2y / G 2x )

[0086] Where β2(x,y) is the angle of the gradient G2(x,y) of the pixel point (x,y) in the visible light gradient direction map relative to the x-axis.

[0087] Step 3: Calculate the gradient value of each pixel in the infrared gradient directional map and the visible light gradient directional map respectively.

[0088] The gradient amplitude of each pixel point of the infrared real-time gradient directional map and the visible light gradient directional map is calculated respectively.

[0089] In the infrared gradient directional map, the gradient value of the pixel point (x, y) |G1(x, y)| satisfies

[0090]

[0091] In the visible light gradient direction map, the gradient value of the pixel point (x, y) |G2(x, y)| satisfies

[0092]

[0093] Step 4: Extract the block of interest from the visible light template

[0094] In each reference object template gradient directional map, M*N sub-blocks are divided and the gradient sum of each sub-block is calculated, and the interest block of the reference object template is extracted according to the gradient sum of each sub-block;

[0095] The method for extracting the interest block of the reference template is as follows:

[0096] The reference template is divided into M*N sub-blocks, and the gradient sum of each sub-block is calculated respectively. The gradient sum of each sub-block is sorted from large to small, and the front k sub-blocks are selected as interest blocks, where k is greater than or equal to 3.

[0097] The resulting interest block is as follows Figure 7 shown.

[0098] (5) Through the matching algorithm, the position of each template center in the infrared real-time image is obtained

[0099] For each reference template, according to the size of the reference template, the infrared gradient direction map is traversed with a certain step length to obtain several areas to be matched. The following operations are performed on each area to be matched:

[0100] The infrared gradient directional map to be matched is divided into M*N sub-blocks, and each sub-block is matched with the block of interest in the reference template to obtain the best matching result, that is, the position of the corresponding point of the same name in the infrared gradient directional map is obtained.

[0101] Traditional template matching algorithms such as NCC need to include all pixels in the template and the area to be matched in the search image into the calculation. When the area to be matched is slightly deformed or occluded, the image matching accuracy will be greatly reduced.

[0102] The matching algorithm of the present invention further divides the template and the area to be matched into patches, in order to converge the matching area during calculation, reduce the impact of background changes in the template or the area to be matched on the matching, highlight the target subject, and merge the area with the best matching quality as the final matching position. The detailed ideas are as follows:

[0103] As attached Figure 7 , Attachment Figure 8 As shown in the figure, the reference template in the visible light image is defined as template T, the search area to be matched in the infrared image is S, and the patch s with the highest matching degree with template T is found for the area to be matched in the search image. i , find the patch t in the template that has the highest matching degree with the area to be matched S i , get the best matching area s between the template and the area to be matched i , t i , where s i is the sub-block of the area to be searched in the infrared real-time image, t i is a sub-block in the visible light reference image.

[0104] The area to be matched S in the search image is compared with the template T and the patch s i , t iAs a vector expansion, calculate S and t1, t2, ..., t respectively i The cosine similarity ρ(s, t), and the cosine similarity between T and s1, s2, ..., s i The cosine similarity ρ(t, s) is substituted into the Softmax function (the prototype is ) respectively obtain the likelihood function values ​​L(t|s) and L(s|t), where the α parameter is used to increase the sensitivity of the likelihood function, so that the likelihood function values ​​of a group of t and s with high similarity approach 1, and vice versa if the similarity is lower, it approaches 0. The two are multiplied to obtain the matching quality coefficient QATM.

[0105]

[0106]

[0107] QATM(s q ,t p )=L(t p |s q )·L(s q |t p ) (11)

[0108] ρ(t p ,s q ) represents patch t p and q The likelihood function value, L(s q |t p ) indicates patch s q and t p The value of the likelihood function.

[0109] As attached Fig. 9 As shown, the algorithm is divided into five matching cases: If there is only one patch s in S i The match with T is high, and there is only one patch t in T i If the match degree with S is high, then the match reliability is considered high and the match quality coefficient QATM is 1; if there is only one patch s in S i A high match with T, but there are N patches t in T i If the matching degree with S is high, the matching reliability is considered low, and the matching quality coefficient QATM is 1 / N; if there are M patches s in S i A high match with T, but there is only one patch t in T i If the matching degree with S is high, then the matching reliability is considered low, and the matching quality coefficient QATM is 1 / M; if there are M patches s in S i The match with T is high, and there are N patches t in T iIf the matching degree with S is high, then the matching reliability is considered to be low, the matching position can be further optimized, and the matching quality coefficient QATM is 1 / MN; if the matching degree between the patches of S and T is low, then S and T are considered to be unmatched, and the matching quality coefficient QATM is approximately 0.

[0110] Finally, select the groups of s and t regions with the highest matching quality coefficients and merge them to maximize the overall matching quality and obtain the final matching position. Perform matching calculations on each visible light reference template and obtain the position of the same-name point of each reference template in the infrared real-time image, as shown in the attached figure. Fig.10 ~Attached Fig.13 shown.

[0111] (6) According to the positional relationship between each reference template and the target point and the position of the same-name point in the infrared gradient direction map, the target point position information is obtained in the infrared real-time image to complete the infrared-visible light heterogeneous image matching. Fig.14 shown.

[0112] Finally, the target point position information in the infrared real-time image is transmitted to the servo system or guidance system.

[0113] Aiming at the characteristics of grayscale nonlinearity, non-monotonicity and non-functional relationship of heterogeneous images, the grayscale image is converted into a gradient direction map, the common features between heterogeneous images are retained, and target positioning is achieved through the combined template matching method.

[0114] Relevant experiments have shown that the present invention has well solved the robustness problem of heterogeneous image matching, and has enabled the heterogeneous image matching technology to be applied to air-to-ground guided weapons.

[0115] The contents not described in detail in the specification of the present invention belong to the common knowledge of the professionals in this field.

Claims

1. An infrared-visible light heterogeneous image matching method, characterized in that Here are the steps: (1) Based on the ballistic attitude information at each moment, the visible light reference image is transformed to the same viewing angle as the infrared real-time image through perspective transformation, and several reference templates are selected from the visible light reference image to calculate the positional relationship between the center of each template and the target point; (2) respectively processing the infrared real-time image and the visible light reference image to form an infrared gradient direction image and a visible light gradient direction image; (3) Calculate the gradient value of each pixel in the infrared gradient directional map and the visible light gradient directional map respectively; (4) In each reference object template gradient direction map, M*N sub-blocks are divided and the gradient sum of each sub-block is calculated, and the interest block of the reference object template is extracted according to the gradient sum of each sub-block; (5) For each reference object template, traverse the infrared gradient direction map with a certain step length according to the size of the reference object template to obtain a number of areas to be matched, and perform the following operations on each area to be matched: The infrared gradient directional map to be matched is divided into M*N sub-blocks, and each sub-block is matched with the interest block in the reference template to obtain the best matching result, that is, the position of the corresponding point of the same name in the infrared gradient directional map is obtained; (6) According to the positional relationship between each reference template and the target point and the position of the same-name point in the infrared gradient direction map, the target point position information is obtained in the infrared real-time image to complete the infrared-visible light heterogeneous image matching; Get the position of the reference template center corresponding to the same-name point in the infrared gradient direction map. The implementation method is as follows: Define the reference object template as T, the area to be matched as S, find the i sub-blocks with the highest matching degree with the template T in the area to be matched, and find the j sub-blocks with the highest matching degree with the area to be matched S in the template; Expand the region to be matched S and the template T, the i sub-blocks with the highest matching degree between the region to be matched and the template T, and the j sub-blocks with the highest matching degree between the template and the region to be matched S as vectors, and calculate the cosine similarity ρ(s q ,t p ), and T and s1, s2, ..., s i The cosine similarity ρ(t p ,s q ), where s q is the qth sub-block of the i sub-blocks, t p For the pth sub-block of the j sub-blocks, substitute the Softmax function to obtain the likelihood function value L(t p |s q )、L(s q |t p ); QATM(s q ,t p )=L(t p |s q )·L(s q |t p ) ρ(t p ,s q ) represents sub-block t p and q The cosine similarity, L(s q |t p ) represents sub-block s q and t p The likelihood function value, ρ(s q ,t p ) represents sub-block s q and t p The cosine similarity, L(s q |t p ) represents sub-block t p and q The likelihood function value of α parameter is used to increase the sensitivity of the likelihood function, making a group of t with high similarity p and q The likelihood function value approaches 1. On the contrary, if a group of t with low similarity p and q The value of the likelihood function tends to be close to 0; There are five matching cases: If there is only one sub-block s in S q The match with T is high, and there is only one sub-block t in T p If the matching degree with S is high, then the matching reliability is high and the matching quality coefficient QATM is 1; if there is only one sub-block s in S q The match with T is high, but there are N' sub-blocks t in T p If the matching degree with S is high, then the matching reliability is considered low, and the matching quality coefficient QATM is 1 / N'; if there are M' sub-blocks s in S q The match with T is high, but there is only one sub-block t in T p If the matching degree with S is high, then the matching reliability is considered to be low, and the matching quality coefficient QATM is 1 / M'; if there are M' sub-blocks s in S q The match with T is high, and there are N' sub-blocks t in T p If the matching degree with S is high, then the matching reliability is considered to be low, and the matching quality coefficient QATM is 1 / M′N′; if the matching degree between the patches of S and T is low, then S and T are considered to be unmatched, and the matching quality coefficient QATM is approximately 0; Finally, the sub-blocks in the infrared real-time images with the highest matching quality coefficients are selected and merged with the sub-block areas in the visible light reference image to maximize the overall matching quality and obtain the final matching position. The matching calculation is performed on each visible light reference object template to obtain the position of the same-name point of each reference object template in the infrared real-time image. In step (4), the gradient sum of each sub-block is equal to the sum of the gradient values ​​of all pixels in the sub-block; In the step (4), the method for extracting the interest block of the reference template is as follows: The reference template is divided into M*N sub-blocks, and the gradient sum of each sub-block is calculated respectively. The gradient sum of each sub-block is sorted from large to small, and the front k sub-blocks are selected as interest blocks, where k is greater than or equal to 3.

2. The infrared-visible light heterogeneous image matching method according to claim 1, characterized in that: In step (2), the gradient G1(x, y) of the pixel point (x, y) in the infrared gradient directional map is defined as a vector, expressed as: Among them, G 1x is the gradient of the pixel point (x, y) in the x direction, G 1y is the gradient of the pixel point (x, y) in the y direction, and I1 is the pixel value of the pixel point (x, y); The direction of the gradient is defined as β1(x,y)=arctan(G 1y / G 1x ) Where β1(x,y) is the angle of the gradient G1(x,y) of the pixel point (x,y) relative to the x-axis.

3. The infrared-visible light heterogeneous image matching method according to claim 2, characterized in that: In the infrared gradient directional map, the gradient value of the pixel point (x, y) |G1(x, y)| satisfies 4. The infrared-visible light heterogeneous image matching method according to claim 1, characterized in that: In step (2), the gradient G2(x, y) of each pixel point (x, y) in the visible light gradient direction map is defined as a vector, expressed as: Among them, G 2x is the gradient of the pixel point (x, y) in the x direction, G 2y is the gradient of the pixel point (x, y) in the y direction, and I2 is the pixel value of the pixel point (x, y); The direction of the gradient is defined as β2(x,y)=arctan(G 2y / G 2x ) Where β2(x,y) is the angle of the gradient G2(x,y) of the pixel point (x,y) relative to the x-axis.

5. The infrared-visible light heterogeneous image matching method according to claim 4, characterized in that: In the step (3), the gradient value |G2(x,y)| of the pixel point (x,y) in the visible light gradient direction map satisfies 6. The infrared-visible light heterogeneous image matching method according to claim 1, characterized in that: The target point position in the infrared real-time image is transmitted to the servo system or guidance system for subsequent application.