Deep learning-driven complementary source image high-precision registration method
Through the high-precision registration method of complementary source images driven by deep learning, the spatial transformation network is used to learn affine transformation parameters, which solves the problem of spatial misalignment of source images from different sensors, achieves high-precision alignment and feature fusion of images, and improves the target Detection performance and system robustness.
Patent Information
- Application Number
- CN202410724026.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-09-03
AI Technical Summary
When the source images collected by different sensors are spatially misaligned, information mismatch and feature fusion are affected, affecting target detection and recognition performance.
A high-precision registration method of complementary source images driven by deep learning is used to calibrate internal and external parameters, divide the data set by random sampling, add deformation and Gaussian noise, and use the spatial transformation network for high-precision registration training to learn affine transformation parameters to Achieve geometric alignment of images.
It realizes the adaptive geometric structure adjustment of images from different sensors, solves the problem of information mismatch and feature fusion, provides a reliable foundation for image fusion and high-performance target detection, and improves the robustness and robustness of the system.
Smart Images

Figure CN118587255A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of image synthesis, and in particular relates to a deep learning driven high-precision registration method for complementary source images. Background Art
[0002] Due to hardware device limitations, source images collected by different sensors can only provide partial information. Source images from different sensors include multiple spectral bands such as visible light and infrared light, and each band captures different information. For example, visible light sensors capture reflected light information, which mainly describes the texture of the scene, but is highly sensitive to ambient light; infrared sensors capture thermal radiation information, which is insensitive to ambient light and can better reflect the essential properties of scenes and objects. Therefore, in image information fusion, combining multiple sensor source images has multiple advantages, including providing a more comprehensive scene description, enhancing target detection and recognition capabilities, and optimizing the robustness of the system. The fusion of source images from different sensors enables the system to obtain rich information, obtain complementary features from different bands or modalities, and thus improve the system's adaptability to various scenarios. In addition, multi-sensor fusion reduces the impact of environmental interference, optimizes image quality and contrast, and makes the system more stable and adaptable. This comprehensive advantage enables image information fusion to achieve superior performance in various application scenarios.
[0003] Since images collected by different sensors have differences in resolution, field of view, etc., current image fusion methods are often limited by the spatial alignment of the source images, that is, parallax must be handled when the images are not spatially aligned. This is because spatial misalignment can lead to a series of problems, such as information mismatch and affected feature fusion, which in turn have a negative impact on target detection and recognition performance. This highlights the importance of spatial alignment of source images in image fusion, especially in the scenario of fusion of images from different sensors, where ensuring alignment is crucial to maintaining accuracy and performance stability. Summary of the invention
[0004] In view of this, the present invention aims to propose a deep learning driven high-precision registration method for complementary source images, in order to solve at least one of the above-mentioned technical problems.
[0005] To achieve the above object, the technical solution of the present invention is achieved as follows:
[0006] A deep learning driven high-precision registration method for complementary source images comprises the following steps:
[0007] Collect visible light images and long-wave infrared images of the target scene to obtain multiple sets of image pairs, and calibrate the internal and external parameters of the acquisition equipment;
[0008] The image pairs are registered according to the calibrated intrinsic and extrinsic parameters, and deformation and Gaussian noise are added to the registered image pairs;
[0009] Divide multiple groups of image pairs into different data sets by random sampling;
[0010] After adding registration transformation labels to each image pair according to external parameters, the dataset is input into the spatial transformer network to perform high-precision registration training.
[0011] Furthermore, the internal parameters include focal length and principal coordinate points, wherein the focal length is f x , f y , the principal coordinate point is c x , c y , the matrix of internal parameters is;
[0012] The external parameters include a rotation matrix and a translation matrix, wherein the rotation matrix Translation Matrix
[0013] The conversion model of the spatial coordinates of the acquisition device is obtained according to the external parameters: ir =R·P vi +T, where P ir is the point in the long-wave infrared image acquisition device, P vi is the point in the acquisition device of the visible light image.
[0014] Furthermore, in the process of registering the image pair according to the calibrated internal and external parameters, the registration transformation matrix of the visible light image is established. Among them, R vi is the rotation matrix of the visible light image, T vi is the translation matrix;
[0015] According to the rotation matrix and translation matrix of the visible light image, the visible light image is obtained by registration:
[0016]
[0017] Furthermore, in the process of registering the image pair according to the calibrated internal and external parameters, the registration transformation matrix of the long-wave infrared image is established. Among them, R ir is the rotation matrix of the long-wave infrared image, T ir is the translation matrix;
[0018] According to the rotation matrix and translation matrix of the visible light image, the long-wave infrared image is obtained by registration:
[0019]
[0020] Furthermore, deformations are added to the registered image pair by scaling, rotating, and translating:
[0021]
[0022] Scaling transformation matrix
[0023] Rotation transformation matrix
[0024] Translation transformation matrix
[0025] Furthermore, Gaussian noise is added to the registered image pair:
[0026] I′(x,y)=I(x,y)+Gaussian(x,y); where Gaussian(·) is a Gaussian matrix, Gaussian(·)~N(0,σ 2 ), N represents normal distribution, σ 2 represents the noise variance.
[0027] Furthermore, the process of dividing multiple groups of image pairs into different data sets is as follows:
[0028] Use random sampling to divide multiple groups of image pairs into training set, validation set and test set in the ratio of 0.7:0.15:0.15;
[0029] Among them, each image pair only appears in one of the three sets: training set, validation set, and test set.
[0030] Furthermore, the calibrated internal and external parameters in the data set and multiple sets of images are input into the spatial transformation network to perform high-precision registration training to obtain the affine transformation parameter matrix;
[0031] The image pair is registered according to the affine transformation parameter matrix, and the two images in the registered image pair are superimposed to obtain a fused image.
[0032] Furthermore, the process of performing high-precision registration training is as follows: the spatial transformation network obtains the output of the affine transformation of the long-wave infrared image based on the input data.
[0033] According to STN(I ir ) to obtain the affine transformation parameter matrix
[0034] Among them, I ir is the long-wave infrared image, I viFor visible light images, STN(I ir ) is the output of the spatial transformation network for affine transformation of the long-wave infrared image, θ 11 ,θ 12 ,θ 13 ,θ 21 ,θ 22 ,θ 23 are the affine transformation parameters.
[0035] Furthermore, a loss function is set in the spatial transformer network during the training process, and the loss function quantifies the error between the output of the spatial transformer network and the registration transformation parameters according to the difference of the affine transformation parameter matrix;
[0036] Loss function LossLoss stn =MSE(STN(I ir ),M ground_truth );
[0037] Among them, MSE(·) is the mean square error, M ground_truth are the registration transformation parameters obtained through calibration.
[0038] Compared with the prior art, the deep learning-driven high-precision registration method for complementary source images described in the present invention has the following beneficial effects:
[0039] By introducing the intelligent mechanism of spatial transformation network, the network can adaptively learn the geometric transformation between different sensor source images;
[0040] By learning the affine transformation parameters during the training process, each sensor image can adaptively adjust its geometric structure to achieve spatial alignment, effectively solving the problem of information mismatch and feature fusion being affected.
[0041] It provides strong support for the precise fusion of unaligned images and lays a solid foundation for subsequent image fusion and high-performance target detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the accompanying drawings:
[0043] Figure 1 A schematic diagram of a process of a deep learning-driven high-precision registration method for complementary source images according to an embodiment of the present invention;
[0044] Figure 2 This is a schematic diagram of a visible light image according to an embodiment of the present invention;
[0045] Figure 3This is a schematic diagram of a long-wave infrared image according to an embodiment of the present invention;
[0046] Figure 4 This is a schematic diagram of an image after registration by the spatial transformation network described in an embodiment of the present invention. DETAILED DESCRIPTION
[0047] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.
[0048] The present invention will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.
[0049] A deep learning driven high-precision registration method for complementary source images comprises the following steps:
[0050] Step 1: Collect visible light images and long-wave infrared images of the target scene to obtain multiple sets of image pairs, and calibrate the internal and external parameters of the acquisition equipment;
[0051] Step 2: align the image pair according to the calibrated internal and external parameters, and add deformation and Gaussian noise to the registered image pair;
[0052] Step 3: Divide multiple groups of image pairs into different data sets by random sampling;
[0053] Step 4: After adding registration transformation labels to each image pair based on external parameters, the dataset is input into the spatial transformation network to perform high-precision registration training.
[0054] Different sensor source images include multiple spectral bands such as visible light and infrared light. For the convenience of description, common visible light images and long-wave infrared (LWIR) images are used as examples for illustration. vi Indicates that the LWIR image is represented by I ir Indicates; By using a dual-light gimbal camera to collect sample data, ensure that the data set covers a variety of environments to simulate the actual target scene; Due to the different focal lengths of the visible light camera and the infrared camera, there are differences in the size and viewing angle of the spatial objects imaged on the two cameras, so it is necessary to calibrate the intrinsic and extrinsic parameters of the camera.
[0055] The internal parameters include focal length and principal coordinate points, where the focal length is f x , f y , the principal coordinate point is c x , c y , the matrix of internal parameters is;
[0056] The external parameters include a rotation matrix and a translation matrix, wherein the rotation matrix Translation Matrix
[0057] The conversion model of the spatial coordinates of the acquisition device is obtained according to the external parameters: ir =R·P vi +T, where P ir is the point in the long-wave infrared image acquisition device, P vi is the point in the acquisition device of the visible light image.
[0058] In the process of registering the image pair according to the calibrated internal and external parameters, the registration transformation matrix of the visible light image is established. Among them, R vi is the rotation matrix of the visible light image, T vi is the translation matrix;
[0059] According to the rotation matrix and translation matrix of the visible light image, the visible light image is obtained by registration:
[0060]
[0061] In the process of registering the image pair according to the calibrated internal and external parameters, the registration transformation matrix of the long-wave infrared image is established. Among them, R ir is the rotation matrix of the long-wave infrared image, T ir is the translation matrix;
[0062] According to the rotation matrix and translation matrix of the visible light image, the long-wave infrared image is obtained by registration:
[0063]
[0064] For each pair of visible light images and LWIR images, apply the M generated above to them respectively. vi and M ir , thereby generating the registered image pair, namely:
[0065] I pair_registered =(I vi_registered ,I ir_registered );
[0066] For each pair of visible and LWIR images in the training dataset, the above steps are repeated to generate the corresponding registered image pairs.
[0067] The purpose of introducing slight deformation and noise into the training data is to simulate the uncertainty and interference in real scenes, making the model more robust and able to cope with various changes and noise in the real world. Specifically, the method mainly deforms and adds Gaussian noise;
[0068] Among them, deformation is added to the registered image pair by scaling, rotating, and translating:
[0069]
[0070] Scaling transformation matrix
[0071] Rotation transformation matrix
[0072] Translation transformation matrix
[0073] Add Gaussian noise to the registered image pair:
[0074] I′(x,y)=I(x,y)+Gaussian(x,y); where Gaussian(·) is a Gaussian matrix, Gaussian(·)~N(0,σ 2 ), N represents normal distribution, σ 2 represents the noise variance.
[0075] The introduction of deformation and Gaussian noise increases the diversity of training data and makes the model more robust and able to cope with various changes and noises in real scenes. In actual implementation, the deformation parameters and noise levels are adjusted to balance the enhancement of data diversity and the preservation of data interpretability.
[0076] The process of dividing multiple sets of image pairs into different data sets is as follows:
[0077] Use random sampling to divide multiple groups of image pairs into training set, validation set and test set in the ratio of 0.7:0.15:0.15;
[0078] Among them, each image pair only appears in one of the three sets: training set, validation set, and test set.
[0079] Add a label to each image pair, indicating the registration transformation parameters between them. For each image pair, the registration transformation parameters between the visible light image and the long-wave infrared image are combined into a label, which is then used to train the model. By learning the relationship between the input image and these labels, the geometric transformation between images is learned.
[0080] The registration transformation parameters are M, including the selection matrix R and the translation matrix T, whose labels are:
[0081] L i = {R i ,T i}; After completing the preparation and annotation of the dataset, a training set containing visible light and long-wave infrared image pairs is obtained, each image pair is marked with a corresponding label (L i ), which are used as labels for training the STN network.
[0082] The calibrated internal and external parameters in the data set and multiple sets of images are input into the spatial transformation network for high-precision registration training to obtain the affine transformation parameter matrix;
[0083] The image pair is registered according to the affine transformation parameter matrix, and the two images in the registered image pair are superimposed to obtain a fused image.
[0084] In order to achieve accurate geometric transformation, the STN network structure is adopted. The goal of STN is to learn the geometric transformation that accurately aligns the LWIR image to the visible light image to minimize the loss function, thereby achieving accurate alignment of visible light and LWIR images in practical applications.
[0085] The training of STN network plays a key role in the high-precision registration method of complementary source images. By learning the affine transformation parameters, STN network can achieve accurate geometric transformation of source images of different sensors, thereby solving the problem of spatial deviation between images;
[0086] Its advantages include: first, the training of the STN network enables it to adapt to changes in different environments and sensor sources, ensuring the robustness of the system in different situations, because in actual applications, there will be a variety of different scenarios and sensor combinations;
[0087] Secondly, the STN network gradually adjusts its parameters to minimize the geometric transformation error by comparing the network output with the reference registration transformation parameters, thereby ensuring the accuracy of registration and making the alignment between different sensor source images more reliable;
[0088] Finally, the training of the STN network makes the system more robust and able to cope with various changes and noises in the real environment, providing reliability and efficiency guarantees for the method in practical applications.
[0089] Using the generated training set, image pairs of LWIR images aligned to visible light images are used as input data. These image pairs already contain known registration transformation parameters (composed of calibrated rotation and translation matrices).
[0090] The specific process of performing high-precision registration training is as follows: the spatial transformation network obtains the output of the spatial transformation network performing affine transformation on the long-wave infrared image based on the input data
[0091] According to STN(I ir ) to obtain the affine transformation parameter matrix
[0092] Among them, I ir is the long-wave infrared image, I vi For visible light images, STN( / ir ) is the output of the spatial transformation network for affine transformation of the long-wave infrared image, θ 11 ,θ 12 ,θ 13 ,θ 21 ,θ 22 ,θ 23 are the affine transformation parameters.
[0093] The spatial transformer network is set with a loss function during the training process. The loss function quantifies the error between the output of the spatial transformer network and the registration transformation parameters according to the difference in the affine transformation parameter matrix;
[0094] Loss function LossLoss stn =MSE(STN(I ir ), M ground_truth );
[0095] Among them, MSE(·) is the mean square error, M ground_truth are the registration transformation parameters obtained through calibration.
[0096] Those of ordinary skill in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0097] In the several embodiments provided in the present application, it should be understood that the disclosed methods and systems can be implemented in other ways. For example, the division of the units described above is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. The above-mentioned units may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.
[0098] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention, and they should all be included in the scope of the claims and specification of the present invention.
[0099] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A deep learning driven high-precision registration method for complementary source images, characterized in that: The steps include: Collect visible light images and long-wave infrared images of the target scene to obtain multiple sets of image pairs, and calibrate the internal and external parameters of the acquisition equipment; The image pairs are registered according to the calibrated intrinsic and extrinsic parameters, and deformation and Gaussian noise are added to the registered image pairs; Divide multiple groups of image pairs into different data sets by random sampling; After adding registration transformation labels to each image pair according to external parameters, the dataset is input into the spatial transformer network to perform high-precision registration training.
2. According to claim 1, a deep learning driven complementary source image high-precision registration method is characterized by: The internal parameters include focal length and principal coordinate points, where the focal length is f x , f y , the principal coordinate point is c x , c y , the matrix of internal parameters is; The external parameters include a rotation matrix and a translation matrix, wherein the rotation matrix Translation Matrix The conversion model of the spatial coordinates of the acquisition device is obtained according to the external parameters: ir =R·P vi +T, where P ir is the point in the long-wave infrared image acquisition device, P vi is the point in the acquisition device of the visible light image.
3. The deep learning driven high-precision complementary source image registration method according to claim 1, characterized in that: In the process of registering the image pair according to the calibrated internal and external parameters, the registration transformation matrix of the visible light image is established. Among them, R vi is the rotation matrix of the visible light image, T vi is the translation matrix; According to the rotation matrix and translation matrix of the visible light image, the visible light image is obtained by registration:
4. The method of high-precision registration of complementary source images driven by deep learning according to claim 1, characterized in that: In the process of registering the image pair according to the calibrated internal and external parameters, the registration transformation matrix of the long-wave infrared image is established. Among them, R ir is the rotation matrix of the long-wave infrared image, T ir is the translation matrix; According to the rotation matrix and translation matrix of the visible light image, the long-wave infrared image is obtained by registration:
5. The deep learning driven complementary source image high-precision registration method according to claim 1, characterized in that: Add deformation to the registered image pair by scaling, rotating, or translating: Scaling transformation matrix Rotation transformation matrix Translation transformation matrix 6. The deep learning driven high-precision complementary source image registration method according to claim 1, characterized in that: Add Gaussian noise to the registered image pair: I ′ (x,y)=I(x,y)+Gaussian(x,y); where Gaussian(·) is a Gaussian matrix, Gaussian(·)~N(0,σ 2 ), N represents normal distribution, σ 2 represents the noise variance.
7. The deep learning driven complementary source image high-precision registration method according to claim 1, characterized in that: The process of dividing multiple sets of image pairs into different data sets is as follows: Use random sampling to divide multiple groups of image pairs into training set, validation set and test set in the ratio of 0.7:0.15:0.15; Among them, each image pair only appears in one of the three sets: training set, validation set, and test set.
8. The deep learning driven high-precision complementary source image registration method according to claim 1, characterized in that: The calibrated internal and external parameters in the data set and multiple sets of images are input into the spatial transformation network for high-precision registration training to obtain the affine transformation parameter matrix; The image pair is registered according to the affine transformation parameter matrix, and the two images in the registered image pair are superimposed to obtain a fused image.
9. The deep learning driven complementary source image high-precision registration method according to claim 1, characterized in that: The specific process of performing high-precision registration training is as follows: the spatial transformation network obtains the output of the spatial transformation network performing affine transformation on the long-wave infrared image based on the input data According to STN(I ir ) to obtain the affine transformation parameter matrix Among them, I ir is the long-wave infrared image, I vi For visible light images, STN(I ir ) is the output of the spatial transformation network for affine transformation of the long-wave infrared image, θ 11 ,θ 12 ,θ 13 ,θ 21 ,θ 22 ,θ 23 are the affine transformation parameters.
10. The deep learning driven complementary source image high-precision registration method according to claim 1, characterized in that: The spatial transformer network is set with a loss function during the training process. The loss function quantifies the error between the output of the spatial transformer network and the registration transformation parameters according to the difference in the affine transformation parameter matrix; Loss function LossLoss stn =MSE(STN(I ir ),M ground_truth ); Among them, MSE(·) is the mean square error, M ground_truth are the registration transformation parameters obtained through calibration.
Citation Information
Patent Citations
Method and device for training image registration model and electronic equipment
CN112561973A
Multi-modal image fusion method, system and equipment based on information bottleneck and medium
CN113191991A
Explanatable thermal infrared visible light image registration method and system
CN114820733A
Transformer substation multi-sensor calibration and data fusion method
CN116485903A
Heterogeneous image matching model training method, matching method and medium
CN116740399A
Cited By
Geometric consistency unsupervised binocular calibration method based on marine environment
CN119850751A
