Remote sensing image stitching method, device, computer equipment and storage medium
By obtaining the effective pixel values of the remote sensing image boundary points and determining the boundary points, the image integrity is judged and the second remote sensing image is obtained for splicing, which solves the problem of poor quality caused by incomplete edges of remote sensing image tiles and improves the image quality.
Patent Information
- Application Number
- CN202310240878.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-14
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2043-03-14
AI Technical Summary
During the remote sensing image tile operation, when the tiles are acquired in batches, the tiles at the edges are often incomplete, resulting in poor remote sensing image quality.
By obtaining the effective pixel values corresponding to the boundary points of the remote sensing image, the forward and backward boundary points are determined, and the integrity of the image is judged. If it is incomplete, the corresponding second remote sensing image is obtained for splicing to generate the target remote sensing image.
It improves the image quality of remote sensing images, ensures that the quality of the spliced image is higher than the original image, and solves the image quality problem of incomplete images.
Smart Images

Figure CN116309057B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a remote sensing image stitching method, device, computer equipment and storage medium. Background Art
[0002] Remote sensing technology refers to a modern comprehensive technology that receives electromagnetic wave information from various land objects on the earth's surface from high altitude or outer space, and conducts long-distance measurement, control and identification of various land objects and phenomena on the earth's surface by scanning, photographing, transmitting and processing this information. Remote sensing images have greatly broadened the spatial scale of earth observation and are now widely used in cadastral surveys, land use monitoring, urban planning, disaster relief and other fields.
[0003] Satellite remote sensing images have gradually become one of the most important sources of spatial data in practical applications due to their wide collection range and strong timeliness. Publishing remote sensing image services is a common way to share them. In order to allow remote sensing image services to be smoothly accessed in applications, it is usually necessary to convert the image data behind the service into image tiles organized in a pyramid structure. As industry applications have higher and higher requirements for image timeliness, the data behind the image service will be updated and sliced more frequently.
[0004] In the process of remote sensing image tiling, tiles are often acquired in batches. In this case, the tiles at the edge of the image range acquired each time are often incomplete, resulting in poor remote sensing image quality. Summary of the invention
[0005] Based on this, it is necessary to provide a remote sensing image stitching method, device, computer equipment and storage medium that can improve the image quality of remote sensing images in response to the above technical problems.
[0006] A remote sensing image stitching method, the method comprising:
[0007] Obtaining a current valid pixel value corresponding to a current boundary point of the first remote sensing image, where the current boundary point is any boundary point;
[0008] Determine the corresponding forward boundary point and backward boundary point according to the current boundary point;
[0009] Obtaining the forward effective pixel value corresponding to the forward boundary point and the backward effective pixel value corresponding to the backward boundary point;
[0010] Determine the integrity result corresponding to the first remote sensing image according to the current valid pixel value, the forward valid pixel value and the backward valid pixel value;
[0011] When the integrity result indicates that the first remote sensing image is an incomplete image, obtaining a second remote sensing image corresponding to the first remote sensing image;
[0012] The first remote sensing image and the second remote sensing image are spliced to obtain a target remote sensing image.
[0013] In one embodiment, the forward boundary point and the backward boundary point are determined according to the current boundary point, including: based on the current boundary point as the starting point, two boundary points in the first direction are determined as the forward boundary points, and based on the current boundary point as the starting point, two boundary points in the second direction are determined as the backward boundary points.
[0014] In one of the embodiments, the integrity result corresponding to the first remote sensing image is determined based on the current valid pixel value, the forward valid pixel value and the backward valid pixel value, including: judging whether the current valid pixel value, the forward valid pixel value and the backward valid pixel value are continuous black pixel values; when they are judged to be continuous black pixel values, determining that the integrity result corresponding to the first remote sensing image is an incomplete image; when they are judged to be discontinuous black pixel values, determining that the integrity result corresponding to the first remote sensing image is a complete image.
[0015] In one of the embodiments, when a non-continuous black pixel value is determined, the integrity result corresponding to the first remote sensing image is determined to be a complete image, including: when a non-continuous black pixel value is determined, obtaining the next boundary point of the current boundary point in the first remote sensing image; determining the next boundary point as the current boundary point, returning to execute the step of obtaining the current valid pixel value corresponding to the current boundary point of the first remote sensing image, until all boundary points of the first remote sensing image are traversed, and determining that the integrity result corresponding to the first remote sensing image is a complete image.
[0016] In one embodiment, obtaining a second remote sensing image corresponding to a first remote sensing image includes: obtaining a remote sensing image row and column number associated with the first remote sensing image, and obtaining a second remote sensing image with the same remote sensing image row and column number from an incomplete remote sensing image library according to the remote sensing image row and column number.
[0017] In one embodiment, the integrity result corresponding to the first remote sensing image is determined according to the current effective pixel value, the forward effective pixel value and the backward effective pixel value, including: generating a corresponding current sparse matrix according to the current effective pixel value, generating a corresponding forward sparse matrix according to the forward effective pixel value, generating a corresponding backward sparse matrix according to the backward effective pixel value, judging whether the current sparse matrix, the forward sparse matrix and the backward sparse matrix are continuous matrices of all zero elements, and when it is judged to be a non-continuous matrix of all zero elements, determining that the integrity result corresponding to the first remote sensing image is a complete image, and when it is judged to be a continuous matrix of all zero elements, determining that the integrity result corresponding to the first remote sensing image is an incomplete image.
[0018] In one of the embodiments, the method further includes: determining the target remote sensing image as the first remote sensing image, returning to execute the step of obtaining the current valid pixel value corresponding to the current boundary point of the first remote sensing image, until the integrity result corresponding to the target remote sensing image is a complete image.
[0019] A remote sensing image stitching device, comprising:
[0020] A first acquisition module is used to acquire a current valid pixel value corresponding to a current boundary point of the first remote sensing image, where the current boundary point is any boundary point;
[0021] A processing module, used to determine the corresponding forward boundary point and backward boundary point according to the current boundary point;
[0022] A second acquisition module is used to acquire a forward valid pixel value corresponding to a forward boundary point and a backward valid pixel value corresponding to a backward boundary point;
[0023] A judgment module, used for determining the integrity result corresponding to the first remote sensing image according to the current valid pixel value, the forward valid pixel value and the backward valid pixel value;
[0024] A third acquisition module is used to acquire a second remote sensing image corresponding to the first remote sensing image when the integrity result indicates that the first remote sensing image is an incomplete image;
[0025] The stitching module is used to stitch the first remote sensing image and the second remote sensing image to obtain a target remote sensing image.
[0026] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:
[0027] Obtaining a current valid pixel value corresponding to a current boundary point of the first remote sensing image, where the current boundary point is any boundary point;
[0028] Determine the corresponding forward boundary point and backward boundary point according to the current boundary point;
[0029] Obtaining the forward effective pixel value corresponding to the forward boundary point and the backward effective pixel value corresponding to the backward boundary point;
[0030] Determine the integrity result corresponding to the first remote sensing image according to the current valid pixel value, the forward valid pixel value and the backward valid pixel value;
[0031] When the integrity result indicates that the first remote sensing image is an incomplete image, obtaining a second remote sensing image corresponding to the first remote sensing image;
[0032] The first remote sensing image and the second remote sensing image are spliced to obtain a target remote sensing image.
[0033] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:
[0034] Obtaining a current valid pixel value corresponding to a current boundary point of the first remote sensing image, where the current boundary point is any boundary point;
[0035] Determine the corresponding forward boundary point and backward boundary point according to the current boundary point;
[0036] Obtaining the forward effective pixel value corresponding to the forward boundary point and the backward effective pixel value corresponding to the backward boundary point;
[0037] Determine the integrity result corresponding to the first remote sensing image according to the current valid pixel value, the forward valid pixel value and the backward valid pixel value;
[0038] When the integrity result indicates that the first remote sensing image is an incomplete image, obtaining a second remote sensing image corresponding to the first remote sensing image;
[0039] The first remote sensing image and the second remote sensing image are spliced to obtain a target remote sensing image.
[0040] The above remote sensing image stitching method, device, computer equipment and storage medium determine whether the first remote sensing image is a complete remote sensing image by the effective pixel values corresponding to the current boundary point, the forward boundary point and the backward boundary point of the first remote sensing image. When the first remote sensing image is determined to be an incomplete remote sensing image, it means that the first remote sensing image has an image quality problem. Therefore, the second remote sensing image corresponding to the first remote sensing image is obtained. The first remote sensing image and the second remote sensing image are the same remote sensing image, but the first remote sensing image and the second remote sensing image both have image quality problems, but the parts where the problems may occur are different. Therefore, the first remote sensing image and the second remote sensing image are finally losslessly stitched to obtain a stitched target remote sensing image. Among them, the image quality of the stitched target remote sensing image is higher than that of the first remote sensing image. By this stitching method, the incomplete remote sensing image can be spliced and updated to obtain a target remote sensing image with higher image quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 A diagram showing an application environment of a remote sensing image stitching method in an embodiment;
[0042] Figure 2 A schematic diagram of a process of remote sensing image stitching method in one embodiment;
[0043] Figure 2A is a schematic diagram of a first remote sensing image in an embodiment;
[0044] Figure 2Bis a schematic diagram of a second remote sensing image in one embodiment;
[0045] Figure 2C is a schematic diagram of a target remote sensing image in one embodiment;
[0046] Figure 3 A schematic flow chart of a boundary point determination step in one embodiment;
[0047] Figure 4 A schematic diagram of a flow chart of a step of determining an integrity result in one embodiment;
[0048] Figure 5 A schematic flow chart of a complete image determination step in one embodiment;
[0049] Figure 6 It is a schematic diagram of the process of the second remote sensing image acquisition step in one embodiment;
[0050] Figure 7 A schematic diagram of a flow chart of a step of determining an integrity result in one embodiment;
[0051] Figure 8 A schematic diagram of a process of remote sensing image stitching method in one embodiment;
[0052] Fig. 9 is a structural block diagram of a remote sensing image stitching device in one embodiment;
[0053] Fig.10 is an internal structure diagram of a computer device in one embodiment;
[0054] Fig.11 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0055] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0056] The remote sensing image stitching method provided in this application can be applied to Figure 1 In the application environment shown, the terminal 102 communicates with the server 104 through a network. The terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.
[0057] Specifically, the terminal 102 acquires a first remote sensing image and sends the first remote sensing image to the server 104. The server 104 obtains the current valid pixel value corresponding to the current boundary point of the first remote sensing image, where the current boundary point is any boundary point, determines the corresponding forward boundary point and backward boundary point according to the current boundary point, obtains the forward valid pixel value corresponding to the forward boundary point and the backward valid pixel value corresponding to the backward boundary point, determines the integrity result corresponding to the first remote sensing image according to the current valid pixel value, the forward valid pixel value and the backward valid pixel value, and when the integrity result indicates that the first remote sensing image is an incomplete image, obtains the second remote sensing image corresponding to the first remote sensing image, and splices the first remote sensing image and the second remote sensing image to obtain the target remote sensing image. Finally, the server 104 returns the target remote sensing image to the terminal 102.
[0058] In another embodiment, the terminal 102 obtains a current valid pixel value corresponding to a current boundary point of the first remote sensing image, where the current boundary point is any boundary point, determines the corresponding forward boundary point and backward boundary point based on the current boundary point, obtains the forward valid pixel value corresponding to the forward boundary point and the backward valid pixel value corresponding to the backward boundary point, determines the integrity result corresponding to the first remote sensing image based on the current valid pixel value, the forward valid pixel value and the backward valid pixel value, and when the integrity result indicates that the first remote sensing image is an incomplete image, obtains a second remote sensing image corresponding to the first remote sensing image, splices the first remote sensing image and the second remote sensing image to obtain a target remote sensing image.
[0059] In one embodiment, Figure 2 As shown in FIG. 1 , a remote sensing image stitching method is provided, and the method is applied to Figure 1 The terminal or server in the example is used to illustrate, including the following steps:
[0060] Step 202, obtaining a current valid pixel value corresponding to a current boundary point of the first remote sensing image, where the current boundary point is any boundary point.
[0061] Among them, remote sensing images refer to films or photos that record the size of electromagnetic waves of various ground objects, mainly divided into aerial photos and satellite photos. Remote sensing images have multiple boundaries. For example, remote sensing images have four boundaries. Among them, the boundary is composed of multiple boundary points, and each boundary point has a corresponding valid pixel value.
[0062] Specifically, a first remote sensing image is collected or obtained from a stored image, any boundary point of any boundary of the first remote sensing image is obtained as a current boundary point, and a valid pixel value corresponding to the current boundary point is obtained, that is, a current valid pixel value. The valid pixel value is a value assigned by a computer when the first remote sensing image is digitized, and it represents the average brightness information of a small square in the first remote sensing image, or the average reflection (transmission) density information of the small square.
[0063] Step 204: determine the corresponding forward boundary point and backward boundary point according to the current boundary point.
[0064] Among them, the forward boundary point is the boundary point of the first direction corresponding to the current boundary point in the first remote sensing image, for example, the boundary point to the left of the current boundary point in the first remote sensing image is the forward boundary point, and the backward boundary point is the boundary point of the second direction corresponding to the current boundary point in the first remote sensing image, for example, the boundary point to the right of the current boundary point in the first remote sensing image is the backward boundary point. Among them, the second direction can be the opposite direction of the first direction. Specifically, in the first remote sensing image, taking the current boundary point as the starting point, a preset number of boundary points are obtained in the first direction as the forward boundary points, and then the same preset number of boundary points are obtained in the second direction as the backward boundary points. The preset number can be determined according to actual business needs or actual product needs or actual application scenarios.
[0065] Step 206, obtaining the forward valid pixel value corresponding to the forward boundary point and the backward valid pixel value corresponding to the backward boundary point.
[0066] Among them, any boundary point of the first remote sensing image corresponds to a valid pixel value. After determining the forward boundary point and the backward boundary point, the forward valid pixel value corresponding to the forward boundary point is obtained, and the backward valid pixel value corresponding to the backward boundary point is obtained.
[0067] Step 208: Determine the integrity result corresponding to the first remote sensing image according to the current valid pixel value, the forward valid pixel value, and the backward valid pixel value.
[0068] Among them, the integrity result represents the integrity of the first remote sensing image, that is, it characterizes whether the first remote sensing image is damaged. Specifically, after obtaining the current valid pixel value, the forward valid pixel value and the backward valid pixel value, it can be judged by whether the current valid pixel value, the forward valid pixel value and the backward valid pixel value are continuous black pixels or continuous matrices of non-zero elements. The judgment criteria can also be set according to actual business needs, actual product needs or actual application scenarios.
[0069] In one embodiment, it is determined whether the current valid pixel value, the forward valid pixel value, and the backward valid pixel value are continuous black pixels. When it is determined to be continuous black pixels, it indicates that the first remote sensing image is damaged or missing, and so it can be determined that the integrity result corresponding to the first remote sensing image is represented as an incomplete image. On the contrary, when it is determined to be non-continuous black pixels, it indicates that the first remote sensing image is not damaged or missing, and so it can be determined that the integrity result corresponding to the first remote sensing image is represented as a complete image.
[0070] In another embodiment, the current effective pixel value, the forward effective pixel value, and the backward effective pixel value can be converted into corresponding sparse matrices, and the sparse matrices corresponding to the current effective pixel value, the forward effective pixel value, and the backward effective pixel value can be determined based on the elements in the sparse matrix whether they are continuous matrices of incomplete zero elements. When it is determined to be a continuous matrix of incomplete zero elements, it means that the first remote sensing image has no problems such as damage or missing, and therefore, it can be determined that the integrity result corresponding to the first remote sensing image is represented as a complete image. On the contrary, when it is determined to be a discontinuous matrix of incomplete zero elements, it means that the first remote sensing image has problems such as damage or missing, and therefore, it can be determined that the integrity result corresponding to the first remote sensing image is represented as an incomplete image.
[0071] Step 210: When the integrity result indicates that the first remote sensing image is an incomplete image, a second remote sensing image corresponding to the first remote sensing image is acquired.
[0072] Specifically, when the integrity result indicates that the first remote sensing image is an incomplete image, it means that the first remote sensing image is damaged or missing, which may affect the image quality of the first remote sensing image. Therefore, a second remote sensing image corresponding to the first remote sensing image can be obtained. Specifically, it can be obtained through the remote sensing image identifier, for example, obtaining the second remote sensing image with the same remote sensing image identifier as the first remote sensing image, or it can be obtained through the remote sensing image row and column numbers associated with the first remote sensing image, for example, obtaining the second remote sensing image with the same remote sensing image row and column numbers as the first remote sensing image.
[0073] For example, Figure 2A As shown, Figure 2A A schematic diagram of a first remote sensing image in an embodiment is shown. Figure 2B A schematic diagram of a second remote sensing image in an embodiment is shown; the first remote sensing image and the second remote sensing image may be remote sensing images with the same remote sensing image identifier or the same remote sensing image row and column number, but the first remote sensing image and the second remote sensing image may have problems such as loss or missing at the same position, or may have problems such as loss or missing at different positions.
[0074] Step 212: splice the first remote sensing image and the second remote sensing image to obtain a target remote sensing image.
[0075] Specifically, after obtaining the first remote sensing image and the second remote sensing image, the first remote sensing image and the second remote sensing image are spliced to obtain the target remote sensing image. At this time, the target remote sensing image can be a complete remote sensing image, and the first remote sensing image and the second remote sensing image can be accurately spliced or quickly spliced. For an incomplete first remote sensing image, a complete remote sensing image can be obtained by splicing. For example, Figure 2C As shown, Figure 2C A schematic diagram of a target remote sensing image in one embodiment is shown. Figure 2C Can be Figure 2A The first remote sensing image and Figure 2B The second remote sensing image shown is obtained by stitching.
[0076] In the above remote sensing image stitching method, whether the first remote sensing image is a complete remote sensing image is determined by the effective pixel values corresponding to the current boundary point, the forward boundary point and the backward boundary point of the first remote sensing image. When the first remote sensing image is determined to be an incomplete remote sensing image, it means that the first remote sensing image has an image quality problem. Therefore, the second remote sensing image corresponding to the first remote sensing image is obtained. The first remote sensing image and the second remote sensing image are the same remote sensing image, but both the first remote sensing image and the second remote sensing image have image quality problems, but the possible locations are different. Therefore, the first remote sensing image and the second remote sensing image are finally losslessly stitched to obtain a stitched target remote sensing image. Among them, the image quality of the stitched target remote sensing image is higher than that of the first remote sensing image. By this stitching method, the incomplete remote sensing image can be spliced and updated to obtain a target remote sensing image with higher image quality.
[0077] In one embodiment, Figure 3 As shown, the forward boundary point and the backward boundary point are determined according to the current boundary point, including:
[0078] Step 302: Based on the current boundary point as the starting point, two boundary points in the first direction are determined as forward boundary points.
[0079] Step 304: Based on the current boundary point as the starting point, two boundary points in the second direction are determined as backward boundary points.
[0080] Among them, since the first remote sensing image includes multiple boundaries, each boundary includes multiple boundary points, the current boundary point is determined from any boundary point of any boundary, and the current boundary point can be used as the starting point to obtain the forward boundary point and the backward boundary point in the specified direction. Specifically, in the first remote sensing image, the current boundary point is used as the starting point, and a preset number of boundary points are obtained in the first direction as the forward boundary points. The preset number can be two, and the first direction can be the left side of the current boundary point. Therefore, the current boundary point is used as the starting point, and the two boundary points on the left are obtained as the forward boundary points.
[0081] Furthermore, in the first remote sensing image, taking the current boundary point as the starting point, a preset number of boundary points are obtained in the second direction as backward boundary points. The preset number may be two, and the second direction may be the right side of the current boundary point. Therefore, taking the current boundary point as the starting point, two boundary points on the right are obtained as backward boundary points.
[0082] In one embodiment, Figure 4As shown, the integrity result corresponding to the first remote sensing image is determined according to the current valid pixel value, the forward valid pixel value and the backward valid pixel value, including:
[0083] Step 402, determining whether the current valid pixel value, the forward valid pixel value, and the backward valid pixel value are continuous black pixel values.
[0084] Step 404: When it is determined to be a continuous black pixel value, the integrity result corresponding to the first remote sensing image is determined to be an incomplete image.
[0085] Step 406: When it is determined to be a discontinuous black pixel value, the integrity result corresponding to the first remote sensing image is determined to be a complete image.
[0086] After obtaining the current effective pixel value, the forward effective pixel value and the backward effective pixel value, it is possible to judge whether the first remote sensing image has quality problems such as damage or missing by using the current effective pixel value, the forward effective pixel value and the backward effective pixel value. Specifically, it is judged whether the current effective pixel value, the forward effective pixel value and the backward effective pixel value are continuous black pixel values, where the black pixel value is the value corresponding to the black pixel, for example, the black pixel value is (0, 0, 0). The continuous ones are the current effective pixel value, the forward effective pixel value and the backward effective pixel value are black pixel values one after another without interruption.
[0087] Further, when it is determined that the current valid pixel value, the forward valid pixel value, and the backward valid pixel value are continuous black pixel values, it indicates that the first remote sensing image has quality problems such as damage or missing, and therefore, it can be determined that the integrity result corresponding to the first remote sensing image is an incomplete image. Conversely, when it is determined that the current valid pixel value, the forward valid pixel value, and the backward valid pixel value are continuous black pixel values, it indicates that the first remote sensing image has no quality problems such as damage or missing, and therefore, it can be determined that the integrity result corresponding to the first remote sensing image is a complete image.
[0088] In one embodiment, Figure 5 As shown, when it is determined to be a discontinuous black pixel value, determining the integrity result corresponding to the first remote sensing image is a complete image includes:
[0089] Step 502: when it is determined to be a discontinuous black pixel value, the next boundary point of the current boundary point in the first remote sensing image is obtained.
[0090] Step 504, determine the next boundary point as the current boundary point, and return to execute the step of obtaining the current valid pixel value corresponding to the current boundary point of the first remote sensing image.
[0091] Step 506, until all boundary points of the first remote sensing image are traversed, it is determined that the integrity result corresponding to the first remote sensing image is a complete image.
[0092] Among them, when it is determined that the current valid pixel value, the forward valid pixel value and the backward valid pixel value are continuous black pixel values, it can only be said that there is no quality problem with the current boundary point. Therefore, it is necessary to traverse all boundary points of all boundaries of the first remote sensing image. When all boundary points of all boundaries are discontinuous black pixel values, it can be said that the first remote sensing image has no quality problems such as damage or missing, and it is determined that the integrity result corresponding to the first remote sensing image is a complete image.
[0093] Specifically, when it is determined that the current valid pixel value, the forward valid pixel value and the backward valid pixel value are continuous black pixel values, the next boundary point of the current boundary point in the specified direction of the first remote sensing image is obtained, the next boundary point is determined as the current boundary point, and the step of obtaining the current valid pixel value corresponding to the current boundary point of the first remote sensing image is returned to execute until all boundary points of all boundaries of the first remote sensing image are traversed. When all boundary points of all boundaries of the first remote sensing image are determined to be discontinuous black pixel values, the integrity result corresponding to the first remote sensing image can be determined to be a complete image.
[0094] In one embodiment, Figure 6 As shown, obtaining a second remote sensing image corresponding to the first remote sensing image includes:
[0095] Step 602: Obtain the row and column numbers of the remote sensing image associated with the first remote sensing image.
[0096] Step 604: Acquire a second remote sensing image with the same remote sensing image row and column number from the incomplete remote sensing image library according to the remote sensing image row and column number.
[0097] Among them, each remote sensing image corresponds to a remote sensing image row and column number, which is equivalent to the image identifier of the first remote sensing image. Different remote sensing images correspond to different remote sensing image row and column numbers. Therefore, the row and column number of the remote sensing image associated with the first remote sensing image is obtained, and the second remote sensing image with the same row and column number is searched from the incomplete remote sensing image library through the row and column number of the remote sensing image. Among them, the incomplete remote sensing image library pre-stores multiple incomplete remote sensing images, and each incomplete remote sensing image is associated with a corresponding row and column number of the remote sensing image. The remote sensing image with an integrity result of an incomplete image can also be stored in the incomplete remote sensing image library. In other words, the second remote sensing image matching the first remote sensing image is searched from the incomplete remote sensing image library. The second remote sensing image is an incomplete remote sensing image, and may have different damage, missing or other defects from the first remote sensing image, but belongs to the same remote sensing image.
[0098] In one embodiment, Figure 7As shown, the integrity result corresponding to the first remote sensing image is determined according to the current valid pixel value, the forward valid pixel value and the backward valid pixel value, including:
[0099] Step 702: Generate a corresponding current sparse matrix according to the current valid pixel value.
[0100] Step 704: Generate a corresponding forward sparse matrix according to the forward valid pixel values.
[0101] Step 706: Generate a corresponding backward sparse matrix according to the backward valid pixel values.
[0102] Step 708, determining whether the current sparse matrix, the forward sparse matrix, and the backward sparse matrix are continuous matrices with all zero elements.
[0103] Step 710: When it is determined to be a non-continuous matrix with all zero elements, the integrity result corresponding to the first remote sensing image is determined to be a complete image.
[0104] Step 712: When it is determined to be a continuous matrix of all zero elements, the integrity result corresponding to the first remote sensing image is determined to be an incomplete image.
[0105] Specifically, the current effective pixel value, the forward effective pixel value and the backward effective pixel value are converted into corresponding sparse matrices, that is, the current sparse matrix corresponding to the current effective pixel value, the forward sparse matrix corresponding to the forward effective pixel value and the backward sparse matrix corresponding to the backward effective pixel value are obtained.
[0106] Furthermore, it is determined whether the current sparse matrix, the forward sparse matrix, and the backward sparse matrix are continuous matrices of all zero elements. If all elements in the continuous sparse matrix are zero, it means that the corresponding remote sensing image has quality problems such as damage or missing. Conversely, if all elements in the continuous sparse matrix are not all zero, it means that the pixel value corresponding to the sparse matrix is not a black pixel value, and the corresponding remote sensing image has no defects.
[0107] Specifically, when it is determined that the current sparse matrix, the forward sparse matrix and the backward sparse matrix are continuous matrices with non-all zero elements, the next boundary point can be obtained, and all boundary points in the first remote sensing image can be traversed until the sparse matrices corresponding to all boundary points are continuous matrices with all zero elements. It can be determined that the integrity result corresponding to the first remote sensing image is an incomplete image.
[0108] On the contrary, when it is determined that the current sparse matrix, the forward sparse matrix and the backward sparse matrix are non-continuous matrices of all zero elements, or the current sparse matrix, the forward sparse matrix and the backward sparse matrix are not all zero element matrices, it can be determined that the integrity result corresponding to the first remote sensing image is a complete image.
[0109] In one embodiment, Figure 8 As shown, the above method also includes:
[0110] Step 802, determining the target remote sensing image as the first remote sensing image, and returning to execute the step of obtaining the current valid pixel value corresponding to the current boundary point of the first remote sensing image.
[0111] Step 804, until the integrity result corresponding to the target remote sensing image is a complete image.
[0112] Among them, in order to ensure the image quality of the target remote sensing image after stitching, it is necessary to detect the target remote sensing image after stitching. Specifically, the target remote sensing image is determined as the first remote sensing image, and the step of obtaining the current valid pixel value corresponding to the current boundary point of the first remote sensing image is returned to execute until all boundary points of all boundaries of the target remote sensing image are traversed. It can be determined that the integrity result corresponding to the target remote sensing image is a complete image, that is, the stitched target remote sensing image can overcome the image quality problems of the first remote sensing image and the second remote sensing image.
[0113] In a specific application scenario, the remote sensing image stitching method is explained through the following steps, which include:
[0114] In the disclosed embodiment, firstly, any point on the effective pixel value boundary of the remote sensing image (first remote sensing image) is obtained, and the boundary points are traversed to determine whether there are five consecutive black pixels. If so, the remote sensing image is an incomplete remote sensing image, otherwise the remote sensing image is a complete remote sensing image, and then the complete remote sensing image is stored in the complete remote sensing image database, and then the row and column numbers of the incomplete remote sensing image are calculated to determine whether the remote sensing image is in the incomplete remote sensing image database. If not, it is stored in the library. If it exists, it is merged with the matching incomplete remote sensing image (second remote sensing image) in the library to obtain the target remote sensing image. Finally, it is determined whether there are five consecutive black pixels at the effective pixel value boundary point of the merged target remote sensing image, and this process is traversed repeatedly until all new remote sensing images are traversed, and the lossless splicing of remote sensing images is completed.
[0115] First, obtain any point on the boundary of the effective pixel value of the remote sensing image, traverse the boundary points, and determine whether there are five consecutive black pixels. If so, the remote sensing image is an incomplete remote sensing image, otherwise the remote sensing image is a complete remote sensing image;
[0116] Then the complete remote sensing image is stored in the complete remote sensing image database, and then the row and column numbers of the incomplete remote sensing image are calculated to determine whether the remote sensing image is in the incomplete remote sensing image database. If it does not exist, it is stored in the database. If it exists, it is merged with the matching remote sensing image in the database to obtain the target remote sensing image.
[0117] Finally, determine whether there are five consecutive black pixels at the effective pixel value boundary point of the merged target remote sensing image, and loop through this process until all new remote sensing images are traversed, completing the lossless stitching of remote sensing images.
[0118] In the example of the present disclosure, the execution steps can be summarized as follows:
[0119] Step 1: Screening complete remote sensing images;
[0120] First, get the total number of rows and columns of the current image, and loop through them according to the total number of rows and columns, reading blocks of 256 rows * 256 columns each time. In order to locate the effective value boundary point more quickly, convert the pixel value of each block into a sparse matrix, point the pointer to the first array, and then select the previous and next arrays to determine whether the five arrays are all composed of 0 elements. If so, the remote sensing image is an incomplete remote sensing image; if the non-zero element array is empty, continue to read the next array and continue this process. If all arrays are traversed and the five consecutive arrays at the boundary are not all composed of 0 elements, then the remote sensing image is a complete remote sensing image, and the remote sensing image is stored in the complete remote sensing image database.
[0121] Step 2: Merging incomplete remote sensing images
[0122] The incomplete remote sensing image database is traversed according to the row and column numbers of the incomplete remote sensing image to search whether the incomplete remote sensing image exists in the incomplete remote sensing image database.
[0123] If the remote sensing image corresponding to the row and column number does not exist in the incomplete remote sensing image library, the remote sensing image is stored in the incomplete remote sensing image library;
[0124] If there is a remote sensing image corresponding to the row and column number in the incomplete remote sensing image library, the pixels of the remote sensing image and the matching remote sensing image in the library are converted into a sparse matrix, and then the two matrices are merged. The merged target remote sensing image is still named according to the row and column number.
[0125] Step 3: Determine whether there is a black edge in the target remote sensing image
[0126] Convert each pixel of the merged target remote sensing image into a sparse matrix and repeat step 1. If the target remote sensing image is an incomplete target remote sensing image, execute step 2.
[0127] Step 4: Complete remote sensing image storage
[0128] If the remote sensing image is a complete remote sensing image, the complete remote sensing image is stored in a complete remote sensing image library.
[0129] Step 5: Lossless stitching of new remote sensing images
[0130] This process is repeated repeatedly until there is no new remote sensing image.
[0131] It should be understood that, although the various steps in the above-mentioned flow chart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above-mentioned flow chart may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0132] In one embodiment, Fig. 9 As shown, a remote sensing image stitching device 900 is provided, comprising: a first acquisition module 902, a processing module 904, a second acquisition module 906, a judgment module 908, a third acquisition module 910 and a stitching module 912, wherein:
[0133] The first acquisition module 902 is used to acquire a current valid pixel value corresponding to a current boundary point of the first remote sensing image, where the current boundary point is any boundary point.
[0134] The processing module 904 is used to determine the corresponding forward boundary point and backward boundary point according to the current boundary point.
[0135] The second acquisition module 906 is used to acquire the forward valid pixel value corresponding to the forward boundary point and the backward valid pixel value corresponding to the backward boundary point.
[0136] The judgment module 908 is used to determine the integrity result corresponding to the first remote sensing image according to the current valid pixel value, the forward valid pixel value and the backward valid pixel value.
[0137] The third acquisition module 910 is configured to acquire a second remote sensing image corresponding to the first remote sensing image when the integrity result indicates that the first remote sensing image is an incomplete image.
[0138] The stitching module 912 is used to stitch the first remote sensing image and the second remote sensing image to obtain a target remote sensing image.
[0139] In one embodiment, the processing module 904 determines two boundary points in the first direction as forward boundary points based on the current boundary point as the starting point, and determines two boundary points in the second direction as backward boundary points based on the current boundary point as the starting point.
[0140] In one embodiment, the judgment module 908 judges whether the current valid pixel value, the forward valid pixel value and the backward valid pixel value are continuous black pixel values. When they are judged to be continuous black pixel values, the integrity result corresponding to the first remote sensing image is determined to be an incomplete image. When they are judged to be discontinuous black pixel values, the integrity result corresponding to the first remote sensing image is determined to be a complete image.
[0141] In one embodiment, when the judgment module 908 determines that the black pixel value is discontinuous, it obtains the next boundary point of the current boundary point in the first remote sensing image, determines the next boundary point as the current boundary point, and returns to execute the step of the first acquisition module 902 to obtain the current valid pixel value corresponding to the current boundary point of the first remote sensing image, until all boundary points of the first remote sensing image are traversed, and it is determined that the integrity result corresponding to the first remote sensing image is a complete image.
[0142] In one embodiment, the third acquisition module 910 acquires the row and column numbers of the remote sensing image associated with the first remote sensing image, and acquires the second remote sensing image with the same row and column numbers from the incomplete remote sensing image library according to the row and column numbers of the remote sensing image.
[0143] In one embodiment, the judgment module 908 generates a corresponding current sparse matrix according to the current valid pixel value, generates a corresponding forward sparse matrix according to the forward valid pixel value, generates a corresponding backward sparse matrix according to the backward valid pixel value, and judges whether the current sparse matrix, the forward sparse matrix and the backward sparse matrix are continuous matrices of all zero elements. When it is judged to be a non-continuous matrix of all zero elements, it is determined that the integrity result corresponding to the first remote sensing image is a complete image. When it is determined to be a continuous matrix of all zero elements, it is determined that the integrity result corresponding to the first remote sensing image is an incomplete image.
[0144] In one embodiment, the remote sensing image stitching device 900 determines the target remote sensing image as the first remote sensing image, and returns to execute the step of the first acquisition module 902 to acquire the current valid pixel value corresponding to the current boundary point of the first remote sensing image until the integrity result corresponding to the target remote sensing image is a complete image.
[0145] For the specific definition of the remote sensing image stitching device, please refer to the definition of the remote sensing image stitching method above, which will not be repeated here. Each module in the above remote sensing image stitching device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0146] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.10As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store integrity results. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a remote sensing image stitching method is implemented.
[0147] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.11 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a remote sensing image stitching method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0148] Those skilled in the art will understand that Fig.10 or Fig.11 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0149] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented: obtaining a current valid pixel value corresponding to a current boundary point of a first remote sensing image, where the current boundary point is any boundary point, determining a corresponding forward boundary point and a backward boundary point according to the current boundary point, obtaining a forward valid pixel value corresponding to the forward boundary point and a backward valid pixel value corresponding to the backward boundary point, determining an integrity result corresponding to the first remote sensing image according to the current valid pixel value, the forward valid pixel value, and the backward valid pixel value, and when the integrity result indicates that the first remote sensing image is an incomplete image, obtaining a second remote sensing image corresponding to the first remote sensing image, and splicing the first remote sensing image and the second remote sensing image to obtain a target remote sensing image.
[0150] In one embodiment, when the processor executes the computer program, the following steps are also implemented: based on the current boundary point as the starting point, two boundary points in the first direction are determined as forward boundary points, and based on the current boundary point as the starting point, two boundary points in the second direction are determined as backward boundary points.
[0151] In one embodiment, when the processor executes the computer program, the following steps are also implemented: determining whether the current valid pixel value, the forward valid pixel value, and the backward valid pixel value are continuous black pixel values; when determined to be continuous black pixel values, determining that the integrity result corresponding to the first remote sensing image is an incomplete image; when determined to be discontinuous black pixel values, determining that the integrity result corresponding to the first remote sensing image is a complete image.
[0152] In one embodiment, the processor further implements the following steps when executing the computer program: when it is determined to be a discontinuous black pixel value, obtaining the next boundary point of the current boundary point in the first remote sensing image; determining the next boundary point as the current boundary point, returning to execute the step of obtaining the current valid pixel value corresponding to the current boundary point of the first remote sensing image, until all boundary points of the first remote sensing image are traversed, and determining that the integrity result corresponding to the first remote sensing image is a complete image.
[0153] In one embodiment, when the processor executes the computer program, the following steps are also implemented: obtaining the row and column numbers of the remote sensing image associated with the first remote sensing image, and obtaining a second remote sensing image with the same row and column numbers from an incomplete remote sensing image library according to the row and column numbers of the remote sensing image.
[0154] In one embodiment, when the processor executes the computer program, the following steps are also implemented: generating a corresponding current sparse matrix according to the current valid pixel value, generating a corresponding forward sparse matrix according to the forward valid pixel value, generating a corresponding backward sparse matrix according to the backward valid pixel value, determining whether the current sparse matrix, the forward sparse matrix and the backward sparse matrix are continuous matrices of all zero elements, and when it is determined to be a non-continuous matrix of all zero elements, determining that the integrity result corresponding to the first remote sensing image is a complete image, and when it is determined to be a continuous matrix of all zero elements, determining that the integrity result corresponding to the first remote sensing image is an incomplete image.
[0155] In one embodiment, when the processor executes the computer program, the following steps are also implemented: determining the target remote sensing image as the first remote sensing image, returning to execute the step of obtaining the current valid pixel value corresponding to the current boundary point of the first remote sensing image, until the integrity result corresponding to the target remote sensing image is a complete image.
[0156] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: obtaining a current valid pixel value corresponding to a current boundary point of a first remote sensing image, where the current boundary point is any boundary point, determining the corresponding forward boundary point and backward boundary point according to the current boundary point, obtaining a forward valid pixel value corresponding to the forward boundary point and a backward valid pixel value corresponding to the backward boundary point, determining an integrity result corresponding to the first remote sensing image according to the current valid pixel value, the forward valid pixel value and the backward valid pixel value, and when the integrity result indicates that the first remote sensing image is an incomplete image, obtaining a second remote sensing image corresponding to the first remote sensing image, and splicing the first remote sensing image and the second remote sensing image to obtain a target remote sensing image.
[0157] In one embodiment, when the processor executes the computer program, the following steps are also implemented: based on the current boundary point as the starting point, two boundary points in the first direction are determined as forward boundary points, and based on the current boundary point as the starting point, two boundary points in the second direction are determined as backward boundary points.
[0158] In one embodiment, when the processor executes the computer program, the following steps are also implemented: determining whether the current valid pixel value, the forward valid pixel value, and the backward valid pixel value are continuous black pixel values; when determined to be continuous black pixel values, determining that the integrity result corresponding to the first remote sensing image is an incomplete image; when determined to be discontinuous black pixel values, determining that the integrity result corresponding to the first remote sensing image is a complete image.
[0159] In one embodiment, the processor further implements the following steps when executing the computer program: when it is determined to be a discontinuous black pixel value, obtaining the next boundary point of the current boundary point in the first remote sensing image; determining the next boundary point as the current boundary point, returning to execute the step of obtaining the current valid pixel value corresponding to the current boundary point of the first remote sensing image, until all boundary points of the first remote sensing image are traversed, and determining that the integrity result corresponding to the first remote sensing image is a complete image.
[0160] In one embodiment, when the processor executes the computer program, the following steps are also implemented: obtaining the row and column numbers of the remote sensing image associated with the first remote sensing image, and obtaining a second remote sensing image with the same row and column numbers from an incomplete remote sensing image library according to the row and column numbers of the remote sensing image.
[0161] In one embodiment, when the processor executes the computer program, the following steps are also implemented: generating a corresponding current sparse matrix according to the current valid pixel value, generating a corresponding forward sparse matrix according to the forward valid pixel value, generating a corresponding backward sparse matrix according to the backward valid pixel value, determining whether the current sparse matrix, the forward sparse matrix and the backward sparse matrix are continuous matrices of all zero elements, and when it is determined to be a non-continuous matrix of all zero elements, determining that the integrity result corresponding to the first remote sensing image is a complete image, and when it is determined to be a continuous matrix of all zero elements, determining that the integrity result corresponding to the first remote sensing image is an incomplete image.
[0162] In one embodiment, when the processor executes the computer program, the following steps are also implemented: determining the target remote sensing image as the first remote sensing image, returning to execute the step of obtaining the current valid pixel value corresponding to the current boundary point of the first remote sensing image, until the integrity result corresponding to the target remote sensing image is a complete image.
[0163] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0164] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0165] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A remote sensing image stitching method, the method include: Obtaining a current valid pixel value corresponding to a current boundary point of the first remote sensing image, wherein the current boundary point is any boundary point; Determining corresponding forward boundary points and backward boundary points according to the current boundary points, the forward boundary points being a plurality of preset boundary points in a first direction, the backward boundary points being a plurality of preset boundary points in a second direction, the first direction and the second direction being opposite directions; Obtaining a forward valid pixel value corresponding to the forward boundary point and a backward valid pixel value corresponding to the backward boundary point; Determining an integrity result corresponding to the first remote sensing image according to the current valid pixel value, the forward valid pixel value, and the backward valid pixel value; When the integrity result indicates that the first remote sensing image is an incomplete image, acquiring a second remote sensing image corresponding to the first remote sensing image; splicing the first remote sensing image and the second remote sensing image to obtain a target remote sensing image; Wherein, determining the integrity result corresponding to the first remote sensing image according to the current valid pixel value, the forward valid pixel value and the backward valid pixel value includes: Generate a corresponding current sparse matrix according to the current valid pixel value; generate a corresponding forward sparse matrix according to the forward valid pixel value; generate a corresponding backward sparse matrix according to the backward valid pixel value; determine whether the current sparse matrix, the forward sparse matrix and the backward sparse matrix are continuous matrices of all zero elements; when it is determined to be a non-continuous matrix of all zero elements, determine that the integrity result corresponding to the first remote sensing image is a complete image; when it is determined to be a continuous matrix of all zero elements, determine that the integrity result corresponding to the first remote sensing image is an incomplete image.
2. The method according to claim 1, It is characterized in that The determining of the forward boundary point and the backward boundary point according to the current boundary point includes: Based on the current boundary point as a starting point, determining two boundary points in a first direction as forward boundary points; Based on the current boundary point as a starting point, two boundary points in the second direction are determined as backward boundary points.
3. The method according to claim 1, It is characterized in that The determining, according to the current valid pixel value, the forward valid pixel value, and the backward valid pixel value, of the integrity result corresponding to the first remote sensing image includes: Determining whether the current valid pixel value, the forward valid pixel value, and the backward valid pixel value are continuous black pixel values; When it is determined to be a continuous black pixel value, determining that the integrity result corresponding to the first remote sensing image is an incomplete image; When it is determined to be a discontinuous black pixel value, the integrity result corresponding to the first remote sensing image is determined to be a complete image.
4. The method according to claim 3, It is characterized in that When the black pixel value is determined to be discontinuous, determining that the integrity result corresponding to the first remote sensing image is a complete image includes: When it is determined to be a discontinuous black pixel value, obtaining the next boundary point of the current boundary point in the first remote sensing image; Determine the next boundary point as the current boundary point, and return to execute the step of obtaining the current valid pixel value corresponding to the current boundary point of the first remote sensing image; Until all boundary points of the first remote sensing image are traversed, it is determined that the integrity result corresponding to the first remote sensing image is a complete image.
5. The method according to claim 1, It is characterized in that The acquiring of a second remote sensing image corresponding to the first remote sensing image includes: Obtaining row and column numbers of remote sensing images associated with the first remote sensing image; A second remote sensing image with the same remote sensing image row and column number is obtained from an incomplete remote sensing image library according to the remote sensing image row and column number.
6. The method according to claim 1, It is characterized in that The method further comprises: Determine the target remote sensing image as the first remote sensing image, and return to execute the step of obtaining the current valid pixel value corresponding to the current boundary point of the first remote sensing image; Until the integrity result corresponding to the target remote sensing image is a complete image.
7. A remote sensing image stitching device, It is characterized in that The device comprises: A first acquisition module is used to acquire a current valid pixel value corresponding to a current boundary point of the first remote sensing image, where the current boundary point is any boundary point; a processing module, configured to determine corresponding forward boundary points and backward boundary points according to the current boundary point, wherein the forward boundary points are a plurality of boundary points of a preset number in a first direction, and the backward boundary points are a plurality of boundary points of a preset number in a second direction, wherein the first direction and the second direction are opposite directions; A second acquisition module, used to acquire a forward valid pixel value corresponding to the forward boundary point and a backward valid pixel value corresponding to the backward boundary point; A judgment module, used for determining the integrity result corresponding to the first remote sensing image according to the current valid pixel value, the forward valid pixel value and the backward valid pixel value; A third acquisition module, configured to acquire a second remote sensing image corresponding to the first remote sensing image when the integrity result indicates that the first remote sensing image is an incomplete image; A stitching module, used for stitching the first remote sensing image and the second remote sensing image to obtain a target remote sensing image; Wherein, determining the integrity result corresponding to the first remote sensing image according to the current valid pixel value, the forward valid pixel value and the backward valid pixel value includes: Generate a corresponding current sparse matrix according to the current valid pixel value; generate a corresponding forward sparse matrix according to the forward valid pixel value; generate a corresponding backward sparse matrix according to the backward valid pixel value; determine whether the current sparse matrix, the forward sparse matrix and the backward sparse matrix are continuous matrices of all zero elements; when it is determined to be a non-continuous matrix of all zero elements, determine that the integrity result corresponding to the first remote sensing image is a complete image; when it is determined to be a continuous matrix of all zero elements, determine that the integrity result corresponding to the first remote sensing image is an incomplete image.
8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
