Remote sensing image stitching method, device, equipment and storage medium

By using the distance and direction characteristics of feature points for screening in remote sensing image splicing, the problem of difficult matching of feature points in remote sensing image splicing is solved, and a more accurate and efficient image splicing effect is achieved.

CN112017115BActive Publication Date: 2024-10-18SHENZHEN TIANJING YUHONG TECHNOLOGY CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202010658547.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-09
Publication Date
2024-10-18
Estimated Expiration
2040-07-09

AI Technical Summary

Technical Problem

In the process of splicing remote sensing images, it is difficult to accurately match and filter feature points with existing technology, resulting in poor splicing results and low efficiency.

Method used

By obtaining the first image and the second image to be spliced, the corresponding feature points are determined, a pair of feature points is constructed, and the feature points are screened based on the distance feature and the direction feature, and the feature points that meet the conditions are screened out for splicing processing.

Benefits of technology

It improves the accuracy and efficiency of remote sensing image stitching and ensures the reliability and consistency of stitching results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112017115B_ABST
    Figure CN112017115B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide remote sensing image stitching methods, devices, equipment and storage media. In some embodiments of the present application, the remote sensing image stitching method includes: obtaining a first image and a second image to be stitched; determining corresponding feature points in the first image and the second image; constructing at least three groups of feature point pairs based on the corresponding feature points; and performing stitching processing on the first image and the second image according to the distance features and direction features respectively corresponding to the at least three groups of feature point pairs. Through the above scheme, according to the characteristics of the remote sensing image, the feature points are screened using the distance features and direction features of the feature point pairs, so as to obtain matching feature points to realize the stitching processing of the first image and the second image, which can obtain a more accurate stitching effect and improve the stitching efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and more particularly to remote sensing image stitching methods, devices, equipment and storage media. Background Art

[0002] With the development of remote sensing imaging technology, more and more industries are using remote sensing imaging technology, such as agricultural crop monitoring, topographic survey, earthquake relief image acquisition, etc.

[0003] In practical applications, remote sensing equipment usually captures multiple images from different positions, and the contents of each image are not exactly the same. Multiple images captured must be stitched together to generate a complete target image. When stitching images, stitching is often performed based on specified features in the two images to be stitched. For example, if the first image and the second image contain the same feature point, the first image and the second image are stitched together based on the feature point. Summary of the invention

[0004] Multiple aspects of the present application provide remote sensing image stitching methods, devices, equipment and storage media to achieve stitching processing of remote sensing images.

[0005] In a first aspect, an embodiment of the present application provides a remote sensing image stitching method, the method comprising:

[0006] Acquire a first image and a second image to be stitched;

[0007] Determining corresponding feature points in the first image and the second image;

[0008] Based on the corresponding feature points, construct at least three sets of feature point pairs;

[0009] The first image and the second image are spliced ​​according to the distance features and the direction features respectively corresponding to the at least three groups of feature point pairs.

[0010] Optionally, acquiring the first image captured at a first capturing position;

[0011] The second image captured at a second capturing position is acquired.

[0012] Optionally, normalization processing is performed on the first image and the second image;

[0013] Based on the normalization result, corresponding feature points in the first image and the second image are determined.

[0014] Optionally, determining the same target object contained in the first image and the second image;

[0015] Based on the same target object, at least three groups of corresponding feature points are determined.

[0016] Optionally, constructing a feature point connection line corresponding to the feature point pair;

[0017] Determine, based on the feature point connecting lines corresponding to the at least three groups of feature point pairs, the distance features between two feature points respectively corresponding to the at least three groups of feature point pairs;

[0018] Determine the directional characteristics of at least three groups of feature point connection lines offset relative to the horizontal direction.

[0019] Optionally, based on the distance feature and the direction feature, the corresponding feature points are screened;

[0020] Determining splicing feature points according to the screening results;

[0021] Based on the stitching feature points, the first image and the second image are stitched together.

[0022] Optionally, if the distance feature of the corresponding feature point is smaller than a first threshold, and the direction feature is smaller than a second threshold, the corresponding feature point is determined to be a splicing feature point.

[0023] Optionally, performing averaging processing on at least three groups of distance features to obtain a distance feature mean;

[0024] Performing averaging processing on at least three groups of directional features to obtain the directional feature mean;

[0025] If the difference between the distance feature and the distance feature mean is less than a first threshold, and the difference between the direction feature and the direction feature mean is less than a second threshold, the corresponding feature point is a splicing feature point.

[0026] In a second aspect, an embodiment of the present application provides a remote sensing image stitching device, the device comprising:

[0027] An acquisition module, used for acquiring a first image and a second image to be stitched;

[0028] A determination module, used to determine corresponding feature points in the first image and the second image;

[0029] A construction module, used to construct at least three groups of feature point pairs based on the corresponding feature points;

[0030] The stitching module is used to stitch the first image and the second image according to the distance features and direction features respectively corresponding to the at least three groups of feature point pairs.

[0031] In a third aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program. When the computer program is executed by one or more processors, the one or more processors are caused to perform the following actions:

[0032] Acquire a first image and a second image to be stitched;

[0033] Determining corresponding feature points in the first image and the second image;

[0034] Based on the corresponding feature points, construct at least three sets of feature point pairs;

[0035] The first image and the second image are spliced ​​according to the distance features and the direction features respectively corresponding to the at least three groups of feature point pairs.

[0036] In a fourth aspect, an embodiment of the present application provides an aerial photography device, including:

[0037] Body;

[0038] A power system, disposed on the machine body, for providing power to the machine body;

[0039] The remote sensing image stitching device described in the second aspect is arranged on the body.

[0040] In some embodiments of the present application, a first image and a second image are obtained by photographing using a remote sensing photographing device, and corresponding feature points are determined from the first image and the second image, respectively, to construct at least three groups of feature point pairs. The distance features and direction features of the at least three groups of feature point pairs are further determined, and then the multiple groups of feature point pairs are screened based on the distance features and direction features, thereby realizing the splicing processing of the first image and the second image based on the multiple groups of feature point pairs obtained by screening. Through the above scheme, according to the characteristics of remote sensing images, the feature points are screened using the distance features and direction features of the feature point pairs, so as to obtain matching feature points to realize the splicing processing of the first image and the second image, which can obtain a more accurate splicing effect and improve the splicing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0042] Figure 1 A schematic diagram of a remote sensing image stitching method provided in an embodiment of the present application;

[0043] Figure 2 A schematic diagram of determining characteristic information provided in an embodiment of the present application;

[0044] Figure 3a A schematic diagram of a flow chart of a method for splicing corresponding feature points provided in an embodiment of the present application;

[0045] Figure 3b A flow chart of another method for splicing corresponding feature points according to an embodiment of the present application;

[0046] Figure 4 A schematic diagram of a preliminary screening of feature points provided in an embodiment of the present application;

[0047] Figure 5 A schematic diagram of the structure of a remote sensing image stitching device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0049] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms of "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings, and "multiple" generally includes at least two, but does not exclude the situation of including at least one.

[0050] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.

[0051] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a product or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such a product or system. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the product or system including the elements.

[0052] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0053] The present application embodiment provides a remote sensing image stitching method. Figure 1 A flowchart of a remote sensing image stitching method provided in an embodiment of the present application is used to meet the needs of fast and accurate remote sensing image stitching. It mainly includes the following steps:

[0054] 101: Acquire a first image and a second image to be stitched.

[0055] 102: Determine corresponding feature points in the first image and the second image.

[0056] 103: Construct at least three groups of feature point pairs based on the corresponding feature points.

[0057] 104: Perform stitching processing on the first image and the second image according to the distance features and direction features respectively corresponding to the at least three groups of feature point pairs.

[0058] When using remote sensing shooting equipment to take aerial photos of a designated target or designated area, due to the limited viewing angle of the shooting equipment, it is necessary to shoot multiple times for the same area to obtain multiple first images and multiple second images, and then stitch the first and second images to generate a complete image containing the designated area or designated target. Therefore, the image acquisition process and the stitching method used in the stitching process of the first and second images will directly affect the quality of the stitching effect. The remote sensing shooting process and the stitching process are described in detail below.

[0059] After determining the area to be photographed, pre-define the shooting route, shooting speed, shooting height, shooting angle, etc. According to the relationship between the routes of the images, the overlap can be divided into heading overlap and lateral overlap. The overlap between the first image and the second image on the same route can be the heading overlap. Generally speaking, the heading overlap must be at least greater than 50%, usually around 60%. It should be noted that if the overlap is too large, it will cause excessive consumption of the imaging equipment and affect the imaging efficiency of the remote sensing image; if the overlap is too small, the interpretation and stitching accuracy will be reduced due to excessive use of the image edge operations. Therefore, when acquiring remote sensing images, it is sufficient to ensure that the first image and the second image have a suitable overlap.

[0060] For example, the remote sensing shooting device is controlled to move along the route, and each shooting position is marked on the route. For example, a first image is obtained by shooting at a first shooting position, and then the second image is obtained by moving along the same route and shooting at a second shooting position. The distance between the first shooting position and the second shooting position is determined according to the overlap between the first image and the second image to be shot. When shooting the first image and the second image, the remote sensing shooting device uses the same shooting parameters such as the bird's-eye view and the field of view. During the shooting process, by marking the shooting positions on the route in advance, the remote sensing shooting device can be controlled to shoot on demand, avoiding frequent shooting, reducing shooting power consumption, and avoiding wasting storage space due to obtaining too many useless images.

[0061] The corresponding feature points mentioned here can be understood as the pixel points representing the same target object in the first image and the second image. Generally speaking, when stitching images, it is necessary to select multiple sets of feature point pairs from the first image and the second image. The stitching of the first image and the second image is achieved based on the matching degree between the multiple sets of feature point pairs. If the feature points do not match or the number of feature points is insufficient, the image will be re-screened to complete the matching work.

[0062] In practical applications, the remote sensing shooting equipment is relatively far away from the photographed target and is easily affected by environmental factors such as light. Therefore, after the first image and the second image are captured, it is necessary to normalize the first image and the second image, and determine the corresponding feature points from the first image and the second image based on the normalization results. There are many ways to normalize the first image and the second image, such as global contrast normalization, local contrast normalization, and so on. After normalization, multiple groups of corresponding feature points to be selected can be found more accurately from the first image and the second image, providing more reference points for the subsequent screening of corresponding feature points, thereby obtaining an accurate stitching effect.

[0063] Specifically, global contrast normalization can be understood as subtracting the pixel mean of the image from each pixel in the image, and then rescaling it so that the standard deviation on its pixels is equal to a constant, thereby eliminating the problem of large contrast. Local contrast normalization is to normalize each small window in the image instead of normalizing the entire image. Local contrast normalization usually uses separable convolution to calculate the local mean and local standard deviation of the feature map, and then uses element-by-element subtraction and division on different feature maps.

[0064] For brightness normalization processing of the first image and the second image, a histogram equalization method may be used.

[0065] As mentioned above, when performing image stitching, it is necessary to obtain multiple sets of feature point pairs from the first image and the second image respectively, and then extract the feature information of these feature points. Figure 2 A schematic diagram of determining characteristic information provided in an embodiment of the present application. Figure 2 As can be seen from the figure, the target objects in the first image are circle, triangle, rectangle from left to right, and the target objects in the second image are triangle, rectangle, trapezoid from left to right. It can be seen from the figure that the overlap between the first image and the second image is greater than 50%. Then, the target objects triangle and rectangle contained in the overlapping part of the first image and the second image are used as corresponding feature points. It is easier to determine the corresponding feature points based on the same target objects contained in the overlapping parts of different images, thereby improving the efficiency of feature point selection.

[0066] By connecting the corresponding feature points in the triangles and rectangles in the first image and the second image, we can obtain the triangle lines a1, a2, a3, and the rectangle lines b1, b2, b3, b4. Then, we obtain the length of each line as the distance feature of the corresponding feature point. At the same time, we take the offset of each line relative to the horizontal line as the direction feature. For example, Figure 2 As shown, the distance of a1 is sa1, and the angle with the horizontal line is ca1. By analogy, the distance features and direction features of all corresponding feature points in the first image and the second image can be obtained.

[0067] It is easy to understand that when acquiring remote sensing images, due to the long object distance, if there is a slight deviation in the shooting angle, the obtained image may have a large deviation. Therefore, when determining the corresponding feature points in the first image and the second image, a correspondence between the feature points in the first image and the feature points in the second image can be established, and multiple groups of feature point pairs can be generated according to the correspondence. Then, the distance features and direction features of each group of corresponding feature points are determined. If a part of the multiple corresponding feature points in the first image and the second image obtained have obvious deviations, these corresponding feature points will not be used for image stitching. Specifically, multiple groups of feature point pairs can be screened using distance features and direction features, and corresponding feature points with relatively large deviations can be eliminated, and corresponding feature points with small deviations or no deviations can be screened and retained as stitching feature points. Then, based on the stitching feature points, the first image and the second image are stitched.

[0068] This solution is different from the traditional method of screening feature points in each image to be stitched separately. Instead, it establishes feature point pairs and further establishes lines between feature point pairs as needed. Screening feature points in the image to be stitched in pairs is more efficient and the obtained feature points can better meet the stitching requirements.

[0069] In addition, when filtering feature point pairs, we do not use distance features or direction features alone, but use both distance features and direction features as filtering conditions. Because if we only use direction features as filtering conditions, when feature points are on the same straight line, they all have the same direction features, and it is impossible to filter feature point pairs. Similarly, if there are only distance features, there are many situations that can meet the distance feature filtering conditions during the rotation of a straight line. Therefore, using distance features and direction features as filtering conditions for feature point pairs can more accurately filter out feature points that meet the stitching requirements.

[0070] like Figure 3a A flow chart of a method for selecting corresponding feature points for splicing provided in an embodiment of the present application. The method mainly includes the following steps:

[0071] 301: Filtering the corresponding feature points based on the distance feature and the direction feature;

[0072] 302: Determine a splicing feature point according to the screening result. Specifically, if the distance feature of the corresponding feature point is less than a first threshold value, and the direction feature is less than a second threshold value, determine that the corresponding feature point is a splicing feature point.

[0073] 303: Based on the stitching feature points, stitch the first image and the second image.

[0074] There are many ways to filter the corresponding feature points. One way is to filter the feature points by using a preset threshold. For example, the user predefines a first threshold S for judging the distance feature and a second threshold C for judging the direction feature based on experimental results or experience. Then, the lengths sa1, sa2, sa3, sb1, sb2, sb3, and sb4 corresponding to a1, a2, a3, b1, b2, b3, and b4 are compared with S respectively. If they are greater than S, it is considered that the corresponding feature points cannot meet the splicing requirements. The angles ca1, ca2, ca3, cb1, cb2, cb3, and cb4 between a1, a2, a3, b1, b2, b3, and b4 and the horizontal direction are compared with the second threshold C. If a certain angle exceeds the second threshold C, it is considered that the feature point does not meet the splicing requirements. If the distance feature of a group of corresponding feature points is less than the first threshold S, and the direction feature is less than the second threshold C, it is considered that the group of corresponding feature points can be used for splicing. It should be noted that when screening corresponding feature points, both the distance feature and the direction feature must be met to be retained. If only the distance feature or only the direction feature is met, the group of corresponding feature points still cannot be used as feature points for stitching.

[0075] like Figure 3bA flow chart of another method for selecting corresponding feature points for splicing provided in an embodiment of the present application. The method mainly includes the following steps:

[0076] 401: Perform averaging processing on at least three groups of distance features to obtain a distance feature mean.

[0077] 402: Perform averaging processing on at least three groups of directional features to obtain directional feature means.

[0078] 403: If the difference between the distance feature and the distance feature mean is smaller than a first threshold, and the difference between the direction feature and the direction feature mean is smaller than a second threshold, the corresponding feature point is a splicing feature point.

[0079] Specifically, the distance features corresponding to the multiple sets of feature points obtained in the first image and the second image can be averaged, and then the feature points can be screened according to the distance features. For example, assuming that the lengths corresponding to a1, a2, a3, b1, b2, b3, and b4 are sa1, sa2, sa3, sb1, sb2, sb3, and sb4, respectively, the distance mean S of all corresponding feature points in the first image and the second image to be stitched is obtained by averaging sa1, sa2, sa3, sb1, sb2, sb3, and sb4, and then sa1, sa2, sa3, sb1, sb2, sb3, and sb4 are compared with S respectively. If the difference between a distance in sa1, sa2, sa3, sb1, sb2, sb3, and sb4 and S is greater than the first threshold m, it is considered that the distance feature does not meet the stitching requirements. In the same way, assume that the angles between a1, a2, a3, b1, b2, b3, b4 and the horizontal direction are ca1, ca2, ca3, cb1, cb2, cb3, cb4. The angle average C is obtained by averaging the angles between a1, a2, a3, b1, b2, b3, b4 and the horizontal direction, and then ca1, ca2, ca3, cb1, cb2, cb3, cb4 are compared with C. If the difference between a certain angle in ca1, ca2, ca3, cb1, cb2, cb3, cb4 and C is greater than the second threshold value n, it is considered that the directional feature does not meet the splicing requirements. It should be noted that when screening corresponding feature points, both the distance feature and the directional feature must be met before they are retained. If only the distance feature or only the directional feature is met, the group of corresponding feature points still cannot be used as feature points for splicing. It is easy to understand that if all corresponding feature points selected in the first image and the second image cannot be used as stitching feature points, it means that at least one of the two images to be stitched cannot meet the stitching requirements, and the image to be stitched needs to be reselected.

[0080] By screening multiple groups of feature point pairs contained in the first image and the second image, interference of unqualified feature point pairs in the stitching process can be avoided, and corresponding feature points for stitching with better consistency can be obtained. Moreover, during the screening, screening is performed according to feature point pairs instead of screening individual feature points alone, so that feature points meeting the stitching requirements can be obtained.

[0081] Such as Figure 4 FIG. is a schematic diagram for preliminary screening of feature points provided by an embodiment of the present application. Before screening feature point pairs using distance features and direction features, preliminary basic screening of feature points can be performed first. For example, the RANSAC algorithm can be used for preliminary screening. The specific description of the RANSAC algorithm is: Given a set P composed of N data points, assuming that most points in the set can be generated by a model, and the parameters of the model can be fitted with at least n points (n < N). The specific process is as follows:

[0082] 1) Such as Figure 4 a Randomly select R groups of feature point pairs (here R = 4, that is, any two points on the scatter plot) from the feature point pairs of two images, and use the direct linear transformation (DLT) method to calculate the homography matrix between them. Since each point on the scatter plot is composed of two matching point pairs, it is the connection between two points on the graph.

[0083] 2) Such as Figure 4 b Apply it to all other scatter points, and mark all points that approximately meet the condition (the Euclidean distance to the line is less than the threshold) as inliers, and vice versa as outliers (points between solid lines are marked as inliers, and the rest are marked as outliers).

[0084] 3) Such as Figure 4 c Use all assumed inliers to re - estimate the model (using the least - squares method), and regard the new estimation result as the homography matrix corresponding to this part of inliers.

[0085] 4) Such as Figure 4 d Repeat the above steps 500 times, and record the obtained each time. Finally, select the one with the largest number of inliers and the number meeting a certain threshold (set to 20 in this study) as the estimation of the homography matrix for this image matching, and retain the corresponding inliers as correct matching points.

[0086] In practical applications, before screening feature points using this solution, screening can be first performed through RANSAC. Using the homography relationship between images, the most likely homography matrix can be found, and feature points that obviously do not meet this corresponding relationship can be removed by this homography relationship.

[0087] Based on the above embodiments, it can be known that the first image and the second image are obtained by photographing with a remote sensing shooting device, and corresponding feature points are determined from the first image and the second image respectively, thereby constructing at least three groups of feature point pairs. The distance features and direction features of the at least three groups of feature point pairs are further determined, and then the multiple groups of feature point pairs are screened based on the distance features and direction features, thereby realizing the splicing processing of the first image and the second image based on the multiple groups of feature point pairs obtained by screening. Through the above scheme, according to the characteristics of remote sensing images, the feature points are screened using the distance features and direction features of the feature point pairs, thereby obtaining matching feature points to realize the splicing processing of the first image and the second image, which can obtain a more accurate splicing effect and improve the splicing efficiency.

[0088] It should be noted that some stitching algorithms require at least 4 sets of feature points to calculate the stitching parameters. In order to ensure the stability of the stitching algorithm and obtain accurate stitching results, as a preferred solution, at least 20 sets of feature points are set and image stitching is completed based on the 20 sets of feature points.

[0089] Figure 5 A schematic diagram of the structure of a remote sensing image stitching device provided in an embodiment of the present application. The device includes: an acquisition module 51, used to acquire a first image and a second image to be stitched. A determination module 52, used to determine corresponding feature points in the first image and the second image. A construction module 53, used to construct at least three groups of feature point pairs based on the corresponding feature points. A stitching module 54, used to stitch the first image and the second image according to the distance features and direction features respectively corresponding to the at least three groups of feature point pairs.

[0090] Optionally, the acquisition module 51 is used to acquire the first image captured at a first shooting position; and acquire the second image captured at a second shooting position.

[0091] Optionally, the determination module 52 is configured to perform normalization processing on the first image and the second image; and determine corresponding feature points in the first image and the second image based on the normalization processing result.

[0092] Optionally, the determination module 52 is configured to determine the same target object contained in the first image and the second image; and determine at least three groups of corresponding feature points based on the same target object.

[0093] Optionally, the construction module 53 is used to construct feature point lines corresponding to the feature point pairs; determine the distance characteristics between two feature points corresponding to the at least three groups of feature point pairs based on the feature point lines corresponding to the at least three groups of feature point pairs; and determine the direction characteristics of the at least three groups of feature point lines offset relative to the horizontal direction.

[0094] Optionally, the stitching module 54 is configured to screen the corresponding feature points based on the distance feature and the direction feature; determine stitching feature points according to the screening result; and stitch the first image and the second image based on the stitching feature points.

[0095] Optionally, the stitching module 54 is configured to determine that the corresponding feature point is a stitching feature point if the distance feature of the corresponding feature point is smaller than a first threshold, and the direction feature is smaller than a second threshold.

[0096] Optionally, the stitching module 54 is used to perform averaging processing on at least three groups of distance features to obtain a distance feature mean; perform averaging processing on at least three groups of directional features to obtain a directional feature mean; if the difference between the distance feature and the distance feature mean is less than a first threshold, and the difference between the directional feature and the directional feature mean is less than a second threshold, then the corresponding feature point is a stitching feature point.

[0097] The embodiment of the present application further provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by one or more processors, the one or more processors are caused to perform the following actions:

[0098] Acquire a first image and a second image to be stitched;

[0099] Determining corresponding feature points in the first image and the second image;

[0100] Based on the corresponding feature points, construct at least three sets of feature point pairs;

[0101] The first image and the second image are spliced ​​according to the distance features and the direction features respectively corresponding to the at least three groups of feature point pairs.

[0102] Optionally, the one or more processors are further configured to: acquire the first image captured at a first capturing position;

[0103] The second image captured at a second capturing position is acquired.

[0104] Optionally, the one or more processors are further configured to: perform normalization processing on the first image and the second image;

[0105] Based on the normalization result, corresponding feature points in the first image and the second image are determined.

[0106] Optionally, the one or more processors are further configured to: determine the same target object contained in the first image and the second image;

[0107] Based on the same target object, at least three groups of corresponding feature points are determined.

[0108] Optionally, the one or more processors are further configured to: construct a feature point connection line corresponding to the feature point pair;

[0109] Determine, based on the feature point connecting lines corresponding to the at least three groups of feature point pairs, the distance features between two feature points respectively corresponding to the at least three groups of feature point pairs;

[0110] Determine the directional characteristics of at least three groups of feature point connection lines offset relative to the horizontal direction.

[0111] Optionally, the one or more processors are further configured to: filter the corresponding feature points based on the distance feature and the direction feature;

[0112] Determining splicing feature points according to the screening results;

[0113] Based on the stitching feature points, the first image and the second image are stitched together.

[0114] Optionally, the one or more processors are further configured to: determine that the corresponding feature point is a splicing feature point if the distance feature of the corresponding feature point is smaller than a first threshold, and the direction feature is smaller than a second threshold.

[0115] Optionally, the one or more processors are further used to: perform averaging processing on at least three groups of distance features to obtain a distance feature mean;

[0116] Performing averaging processing on at least three groups of directional features to obtain the directional feature mean;

[0117] If the difference between the distance feature and the distance feature mean is less than a first threshold, and the difference between the direction feature and the direction feature mean is less than a second threshold, the corresponding feature point is a splicing feature point.

[0118] An embodiment of the present application provides an aerial photography device, which includes: a body; a power system, which is arranged on the body and is used to provide power for the body; and a remote sensing image stitching device, which is arranged on the body.

[0119] It can be seen from the above embodiments that the first image and the second image are obtained by photographing with a remote sensing photographing device, and corresponding feature points are determined from the first image and the second image respectively, thereby constructing at least three groups of feature point pairs. The distance features and direction features of the at least three groups of feature point pairs are further determined, and then the multiple groups of feature point pairs are screened based on the distance features and direction features, thereby realizing the splicing processing of the first image and the second image based on the multiple groups of feature point pairs obtained by screening. Through the above scheme, according to the characteristics of remote sensing images, the feature points are screened using the distance features and direction features of the feature point pairs, thereby obtaining matching feature points to realize the splicing processing of the first image and the second image, which can obtain a more accurate splicing effect and improve the splicing efficiency.

[0120] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0121] The present invention is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0122] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0123] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0124] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0125] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0126] Computer readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0127] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0128] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A remote sensing image stitching method, characterized in that: The method comprises: Acquire a first image and a second image to be stitched, wherein the first image and the second image have an overlap; Determine corresponding feature points in the first image and the second image, where the feature points are pixels in the first image and the second image that represent the same target object; Based on the corresponding feature points, at least three groups of feature point pairs are constructed; feature point lines corresponding to the feature point pairs are constructed; based on the feature point lines corresponding to the at least three groups of feature point pairs, distance features between two feature points corresponding to the at least three groups of feature point pairs are determined; direction features of the relative horizontal deviation of the at least three groups of feature point lines are determined; Performing screening by RANSAC, using the homography relationship between the first image and the second image to determine a homography matrix, and screening the feature point pairs based on the homography matrix to eliminate feature points that do not satisfy the homography relationship, and obtain corresponding feature points after screening; Performing averaging processing on the distance features of the corresponding feature points after the screening to obtain a distance feature mean; Performing averaging processing on the directional features of the corresponding feature points after the screening to obtain a directional feature mean; If the difference between the distance feature and the distance feature mean is less than a first threshold, and the difference between the direction feature and the direction feature mean is less than a second threshold, the corresponding feature point is a splicing feature point; based on the splicing feature point, the first image and the second image are spliced.

2. The method according to claim 1, characterized in that The step of acquiring the first image and the second image to be stitched comprises: Acquire the first image captured at a first shooting position; The second image captured at a second capturing position is acquired.

3. The method according to claim 1, characterized in that The determining corresponding feature points in the first image and the second image includes: Performing normalization processing on the first image and the second image; Based on the normalization result, corresponding feature points in the first image and the second image are determined.

4. The method according to claim 3, characterized in that The determining corresponding feature points in the first image and the second image includes: Determining the same target object contained in the first image and the second image; Based on the same target object, at least three groups of corresponding feature points are determined.

5. The method according to claim 1, characterized in that According to the screening results, determine the splicing feature points, including: If the distance feature of the corresponding feature point is smaller than a first threshold, and the direction feature is smaller than a second threshold, the corresponding feature point is determined to be a splicing feature point.

6. A remote sensing image stitching device, characterized in that: The device comprises: An acquisition module, used for acquiring a first image and a second image to be stitched, wherein the first image and the second image have an overlap; A determination module, configured to determine corresponding feature points in the first image and the second image, wherein the feature points are pixels in the first image and the second image representing the same target object; A construction module is used to construct at least three groups of feature point pairs based on the corresponding feature points; construct feature point lines corresponding to the feature point pairs; determine the distance characteristics between two feature points corresponding to the at least three groups of feature point pairs based on the feature point lines corresponding to the at least three groups of feature point pairs; and determine the direction characteristics of the relative horizontal deviation of the at least three groups of feature point lines; A stitching module is used to perform screening through RANSAC, use the homography relationship between the first image and the second image to determine the homography matrix, and screen the feature point pairs based on the homography matrix to eliminate the feature points that do not satisfy the homography relationship to obtain the screened corresponding feature points; average the distance features of the screened corresponding feature points to obtain the distance feature mean; average the direction features of the screened corresponding feature points to obtain the direction feature mean; if the difference between the distance feature and the distance feature mean is less than a first threshold, and the difference between the direction feature and the direction feature mean is less than a second threshold, then the corresponding feature point is a stitching feature point; based on the stitching feature point, the first image and the second image are stitched.

7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by one or more processors, the one or more processors are caused to perform the following actions: Acquire a first image and a second image to be stitched, wherein the first image and the second image have an overlap; Determine corresponding feature points in the first image and the second image, where the feature points are pixels in the first image and the second image that represent the same target object; Based on the corresponding feature points, at least three groups of feature point pairs are constructed; feature point lines corresponding to the feature point pairs are constructed; based on the feature point lines corresponding to the at least three groups of feature point pairs, distance features between two feature points corresponding to the at least three groups of feature point pairs are determined; Determine the directional characteristics of at least three groups of feature point connection lines offset relative to the horizontal direction; Performing screening by RANSAC, using the homography relationship between the first image and the second image to determine a homography matrix, and screening the feature point pairs based on the homography matrix to eliminate feature points that do not satisfy the homography relationship, and obtain corresponding feature points after screening; Performing averaging processing on the distance features of the corresponding feature points after the screening to obtain a distance feature mean; Performing averaging processing on the directional features of the corresponding feature points after the screening to obtain a directional feature mean; If the difference between the distance feature and the distance feature mean is less than a first threshold, and the difference between the direction feature and the direction feature mean is less than a second threshold, the corresponding feature point is a splicing feature point; based on the splicing feature point, the first image and the second image are spliced.

8. An aerial photography device, characterized in that: include: Body; A power system, disposed on the machine body, for providing power to the machine body; The remote sensing image stitching device described in claim 6 is arranged on the body.

Citation Information

Patent Citations

  • Low-altitude unmanned aerial vehicle-borne hyperspectral remote-sensing-image automatic splicing method

    CN105844587A

  • SIFT and Otsu matching based colored eyeground image splicing method

    CN108022228A

  • Stereoscopic shelf visual checking method and system based on camera image splicing

    CN110120010A