Image registration fusion method and device, equipment and medium

Through the combination of multi-modal space estimator and dual-path interactive fusion network, the problem of registration of infrared images and visible light images is solved, fast and automatic image registration and fusion are achieved, making up for the shortcomings of traditional algorithms and reducing the cost of deep learning The complexity of the algorithm.

CN118587109APending Publication Date: 2024-09-03SUZHOU RUIXIN MICROSYSTEM TECH CO LTD

Patent Information

Application Number
CN202410759303.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively solve the registration problem of infrared images and visible light images. Traditional algorithms require manual adjustment and are time-consuming, while deep learning algorithms are highly complex and difficult to deploy on terminal devices.

Method used

A multi-modal space evaluator is used to train the registration model, and a dual-path interactive fusion network is used to fuse the infrared image and the visible light image through preliminary registration and secondary registration, thereby reducing the difficulty of the registration task and the complexity of the algorithm. .

Benefits of technology

It achieves fast and automatic image registration and fusion, simplifies the process, significantly improves the image fusion effect, and reduces the computing power requirements of deep learning algorithms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587109A
    Figure CN118587109A
Patent Text Reader

Abstract

The invention relates to the technical field of image processing, and discloses an image registration fusion method and device, equipment and a medium, and the method comprises the steps: obtaining an initial infrared image and an initial visible light image in the same scene; performing preliminary registration on the initial infrared image and the initial visible light image; training a multi-modal space evaluator for predicting spatial position errors of different modal images, and training a registration model by minimizing an error value predicted by the multi-modal space evaluator; inputting the preliminarily registered infrared image and visible light image into the trained registration model for secondary registration, and outputting the secondarily registered infrared image and visible light image; and carrying out fusion processing on the infrared image and the visible light image which are registered for the second time. Therefore, the difficulty of the registration task is greatly reduced, the dual-light image can be quickly registered and fused, the effect deficiency of the traditional algorithm is made up, the computing power requirement of the deep learning algorithm is reduced, and the image fusion effect is further remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology, and in particular to an image registration and fusion method, device, equipment and medium. Background Art

[0002] Infrared thermal imaging and visible light imaging are two of the most important detection methods and are widely used in military equipment and civilian occasions. Since the imaging mechanisms and application scenarios of infrared images and visible light images are different, they are naturally complementary. The registration and fusion of the two can improve the richness of image information.

[0003] However, the images need to be strictly aligned in space before fusion, otherwise flickering noise and ghosting will appear in the fused images. The current mainstream alignment algorithms can be mainly divided into traditional algorithm alignment and deep learning algorithm alignment. The traditional algorithm uses affine alignment based on target calibration, and calibrates the target data of different distances for each device in advance to generate the corresponding affine alignment parameters, so as to achieve the purpose of less time-consuming algorithm and good practicality; however, the alignment of this method requires manual adjustment of the distance of the object to be aligned, and it is impossible to align objects in the entire scene. The deep learning algorithm usually converts multimodal images to a single modality, and uses a single modality image alignment method to align objects in the entire scene; however, this method is highly complex and time-consuming, and is generally difficult to deploy to terminal devices, and the alignment effect depends greatly on whether the modality conversion is correct.

[0004] It can be seen that how to effectively solve the registration problem of infrared images and visible light images is a technical problem that people in this field urgently need to solve. Summary of the invention

[0005] The purpose of the present invention is to provide an image registration and fusion method, device, equipment and medium, which can greatly reduce the difficulty of the registration task and quickly register and fuse bi-optical images.

[0006] In order to solve the above technical problems, the present invention provides an image registration and fusion method, the method comprising:

[0007] Acquire an initial infrared image and an initial visible light image of the same scene;

[0008] Preliminarily registering the initial infrared image with the initial visible light image to obtain a preliminarily registered infrared image and visible light image;

[0009] Training a multimodal spatial evaluator for predicting spatial position errors of images of different modalities, and training a registration model by minimizing the error value predicted by the multimodal spatial evaluator;

[0010] Inputting the initially registered infrared image and visible light image into the trained registration model for secondary registration, and outputting the infrared image and visible light image after secondary registration;

[0011] The infrared image and the visible light image that have been registered twice are fused.

[0012] In a first aspect, in the above-mentioned image registration and fusion method provided by the present invention, training a multimodal spatial estimator for predicting spatial position errors of images of different modalities includes:

[0013] Acquire a single modality image and a corresponding image variant; the image variant is obtained by subjecting the single modality image to random spatial transformation and adding random noise;

[0014] The spatial position error between the single modality image and the image obtained by random spatial transformation is used as a label, and the multimodal spatial evaluator is trained by combining the single modality image with the corresponding image variant.

[0015] On the other hand, in the above-mentioned image registration and fusion method provided by the present invention, the infrared image and the visible light image which have been registered twice are fused, comprising:

[0016] The infrared image and the visible light image which have been registered twice are fused by using a dual-path interactive fusion network; wherein the dual-path interactive fusion network includes a dual-path feature extraction module and a feature interactive fusion module;

[0017] Correspondingly, the dual-path interactive fusion network is used to fuse the infrared image and the visible light image after the secondary registration, including:

[0018] The dual-path feature extraction module is used to extract target features of the infrared image and the visible light image that have been secondarily registered;

[0019] The feature interactive fusion module is used to perform fusion processing on the target features.

[0020] On the other hand, in the above-mentioned image registration and fusion method provided by the present invention, after the dual-path feature extraction module is used to extract the target features of the infrared image and the visible light image after the secondary registration, it also includes:

[0021] Correcting the response of the target feature to obtain a corrected feature map corresponding to the infrared image and the visible light image after the secondary registration;

[0022] Correspondingly, the feature interactive fusion module is used to perform fusion processing on the target features, including:

[0023] The feature interactive fusion module is used to perform fusion processing on the corrected feature map.

[0024] On the other hand, in the above-mentioned image registration and fusion method provided by the present invention, the following formula is used to correct the response of the target feature:

[0025] ;

[0026] ;

[0027] ;

[0028] in, represents the weight of the target feature response after correction, represents the target features extracted from the infrared image after secondary registration, represents the target features extracted from the secondary registered visible light image, Indicates a convolution with a convolution kernel of 1×1. Represents the multiplication operation between pixels, is the Sigmoid function, represents the corrected feature map corresponding to the infrared image after the secondary registration, It represents the corrected feature map corresponding to the secondary registered visible light image.

[0029] On the other hand, in the above-mentioned image registration and fusion method provided by the present invention, the following formula is used to fuse the corrected feature map:

[0030] ;

[0031] in, represents the fused image, Indicates a convolution with a convolution kernel of 3×3. Represents the concatenation operation of feature maps.

[0032] On the other hand, in the above-mentioned image registration and fusion method provided by the present invention, before fusing the infrared image and the visible light image obtained by the secondary registration using the dual-path interactive fusion network, the method comprises:

[0033] Minimizing the MS-SSIM loss function and the joint gradient loss to train the dual-path interaction fusion network;

[0034] The MS-SSIM loss function is:

[0035] ;

[0036] in, represents the MS-SSIM loss function, Indicates structural similarity, represents the fused image, represents the infrared image after secondary registration, Represents the visible light image after secondary registration;

[0037] The joint gradient loss is:

[0038] ;

[0039] in, represents the joint gradient loss, Represents the gradient operator.

[0040] In order to solve the above technical problems, the present invention also provides an image registration and fusion device, the device comprising:

[0041] An image acquisition module, used to acquire an initial infrared image and an initial visible light image of the same scene;

[0042] A preliminary registration module, used for performing preliminary registration on the initial infrared image and the initial visible light image to obtain a preliminary registered infrared image and visible light image;

[0043] A model training module, used for training a multimodal spatial evaluator for predicting spatial position errors of images of different modalities, and training a registration model by minimizing the error value predicted by the multimodal spatial evaluator;

[0044] A secondary registration module, used for inputting the initially registered infrared image and visible light image into the trained registration model for secondary registration, and outputting the infrared image and visible light image after secondary registration;

[0045] The image fusion module is used to fuse the infrared image and the visible light image after the secondary registration.

[0046] In order to solve the above technical problems, the present invention further provides an image registration and fusion device, the device comprising:

[0047] Memory for storing computer programs;

[0048] A processor is used to implement the steps of the above-mentioned image registration and fusion method when executing the computer program.

[0049] In order to solve the above technical problem, the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above image registration and fusion method are implemented.

[0050] It can be seen from the above technical scheme that the present invention provides an image registration and fusion method, which includes: acquiring an initial infrared image and an initial visible light image of the same scene; performing preliminary registration on the initial infrared image and the initial visible light image to obtain preliminary registered infrared image and visible light image; training a multimodal spatial evaluator for predicting spatial position errors of images of different modalities, and training a registration model by minimizing the error value predicted by the multimodal spatial evaluator; inputting the preliminary registered infrared image and visible light image into the trained registration model for secondary registration, and outputting the secondary registered infrared image and visible light image; and performing fusion processing on the secondary registered infrared image and visible light image.

[0051] The beneficial effect of the present invention lies in that the above-mentioned image registration and fusion method provided by the present invention first performs preliminary registration on the initial infrared image and the initial visible light image of the same scene, and then performs secondary registration using the trained registration model to obtain the registered infrared image and visible light image, wherein the registration model is trained by a multimodal space evaluator, and the modal space evaluator can be used to predict the spatial position errors of different modal images. Finally, the registered infrared image and visible light image are fused, which greatly reduces the difficulty of the registration task and makes it possible to reduce the complexity of the algorithm. There is no need to convert the infrared image into a visible light image and then perform registration. Instead, a single model directly solves the registration problem end-to-end, simplifies the registration process, and can quickly register and fuse the visible light image and infrared image of the same scene without manual adjustment. It not only makes up for the insufficient effect of the traditional registration algorithm, but also reduces the computing power requirements of the deep learning registration algorithm, thereby significantly improving the image fusion effect.

[0052] In addition, the present invention also provides a corresponding image registration and fusion device, an image registration and fusion equipment and a computer-readable storage medium for the image registration and fusion method, which have the same or corresponding technical features as the above-mentioned image registration and fusion method, and have the same effects as above. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0054] Figure 1 A flowchart of an image registration and fusion method provided by an embodiment of the present invention;

[0055] Figure 2 A schematic diagram of the structure of an image registration and fusion device provided by an embodiment of the present invention;

[0056] Figure 3 A schematic diagram of the structure of an image registration and fusion device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0057] Visible light images are formed by using the reflected light of the target. They have high resolution, can provide rich and clear texture information, and contain a large amount of information, which is conducive to the human eye's cognition of scenes and targets. The infrared detector receives the thermal radiation intensity information of objects in the field of view to form an infrared image. The working principle of the infrared imaging sensor also determines that it is less affected by changes in visible light, haze and other bad weather. However, its imaging quality is slightly worse than that of visible light, and the image texture information is slightly worse. Therefore, the registration and fusion of visible light images and infrared images can improve the richness of image information. In related technical solutions, the registration based on traditional algorithms cannot solve the simultaneous registration of nearby objects and distant objects; the registration algorithm based on deep learning often needs to convert the infrared image into a visible light modality first, which consumes huge computing power and cannot be deployed on terminal devices.

[0058] Based on this, the core of the present invention is to provide an image registration and fusion method, device, equipment and medium to effectively solve the registration problem between the above-mentioned infrared image and visible light image.

[0059] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0060] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Figure 1 A flowchart of an image registration and fusion method provided by an embodiment of the present invention is shown in FIG. Figure 1 As shown, the method includes:

[0061] S101, acquiring an initial infrared image and an initial visible light image of the same scene.

[0062] In practice, the same scene can be photographed simultaneously using an infrared module and a visible light module to obtain corresponding infrared images and visible light images. Due to the natural differences between infrared modules and visible light modules, infrared images and visible light images differ in resolution and field of view. Generally, visible light images have higher resolution and wider viewing angle. And due to the relative position differences between the infrared module and the visible light module, calibration is often required in both the horizontal and vertical directions.

[0063] S102 : Preliminarily registering the initial infrared image and the initial visible light image to obtain a preliminarily registered infrared image and visible light image.

[0064] It is important to understand that traditional registration algorithms are generally only effective in directions with small position differences, usually vertical directions. Since the infrared module and visible light module are already fixed on a certain product, preliminary registration can be performed by measuring the relative error between the infrared module and the visible light module in advance, that is, the initial infrared image and the initial visible light image are preliminarily registered based on the relative error between the infrared module and the visible light module.

[0065] Generally speaking, the field of view angle of the visible light module is much larger than that of the infrared module. After simultaneously acquiring the initial infrared image and the initial visible light image of the same scene, the present invention can calculate the corresponding positions of the initial infrared image and the initial visible light image, rotate and crop the visible light image accordingly, and finally obtain the infrared image and visible light image that are preliminarily registered.

[0066] S103, training a multimodal spatial evaluator for predicting spatial position errors of images of different modalities, and training a registration model by minimizing the error value predicted by the multimodal spatial evaluator.

[0067] In implementation, the registration model can adopt the Unet structure, which is an end-to-end neural network model, and the input can be the infrared image of the preliminary registration. With visible light images , the output can be a pair of fully registered bi-optical images or . The present invention does not need to convert the infrared image into visible light before registration, but solves the registration problem end-to-end directly through a single model, thereby simplifying the registration process. However, since modal differences still exist, how to measure the spatial position differences of the model output images remains the core of the problem. Based on this, the present invention trains a multimodal spatial evaluator, which can accurately evaluate the spatial differences of images in different modalities, that is, the multimodal spatial evaluator can be used to measure the spatial differences between infrared images and visible light images. The present invention trains the registration model by minimizing the error value predicted by the multimodal spatial evaluator.

[0068] The present invention can first train a multimodal spatial evaluator, and then use the multimodal spatial evaluator to optimize the training registration model. Finally, when actually deployed, only the trained registration model needs to be used.

[0069] S104, inputting the initially registered infrared image and visible light image into the trained registration model for secondary registration, and outputting the infrared image and visible light image after secondary registration.

[0070] It should be noted that, since the preliminary alignment can align the differences in the first direction (which can be simply considered as the vertical direction), the alignment model of the present invention only needs to align the differences in the second direction (which can be simply considered as the horizontal direction), and the first direction can be perpendicular to the second direction. This greatly reduces the difficulty of the alignment task and makes it possible to reduce the complexity of the algorithm.

[0071] S105: Fusion processing is performed on the infrared image and the visible light image after secondary registration.

[0072] In the above-mentioned image registration and fusion method provided by the embodiment of the present invention, the initial infrared image and the initial visible light image of the same scene are first preliminarily registered, and then a trained registration model is used to perform secondary registration to obtain the registered infrared image and visible light image, wherein the registration model is trained by a multimodal space evaluator, and the modal space evaluator can be used to predict the spatial position errors of different modal images. Finally, the registered infrared image and visible light image are fused, which greatly reduces the difficulty of the registration task and makes it possible to reduce the complexity of the algorithm. There is no need to convert the infrared image into a visible light image and then perform registration. Instead, a single model directly solves the registration problem end-to-end, simplifies the registration process, and can quickly register and fuse the visible light image and infrared image of the same scene. In various scenes, objects at different viewing angles and focal lengths can be automatically aligned without manual adjustment, which not only makes up for the insufficient effect of the traditional registration algorithm, but also reduces the computing power requirements of the deep learning registration algorithm, thereby significantly improving the image fusion effect.

[0073] Furthermore, in a specific implementation, in the above-mentioned image registration and fusion method provided in an embodiment of the present invention, step S103 trains a multimodal spatial evaluator for predicting spatial position errors of images of different modalities, which may specifically include: first, obtaining a single modality image and a corresponding image variant; the image variant is obtained by subjecting the single modality image to a random spatial transformation and adding random noise; then, the spatial position error between the single modality image and the image obtained by the random spatial transformation is used as a label, and the multimodal spatial evaluator is trained in combination with the single modality image and the corresponding image variant.

[0074] In implementation, the structure of the multimodal spatial evaluator can be a convolutional neural network (CNN), with a single modality image as input. The corresponding image variant , the output is the spatial difference of the two images . Single modality images The image is obtained by random spatial transformation , where the random spatial transformation can include overall rotation, displacement, and rescaling; the rotation angle, translation distance, and scaling factor are all random. Once a single modality image is obtained The image obtained by random spatial transformation , we can subtract the two images to get the spatial position error image, and use it as the label for evaluator training. Add random noise , get the image variant , to simulate the distribution difference between images. Finally, a pair of images with different modalities and different spatial positions can be obtained, and at the same time, a completely accurate spatial position error image between them can be obtained.

[0075] Furthermore, in the specific implementation, in the above-mentioned image registration and fusion method provided in the embodiment of the present invention, step S105 performs a fusion process on the infrared image and the visible light image that have been secondarily registered, which may specifically include: using a dual-path interactive fusion network to perform a fusion process on the infrared image and the visible light image that have been secondarily registered; wherein the dual-path interactive fusion network includes a dual-path feature extraction module and a feature interactive fusion module.

[0076] Correspondingly, in the above steps, the dual-path interactive fusion network is used to fuse the infrared image and the visible light image that have been secondarily registered. Specifically, the following steps may include: first, using a dual-path feature extraction module to extract the target features of the infrared image and the visible light image that have been secondarily registered; then, using a feature interactive fusion module to fuse the target features.

[0077] In the implementation, in order to re-register the infrared image and the visible light image The present invention proposes a dual-path interactive fusion network that can combine the infrared image and the visible light image that have been registered twice. Fused into the final fused image , so that the fused image has effective information of both infrared and visible light. The dual-path interactive fusion network consists of a dual-path feature extraction module and a feature interactive fusion module.

[0078] The structure of the dual-path feature extraction module can use the residual dense network DenseNet. Input into the dual-path feature extraction module, the final feature representation can be The feature interaction fusion module can adaptively select target features from the infrared image and visible light image that have been re-registered for fusion.

[0079] Furthermore, in a specific implementation, in the above-mentioned image registration and fusion method provided in an embodiment of the present invention, after using a dual-path feature extraction module to extract target features of the infrared image and the visible light image that have been secondarily registered, it may also include: correcting the response of the target features to obtain a corrected feature map corresponding to the infrared image and the visible light image that have been secondarily registered.

[0080] Correspondingly, in the above steps, the feature interaction fusion module is used to perform fusion processing on the target features, which may specifically include: using the feature interaction fusion module to perform fusion processing on the corrected feature map.

[0081] In specific implementation, in order to focus on more important features, the following formula can be used to correct the response of the target feature:

[0082] ;

[0083] ;

[0084] ;

[0085] in, represents the weight of the target feature response after correction, represents the target features extracted from the infrared image after secondary registration, represents the target features extracted from the secondary registered visible light image, Indicates a convolution with a convolution kernel of 1×1. Represents the multiplication operation between pixels, is the Sigmoid function, Represents the corrected feature map corresponding to the infrared image that has been re-registered. Represents the corrected feature map corresponding to the visible light image that has been re-registered.

[0086] In specific implementation, the following formula can be used to fuse the corrected feature map:

[0087] ;

[0088] in, represents the fused image, Indicates a convolution with a convolution kernel of 3×3. Represents the concatenation operation of feature maps.

[0089] In addition, in the specific implementation, in the above-mentioned image registration and fusion method provided in the embodiment of the present invention, before executing the step of using the dual-path interactive fusion network to fuse the infrared image and the visible light image that have been secondary registered, it can specifically include: minimizing the MS-SSIM (Multi Scale Structural Similarity Index Measure) loss function and the joint gradient loss to train the dual-path interactive fusion network.

[0090] It should be noted that the MS-SSIM loss function is an indicator to measure the similarity of two images, which can be used to maintain a clear intensity distribution of the fused image. The joint gradient loss is obtained by modeling the gradient distribution, which can encourage the recovery of texture details and is used to maintain the texture of the fused image.

[0091] The above MS-SSIM loss function can be:

[0092] ;

[0093] in, represents the MS-SSIM loss function, Indicates structural similarity, represents the fused image, represents the infrared image after secondary registration, Represents the visible light image after secondary registration.

[0094] ;

[0095] Among them, (x, y) is the coordinate of the fused image, is the mean of x, is the mean of y, is the variance of x, is the variance of y, is the covariance of x and y.

[0096] The above joint gradient loss can be:

[0097] ;

[0098] in, represents the joint gradient loss, Represents the gradient operator.

[0099] It should be noted that in order to obtain clearer texture, the gradient of the fused image needs to be close to the maximum value between the gradients of the infrared image and the visible light image after secondary registration.

[0100] During the model training process, the smaller the MS-SSIM loss function and the joint gradient loss are, the better. Minimizing the MS-SSIM loss function and the joint gradient loss will guide the optimization direction of the model.

[0101] In the above embodiments, the image registration and fusion method is described in detail, and the present invention also provides embodiments corresponding to the image registration and fusion device and the image registration and fusion equipment. It should be noted that the present invention describes the embodiments of the device part from two perspectives, one is based on the functional module perspective, and the other is based on the hardware perspective.

[0102] Figure 2 This is a structural diagram of an image registration and fusion device provided in an embodiment of the present invention. Based on the perspective of functional modules, this embodiment includes:

[0103] An image acquisition module 10 is used to acquire an initial infrared image and an initial visible light image of the same scene;

[0104] A preliminary registration module 11 is used to perform preliminary registration on the initial infrared image and the initial visible light image to obtain a preliminary registered infrared image and visible light image;

[0105] A model training module 12 is used to train a multimodal spatial evaluator for predicting spatial position errors of images of different modalities, and to train a registration model by minimizing the error value predicted by the multimodal spatial evaluator;

[0106] A secondary registration module 13 is used to input the initially registered infrared image and visible light image into the trained registration model for secondary registration, and output the infrared image and visible light image after secondary registration;

[0107] The image fusion module 14 is used to fuse the infrared image and the visible light image after the secondary registration.

[0108] In the above-mentioned image registration and fusion device provided in the embodiment of the present invention, the difficulty of the registration task can be greatly reduced through the interaction of the above-mentioned five modules, making it possible to reduce the complexity of the algorithm. There is no need to convert the infrared image into a visible light image before registration. Instead, a single model directly solves the registration problem end-to-end, which simplifies the registration process and can quickly register and fuse visible light images and infrared images in the same scene without manual adjustment. This not only makes up for the insufficient effect of the traditional algorithm, but also reduces the computing power requirements of the deep learning algorithm, thereby significantly improving the image fusion effect.

[0109] Since the embodiments of the device part correspond to the embodiments of the method part, the embodiments of the device part refer to the description of the embodiments of the method part, and are not described here. And it has the same beneficial effects as the above-mentioned image registration and fusion method.

[0110] Furthermore, in a specific implementation, in the above-mentioned image registration and fusion device provided in an embodiment of the present invention, the model training module 12 can be specifically used to obtain a single modality image and a corresponding image variant; the image variant is obtained by subjecting the single modality image to a random spatial transformation and adding random noise; the spatial position error between the single modality image and the image obtained by the random spatial transformation is used as a label, and the multimodal spatial evaluator is trained in combination with the single modality image and the corresponding image variant.

[0111] Furthermore, in specific implementation, in the above-mentioned image registration and fusion device provided in the embodiment of the present invention, the image fusion module 14 can be specifically used to utilize a dual-path interactive fusion network to fuse the infrared image and the visible light image that have been secondarily registered; wherein the dual-path interactive fusion network includes a dual-path feature extraction module and a feature interactive fusion module; the dual-path feature extraction module is used to extract target features of the infrared image and the visible light image that have been secondarily registered; and the feature interactive fusion module is used to fuse the target features.

[0112] The dual-path feature extraction module can also be used to correct the response of the target feature to obtain a corrected feature map corresponding to the infrared image and the visible light image that have been re-registered. Correspondingly, the feature interaction fusion module can be specifically used to perform fusion processing on the corrected feature map.

[0113] Furthermore, in a specific implementation, the image registration and fusion device provided in the embodiment of the present invention may further include:

[0114] The network training module is used to minimize the MS-SSIM loss function and the joint gradient loss to train the dual-path interactive fusion network. The MS-SSIM loss function is an indicator to measure the similarity of two images, which can be used to maintain a clear intensity distribution of the fused image. The joint gradient loss is obtained by modeling the gradient distribution, which can encourage the recovery of texture details and is used to maintain the texture of the fused image.

[0115] Figure 3 This is a structural diagram of the image registration and fusion device provided in an embodiment of the present invention. This embodiment is based on the hardware perspective, such as Figure 3 As shown, the image registration and fusion device includes:

[0116] A memory 20, used for storing computer programs;

[0117] The processor 21 is used to implement the steps of the image registration and fusion method mentioned in the above embodiment when executing the computer program.

[0118] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU; the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.

[0119] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, it can implement the relevant steps of the image registration and fusion method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. The data 203 may include, but is not limited to, the data involved in the above-mentioned image registration and fusion method, etc.

[0120] In some embodiments, the image registration and fusion device may further include a display screen 22 , an input and output interface 23 , a communication interface 24 , a power supply 25 , and a communication bus 26 .

[0121] Those skilled in the art will understand that Figure 3 The structure shown in the figure does not constitute a limitation on the image registration and fusion device, and may include more or fewer components than those shown in the figure.

[0122] The image registration and fusion device provided by the embodiment of the present invention includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the following method: an image registration and fusion method, with the same effect as above.

[0123] Finally, the present invention also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps recorded in the above method embodiment are implemented.

[0124] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc. Various media that can store program codes.

[0125] The computer-readable storage medium provided by the present invention includes the above-mentioned image registration and fusion method, and the effect is the same as above.

[0126] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0127] The image registration and fusion method, device, equipment and medium provided by the present invention are introduced in detail above. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the present invention.

Claims

1. An image registration and fusion method, characterized in that: The method comprises: Acquire an initial infrared image and an initial visible light image of the same scene; Preliminarily registering the initial infrared image with the initial visible light image to obtain a preliminarily registered infrared image and visible light image; Training a multimodal spatial evaluator for predicting spatial position errors of images of different modalities, and training a registration model by minimizing the error value predicted by the multimodal spatial evaluator; Inputting the initially registered infrared image and visible light image into the trained registration model for secondary registration, and outputting the infrared image and visible light image after secondary registration; The infrared image and the visible light image that have been registered twice are fused.

2. The image registration and fusion method according to claim 1, characterized in that: Train a multimodal spatial estimator for predicting spatial position errors of images from different modalities, including: Acquire a single modality image and a corresponding image variant; the image variant is obtained by subjecting the single modality image to random spatial transformation and adding random noise; The spatial position error between the single modality image and the image obtained by random spatial transformation is used as a label, and the multimodal spatial evaluator is trained by combining the single modality image with the corresponding image variant.

3. The image registration and fusion method according to claim 1, characterized in that: The infrared image and the visible light image which have been registered twice are fused, including: The infrared image and the visible light image which have been registered twice are fused by using a dual-path interactive fusion network; wherein the dual-path interactive fusion network includes a dual-path feature extraction module and a feature interactive fusion module; Correspondingly, the dual-path interactive fusion network is used to fuse the infrared image and the visible light image after the secondary registration, including: The dual-path feature extraction module is used to extract target features of the infrared image and the visible light image that have been secondarily registered; The feature interactive fusion module is used to perform fusion processing on the target features.

4. The image registration and fusion method according to claim 3, characterized in that: After the dual-path feature extraction module is used to extract the target features of the infrared image and the visible light image after the secondary registration, the method further includes: Correcting the response of the target feature to obtain a corrected feature map corresponding to the infrared image and the visible light image after the secondary registration; Correspondingly, the feature interactive fusion module is used to perform fusion processing on the target features, including: The feature interactive fusion module is used to perform fusion processing on the corrected feature map.

5. The image registration and fusion method according to claim 4, characterized in that: The response of the target feature is corrected using the following formula: ; ; ; in, represents the weight of the target feature response after correction, represents the target features extracted from the infrared image after secondary registration, represents the target features extracted from the visible light image after secondary registration, Indicates a convolution with a convolution kernel of 1×1. Represents the multiplication operation between pixels, is the Sigmoid function, represents the corrected feature map corresponding to the infrared image after the secondary registration, It represents the corrected feature map corresponding to the secondary registered visible light image.

6. The image registration and fusion method according to claim 5, characterized in that: The following formula is used to fuse the corrected feature map: ; in, represents the fused image, Indicates a convolution with a convolution kernel of 3×3. Represents the concatenation operation of feature maps.

7. The image registration and fusion method according to claim 3, characterized in that: Before fusing the infrared image and the visible light image after the secondary registration by using the dual-path interactive fusion network, the method includes: Minimizing the MS-SSIM loss function and the joint gradient loss to train the dual-path interaction fusion network; The MS-SSIM loss function is: ; in, represents the MS-SSIM loss function, Indicates structural similarity, represents the fused image, represents the infrared image after secondary registration, Represents the visible light image after secondary registration; The joint gradient loss is: ; in, represents the joint gradient loss, Represents the gradient operator.

8. An image registration and fusion device, characterized in that: The device comprises: An image acquisition module, used to acquire an initial infrared image and an initial visible light image of the same scene; A preliminary registration module, used for performing preliminary registration on the initial infrared image and the initial visible light image to obtain a preliminary registered infrared image and visible light image; A model training module, used for training a multimodal spatial evaluator for predicting spatial position errors of images of different modalities, and training a registration model by minimizing the error value predicted by the multimodal spatial evaluator; A secondary registration module, used for inputting the initially registered infrared image and visible light image into the trained registration model for secondary registration, and outputting the infrared image and visible light image after secondary registration; The image fusion module is used to fuse the infrared image and the visible light image after the secondary registration.

9. An image registration and fusion device, characterized in that: The device comprises: Memory for storing computer programs; A processor, configured to implement the steps of the image registration and fusion method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the image registration and fusion method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Fusion method of infrared image and visible light dynamic image and fusion device of infrared image and visible light dynamic image

    CN102982518A

  • Infrared image non-uniformity correction method and device, equipment and storage medium

    CN113379636A

  • Multi-modal target detection method used in complex scene

    CN116630608A

  • Multi-modal inspection image registration and model construction method and electronic equipment

    CN117593348A

  • System, Method, and Computer Program Product for Determining a Dormancy Classification of an Account Using Deep Learning Model Architecture

    US20210049619A1

Cited By

  • Binocular distance measurement-based dual-light camera image registration fusion method, system and device, and storage medium

    CN119515941A

  • A method, system, device and storage medium for bifocal camera image registration and fusion based on binocular ranging

    CN119515941B

  • Image registration-combined image fusion method and device and electronic medium

    CN119722486A

  • Image fusion method, device and electronic medium for joint image registration

    CN119722486B