Satellite image matching method, device, computer equipment and storage medium
By obtaining the geocentric solid coordinates and image plane coordinates of feature points in the star-borne image, and narrowing the search range, the complex problem of star-borne image matching algorithm in the existing technology is solved, matching efficiency and accuracy are improved, and the process is simplified.
Patent Information
- Application Number
- CN202210080708.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-24
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-01-24
AI Technical Summary
The existing satellite image matching algorithm is complex, which leads to the complexity of feature point extraction and descriptor construction methods, increasing the algorithm complexity and matching time.
By obtaining the geocentric coordinates of feature points in a star-borne image, calculate its image plane coordinates in another image, determine the search area, and match feature points in that area, narrowing the search range to improve matching efficiency and accuracy .
It improves the reliability of image matching results, reduces matching time, avoids the complexity of feature point extraction and descriptor construction methods, and simplifies the algorithm process.
Smart Images

Figure CN114492622B
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a satellite-borne image matching method, device, computer equipment and storage medium. Background Art
[0002] With the development of space technology and space-based earth observation technology, the application prospects of remote sensing technology are becoming more and more broad, such as image fusion, target recognition, target change detection, digital photogrammetry, cartography, military and other fields. Satellite image matching refers to the process of identifying the same-name points between two or more images through algorithms, which is of great significance for satellite image registration, splicing, super-resolution reconstruction, etc.
[0003] At the same time, with the development of remote sensing technology, the matching of remote sensing images obtained by multi-source satellite sensors is full of challenges. Most of the satellite image matching algorithms of the same or different sources are improved in the way of feature point extraction and feature descriptor construction. Although these improved algorithms can cope with the matching between different source images, the improved feature point extraction and descriptor construction methods are more complicated, which will increase the algorithm complexity and the time required for matching. Summary of the invention
[0004] In order to solve the above technical problems, the present application provides a satellite image matching method, apparatus, computer equipment and storage medium.
[0005] In a first aspect, the present application provides a satellite image matching method, comprising:
[0006] Obtaining the geocentric and earth-fixed coordinates corresponding to each first feature point in the first satellite image;
[0007] Calculate the image plane coordinates of each of the first feature points in the second satellite image according to the geocentric and earth-fixed coordinates of each of the first feature points;
[0008] Determine, according to the image plane coordinates of each of the first feature points in the second satellite image, a corresponding search area for each of the first feature points in the second satellite image, and count all second feature points in each of the search areas in the second satellite image;
[0009] Each of the first feature points is matched with all the second feature points in the corresponding search area to obtain matched points with the same name.
[0010] In a second aspect, the present application provides a satellite-borne image matching device, comprising:
[0011] An acquisition module, used for acquiring the geocentric and earth-fixed coordinates corresponding to each first feature point in the first satellite image;
[0012] A coordinate conversion module, used for calculating the image plane coordinates of each of the first feature points in the second satellite image according to the geocentric and earth-fixed coordinates of each of the first feature points;
[0013] an area determination module, configured to determine a search area for each of the first feature points in the second satellite image according to the image plane coordinates of each of the first feature points in the second satellite image, and to count all second feature points in each of the search areas in the second satellite image;
[0014] The matching module is used to match each of the first feature points with all the second feature points in the corresponding search area to obtain matching points of the same name.
[0015] In a third aspect, the present application provides a computer device, including 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:
[0016] Obtaining the geocentric and earth-fixed coordinates corresponding to each first feature point in the first satellite image;
[0017] Calculate the image plane coordinates of each of the first feature points in the second satellite image according to the geocentric and earth-fixed coordinates of each of the first feature points;
[0018] Determine, according to the image plane coordinates of each of the first feature points in the second satellite image, a corresponding search area for each of the first feature points in the second satellite image, and count all second feature points in each of the search areas in the second satellite image;
[0019] Each of the first feature points is matched with all the second feature points in the corresponding search area to obtain matched points with the same name.
[0020] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0021] Obtaining the geocentric and earth-fixed coordinates corresponding to each first feature point in the first satellite image;
[0022] Calculate the image plane coordinates of each of the first feature points in the second satellite image according to the geocentric and earth-fixed coordinates of each of the first feature points;
[0023] Determine, according to the image plane coordinates of each of the first feature points in the second satellite image, a corresponding search area for each of the first feature points in the second satellite image, and count all second feature points in each of the search areas in the second satellite image;
[0024] Each of the first feature points is matched with all the second feature points in the corresponding search area to obtain matched points with the same name.
[0025] The above-mentioned satellite image matching method, device, computer equipment and storage medium, the method includes: obtaining the geocentric earth-fixed coordinates corresponding to each first feature point in the first satellite image; calculating the image plane coordinates of each first feature point in the second satellite image according to the geocentric earth-fixed coordinates of each first feature point; determining the search area of each first feature point in the second satellite image according to the image plane coordinates of each first feature point in the second satellite image, and counting all second feature points in each search area in the second satellite image; matching each first feature point with all second feature points in the corresponding search area to obtain matched points of the same name.
[0026] Based on the above-mentioned satellite image matching method, the corresponding image plane coordinates in the second satellite image are determined by the geocentric earth-fixed coordinates corresponding to the first feature point in the first satellite image, and the search area is determined in the second satellite image according to the image plane coordinates. The second feature point that forms a matching homonymous point with the first feature point is searched according to the search area, thereby narrowing the search range of the second feature point in the second satellite image, and the probability of matching the correct homonymous point within the narrowed limited range will be greatly increased, thereby improving the reliability of the matching result between the first satellite image and the second satellite image, without the need to improve the feature point extraction and feature descriptor construction method, and naturally will not obtain the improved more complicated feature point extraction and descriptor construction method, thereby not increasing the algorithm complexity and the matching time required. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0028] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0029] Figure 1 A diagram showing an application environment of a satellite-borne image matching method in an embodiment;
[0030] Figure 2 is a schematic diagram of a flow chart of a satellite-borne image matching method in one embodiment;
[0031] Figure 3A schematic diagram of the effect of an Earth-centered Earth-fixed coordinate system in one embodiment;
[0032] Figure 4 is a schematic diagram of a flow chart of a satellite-borne image matching method in one embodiment;
[0033] Figure 5 is a structural block diagram of a satellite-borne image matching device in one embodiment;
[0034] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are 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 this application.
[0036] Figure 1 FIG. 1 is an application environment diagram of a satellite-borne image matching method in an embodiment. Figure 1 The satellite image matching method is applied to a satellite image matching system. The satellite image matching system includes a satellite 110 and a server 120. The satellite 110 and the server 120 transmit data via an antenna. The server 120 can be implemented as an independent server or a server cluster composed of multiple servers.
[0037] In one embodiment, Figure 2 FIG. 1 is a flow chart of a satellite image matching method in an embodiment, referring to FIG. Figure 2 , provides a satellite image matching method. This embodiment mainly applies this method to the above Figure 1 Taking the server 120 in the example as an example, the satellite image matching method specifically includes the following steps:
[0038] Step S210, obtaining the Earth-centered Earth-fixed coordinates corresponding to each first feature point in the first satellite image.
[0039] Specifically, the first satellite image is a satellite image collected by the first satellite, and feature points in the first satellite image and the second satellite image are extracted according to the image matching method. The first feature point is the feature point in the first satellite image, and each feature point corresponds to a geocentric earth-fixed coordinate. The geocentric earth-fixed coordinate can be used to indicate the position information corresponding to each feature point. The geocentric earth-fixed coordinate is the coordinate in the geocentric earth-fixed coordinate system, which is a Cartesian space rectangular coordinate system. For example, the coordinate system takes the center of the ellipsoid as the origin, the intersection of the prime meridian plane and the equator as the X-axis, the direction on the equatorial plane orthogonal to the X-axis as the Y-axis, the rotation axis of the ellipsoid (the north and south poles straight line) as the Z-axis, and the geocentric earth-fixed coordinates are marked as (X, Y, Z).
[0040] Step S220: Calculate the image plane coordinates of each of the first feature points in the second satellite image according to the Earth-centered Earth-fixed coordinates of each of the first feature points.
[0041] Specifically, the second satellite image is a satellite image collected by a second satellite, the first satellite and the second satellite may be the same satellite or different satellites, the first satellite image and the second satellite image are satellite images collected by the same or different satellites at different locations, and the image plane coordinates of the geocentric earth-fixed coordinates corresponding to the first feature point in the first satellite image are calculated in the second satellite image, and the image plane coordinates are used to indicate the position of the first feature point in the second satellite image.
[0042] Step S230, according to the image plane coordinates of each of the first feature points in the second satellite image, correspondingly determine the search area of each of the first feature points in the second satellite image, and count all the second feature points in each of the search areas in the second satellite image.
[0043] Wherein, each of the image plane coordinates is located in the corresponding search area.
[0044] Specifically, any area in the second satellite image where the image plane coordinates are located can be used as the search area, and the coverage of the search area is smaller than the coverage of the second satellite image.
[0045] Since the satellite images are large and contain a large number of feature points, it takes a long time to directly match the first satellite image with the second satellite image. Therefore, narrowing the search area in the second satellite image corresponding to each first feature point in the first satellite image helps to increase the probability of matching the correct points with the same name and reduce the matching time between the first satellite image and the second satellite image.
[0046] Step S240: Match each of the first feature points with all the second feature points in the corresponding search area to obtain matched points with the same name.
[0047] Specifically, the second feature point is a feature point in the second satellite image. The first feature point is matched with the second feature point in the search area. Feature point matching is performed in the search area after the scope is narrowed. The successfully matched first feature point and the corresponding second feature point form a matching homonymous point. The matching homonymous point is used to indicate that the first feature point in the first satellite image and the second feature point in the second satellite image correspond to the same thing.
[0048] Based on the above-mentioned satellite image matching method, the corresponding image plane coordinates in the second satellite image are determined by the geocentric earth-fixed coordinates corresponding to the first feature point in the first satellite image, and the search area is determined in the second satellite image according to the image plane coordinates. The second feature point that forms a matching homonymous point with the first feature point is searched according to the search area, thereby narrowing the search range of the second feature point in the second satellite image, and the probability of matching the correct homonymous point within the narrowed limited range will be greatly increased, thereby improving the reliability of the matching result between the first satellite image and the second satellite image, without the need to improve the feature point extraction and feature descriptor construction method, and naturally will not obtain the improved more complicated feature point extraction and descriptor construction method, thereby not increasing the algorithm complexity and the matching time required.
[0049] In one embodiment, obtaining the geocentric earth-fixed coordinates corresponding to each first feature point in the first satellite image includes: obtaining the first feature point coordinates corresponding to each first feature point in the first satellite image; and converting the first feature point coordinates into the corresponding geocentric earth-fixed coordinates.
[0050] Specifically, the first feature point coordinates are used to indicate the position of the first feature point in the first satellite image. The first feature point coordinates are feature point coordinates corresponding to the first feature point. The first feature point coordinates are marked as (i, j). The feature point coordinates are equivalent to plane coordinates. The feature point coordinates are converted from two-dimensional coordinates to three-dimensional geocentric coordinates in a Cartesian coordinate system through a coordinate conversion formula, such as Figure 3 As shown, S is used to indicate the satellite, so as to facilitate the subsequent determination of the position of the first feature point in the second satellite image through the Earth-centered Earth-fixed coordinates.
[0051] In one embodiment, converting the feature point coordinates of the first feature point into the corresponding geocentric, earth-fixed coordinates includes: acquiring a first imaging auxiliary parameter of the first satellite image; determining a first feature point slant range and a first Doppler frequency corresponding to each of the first feature point coordinates according to the first imaging auxiliary parameter; and calculating the geocentric, earth-fixed coordinates of each of the first feature point coordinates according to the first imaging auxiliary parameter and the first feature point slant range and the first Doppler frequency corresponding to each of the first feature point coordinates.
[0052] Specifically, the first imaging auxiliary parameters include feature point coordinates, semi-major axis length, minor semi-axis length, position vector, velocity vector, wavelength, azimuth time, distance to ground distance pixel size, ground distance to slant distance parameters, equation parameters, etc.
[0053] Substitute the first imaging auxiliary parameter and the coordinates of the first feature point into the satellite parameter formula (1) to calculate the first feature point slant range and the first Doppler frequency corresponding to the coordinates of the first feature point. The satellite parameter formula (1) is as follows:
[0054]
[0055] Among them, t(i) is the azimuth time, δ rg is the distance to the ground pixel size, R is the slant distance of the feature point, f d is the Doppler frequency, (α k ; k = 0, 1, 2, 3, 4) is the ground distance to slant distance parameter, (d k ; k=0,1,2,3) are equation parameters.
[0056] Substitute the feature point coordinates (i, j) of the first feature point into the above formula (1) to obtain the feature point slant range R and Doppler frequency f d , that is, the slant distance and the first Doppler frequency of the first characteristic point are obtained. The slant distance of the first characteristic point is recorded as R1, and the first Doppler frequency is recorded as f d1 .
[0057] Substitute the slant range of the first feature point, the first Doppler frequency and the first imaging auxiliary parameter into the satellite parameter formula (2) to calculate the earth-centered earth-fixed coordinates corresponding to the coordinates of the first feature point. The satellite parameter formula (2) is as follows:
[0058]
[0059] Among them, R e is the semi-major axis length, R p is the length of the minor axis, H t is the target point elevation, R is the slope distance of the feature point, is the position vector of the first satellite, is the velocity vector of the first satellite, is the position vector of the first feature point, is the velocity vector of the first feature point, and λ is the wavelength.
[0060] The first characteristic point slant distance R1 and the first Doppler frequency f d1 Substitute into the above formula (2) and use the least squares method to solve formula (2) to obtain the geocentric earth-fixed coordinates (X, Y, Z) corresponding to the first feature point. Each first feature point can be calculated to obtain a corresponding geocentric earth-fixed coordinate in the above manner.
[0061] In one embodiment, the image plane coordinates of each of the first feature points in the second satellite image are calculated according to the geocentric Earth-fixed coordinates of each of the first feature points, including: acquiring second imaging auxiliary parameters of the second satellite image; determining the slant distance and the second Doppler frequency of the second feature point of each of the geocentric Earth-fixed coordinates according to the second imaging auxiliary parameters; and the image plane coordinates of each of the first feature points in the second satellite image according to the second imaging auxiliary parameters and the slant distance and the second Doppler frequency of the second feature point of each of the geocentric Earth-fixed coordinates.
[0062] Specifically, Figure 4 As shown, the second imaging auxiliary parameters and the first imaging auxiliary parameters include the same type of parameters, but the values of the parameters in the second imaging auxiliary parameters are different from the values of the same parameters in the first imaging auxiliary parameters, that is, there are differences between the same parameters in the first imaging auxiliary parameters and the second imaging auxiliary parameters. When calculating the image plane coordinates in the second satellite image according to the geocentric earth-fixed coordinates, the values of the parameters in the second imaging auxiliary parameters and the geocentric earth-fixed coordinates (X, Y, Z) are substituted into the above formula (2). At this time, the unknowns in formula (2) are the characteristic point slant range R and the Doppler frequency f d , from which the slant distance and the second Doppler frequency of the second characteristic point can be obtained. The slant distance of the second characteristic point is recorded as R2, and the second Doppler frequency is recorded as f d2 .
[0063] Then the second characteristic point slant distance R2 and the second Doppler frequency f obtained based on formula (2) are d2 And the corresponding values of each parameter in the second auxiliary parameter are substituted into the above formula (1) to obtain the corresponding image plane coordinates (i ’ , j ’ ).
[0064] In one embodiment, the search area for each of the first feature points in the second satellite image is determined based on the image plane coordinates of each of the first feature points in the second satellite image, including: a region of a preset pixel size centered on the image plane coordinates of each of the first feature points in the second satellite image is used as the search area for each of the first feature points in the second satellite image.
[0065] Specifically, after determining the corresponding image plane coordinates in the second satellite image according to the geocentric earth-fixed coordinates, an area of a preset pixel size is selected as the search area with the image plane coordinates as the center. The area of the preset pixel size can be customized according to actual matching requirements. The area of the preset pixel size can specifically be an area of any shape, for example, a circle, a rectangle, a triangle, other polygons or irregular shapes, etc., and the preset pixel size can be customized according to the matching speed requirements. In this embodiment, the area of the preset pixel size is a rectangular area in the size range of 40*40, thereby forming a search area in the size range of 40*40 with the image plane coordinates as the center. Feature point matching is performed in the smaller 40*40 search area, which improves the matching efficiency and increases the probability of matching the correct points of the same name, so that the matching results are more reliable and robust.
[0066] In one embodiment, the matching of each of the first feature points with all of the second feature points in the corresponding search area to obtain matching points of the same name includes: determining a first descriptor vector for each of the first feature points, and determining a second descriptor vector for each of the second feature points; determining the Euclidean distance between the first descriptor vector of each of the first feature points and the second descriptor vectors of all of the second feature points in the corresponding search area; and determining the first feature point and the second feature point corresponding to the Euclidean distance that meets the minimum numerical requirement as matching points of the same name.
[0067] Specifically, referring to the search area in the previous embodiment, the number of second feature points is determined within a 40*40 size range centered on the image plane coordinates, and the descriptor vectors corresponding to the first feature point and the second feature point are calculated according to the feature point coordinates of the first feature point and the feature point coordinates of the second feature point, respectively, to obtain the first descriptor vector corresponding to the first feature point and the second descriptor vector corresponding to the second feature point, and the Euclidean distance between the first descriptor vector and the second descriptor vector is calculated. The Euclidean distance calculation formula is as follows:
[0068]
[0069] in, Used to indicate the first descriptor vector, It is used to indicate the second descriptor vector, M is used to indicate the dimension of the feature descriptor vector, and k is used to indicate the sequence number of the feature descriptor vector.
[0070] A Euclidean distance can be obtained between the second descriptor vector corresponding to each second feature point in the search area and the first descriptor vector of the first feature point, that is, the first feature point corresponds to multiple Euclidean distances, and the Euclidean distance meets the minimum value requirement, that is, the second feature point corresponding to the Euclidean distance with the smallest value is selected from the multiple Euclidean distances corresponding to the first feature point, and is jointly determined as a matching homonymous point with the first feature point. The smallest Euclidean distance indicates that the second feature point corresponding to the Euclidean distance has the highest similarity with the first feature point. In this way, each first feature point and its most similar second feature point jointly determine a corresponding matching homonymous point, and each matching The same-name coordinates of the same-name points include the first feature point coordinates and the second feature point coordinates corresponding to the matching same-name points. In the present embodiment, only the first satellite image and the second satellite image are matched. Therefore, the same-name coordinates of the matching same-name points include the feature point coordinates of the first feature point in the first satellite image and the feature point coordinates of the second feature point in the second satellite image. If the matching same-name points obtained after matching multiple satellite images may correspond to the feature point coordinates in multiple satellite images, that is, the same-name coordinates of the same-name points include the feature point coordinates in multiple satellite images, the same-name coordinates of the same-name points are used to indicate the positions of the target transactions in different satellite images.
[0071] In one embodiment, after determining the first feature point and the second feature point corresponding to the Euclidean distance that meets the minimum value requirement as matching points of the same name, the satellite image matching method further includes:
[0072] S1, counting the matching points with the same name corresponding to each of the first feature points in the first satellite image to generate a candidate set;
[0073] S2, randomly selecting a preset number of the matching points with the same name from the candidate set as sample points;
[0074] S3, generating a transformation matrix according to the same-name coordinates corresponding to each of the sample points; wherein the same-name coordinates include the first feature point coordinates and the second feature point coordinates corresponding to the sample point;
[0075] S4, determining the projection error between each of the matching points of the same name in the candidate set and the transformation matrix;
[0076] S5, forming an inner point set from the matched points of the same name corresponding to the projection error that is smaller than a preset error;
[0077] S6, when the number of the matching points with the same name in the interior point set is greater than the preset number, the candidate set is updated to the interior point set, and the number of the matching points with the same name in the interior point set is assigned to the preset number; and the loop is returned to iterate and execute S2 to S5 until the number of loop iterations is greater than the preset number, so as to obtain the final candidate set.
[0078] Specifically, after all the first feature points in the first satellite image are matched with the second feature points in the second satellite image, each first feature point corresponds to a matching homonymous point, and the matching homonymous points corresponding to each first feature point are counted to form a candidate set. The preset number can be customized according to the actual application scenario. In this embodiment, the preset number is 4, that is, 4 matching homonymous points are randomly selected from the candidate set as sample points, and the homonymous coordinates of each sample point include the feature point coordinates of the corresponding first feature point and the second feature point, that is, the transformation matrix is calculated according to the two feature point coordinates corresponding to each sample point, and the transformation matrix is as follows:
[0079]
[0080] Among them, T is the perspective transformation matrix, t is the specific parameter in the perspective transformation matrix, and the transformation matrix is recorded as model M.
[0081] The projection error between each matching homonymous point in the candidate set and the model M is calculated to determine whether the matching homonymous point and the model M belong to the same class. If the projection error between the matching homonymous point and the model M is less than the error threshold, it means that the matching homonymous point and the model M belong to the same class. Then all matching homonymous points whose projection error is less than the error threshold are formed into an inlier set C. The number of matching homonymous points in the inlier set is recorded as C. S , the preset quantity is recorded as C N , if the number of all matching points with the same name in the interior point set is greater than the preset number, that is, C S >C N , then C S Assign the value of C N , in this way, C N The candidate set is updated and the internal point set C is replaced by the candidate set to complete the update of the candidate set. This is an iterative process, and it is necessary to return to the step of randomly selecting 4 matching homonymous points in the candidate set to construct a transformation matrix for loop iteration until the number of loop iterations is greater than the preset number N, and then a final candidate set is obtained. The final candidate set is used as the homonymous point set. In the above process, the projection error between the second feature point and the model M is calculated to eliminate the matching homonymous points with incorrect matching. After multiple iterative updates, the homonymous point set retains only the correct matching homonymous points. Compared with the existing matching method, the number of correct homonymous points finally obtained by the matching method adopted by the present invention is two to three times the number of correct homonymous points obtained by the existing matching method.
[0082] The above-mentioned satellite-borne image matching method is derived by utilizing the unique technical features of the satellite-borne image matching method to achieve the beneficial effect of being able to solve the technical problems raised in the background technology.
[0083] Figure 2 FIG. 1 is a flow chart of a satellite image matching method in one embodiment. It should be understood that although Figure 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0084] In one embodiment, Figure 5 As shown, a satellite-borne image matching device is provided, comprising:
[0085] An acquisition module 310 is used to acquire the Earth-centered Earth-fixed coordinates corresponding to each first feature point in the first satellite image;
[0086] A coordinate conversion module 320, configured to calculate the image plane coordinates of each of the first feature points in the second satellite image according to the geocentric earth-fixed coordinates of each of the first feature points;
[0087] The region determination module 330 is used to determine the search region of each of the first feature points in the second satellite image according to the image plane coordinates of each of the first feature points in the second satellite image, and to count all the second feature points in each of the search regions in the second satellite image;
[0088] The matching module 340 is used to match each of the first feature points with all the second feature points in the corresponding search area to obtain matching points of the same name.
[0089] In one embodiment, the acquisition module 310 is further used to:
[0090] Obtaining first feature point coordinates corresponding to each of the first feature points in the first satellite image;
[0091] The coordinates of each of the first feature points are converted into corresponding earth-centered earth-fixed coordinates.
[0092] In one embodiment, the acquisition module 310 is further used to:
[0093] Acquire a first imaging auxiliary parameter of the first satellite-borne image;
[0094] Determine, according to the first imaging auxiliary parameter, a first feature point slant range and a first Doppler frequency corresponding to the coordinates of each of the first feature points;
[0095] The Earth-centered Earth-fixed coordinates of each of the first feature point coordinates are calculated accordingly according to the first imaging auxiliary parameters and the first feature point slant distances and the first Doppler frequencies corresponding to each of the first feature point coordinates.
[0096] In one embodiment, the coordinate conversion module 320 is further used to:
[0097] Acquire a second imaging auxiliary parameter of the second satellite-borne image;
[0098] Determine the slant distance and the second Doppler frequency of the second characteristic point of each of the earth-centered earth-fixed coordinates according to the second imaging auxiliary parameter;
[0099] The image plane coordinates of each of the first feature points in the second satellite image are calculated accordingly based on the second imaging auxiliary parameters and the slant distance of the second feature point and the second Doppler frequency of each of the earth-centered earth-fixed coordinates.
[0100] In one embodiment, the region determination module 330 is further configured to:
[0101] An area of preset pixel size centered on the image plane coordinates of each of the first feature points in the second satellite image is used as a search area for each of the first feature points in the second satellite image.
[0102] In one embodiment, the matching module 340 is further configured to:
[0103] Determine a first descriptor vector for each of the first feature points, and determine a second descriptor vector for each of the second feature points;
[0104] Determine the Euclidean distance between the first descriptor vector of each of the first feature points and the second descriptor vectors of all the second feature points in the corresponding search area;
[0105] The first feature point and the second feature point corresponding to the Euclidean distance that meets the minimum value requirement are determined as matching points of the same name.
[0106] In one embodiment, the apparatus further comprises a rejection module, configured to execute:
[0107] S1, counting the matching points with the same name corresponding to each of the first feature points in the first satellite image to generate a candidate set;
[0108] S2, randomly selecting a preset number of the matching points with the same name from the candidate set as sample points;
[0109] S3, generating a transformation matrix according to the same-name coordinates corresponding to each of the sample points; wherein the same-name coordinates include the first feature point coordinates and the second feature point coordinates corresponding to the sample point;
[0110] S4, determining the projection error between each of the matching points of the same name in the candidate set and the transformation matrix;
[0111] S5, forming an inner point set from the matched points of the same name corresponding to the projection error that is smaller than a preset error;
[0112] S6, when the number of the matching points with the same name in the interior point set is greater than the preset number, the candidate set is updated to the interior point set, and the number of the matching points with the same name in the interior point set is assigned to the preset number; and the loop is returned to iterate and execute S2 to S5 until the number of loop iterations is greater than the preset number, so as to obtain the final candidate set.
[0113] Figure 6 The internal structure diagram of a computer device in one embodiment is shown. The computer device may specifically be Figure 1 The server 120 in FIG. Figure 6 As shown, the computer device includes a processor, a memory, a network interface, an input device and a display screen connected through a system bus. Among them, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor can implement the satellite image matching method. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor can execute the satellite image matching method. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device may be a touch layer covered on the display screen, or a button, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse.
[0114] Those skilled in the art will understand that Figure 6 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.
[0115] In one embodiment, the satellite image matching device provided by the present application can be implemented in the form of a computer program. The computer program can be Figure 6The computer device shown in the figure is run. The memory of the computer device can store various program modules constituting the satellite-borne image matching device, for example, Figure 5 The acquisition module 310, coordinate conversion module 320, region determination module 330 and matching module 340 are shown. The computer program composed of various program modules enables the processor to execute the steps of the satellite image matching method of each embodiment of the present application described in this specification.
[0116] Figure 6 The computer device shown can be Figure 5 The acquisition module 310 in the satellite image matching device shown acquires the geocentric earth-fixed coordinates corresponding to each first feature point in the first satellite image. The computer device can calculate the image plane coordinates of each first feature point in the second satellite image based on the geocentric earth-fixed coordinates of each first feature point through the coordinate conversion module 320. The computer device can determine the search area of each first feature point in the second satellite image based on the image plane coordinates of each first feature point in the second satellite image through the area determination module 330, and count all the second feature points in each search area in the second satellite image. The computer device can match each first feature point with all the second feature points in the corresponding search area through the matching module 340 to obtain matched points of the same name.
[0117] 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, wherein the method described in any one of the above embodiments is implemented when the processor executes the computer program.
[0118] 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 method described in any one of the above embodiments is implemented.
[0119] 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 program can be stored in a non-volatile computer-readable storage medium. When the 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 may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may 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 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).
[0120] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article 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, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0121] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A satellite image matching method, characterized in that: The method comprises: Obtaining the Earth-centered Earth-fixed coordinates corresponding to each first feature point in the first satellite-borne image; Calculating the image plane coordinates of each of the first feature points in the second satellite-borne image according to the Earth-centered Earth-fixed coordinates of each of the first feature points; Determining, based on the image plane coordinates of each of the first feature points in the second satellite image, a corresponding search area for each of the first feature points in the second satellite image, and counting all second feature points within each of the search areas in the second satellite image; Matching each of the first feature points with all the second feature points in the corresponding search area to obtain matched points with the same name; The obtaining of the Earth-centered Earth-fixed coordinates corresponding to each first feature point in the first satellite-borne image includes: Obtaining first feature point coordinates corresponding to each of the first feature points in the first satellite-borne image; Converting the coordinates of each of the first feature points into corresponding Earth-centered Earth-fixed coordinates; The converting the coordinates of each of the first feature points into the corresponding Earth-centered Earth-fixed coordinates includes: Acquiring first imaging auxiliary parameters of the first satellite-borne image; determining a first feature point slant range and a first Doppler frequency corresponding to the coordinates of each of the first feature points according to the first imaging auxiliary parameters; Calculating the Earth-centered Earth-fixed coordinates of each of the first feature point coordinates according to the first imaging auxiliary parameter and the first feature point slant range and the first Doppler frequency corresponding to each of the first feature point coordinates; Calculating the image plane coordinates of each of the first feature points in the second satellite image according to the Earth-centered Earth-fixed coordinates of each of the first feature points includes: Acquiring second imaging auxiliary parameters of the second satellite-borne image; Determining a second characteristic point slant distance and a second Doppler frequency of each of the Earth-centered Earth-fixed coordinates according to the second imaging auxiliary parameter; Calculating the image plane coordinates of each of the first feature points in the second satellite-borne image according to the second imaging auxiliary parameters and the slant distance and the second Doppler frequency of each of the second feature points of the Earth-centered Earth-fixed coordinates; Determining a search area for each of the first feature points in the second satellite image according to the image plane coordinates of each of the first feature points in the second satellite image includes: A region of a preset pixel size centered on the image plane coordinates of each of the first feature points in the second satellite image is used as a search region for each of the first feature points in the second satellite image; The step of matching each of the first feature points with all the second feature points in the corresponding search area to obtain matching points of the same name includes: Determining a first descriptor vector for each of the first feature points, and determining a second descriptor vector for each of the second feature points; Determining the Euclidean distance between the first descriptor vector of each first feature point and the second descriptor vectors of all the second feature points in the corresponding search area; The first feature point and the second feature point corresponding to the Euclidean distance that meets the minimum value requirement are determined as matching points with the same name.
2. The satellite image matching method according to claim 1, wherein: After determining the first feature point and the second feature point corresponding to the Euclidean distance that meets the minimum value requirement as matching points of the same name, the satellite image matching method further includes: S1, counting the matching points with the same name corresponding to each of the first feature points in the first satellite image to generate a candidate set; S2, randomly selecting a preset number of matching points with the same name from the candidate set as sample points; S3, generating a transformation matrix according to the same-name coordinates corresponding to each of the sample points; wherein the same-name coordinates include the first feature point coordinates and the second feature point coordinates corresponding to the sample point; S4, determining the projection error between each of the matching points of the same name in the candidate set and the transformation matrix; S5, forming an inlier set from the matched points of the same name corresponding to the projection error that is smaller than a preset error; S6. When the number of matching points with the same name in the inlier set is greater than a preset number, the candidate set is updated to the inlier set, and the number of matching points with the same name in the inlier set is assigned to the preset number; and the loop is returned to iterate and execute S2 to S5 until the number of loop iterations is greater than the preset number, thereby obtaining a final candidate set.
3. A satellite-borne image matching device, which is used to implement the satellite-borne image matching method according to any one of claims 1-2, characterized in that: The device comprises: An acquisition module, configured to acquire the Earth-centered Earth-fixed coordinates corresponding to each first feature point in the first satellite-borne image; a coordinate conversion module, configured to calculate the image plane coordinates of each of the first feature points in the second satellite-borne image according to the Earth-centered Earth-fixed coordinates of each of the first feature points; an area determination module, configured to determine a search area for each of the first feature points in the second satellite image according to the image plane coordinates of each of the first feature points in the second satellite image, and to count all second feature points within each of the search areas in the second satellite image; The matching module is used to match each of the first feature points with all the second feature points in the corresponding search area to obtain matched points with the same name.
4. A computer device comprising 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 steps of the spaceborne image matching method according to any one of claims 1 to 2 are implemented.
5. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the spaceborne image matching method according to any one of claims 1 to 2 are implemented.
