A region image alignment method based on neural image field recovery

By introducing the concept of digital waveform signal alignment and neural image field recovery method, a global matching normalized coordinate system is established. End-to-end training is performed using a multilayer perceptron, and the homography transformation matrix is ​​optimized. This solves the problem of limited improvement in image alignment accuracy in existing technologies and achieves pixel-level high-precision alignment.

CN118196155BActive Publication Date: 2026-11-27BEIJING INST OF TECH
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410324729.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-21
Publication Date
2026-11-27
Estimated Expiration
2044-03-21

AI Technical Summary

Technical Problem

Existing deep learning methods fail to fully utilize image information in image alignment tasks, resulting in limited accuracy improvements and an inability to achieve pixel-level matching optimization.

Method used

By introducing the concept of digital waveform signal alignment, a global matching normalized coordinate system is established. The neural image field is constructed using a neural image field recovery method and a multilayer perceptron. End-to-end training is performed using a photometric consistency function to optimize the homography transformation matrix and achieve pixel-level matching.

Benefits of technology

It achieves pixel-level precise matching in the image alignment process, makes full use of image information, reduces algorithm complexity, and improves alignment accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118196155B_ABST
    Figure CN118196155B_ABST
Patent Text Reader

Abstract

The present application belongs to the field of image processing, and particularly relates to a regional image alignment method based on neural image field recovery. First, global matching normalization coordinate conversion is performed according to the to-be-aligned sub-image and the target image, then a learnable homography transformation matrix is established for each to-be-aligned sub-image, a neural image field network is established to predict the output image pixel value and the luminosity error loss function between the provided to-be-matched image and the to-be-matched image sub-image, end-to-end learning and training of the homography transformation matrix are realized; when the set condition is reached, the optimization process is ended, at this time, the optimized homography transformation matrix is the transformation matrix required for image alignment; the present application breaks the solving framework of the traditional image alignment technology "feature matching-image alignment", realizes end-to-end training while fully utilizing each pixel information of the image, can obtain a more accurate image alignment transformation matrix, and provides related research convenience for practical scene applications based on the image alignment method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of image processing, and particularly relates to a method for region image alignment based on neural image field restoration. Background Technology

[0002] Local image alignment, a classic task in computer vision, has significant applications in image stitching, camera stabilization, AR / VR, and artificial image synthesis. Currently, local image alignment is largely guided by multi-view geometry theory. It achieves alignment by extracting feature points between images, establishing feature matching relationships, and solving the homography transformation matrix between the region to be aligned and the target image.

[0003] With the development of deep learning, image feature extraction has gradually shifted from traditional manually designed features to high-dimensional feature descriptors, greatly improving the accuracy of feature matching. Furthermore, the specific form of feature extraction has evolved from feature points to dense region features, such as contour boundaries and regions of interest. However, constrained by the guiding principles, the aforementioned deep learning methods are mostly used as replacement modules within the classic multi-view geometric solution framework for image alignment tasks. Due to the limitations of this framework, the accuracy improvement is limited, and it cannot fully utilize all image information. Therefore, breaking through the limitations of the existing computational architecture and further improving the accuracy of image alignment tasks has significant practical application value.

[0004] Chinese patent application number 202310302833.2, entitled "A Method for Aligning Boundary Target Images Based on Cascaded Deep Neural Networks," describes an image alignment method based on deep learning. This method utilizes two independent, cascaded deep learning networks to extract image edge features and perform matching alignment based on those features. While this method improves upon existing image alignment architectures, it still relies on edge features in the image for alignment, as mentioned above. Although deep learning methods expand the feature dimension and improve the accuracy of solving the transformation matrix after matching, they still do not fully utilize image information, resulting in limited accuracy improvement. Summary of the Invention

[0005] To address the aforementioned issues, this invention provides a region image alignment method based on neural image field restoration. This invention introduces the concept of digital waveform signal alignment into the image alignment calculation process, changing the original "feature matching-image alignment" solution architecture while achieving pixel-level matching optimization and fully utilizing the rich characteristics of image information. Furthermore, the overall architecture of this method is based on a deep learning network, enabling end-to-end computation. The loss function calculation only includes the photometric error function generated by pixel values ​​in the image, reducing algorithm complexity while ensuring convergence quality and speed.

[0006] A method for region image alignment based on neural image field recovery includes the following steps:

[0007] Step 1: Establish a global matching normalized coordinate system, transforming the sub-image to be aligned and the target image T to the global matching normalized coordinate system; denote the sub-image to be aligned as R. i The pixel value of each pixel in the middle is The pixel value of each pixel in the target image is Where i = 1, 2, 3, ..., n, n represents the number of subgraphs to be matched;

[0008] Step 2: Establish the neural image field and create an optimizable homography transformation matrix H for each sub-image. i Specifically, it includes:

[0009] Step 201: Establish a homography transformation matrix for each sub-image to be aligned, denoted as H. i Each homography transformation matrix contains 8 degrees of freedom, denoted as H. i The optimizable parameters are (h1, h2, h3, h4, h5, h6, h7, h8). i If we initialize all values ​​to 0, then the homography transformation matrix H i The specific definition is:

[0010]

[0011] Step 202: Establish a neural image field F based on a multilayer perceptron architecture;

[0012] Step 3: Train the neural image field using a sample set consisting of the sub-images to be aligned and the target image, and simultaneously perform numerical optimization of the homography transformation matrix, specifically including:

[0013] Step 301: Convert the coordinates of the sub-images to the global matching normalized coordinate system. Expanding dimensions Its corresponding homography transformation matrix H i Perform coordinate transformation calculations:

[0014]

[0015] Where [x′ i y′ i z′ i ] T The new coordinates obtained after the transformation are then converted back to the pixel coordinate system:

[0016]

[0017] Step 302: Obtain the coordinates of the sub-image from step 301. The coordinates (m) of the target image T transformed to the global matching normalized coordinate system in the first step. norm ,n norm Sine and cosine encodings are performed separately to obtain the encoded features and Enc_T. i (x,y) ;

[0018] Step 303, encode the features and Enc_T i (x,y) As the input information to the neural image field, the corresponding output information of the neural image field is RGB color information, denoted as follows: and Using the photometric consistency function as the loss function, the neural image field is trained to achieve homography transformation matrix H. i Update;

[0019] Step 4: When the set optimization training stopping condition is met, stop training the neural image field and output the final optimized homography transformation matrix H. i ;

[0020] Step 5: For the input sub-images to be aligned, use the optimization matrix H corresponding to each sub-image obtained in Step 4. i The two-dimensional image coordinates of each sub-image are calculated to complete the alignment task with the given target image.

[0021] Preferred methods for globally matching normalized coordinate systems include:

[0022] With the center of the target image as the origin O, and the center lines on the height and width as the X and Y axes respectively, a global matching normalized coordinate system O-XY is established.

[0023] Preferred methods for transforming the sub-image to be aligned and the target image to a globally matched normalized coordinate system include:

[0024] Let each sub-image be denoted as R. i The height and width resolution of each sub-image is denoted as Rh. i ,Rw i Let the target image be denoted as T, and the height and width resolutions of the target image be denoted as Th and Tw, respectively. Then, the subimage R... i The calculation method for converting pixel coordinates from the image coordinate system to the global matching normalized coordinate system is as follows:

[0025]

[0026] in, Let i be the coordinates of the sub-image to be aligned with index number i in the globally matched normalized coordinate system. Let i be the coordinate point of the sub-image to be aligned in the pixel coordinate system;

[0027] The target image undergoes a global matching normalized coordinate system transformation, calculated as follows:

[0028]

[0029] Where, m norm ,n norm Let m be the coordinates of the target image in the globally matched normalized coordinate system. pixel ,n pixel Align the target image with the coordinates of the pixel coordinate system.

[0030] Preferably, the number of layers in the neural image field is L:

[0031]

[0032] Here, the ceil function represents rounding up. Each layer contains 256 perceptual neurons, with an input dimension of 32 and an output dimension of 3. The last output layer uses the activation function Sigmoid(x), and each of the remaining layers uses the activation function LeakyRelu(x).

[0033] Preferably, the sine / cosine encoding method includes:

[0034] Enc(x,y)=[sin(20πx),cos(2 0 πy),sin(2 1 πx),cos(2 1 πy),...,sin(2 b-1 πx),cos(2 b-1 πy)]

[0035] Where (x, y) represent the coordinates in the global matching normalized coordinate system, i.e. or (m) norm ,n norm ), record the encoded for Encoded (m) norm ,n norm ) is denoted as Enc_T i (x,y) b represents the encoding frequency bandwidth.

[0036] Preferably, the set optimization training stopping condition is that the photometric loss function loss value is lower than a set threshold or the number of training rounds reaches a set upper limit.

[0037] Preferably, the method for calculating the photometric loss function Loss includes:

[0038]

[0039]

[0040] The present invention has the following beneficial effects:

[0041] This invention belongs to the field of image processing, and particularly relates to a method for region image alignment based on neural image field recovery. First, a global matching normalized coordinate transformation is performed on the sub-image to be aligned and the target image. Then, a learnable homography transformation matrix is ​​established for each sub-image to be aligned. A photometric error loss function is established between the pixel values ​​of the predicted output image from the neural image field network and the provided sub-image to be matched, realizing end-to-end learning and training of the homography transformation matrix. When a set condition is met, the optimization process ends, and the optimized homography transformation matrix is ​​the transformation matrix required for image alignment. This invention breaks the traditional "feature matching-image alignment" solution framework of image alignment technology. While achieving end-to-end training, it fully utilizes the information of each pixel in the image, obtaining a more accurate image alignment transformation matrix, and providing research convenience for practical applications based on image alignment methods. Attached Figure Description

[0042] Figure 1 This is a flowchart of an embodiment of a region image alignment method based on neural image field recovery according to the present disclosure;

[0043] Figure 2 This diagram details the specific definitions of the global matching normalized coordinate system for the subgraph to be matched and the matching graph.

[0044] Figure 3 This provides an independent functional description of the neural image field. Detailed Implementation

[0045] Referring to the accompanying drawings, the foregoing and other features of the present invention will become apparent from the following description. Specific embodiments of the invention are specifically disclosed in the description and drawings, illustrating that certain embodiments may be implemented using the principles of the present invention.

[0046] A method for region image alignment based on neural image field recovery includes the following steps:

[0047] Step 1: Establish a global matching normalized coordinate system based on the number and resolution of the sub-images to be aligned. This step creatively proposes a global matching normalized coordinate system for both the sub-images to be aligned and the target image, converting the x and y coordinates of all matching sub-images and matching images into the range [-1, 1]. Specific methods include:

[0048] Step 101: Establish a global matching normalized coordinate system O-XY with the center of the target image as the origin O and the center lines on the height and width as the X and Y axes, respectively; wherein the positive direction of the X axis is consistent with the x-axis of the image coordinate system, and the positive direction of the Y axis is opposite to the x-axis of the image coordinate system.

[0049] Perform a global matching and normalized coordinate transformation on the sub-images to be aligned. Each sub-image is denoted as R. i The height and width resolution of each sub-image is denoted as Rh. i ,Rw i Where i = 1, 2, 3, ..., n, representing the number of subgraphs to be matched, the target image to be aligned is denoted as T, and the height and width resolutions of the target image to be aligned are denoted as Th and Tw, respectively. Then, the subgraph R is... i The calculation method for converting pixel coordinates from the image coordinate system to the global matching normalized coordinate system is as follows:

[0050]

[0051] in, Let i be the new coordinates of the sub-image to be aligned with index number i in the globally matched normalized coordinate system. Let i be the coordinates of the sub-image to be aligned in the pixel coordinate system.

[0052] Step 102: Perform a global matching normalized coordinate system transformation on the target image. The specific calculation method is as follows:

[0053]

[0054] Where, m norm ,n norm Let m be the new coordinates of the target image in the globally matched normalized coordinate system. pixel ,n pixel Align the target image with its pixel coordinates.

[0055] Step 103, record the sub-image to be matched R. i The median coordinate is The pixel value possessed by the pixel The coordinates in the target image are The pixel value possessed by the pixel

[0056] Step 2: Establish the neural image field and the learnable homography transformation matrix. The number of learnable homography matrices is the same as the number of sub-images to be matched. This step creatively proposes the neural image field as an optimization constraint for the learnable homography transformation matrix, specifically including:

[0057] Step 201: For each sub-image to be aligned, establish its corresponding homography transformation matrix, denoted as H. i Where i = 1, 2, 3, ..., n, represents the number of subgraphs to be matched. Each homography transformation matrix contains 8 degrees of freedom. Let the homography transformation matrix H be denoted as H. i The optimizable parameters are (h1, h2, h3, h4, h5, h6, h7, h8). i If we initialize all values ​​to 0, then the homography transformation matrix H i The specific definition is:

[0058]

[0059] Step 202: Establish a globally unique neural image field, denoted as F, using a multilayer perceptron as the basic architecture. The specific number of layers is defined as follows:

[0060]

[0061] Here, the ceil function represents rounding up. Each layer contains 256 perceptual neurons, with an input dimension of 32 and an output dimension of 3. The last output layer uses the activation function Sigmoid(x), and each of the remaining layers uses the activation function LeakyRelu(x). Its specific architecture is as follows: Figure 3 As shown;

[0062] Step 3: Establish a photometric error loss function between the pixel values ​​of the predicted output image from the neural image field network and the provided image to be matched and its sub-images. This step innovatively synchronizes the matching calculation process of all sub-images and simultaneously achieves numerical optimization of the matching homography matrix. Specifically, it includes:

[0063] Step 301: Normalize the pixel coordinates of the sub-images to be aligned in step 101. Expanding dimensions With the homography transformation matrix H in step 201 i The specific method for performing coordinate transformation calculations is as follows:

[0064]

[0065] Where [x′ i y′ i z′ i ] T For homography H iThe newly obtained coordinates are then transformed into pixel coordinates. The specific method is as follows:

[0066]

[0067] Step 302: Obtain the transformed coordinates of the sub-image to be aligned in step 301. and the normalized pixel coordinates (m) of the target image in step 102 norm ,n norm Sine and cosine encoding is performed, with the encoding frequency bandwidth b set to 8. The specific encoding calculation method is as follows:

[0068] Enc(x,y)=[sin(2 0 πx),cos(2 0 πy),sin(2 1 πx),cos(2 1 πy),...,sin(2 b-1 πx),cos(2 b-1 πy)] (7)

[0069] Where (x, y) represent the horizontal and vertical coordinates in the global matching normalized coordinate system, respectively. or (m) norm ,n norm ), record the encoded for Encoded (m) norm ,n norm ) is denoted as Enc_T i (x,y) ;

[0070] Step 303, will and Enc_T i (x,y) The input information for the neural image field consists of 32-dimensional elements, and the corresponding output information is RGB color information, which is 3-dimensional. These are denoted as follows: and The photometric consistency function is used as the loss function, and the specific loss calculation method is as follows:

[0071]

[0072] The final loss function is defined as:

[0073]

[0074] Using the aforementioned loss function, training the neural image field can achieve the target homography matrix H. i The update is used to solve the homography matrix required for image alignment;

[0075] Step 4: Set the allowable error range or optimize the training stopping condition. After the optimization process is completed, the homography transformation matrix in Step 2 is optimized, which is the image alignment transformation matrix required by the task, specifically:

[0076] Step 401: Set the network optimization stopping condition. Set the photometric loss threshold to 0.008 and the maximum number of training epochs to 100. Take the optimization matrix H at this point. i The target homography transformation matrix;

[0077] Step 5: For the sub-images to be aligned, according to formulas (5) and (6), use the optimization matrix H corresponding to each sub-image. i This allows us to obtain the new coordinates of each sub-image after alignment, thus completing the alignment task with the given target image.

[0078] In summary, the above are merely preferred embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for region image alignment based on neural image field recovery, characterized in that, Includes the following steps: Step 1: Establish a global matching normalized coordinate system and align the sub-image to be aligned with the target image. Transform to the global matching normalized coordinate system; denote the sub-image to be matched. The pixel value of each pixel in the middle is The pixel value of each pixel in the target image is ;in, , Indicates the number of subgraphs to be matched; Step 2: Establish the neural image field and create an optimizable homography transformation matrix for each sub-image. Specifically, it includes: Step 201: Establish a homography transformation matrix corresponding to each sub-image to be aligned, denoted as . Each homography transformation matrix contains 8 degrees of freedom, denoted as ______. The optimizable parameters are If we initialize all values ​​to 0, then the homography transformation matrix... The specific definition is: Step 202: Establish a neural image field based on a multilayer perceptron architecture. ; Step 3: Train the neural image field using a sample set consisting of the sub-images to be aligned and the target image, and simultaneously perform numerical optimization of the homography transformation matrix, specifically including: Step 301: Set the coordinates of the sub-images to the global matching normalized coordinate system. Expanding dimensions The corresponding homography transformation matrix Perform coordinate transformation calculations: (1) in The new coordinates obtained after the transformation are then converted back to the pixel coordinate system: (2) Step 302: Obtain the coordinates of the sub-image from step 301. and the target image in the first step Coordinates transformed to a globally matched normalized coordinate system Perform sine and cosine encoding separately to obtain the corresponding encoded features and sums. ; Step 303, encode the features and As the input information to the neural image field, the corresponding output information of the neural image field is RGB color information, denoted as follows: and Photometric consistency function Using the loss function, the neural image field is trained to achieve the homography transformation matrix. Update; Step 4: When the set optimization training stopping condition is met, stop training the neural image field and output the final optimized homography transformation matrix. ; Step 5: For the input sub-images to be aligned, use the optimization matrix corresponding to each sub-image obtained in Step 4. The two-dimensional image coordinates of each sub-image are calculated to complete the alignment task with the given target image; Methods for transforming the sub-image to be aligned and the target image to a globally matching normalized coordinate system include: Each sub-image is denoted as The height and width resolution of each sub-image are denoted as . Alignment target image is denoted as The height and width resolutions of the aligned target image are denoted as... Then the subgraph The calculation method for converting pixel coordinates from the image coordinate system to the global matching normalized coordinate system is as follows: in, For index number The coordinates of the sub-image to be aligned in the globally matched normalized coordinate system. For index number The coordinates of the sub-image to be aligned in the pixel coordinate system; The target image undergoes a global matching normalized coordinate system transformation, calculated as follows: in, The coordinates of the target image in the globally matched normalized coordinate system. Align the target image with its pixel coordinates. The sine and cosine encoding method includes: in, These represent the coordinates in the global matching normalized coordinate system, i.e. or Record the encoded for Encoded Recorded as ; This indicates the encoding frequency bandwidth.

2. The region image alignment method based on neural image field recovery as described in claim 1, characterized in that, Methods for globally matching normalized coordinate systems include: With the center of the target image as the origin O, and the center lines on the height and width as the X and Y axes respectively, a global matching normalized coordinate system O-XY is established.

3. The region image alignment method based on neural image field recovery as described in claim 1, characterized in that, The number of layers in the neural image field is : in, The function represents rounding up. Each layer contains 256 perceptual neurons, with an input dimension of 32 and an output dimension of 3. The last output layer uses an activation function. The activation function used in each of the remaining layers is... .

4. The region image alignment method based on neural image field recovery as described in claim 1, characterized in that, The set optimization training stopping condition is the photometric loss function. The value is lower than the set threshold or the number of training rounds reaches the set limit.

5. The region image alignment method based on neural image field recovery as described in claim 4, characterized in that, The photometric loss function The calculation methods include: 。

Citation Information

Patent Citations

  • Frame target image alignment method based on cascade deep neural network

    CN116309174A