Batch remote sensing image fusion method based on improved astar search algorithm

By improving the Astar search algorithm and the surface Venn diagram algorithm to construct a stitching line network, and combining it with multi-resolution fusion, the problem of low efficiency in traditional remote sensing image stitching is solved, and efficient and seamless batch remote sensing image fusion is achieved.

CN117710231BActive Publication Date: 2026-11-20BEIJING INST OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311761472.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-20
Publication Date
2026-11-20
Estimated Expiration
2043-12-20

AI Technical Summary

Technical Problem

Traditional remote sensing image mosaicking methods suffer from high computational cost and low efficiency in large-scale, complex, overlapping wide-area remote sensing image mosaicking. They also lack consideration for the relationships between overall images, making it difficult to meet the needs of rapid global perception and response.

Method used

An improved Astar search algorithm combined with a surface Venn diagram algorithm that takes overlap into account is used to construct a stitching line network. A multi-resolution fusion algorithm is then used to achieve batch fusion of remote sensing images, generating seamless and non-redundant stitching results.

Benefits of technology

It improves the search efficiency and stitching accuracy of the algorithm, effectively eliminates image stitching lines and ghosting, and realizes rapid and seamless fusion of large-scale images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117710231B_ABST
    Figure CN117710231B_ABST
Patent Text Reader

Abstract

The application discloses a batch remote sensing image fusion method based on an improved Astar search algorithm, which comprises the following steps: based on the geographic information of batch remote sensing raster images to be spliced, an overall fusion canvas is constructed and all overlapping areas of the batch remote sensing images to be spliced are extracted; for all the extracted overlapping areas, an initial splicing line network is constructed by using a surface dimension Vornoi algorithm considering overlapping, and the optimization of the splicing line network is realized based on the improved Astar search algorithm; after the optimized splicing line of each group of images to be processed in the overlapping area sequence image set is generated, the final effective area boundary of all the images is obtained; according to the effective area boundary, the overall fusion canvas is filled by using a multi-resolution fusion algorithm according to a fusion rule, and finally, the final fusion image G0 of the batch remote sensing images is obtained. The application can realize the rapid fusion of wide-area remote sensing images with large data volume and complex overlapping areas.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of remote sensing image stitching and fusion, and particularly relates to a batch remote sensing image fusion method based on an improved Astar search algorithm. Background Technology

[0002] With the development of satellite technology, remote sensing imagery has become increasingly important and widely used in many fields, providing crucial information for scientific research, resource management, environmental monitoring, and disaster response. However, constrained by factors such as camera focal length and field of view, a single remote sensing satellite image typically has a limited field of view, reflecting only information about a local observation area. Remote sensing systems usually provide time-series image sequences, recording changes in the Earth's surface at different times. Through image mosaicking, these time-series image sequences can be integrated to form comprehensive time-series data, used for monitoring seasonal changes in the Earth's surface, the impact of natural disasters, and more. To meet the needs of global perception and rapid response, remote sensing image mosaicking and fusion is of significant research importance.

[0003] Traditional remote sensing image mosaicking methods generally focus on the fusion of two intersecting images, lacking consideration for the relationship between the overall images. For the mosaicking of large batches of complex overlapping areas of wide-area remote sensing images, sequential mosaicking is computationally intensive and inefficient. There is a need to design an image fusion method that can simultaneously mosaic large amounts of images and has high algorithmic efficiency. Summary of the Invention

[0004] To address the shortcomings of existing technologies, this invention provides a batch remote sensing image fusion method based on an improved Astar search algorithm. Addressing the needs of users for fusion of large-scale, complex overlapping areas of wide-area remote sensing image data, this method combines a surface Vennogram algorithm that considers overlap with an improved Astar search algorithm to construct a stitching network, and employs a multi-resolution fusion algorithm to achieve batch remote sensing image fusion. This method meets the accuracy and efficiency requirements of remote sensing image mosaic fusion.

[0005] To achieve the above objectives, one embodiment of the present invention provides a batch remote sensing image fusion method based on an improved Astar search algorithm, comprising:

[0006] S1. Based on the geographic information of the batch of remote sensing raster images to be stitched, construct an overall fusion canvas and extract all overlapping areas of the batch of images to be stitched. The dimensions of the constructed overall fusion canvas are (height, width):

[0007]

[0008] Among them, lat max To merge the maximum dimension of the canvas, lat min To minimize the dimensionality of the merged canvas, lonmax To blend the maximum longitude of the canvas, lon min To merge the minimum longitude of the canvas, res lat To integrate the overall latitudinal resolution, res lon To integrate the overall longitude resolution;

[0009] S2. For all extracted overlapping regions, an initial stitching line network is constructed using a surface Venn diagram algorithm that takes overlap into account. The stitching line network is then optimized using an improved Astar search algorithm. After generating optimized stitching lines for each group of images in the overlapping region sequence image set, the final effective region boundaries of all images are obtained. The optimization of the stitching line network based on the improved Astar search algorithm to generate optimized stitching lines for each group of images in the overlapping region sequence image set includes:

[0010] P1. Calculate the grayscale information difference of each point in an image pair based on a set of image sequences to be processed.

[0011] P2. Calculate the gradient information difference between image pairs.

[0012] P3. Calculate the texture complexity information of all pixels in the image.

[0013] P4. Difference in grayscale information between image pairs Gradient information difference Texture complexity information Calculate the energy function value of the overlapping region;

[0014] The energy function is:

[0015]

[0016] Among them, G p,g (x) is the energy function, where x is a pixel. For the difference in grayscale information, For gradient information difference, This refers to texture complexity information;

[0017] P5. Construct an energy map of the overlapping region based on the energy function, which serves as the baseline map for splicing line network optimization.

[0018] P6. Perform optimal stitching line search on the optimized baseline map to generate the optimal stitching line for each group of images to be processed in the overlapping region sequence image set.

[0019] S3. Based on the effective region boundary, a multi-resolution fusion algorithm is used to fill the overall fusion canvas according to the fusion rules to obtain the final fused image G0 of the batch of remote sensing images; the fusion rules are:

[0020]

[0021] Among them, G k For the fused image during the reconstruction process, k is a positive integer between 0 and K, K is the number of layers in the canvas pyramid, Exp(·) represents upsampling the image, and P K This is the highest level of the canvas pyramid.

[0022] Furthermore, the step in S1 of constructing the overall fusion canvas based on the geographic information of the batch of remote sensing raster images to be stitched together is as follows:

[0023] All remote sensing raster images to be stitched are acquired, each containing a 3×3 latitude and longitude transformation matrix; the latitude and longitude range and image size of each image are calculated based on the latitude and longitude transformation matrix; and an overall fusion canvas is constructed based on the calculated latitude and longitude range and image size.

[0024] Furthermore, after constructing the overall fusion canvas based on the calculated image latitude and longitude range and image size, the method further includes:

[0025] Calculate the positional relationship between all remote sensing images to be fused and the constructed overall fusion canvas for later retrieval;

[0026]

[0027] Among them, I i (v,j) represents the pixel coordinates of the top-left corner (0,0) of image i within the overall blended canvas. Let be the maximum latitude value of the i-th image. The minimum longitude value is the i-th image.

[0028] Furthermore, in S2, for all extracted overlapping regions, an initial splicing line network is constructed using a surface Veno map algorithm that takes overlap into account, including:

[0029] Find the intersection region between each pair of images to be registered. The intersection region is a convex polygon. Extend the angle bisectors of the corresponding angles of each vertex. Stop extending when the angle bisectors intersect each other. Connect the intersection point of the two images to be registered with the intersection points of all adjacent angle bisectors to generate the initial stitching line network.

[0030] Furthermore, in P6, the optimal stitching line search is performed on the optimized reference map to generate the optimized stitching line for each group of images to be processed in the overlapping region sequence image set. This process is divided into two stages: coarse path search and path network optimization.

[0031] Furthermore, the coarse path search includes:

[0032] The baseline image is optimized by mean pooling, and the overall image is pooled and downsampled to the original image. Astar optimal path search is performed on adjacent initial splicing line network path points in a clockwise order on the optimized baseline graph after pooling, and an evaluation function f(n) is constructed:

[0033]

[0034] Where n is the current evaluation node, and Cost(n, Parent(n)) represents the cost function from the current node n to its parent node, i.e., the total energy. For heuristic estimation, Goal is the target node; x n、 y n Let x be the coordinate of the current evaluation node. Goal、 y Goal The coordinates of the target node;

[0035] Establish an open list and a closed list. The open list is used to store nodes to be visited and sorted according to the comprehensive cost. The closed list is used to store nodes that have been visited. Store the starting node in the open list and iterate through the specified operations until the target is reached or the open list is empty. Find the optimal path, which is the coarse path between adjacent path points in the current pooling baseline graph.

[0036] Furthermore, the path network optimization includes:

[0037] Based on generating coarse paths between all adjacent stitching points in the current overlapping area, the coarse path points are extended to the optimized baseline map before pooling, and the pooling extension area of ​​the coarse path in the original image is restored outward from these paths to construct a refined baseline map.

[0038] An azimuth array is constructed based on the geometric relationship between adjacent coarse path points. Each bit of the azimuth array represents the position of the previous pixel relative to the current pixel. The retained areas in the refined reference map are grouped according to the azimuth array. Based on the grouping, the path points in each group are extended to the coordinates of the image before pooling and combined with the corresponding start and end point pairs in the vertex. This generates the optimized stitching line of each group of images to be processed in the image set of the overlapping region sequence.

[0039] Furthermore, the orientation array is constructed as follows:

[0040]

[0041] Where a is a directional array, line[m] represents the current path point, and line[m-1] represents the previous adjacent path point.

[0042] Furthermore, in S2, the final effective region boundaries of all images are obtained, including:

[0043] The intersection of all optimized stitching lines for each image is calculated, and the result of the intersection is the final effective region boundary for all images.

[0044] Further, in step S3, based on the effective region boundary, a multi-resolution fusion algorithm is used to fill the overall fusion canvas according to the fusion rules to obtain the final fused image G0 of the batch of remote sensing images, including:

[0045] Based on the final effective area boundaries of all images, image masks for each image are generated; based on the positional relationship between the obtained remote sensing images to be fused and the overall fusion canvas, the images and their masks are fixed at the corresponding positions on the canvas, and the surrounding area is expanded to the same size as the canvas; a multi-resolution fusion algorithm is used to eliminate the stitching lines around the areas caused by differences in image brightness.

[0046] Construct Laplacian pyramids for all images and image masks, and construct fusion canvas pyramids and fusion canvas mask pyramids of the same size. Initially, each layer of the fusion canvas pyramid and fusion canvas mask pyramid is an array of all zeros. Fill the fusion canvas pyramid and fusion mask pyramid. Update the fusion canvas pyramid, and reconstruct the image based on the updated fusion canvas pyramid according to the fusion rules. Iterate in this way until the final fused image G0 is obtained.

[0047] The beneficial effects of this invention are as follows:

[0048] 1. This invention employs a surface Venn diagram algorithm that takes into account overlap, which can generate a seamless seam network without redundancy and whose processing results are independent of the image processing order, enabling simultaneous stitching of multiple images.

[0049] 2. This invention adopts an improved Astar path optimization algorithm, which can effectively improve the algorithm's search efficiency while ensuring the algorithm's accuracy.

[0050] 3. This invention combines optimal stitching lines with multi-resolution image fusion algorithms, which can effectively eliminate image stitching lines and "ghosting". Attached Figure Description

[0051] Figure 1 This is a flowchart of an embodiment of a batch remote sensing image fusion method based on an improved Astar search algorithm according to the present invention;

[0052] Figure 2 This is a schematic diagram of the initial splicing wire network according to an embodiment of the present invention;

[0053] Figure 3 This is a detailed reference diagram of an embodiment of the present invention;

[0054] Figure 4 This is a schematic diagram of an orientation array according to an embodiment of the present invention;

[0055] Figure 5 This is a rough path grouping diagram of an embodiment of the present invention;

[0056] Figure 6 This is a schematic diagram illustrating the relationship between the orientation array values ​​and the corresponding vertex selection of the path region according to an embodiment of the present invention;

[0057] Figure 7 This is a schematic diagram illustrating the effective region boundary generation of an embodiment of the present invention. Detailed Implementation

[0058] To make the objectives, technical solutions, and advantages of the present invention clearer, further explanation is provided below in conjunction with the accompanying drawings and embodiments.

[0059] As attached Figure 1 As shown, this invention provides a batch remote sensing image fusion method based on an improved Astar search algorithm, which can be mainly divided into the following three steps:

[0060] Step S1: Based on the geographic information of the batch of remote sensing raster images to be stitched, construct the overall fusion canvas and extract all overlapping areas of the batch of images to be stitched, including:

[0061] The user inputs a sequence of remote sensing raster images to be fused. Each image contains a 3×3 latitude-longitude transformation matrix, where positions (0,0) and (1,1) correspond to the minimum longitude value of the i-th image. and maximum latitude That is, the latitude and longitude coordinates of the pixel located at the top left corner (0,0) of the image. The transformation matrix positions (0,2) and (1,2) correspond to the longitude resolution res of the image, respectively. lon and latitude resolution res lat This refers to the change in latitude and longitude corresponding to each unit change in the image's pixel count. Therefore, the latitude and longitude range of the current image can be calculated using the latitude and longitude transformation matrix, as shown in the following expression:

[0062]

[0063] The size of the i-th image is (height) i ,width i Longitude range is Latitude range

[0064] The overall fusion canvas is constructed based on the geographic information of the input remote sensing images to be fused. The canvas size calculation expression is as follows:

[0065]

[0066] The canvas dimensions are (height, width), lat max lat min lon max lon min These are, in order, the maximum and minimum latitude and longitude values ​​of the merged canvas. res lat Res represents the overall latitudinal resolution of the fused system. lon This represents the overall longitude resolution of the fused image. Since the fused imagery needs to undergo resolution unification before input, res... lat and res lon All resolutions are consistent with the input images to be fused. The positional relationship between the remote sensing images to be fused and the overall fusion canvas is also calculated.

[0067]

[0068] Among them, I i (v,j) represents the pixel coordinates of the top-left corner (0,0) of image i in the overall fusion canvas. Finally, the function polygon1.intersection(polygon2) from the Shapely library in Python calculates the intersection regions between all pairs of images to be fused.

[0069] Step S2: For all extracted overlapping regions, an initial stitching line network is constructed using the overlapping-considering surface Vennogram algorithm. The stitching line network is then optimized using an improved Astar search algorithm. After generating the optimized stitching lines for each group of images in the image set to be processed, the final effective region boundaries for all images are obtained; including:

[0070] The core idea of ​​constructing the optimal stitching line between two images is to find an optimal path that minimizes the color / intensity changes of pixels along the overlapping region, considering factors such as color changes, brightness, and gradients, thereby reducing discontinuities at the stitching point. To ensure that the stitched image better preserves information from all sub-images, the stitching line should be as close as possible to the center of the overlapping region to avoid areas that are not affected by the mosaicking. Therefore, an initial stitching line network needs to be constructed beforehand, followed by path detail optimization. The main steps are as follows:

[0071] (1) Initial splicing wire network generation.

[0072] From the Vinno diagram that takes into account overlap, we can see that the non-overlapping regions of intersecting images are taken as face growing elements. For points within the overlapping region, they are assigned to the face growing element closest to them. The final boundary of the face growing element is the effective mosaic polygon of the image. Therefore, by finding the angle bisectors of each corner of the overlapping region and connecting the intersections of the angle bisectors, the stitching line can be made to approximate the center of the overlapping region.

[0073] First, the intersection region between each pair of images to be registered is determined. The intersection region is a convex polygon.

[0074] Then, extend the angle bisectors of the corresponding angles at each vertex, and stop extending when the angle bisectors intersect each other.

[0075] Then, connect the intersection points of the two images to be registered with the intersection points of all adjacent angle bisectors to form an initial stitching line network. An initial stitching line network with 3 images is shown below. Figure 2 As shown.

[0076] The method of generating the initial stitching network by taking into account the overlapping surface Venn diagram can effectively solve the efficiency problem caused by the limitation of traditional stitching-based image fusion algorithms to pairwise image stitching, and can efficiently generate the basic stitching network for all sequence images.

[0077] (2) Optimization of splicing wire network based on improved Astar search algorithm.

[0078] Based on the initial stitching line network generated in (1), all overlapping area images are captured, and the initial stitching lines contained in each overlapping area are retained, thereby forming an overlapping area sequence image set to be processed. A set of images to be processed contains the intersection image of the two images constituting the overlapping area in the area and the initial stitching line. It should be noted that one of the images can appear in multiple sets and form a set of images to be processed with the image that intersects with it.

[0079] For each set of images to be processed (two images with overlapping areas), the stitching network is optimized based on the improved Astar search algorithm.

[0080] The improved Astar search algorithm can effectively handle the stitching line optimization problem in the fusion of large batches of high-resolution remote sensing images, and improve the efficiency of stitching line network optimization while ensuring fusion accuracy.

[0081] Calculate the grayscale information difference of each point in an image pair based on a set of image sequences to be processed.

[0082]

[0083] Among them, l p (x) and l q (x) represents the pixel x in the image lp and l q The grayscale value on the screen.

[0084] Calculate the gradient information difference of image pairs

[0085]

[0086] in, and These represent pixel x in image I. p and I q The magnitude of the gradient value in the horizontal direction. and These represent pixel x in the image l. p and l q The magnitude of the gradient value in the vertical direction.

[0087] The coordinates of pixel x are (v, j), and the expression for calculating the pixel gradient value is as follows:

[0088]

[0089] The gradient direction calculation expression for each pixel is as follows:

[0090]

[0091] Among them, G x (x) and G y (x) represents the gradient values ​​of pixel x in the vertical and horizontal directions of the image, respectively. The angle range is divided into 12 dimensions, with each dimension having an angle range of 30°. Then, a window region is constructed with the current point as the center. The gradient value of each pixel in the window region is proportionally distributed to the two ends of its respective angle range. Finally, the HOG feature histogram of pixel x is calculated. The texture complexity τ(x) of pixel x can be derived from the gradient values ​​of pixel x in the horizontal and vertical directions:

[0092]

[0093] Among them, H b (x) represents the size of the b-th dimension in the HOG feature. The dimension B of the histogram in the HOG feature is 12, and Υ is a preset small constant, the calculation expression of which is as follows:

[0094] Υ=4w 2 ×ρ (9)

[0095] Where the constant 4 is the factor by which the Sobel gradient operator amplifies the magnitude of the first-order gradient. w is the window size for HOG feature statistics, w = 11, w 2This represents the number of pixels within the window region. ρ is a preset constant, ρ = 8. The corresponding texture complexity τ is obtained from the two images p and q respectively. p (x) and τ q (x), thereby calculating the image texture complexity information for all pixels.

[0096]

[0097] The difference in grayscale information between image pairs Gradient information difference Texture complexity information The energy value of the overlapping region is calculated using the following energy function:

[0098]

[0099] An energy map of the overlapping region is constructed based on the energy function, serving as a baseline map for splicing line network optimization.

[0100] To address the large data volume characteristic of fusion of sequential remote sensing images, an improved Astar optimal path search algorithm was designed. This algorithm searches for the optimal stitching line on the optimized baseline map, avoiding areas with large differences between image pairs. The improved algorithm can effectively improve search efficiency while ensuring algorithm accuracy.

[0101] The improved path search algorithm divides path search into two stages: coarse path search and path network optimization.

[0102] First, mean pooling is performed on the optimized baseline image, and the overall image is pooled and downsampled to the original image. The mean pooling expression is as follows:

[0103]

[0104] in, X represents the normalized weights. v×4+p,j×4+q The input matrix represents the element, v and j represent the row and column indices in the output matrix, respectively, and p and q represent the relative positions within the pooling window. To ensure that the pooled image retains the overall grayscale distribution, the horizontal pooling stride is 4, and the vertical pooling stride is 4.

[0105] Then, an Astar optimal path search is performed on the optimized baseline graph after pooling, between adjacent initial splicing line network path points in a clockwise order.

[0106] Construct the evaluation function:

[0107]

[0108] Where n is the current evaluation node, and Cost(n, Parent(n)) represents the cost function from the current node n to the parent node, i.e., the total energy. For heuristic estimation, Goal is the target node, i.e., the endpoint of the path target.

[0109] Establish an open list and a closed list. The open list stores nodes to be visited and is sorted according to the comprehensive cost. The closed list stores nodes that have already been visited.

[0110] The starting node is added to the open list, and the following specified operations are iterated until the target is reached or the open list is empty: (a) Select the node with the minimum value of the evaluation function f(n) from the open list and move that node to the closed list. (b) Check the neighbors of that node: if the neighbor is not in the open list, add it to the open list and calculate the cost value and heuristic value; if the neighbor is in the open list, check if the path to the neighbor through the current node is shorter. If so, update the cost value of the neighbor and its parent node. If the target node appears in the closed list, the optimal path is found, which is a coarse path between adjacent path points in the current pooling baseline graph.

[0111] Based on the generated coarse paths between all adjacent stitching points in the current overlapping region, the coarse path points are extended to the optimized baseline map before pooling. Then, using these paths as centers, the pooling extension region of the coarse path in the original image is reconstructed outwards, such as... Figure 3 A detailed baseline map is constructed. Then, an azimuth array is built based on the geometric relationships between adjacent coarse path points. Each bit in the azimuth array represents the position of the previous pixel relative to the current pixel. A schematic diagram of the azimuth array is shown below. Figure 4 As shown, the construction method is as follows:

[0112]

[0113] Where 'a' is the orientation array, 'line[m]' represents the current path point, and 'line[m-1]' represents the previous adjacent path point. The retained areas in the refined baseline map are grouped according to the orientation array, and the grouping results are illustrated in the diagram below. Figure 5 As shown, the grouping criteria are as follows:

[0114] (a) Create a sub-region group list group, a sub-region path collection list route, and an endpoint list vertex. Store line[0] into route and determine the relationship between the starting and ending points of the path. Store the corresponding vertices of the extended region of line[0] into the starting point of the first pair of points of vertex, and store the corresponding vertices of the extended region of line[-1] into the ending point of the last pair of points of vertex.

[0115] (b) Traverse the rough path points. If a[m] = 0, store line[m] in the route. If a[m] ≠ 0, store all point coordinates in the route as a set in the group. Clear the route and store line[m] in the route. Then, based on the value of a[m], store the vertex coordinates corresponding to the extended region of line[m-1] in the corresponding endpoint position of the vertex, and store the vertex coordinates immediately adjacent to the extended region of line[m] in the starting point position of the next pair of points of the vertex. The relationship between the value of a[m] and the selection of the corresponding vertices of line[m-1] and line[m] is as follows: Figure 6 As shown.

[0116] (c) If the rough path points have been traversed, the coordinates of the points in the last route are stored as a set of points in the group.

[0117] Based on grouping, each path point in the group is extended to the coordinates of the image before pooling and combined with the corresponding start and end point pairs in the vertex. The path network is refined using the Astar search algorithm, thereby generating an optimized stitching line between the two images in the current image pair.

[0118] Finally, the intersection of all optimized stitching lines for each image is calculated. The intersection result represents the final effective region boundary for all images, such as... Figure 7 As shown.

[0119] Step S3: Based on the effective area boundaries, use a multi-resolution fusion algorithm to fill the overall fusion canvas according to the fusion rules to obtain the final fused image G0 of the batch of remote sensing images; including:

[0120] Based on the final effective region boundaries of all images, an image mask is generated for each image. Then, based on the positional relationship I between the remote sensing image to be fused and the overall fusion canvas obtained in expression (3),... i Fix the image and its mask to I i The corresponding positions are then expanded around the edges, with the expanded size matching the canvas dimensions (height, width). For images stitched based on optimal stitching lines, noticeable stitching lines still exist around areas with brightness differences. A multi-resolution fusion algorithm is used to eliminate these stitching lines.

[0121] Construct Laplacian pyramids for all images and image masks, and construct blended canvas pyramids and blended canvas mask pyramids of the same size. Initially, each layer of the blended canvas pyramid and blended canvas mask pyramid is an array of all zeros. Then, fill the blended canvas pyramid and blended canvas mask pyramid according to the following filling rules:

[0122]

[0123]

[0124] Among them, P k (x,y) represents the pixel value at point (x,y) in the k-th layer of the canvas pyramid. k (x,y) represents the pixel value at point (x,y) in the k-th layer of the canvas mask pyramid. Let represent the pixel value at point (x, y) of the k-th layer of the Laplacian pyramid of image i. This represents the mask value at point (x, y) of the k-th layer of the mask pyramid for image i. The merged canvas pyramid is then updated according to the following rules:

[0125]

[0126] Image reconstruction is performed on the updated merged canvas pyramid, with the following merging rules:

[0127]

[0128] Among them, G k For the fused image during the reconstruction process, Exp(·) represents upsampling the image, starting from the highest level P of the canvas pyramid. K Reconstruction begins, P K Given a known quantity, G K =P K G K-1 =P K-1 +Exp(G K ) = P K-1 +Exp(P K This process is iterated until the final fused image G0 is obtained.

[0129] The key to remote sensing image mosaicking lies in achieving seamless image stitching within a short timeframe, making the selection of stitching seams crucial. A single remote sensing image contains a vast amount of information, and areas with prominent textures such as buildings, coastlines, and ridges can interfere with the ablation of stitching seams. Therefore, traditional shortest path, dynamic programming, and graph cut models are inefficient in high-resolution image processing. This method reduces the number of search nodes by performing image pooling and improves the search process of the Astar path search algorithm. While maintaining stitching seam accuracy, it effectively improves algorithm efficiency, enabling rapid fusion of large-area remote sensing images with complex overlapping regions.

[0130] Optionally, in this embodiment, those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0131] 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. The computer software product is stored in a storage medium and includes several instructions to cause one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods of the various embodiments of the present invention.

[0132] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.

[0133] The present invention and its embodiments have been described above. This description is not restrictive, and the accompanying drawings are only one embodiment of the present invention; the actual structure is not limited thereto. In conclusion, if those skilled in the art are inspired by this description and design similar structures and embodiments without departing from the spirit of the invention, such designs should fall within the protection scope of the present invention.

Claims

1. A batch remote sensing image fusion method based on an improved Astar search algorithm, characterized in that, It includes: S1. Based on the geographic information of the batch of remote sensing raster images to be stitched, construct an overall fusion canvas and extract all overlapping areas of the batch of images to be stitched. The dimensions of the constructed overall fusion canvas are (height, width): Among them, lat max To merge the maximum dimension of the canvas, lat min To minimize the dimensionality of the merged canvas, lon max To blend the maximum longitude of the canvas, lon min To merge the minimum longitude of the canvas, res lat To integrate the overall latitudinal resolution, res lon To integrate the overall longitude resolution; S2. For all extracted overlapping regions, an initial stitching line network is constructed using a surface Venn diagram algorithm that takes overlap into account. The stitching line network is then optimized using an improved Astar search algorithm. After generating optimized stitching lines for each group of images in the overlapping region sequence image set, the final effective region boundaries of all images are obtained. The optimization of the stitching line network based on the improved Astar search algorithm to generate optimized stitching lines for each group of images in the overlapping region sequence image set includes: P1. Calculate the grayscale information difference of each point in an image pair based on a set of image sequences to be processed. P2. Calculate the gradient information difference between image pairs. P3. Calculate the texture complexity information of all pixels in the image. P4. Difference in grayscale information between image pairs Gradient information difference Texture complexity information Calculate the energy function value of the overlapping region; The energy function is: Among them, C p,q (x) is the energy function, where x is a pixel. For the difference in grayscale information, For gradient information difference, This refers to texture complexity information; P5. Construct an energy map of the overlapping region based on the energy function, which serves as the baseline map for splicing line network optimization. P6. Perform optimal stitching line search on the optimized baseline map to generate the optimal stitching line for each group of images to be processed in the overlapping region sequence image set. S3. Based on the effective region boundary, a multi-resolution fusion algorithm is used to fill the overall fusion canvas according to the fusion rules to obtain the final fused image G0 of the batch of remote sensing images; the fusion rules are: Among them, G k For the fused image during the reconstruction process, k is a positive integer between 0 and K, K is the number of layers in the canvas pyramid, Exp(·) represents upsampling the image, and P K This is the highest level of the canvas pyramid.

2. The batch remote sensing image fusion method based on the improved Astar search algorithm according to claim 1, characterized in that, The step in S1 of constructing the overall fusion canvas based on the geographic information of a batch of remote sensing raster images to be stitched together is as follows: All remote sensing raster images to be stitched are acquired, each containing a 3×3 latitude and longitude transformation matrix; the latitude and longitude range and image size of each image are calculated based on the latitude and longitude transformation matrix; and an overall fusion canvas is constructed based on the calculated latitude and longitude range and image size.

3. The batch remote sensing image fusion method based on the improved Astar search algorithm according to claim 2, characterized in that, After constructing the overall fusion canvas based on the calculated image latitude and longitude range and image size, the method further includes: Calculate the positional relationship between all remote sensing images to be fused and the constructed overall fusion canvas for later retrieval; Among them, I i (v,j) represents the pixel coordinates of the top-left corner (0,0) of image i within the overall blended canvas. Let be the maximum latitude value of the i-th image. The minimum longitude value is the i-th image.

4. The batch remote sensing image fusion method based on the improved Astar search algorithm according to claim 1, characterized in that, In step S2, for all extracted overlapping regions, an initial splicing line network is constructed using a surface Vinauro diagram algorithm that takes overlap into account, including: Find the intersection region between each pair of images to be registered. The intersection region is a convex polygon. Extend the angle bisectors of the corresponding angles of each vertex. Stop extending when the angle bisectors intersect each other. Connect the intersection point of the two images to be registered with the intersection points of all adjacent angle bisectors to generate the initial stitching line network.

5. The batch remote sensing image fusion method based on the improved Astar search algorithm according to claim 4, characterized in that, In P6, the optimal stitching line search is performed on the optimized reference map to generate the optimized stitching line for each group of images to be processed in the overlapping region sequence image set. This process is divided into two stages: coarse path search and path network optimization.

6. The batch remote sensing image fusion method based on the improved Astar search algorithm according to claim 5, characterized in that, The coarse path search includes: The baseline image is optimized by mean pooling, and the overall image is pooled and downsampled to the original image. Astar optimal path search is performed on adjacent initial splicing line network path points in a clockwise order on the optimized baseline graph after pooling, and an evaluation function f(n) is constructed: Where n is the current evaluation node, and Cost(n, Parent(n)) represents the cost function from the current node n to the parent node, i.e., the total energy. For heuristic estimation, Goal is the target node, x n y n Let x be the coordinate of the current evaluation node. Goal、 y Goal The coordinates of the target node; Establish an open list and a closed list. The open list is used to store nodes to be visited and sorted according to the comprehensive cost. The closed list is used to store nodes that have been visited. Store the starting node in the open list and iterate through the specified operations until the target is reached or the open list is empty. Find the optimal path, which is the coarse path between adjacent path points in the current pooling baseline graph.

7. The batch remote sensing image fusion method based on the improved Astar search algorithm according to claim 6, characterized in that, The path network optimization includes: Based on generating coarse paths between all adjacent stitching points in the current overlapping area, the coarse path points are extended to the optimized baseline map before pooling, and the pooling extension area of ​​the coarse path in the original image is restored outward from these paths to construct a refined baseline map. An azimuth array is constructed based on the geometric relationship between adjacent coarse path points. Each bit of the azimuth array represents the position of the previous pixel relative to the current pixel. The retained areas in the refined reference map are grouped according to the azimuth array. Based on the grouping, the path points in each group are extended to the coordinates of the image before pooling and combined with the corresponding start and end point pairs in the vertex. This generates the optimized stitching line of each group of images to be processed in the image set of the overlapping region sequence.

8. The batch remote sensing image fusion method based on the improved Astar search algorithm according to claim 7, characterized in that, The orientation array is constructed as follows: Where a is a directional array, line[m] represents the current path point, and line[m-1] represents the previous adjacent path point.

9. The batch remote sensing image fusion method based on the improved Astar search algorithm according to claim 8, characterized in that, The final effective region boundaries of all images obtained in S2 include: The intersection of all optimized stitching lines for each image is calculated, and the result of the intersection is the final effective region boundary for all images.

10. The batch remote sensing image fusion method based on the improved Astar search algorithm according to claim 9, characterized in that, In step S3, based on the effective region boundary, a multi-resolution fusion algorithm is used to fill the overall fusion canvas according to the fusion rules, resulting in the final fused image G0 of the batch of remote sensing images, including: Based on the final effective area boundaries of all images, image masks for each image are generated; based on the positional relationship between the obtained remote sensing images to be fused and the overall fusion canvas, the images and their masks are fixed at the corresponding positions on the canvas, and the surrounding area is expanded to the same size as the canvas; a multi-resolution fusion algorithm is used to eliminate the stitching lines around the areas caused by differences in image brightness. Construct Laplacian pyramids for all images and image masks, and construct fusion canvas pyramids and fusion canvas mask pyramids of the same size. Initially, each layer of the fusion canvas pyramid and fusion canvas mask pyramid is an array of all zeros. Fill the fusion canvas pyramid and fusion mask pyramid. Update the fusion canvas pyramid, and reconstruct the image based on the updated fusion canvas pyramid according to the fusion rules. Iterate in this way until the final fused image G0 is obtained.