A correction method and device for geometrically roughly correcting an image
By automatically extracting control points and introducing a digital elevation model, combined with the dense matching method to optimize RPC parameters, the problem of insufficient correction accuracy and adaptability of geometric rough correction is solved, and a more efficient image correction effect is achieved.
Patent Information
- Application Number
- CN202011262113.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-12
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-11-12
AI Technical Summary
The correction accuracy and effect of the geometric rough correction image in the existing technology are poor, and the adaptability is insufficient. Especially when processing undulating terrain areas, local error changes lead to the introduction of new errors, and it is suitable for flat areas and is limited by terrain characteristics.
By automatically extracting control points from geometrically coarse-corrected images and introducing a digital elevation model, the dense matching method is used to determine the same-named control points from the reference image, calculate the RPC correction parameters, optimize the initial RPC parameters, and generate a corrected orthophoto.
It improves the accuracy and adaptability of the corrected image, avoids accuracy and effect problems caused by relying on two-dimensional plane control points in traditional methods, ensures the uniformity of the number and distribution of control points, and enhances the applicability of the correction process.
Smart Images

Figure CN112561805B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of remote sensing image correction, and in particular to a correction method and device for geometrically coarsely correcting an image. Background Art
[0002] With the development of remote sensing earth observation technology for decades, a large amount of historical satellite image data has been accumulated and preserved, including a large number of geometric coarse correction products that are only archived by satellites or "pseudo" orthorectified data that still have large residual errors after orthorectification and cannot meet the requirements of mosaic or overlapping area change information extraction. For example, geometric coarse correction products include CBERS series and HJ series. Since there are still large errors in geometric coarse correction images, it is necessary to perform "secondary" correction processing on the geometric coarse correction images.
[0003] At present, the process of "secondary" correction of the geometric rough correction image is mainly: extracting control points from the geometric rough correction image manually or semi-automatically, and then correcting the problem of three-dimensional terrain changes based on the control points of the two-dimensional plane. However, in the prior art, on the one hand, the number of control points extracted from the geometric rough correction image manually or semi-automatically is limited; on the other hand, due to the internal geometric errors in the image, when the problem of three-dimensional terrain changes is corrected by relying on two-dimensional plane control points, for areas with large local error changes, while correcting certain areas, the surrounding areas will be deformed and enlarged, "losing one thing while focusing on another" and introducing new errors. Moreover, it is generally applicable to flat areas and is affected by the undulating terrain, and has obvious limitations. Therefore, the existing methods for correcting geometric rough correction images not only lead to the problems of poor accuracy and effect of the corrected images, but also make the adaptability poor. Summary of the invention
[0004] The technical problem solved by the present application is: in view of the problems of poor accuracy, effect and adaptability of the corrected images in the prior art, a correction method and device for a geometrically roughly corrected image are provided. In the scheme provided in the embodiment of the present application, control points are automatically extracted from the geometrically roughly corrected image to ensure the number of control points and the extraction efficiency. By introducing the digital elevation model into the correction process of the geometrically roughly corrected image, not only the problems of poor accuracy and effect of the corrected image caused by relying on two-dimensional plane control points to correct terrain changes in the traditional correction process are avoided, but also the adaptability of the scheme is improved.
[0005] In a first aspect, an embodiment of the present application provides a correction method for a geometrically roughly corrected image, the method comprising:
[0006] Automatically extract control points from the rough geometric correction image to be corrected, and calculate initial RPC parameters based on the control points and a preset digital elevation model;
[0007] Determine a reference image corresponding to the rough geometric correction image to be corrected from a preset database, determine a plurality of control points with the same name from the reference image by a preset dense matching method, and calculate RPC correction parameters according to the control points with the same name and the initial RPC parameters;
[0008] The initial RPC parameters are optimized according to the RPC correction parameters to obtain optimized RPC parameters, and a corrected orthophoto is generated according to the optimized RPC parameters and the digital elevation model.
[0009] Optionally, control points are automatically extracted from the rough geometric correction image to be corrected, including:
[0010] Resampling the rough geometric correction image to be corrected according to a preset sampling ratio to obtain a first resampled remote sensing image, and determining a valid image area from the first resampled remote sensing image according to a pixel value of each image point;
[0011] Setting a plurality of first grid units in the first resampled remote sensing image according to a preset window size, and screening each of the first grid units to determine all second grid units in the effective image area;
[0012] The corner points of each of the second grid units are determined, and all the determined corner points are used as the control points.
[0013] Optionally, initial RPC parameters are calculated based on the control points and a preset digital elevation model, including:
[0014] Determine the row and column numbers of each control point in the first resampled remote sensing image, and calculate the longitude and latitude information and elevation information corresponding to each control point according to the row and column numbers and the preset digital elevation model;
[0015] Determine the ground coordinates of each control point according to the latitude and longitude information and the elevation information and determine the image point coordinates corresponding to each control point in the first resampled remote sensing image;
[0016] Determine the regularized image point coordinates and the regularized ground coordinates corresponding to each control point according to the row and column numbers, the ground coordinates and the image point coordinates;
[0017] The initialization RPC parameters are calculated according to the row and column numbers, the regularized image point coordinates, and the regularized ground coordinates.
[0018] Optionally, a plurality of control points with the same name are determined from the reference image by a preset dense matching method, including:
[0019] Resampling the reference image to obtain a second resampled remote sensing image, wherein the second resampled remote sensing image has the same resolution as the first resampled remote sensing image;
[0020] Determine the position information of all grid cells of the effective image area in the first sampled remote sensing image, and set a plurality of third grid cells in the second resampled remote sensing image according to the position information and the preset window size;
[0021] According to the preset dense matching method, each of the third grid units at the same position is matched with the second grid unit to obtain a plurality of control points with the same name, wherein each of the control points with the same name is any pixel point in the third grid unit.
[0022] Optionally, calculating RPC correction parameters according to the control points with the same name and the initial RPC parameters includes:
[0023] Determine the row and column number, longitude and latitude information, and elevation information of each of the control points with the same name in the second resampled remote sensing image, and calculate reference RPC parameters according to the row and column number, longitude and latitude information, and elevation information corresponding to each of the control points with the same name;
[0024] The RPC correction parameters are calculated based on the reference RPC parameters and the initial RPC parameters.
[0025] Optionally, calculating the RPC correction parameter according to the reference RPC parameter and the initial RPC parameter includes:
[0026] An RPC parameter error equation is calculated according to the reference RPC parameter and the initial RPC parameter, and the RPC parameter error equation is linearized to obtain a linearized RPC parameter error equation;
[0027] Solving the linearized RPC parameter error equation to obtain an initial RPC correction parameter, and determining whether the initial RPC correction parameter is within a preset limit range;
[0028] If not, continue to iterate and calculate to obtain new RPC correction parameters until the new RPC correction parameters are within the preset limit range, and determine the current number of iterations;
[0029] Determine whether the current number of iterations is greater than a preset threshold;
[0030] If it is not greater than the preset threshold, continue to iterate and calculate to obtain the RPC correction parameters until the number of iterations is greater than the preset threshold, determine the RPC correction parameters obtained from the last iteration, and optimize the initial RPC parameters according to the RPC correction parameters obtained from the last iteration to obtain the optimized RPC parameters.
[0031] In a second aspect, an embodiment of the present application provides a correction device for a geometrically roughly corrected image, the device comprising:
[0032] A calculation unit, used for automatically extracting control points from the rough geometric correction image to be corrected, and calculating initial RPC parameters according to the control points and a preset digital elevation model;
[0033] A determination unit, used to determine a reference image corresponding to the rough geometric correction image to be corrected from a preset database, determine a plurality of control points with the same name from the reference image by a preset dense matching method, and calculate RPC correction parameters according to the control points with the same name and the initial RPC parameters;
[0034] The correction unit is used to optimize the initial RPC parameters according to the RPC correction parameters to obtain optimized RPC parameters, and generate a corrected orthophoto according to the optimized RPC parameters and the digital elevation model.
[0035] Optionally, the calculation unit is specifically used to: resample the geometric coarse correction image to be corrected according to a preset sampling ratio to obtain a first resampled remote sensing image, and determine the effective image area from the first resampled remote sensing image according to the pixel value of each image point; set a plurality of first grid units in the first resampled remote sensing image according to a preset window size, and screen each of the first grid units to determine all second grid units in the effective image area; determine the corner points of each of the second grid units, and use all the determined corner points as the control points.
[0036] Optionally, the calculation unit is specifically used to: determine the row and column numbers of each control point in the first resampled remote sensing image, and calculate the longitude and latitude information and elevation information corresponding to each control point according to the row and column numbers and the preset digital elevation model; determine the ground coordinates of each control point according to the longitude and latitude information and the elevation information, and determine the image point coordinates corresponding to each control point in the first resampled remote sensing image; determine the regularized image point coordinates and the regularized ground coordinates corresponding to each control point according to the row and column numbers, the ground coordinates and the image point coordinates; calculate the initialization RPC parameters according to the row and column numbers, the regularized image point coordinates and the regularized ground coordinates.
[0037] Optionally, the determination unit is specifically used to: resample the reference image to obtain a second resampled remote sensing image, wherein the second resampled remote sensing image has the same resolution as the first resampled remote sensing image; determine the position information of all grid units in the effective image area in the first sampled remote sensing image, and set a plurality of third grid units in the second resampled remote sensing image according to the position information and the preset window size; and perform same-name point matching on each of the third grid units at the same position with the second grid unit according to the preset dense matching method to obtain a plurality of same-name control points, wherein each of the same-name control points is any pixel point in the third grid unit.
[0038] Optionally, the determination unit is specifically used to: determine the row and column numbers, longitude and latitude information and elevation information of each of the control points with the same name in the second resampled remote sensing image, and calculate reference RPC parameters according to the row and column numbers, longitude and latitude information and elevation information corresponding to each control point with the same name; calculate the RPC correction parameters according to the reference RPC parameters and the initial RPC parameters.
[0039] Optionally, the determination unit is specifically used to: calculate an RPC parameter error equation based on the reference RPC parameters and the initial RPC parameters, linearize the RPC parameter error equation to obtain a linearized RPC parameter error equation; solve the linearized RPC parameter error equation to obtain initial RPC correction parameters, and determine whether the initial RPC correction parameters are within a preset limit range; if not, continue to iteratively calculate to obtain new RPC correction parameters until the new RPC correction parameters are within the preset limit range, and determine the current number of iterations; determine whether the current number of iterations is greater than a preset threshold; if not, continue to iteratively calculate to obtain RPC correction parameters until the number of iterations is greater than the preset threshold, determine the RPC correction parameters obtained in the last iteration, and optimize the initial RPC parameters according to the RPC correction parameters obtained in the last iteration to obtain optimized RPC parameters.
[0040] Compared with the prior art, the solution provided by the embodiment of the present application has the following beneficial effects:
[0041] 1. In the solution provided in the embodiment of the present application, the control points are automatically extracted from the rough geometric correction image to ensure the number and extraction efficiency of the control points. By introducing the digital elevation model into the correction process of the rough geometric correction image, it not only avoids the problem of poor accuracy and effect of the corrected image caused by relying on two-dimensional plane control points to correct terrain changes in the traditional correction process, but also improves the adaptability of the solution;
[0042] 2. In the solution provided in the embodiment of the present application, not only are multiple control points with the same name obtained from the reference image through a dense matching method to ensure the data and uniform distribution of control points with the same name, but the accuracy of the control points is also ensured by constructing an RPC parameter error equation and iteratively obtaining RPC correction parameters based on preset constraints and optimizing the initial RPC parameters through the RPC correction parameters, thereby avoiding the problems of small number of control points, excessively high accuracy requirements and strictly restricted distribution in the traditional correction process. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 A schematic diagram of a flow chart of a correction method for a geometrically roughly corrected image provided in an embodiment of the present application;
[0044] Figure 2 A schematic diagram of grid unit division of a first resampled remote sensing image provided in an embodiment of the present application;
[0045] Figure 3 A schematic diagram of multiple control points with the same name of a reference image provided by an embodiment of the present application;
[0046] Figure 4 A schematic diagram of a simple process for solving RPC correction parameters provided in an embodiment of the present application;
[0047] Figure 5a A remote sensing image of a geometrically roughly corrected image to be corrected provided in an embodiment of the present application;
[0048] Figure 5b A topographic change map in a remote sensing image of a geometrically roughly corrected image to be corrected provided in an embodiment of the present application;
[0049] Figure 6a A comparison diagram of a remote sensing image corrected by a traditional solution for a plain area provided in an embodiment of the present application, a remote sensing image corrected by the present application solution, and a reference image;
[0050] Figure 6b A comparison diagram of a remote sensing image corrected by a traditional solution in a plain area and a reference image provided in an embodiment of the present application;
[0051] Figure 6c A comparison diagram of a remote sensing image corrected by the present application scheme and a reference image of a plain area provided in an embodiment of the present application;
[0052] Figure 7a A comparison diagram of a remote sensing image corrected by a traditional solution in a mountainous area provided in an embodiment of the present application, a remote sensing image corrected by the solution of the present application, and a reference image;
[0053] Figure 7bA comparison diagram of a remote sensing image corrected by a traditional method in a mountainous area and a reference image provided in an embodiment of the present application;
[0054] Figure 7c A comparison diagram of a remote sensing image corrected by the present application scheme and a reference image of a mountain area provided in an embodiment of the present application;
[0055] Figure 8 A schematic diagram of the structure of a correction device for roughly geometrically correcting an image provided in an embodiment of the present application. DETAILED DESCRIPTION
[0056] In the solutions provided in the embodiments of this application, the described embodiments are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0057] The following is a further detailed description of a correction method for a geometric rough correction image provided by an embodiment of the present application in conjunction with the accompanying drawings. The specific implementation of the method may include the following steps (the method flow is as follows: Figure 1 shown):
[0058] Step 101: The computer device automatically extracts control points from the rough geometric correction image to be corrected, and calculates initial RPC parameters according to the control points and a preset digital elevation model.
[0059] Specifically, in the solution provided in the embodiment of the present application, there are many ways to automatically extract control points from the rough geometric correction image to be corrected. The following is an explanation using a preferred method as an example.
[0060] In one possible implementation, control points are automatically extracted from a rough geometric correction image to be corrected, including: resampling the rough geometric correction image to be corrected according to a preset sampling ratio to obtain a first resampled remote sensing image, and determining a valid image area from the first resampled remote sensing image according to the pixel value of each image point; setting a plurality of first grid units in the first resampled remote sensing image according to a preset window size, and screening each of the first grid units to determine all second grid units in the valid image area; determining the corner points of each second grid unit located in the valid image area, and using all the determined corner points as the control points.
[0061] Specifically, the rough geometric correction image to be corrected generally has more pixels. When extracting control points from the rough geometric correction image to be corrected, in order to reduce the computational workload and improve the correction efficiency, it is usually necessary to resample the rough geometric correction image to be corrected to obtain a resampled remote sensing image, and then extract control points from the resampled remote sensing image.
[0062] Furthermore, in the preset coordinate system, the computer device generally saves the remote sensing image in the form of a matrix, but for the preset coordinate system, the geometric rough correction image is generally placed obliquely when saved. When the computer device saves the image that needs geometric rough correction, it is necessary to fill the invalid image area (the area with a pixel value of 0) outside the effective image area (the area with a pixel value of 1) corresponding to the geometric rough correction image to obtain a rectangular form. Therefore, when the computer device extracts control points from the first resampled remote sensing image, it is necessary to determine the effective image area corresponding to the geometric rough correction image from the first resampled remote sensing image, and then set a plurality of first grid units in the first resampled remote sensing image according to a preset window size and a preset interval, wherein each first grid unit includes a plurality of pixel points. Since there are effective image areas and invalid image areas in the first resampled remote sensing image, after setting the first grid unit, it is necessary to screen the grid units to screen out the second grid units located in the effective image area. Specifically, there are multiple ways to filter out the second grid units located in the valid area from the first grid, for example, determining all corner points in each first grid unit, and determining the pixel value of each corner point, and determining the number of corner points with a pixel value of 1 based on the pixel value; if the number is greater than a preset number, it is determined that the first grid unit is located in the valid image area, and the first grid unit is used as the second grid unit.
[0063] Further, after all second grid units located in the effective image area are determined from the plurality of first grid units, corner points located in the effective image area in each of the second grid units are determined, and all the determined corner points are used as control points.
[0064] Taking as an example to facilitate understanding of the above process of automatically extracting control points from the geometrically roughly corrected image to be corrected, the following is explained in the form of an example.
[0065] For example, see Figure 2, resample the input rough geometric correction image to be corrected at a ratio of 1:100 to obtain a first resampled remote sensing image, and then perform effective value judgment on each upper and lower left and right edge of the first resampled remote sensing image from the upper and lower and left and right directions, wherein effective value judgment refers to judging the pixel value of each pixel point, determining the effective image area with a pixel value of 1 according to the judgment result, and outlining the effective image area in the first resampled remote sensing image. Divide the effective image area into grids according to a preset window size of 256*256 to obtain multiple first grid units, and then select second grid units located in the effective image area from the multiple grid units, determine the corner points located in the effective image area in each second grid unit, and use all the determined corner points as control points.
[0066] Further, after the control points are determined, initial RPC parameters need to be calculated based on the control points and a preset digital elevation model. Specifically, there are many ways to calculate the initial RPC parameters based on the control points and a preset digital elevation model, and a preferred way is described below as an example.
[0067] In one possible implementation, initial RPC parameters are calculated based on the control points and a preset digital elevation model, including: determining the row and column numbers of each control point in the first resampled remote sensing image, and calculating the longitude and latitude information and elevation information corresponding to each control point based on the row and column numbers and the preset digital elevation model; determining the ground coordinates of each control point based on the longitude and latitude information and the elevation information, and determining the image point coordinates corresponding to each control point in the first resampled remote sensing image; determining the regularized image point coordinates and the regularized ground coordinates corresponding to each control point based on the row and column numbers, the ground coordinates, and the image point coordinates; and calculating the initialization RPC parameters based on the row and column numbers, the regularized image point coordinates, and the regularized ground coordinates.
[0068] Specifically, in the solution provided in the embodiment of the present application, after determining the row and column numbers of each control point in the first resampled remote sensing image, the specific steps of calculating the initialization RPC parameters according to the row and column numbers are as follows:
[0069] (1-1) Calculate the corresponding ground longitude and latitude coordinates of each control point according to its row and column numbers, and obtain the elevation information corresponding to each control point through a preset digital elevation model (DEM).
[0070] Specifically, the latitude and longitude information corresponding to each control point is calculated by the following formula:
[0071]
[0072] Among them, B represents the latitude coordinate of each control point; L represents the longitude coordinate of each control point; x represents the row number corresponding to each control point; y represents the column number corresponding to each control point; dfGeoTrans[m] represents the preset transformation parameters, m = 1, 2, 3, 4, 5, 6.
[0073] Furthermore, the elevation information of each control point is calculated according to the preset digital elevation model and the latitude and longitude coordinates of each control point by the following formula:
[0074] H=f(B,L) (2)
[0075] Among them, H represents the elevation information of each control point; f(B,L) represents the preset digital elevation model.
[0076] (1-2) Calculate the initial rational polynomial coefficient (RPC) parameters according to the latitude and longitude information and elevation information corresponding to each control point.
[0077] First, the image point coordinates corresponding to each control point are determined in the first resampled remote sensing image, and the ground coordinates (B, L, H) corresponding to each control point are determined according to the latitude and longitude information and elevation information of each control point. Then, the regularized image point coordinates and regularized ground coordinates corresponding to each image point are calculated according to the row and column numbers, image point coordinates and ground coordinates of each control point by the following formula:
[0078]
[0079]
[0080] Among them, (X′, Y′) represents the regularized image point coordinates corresponding to each control point; (B′, L′, H′) represents the regularized ground coordinates corresponding to each control point; Sample represents the row number corresponding to each control point; line represents the column number corresponding to each control point; Latitude represents the latitude coordinate corresponding to each control point; Longitude represents the longitude coordinate corresponding to each control point; Height represents the elevation information corresponding to each control point; SAMP_OFF, SAMP_SCALE, LINE_OFF, LINE_SCALE represent the regularization parameters corresponding to the image point coordinates; LAT_OFF, LAT_SCALE, LONG_OFF, LONG_SCALE, HEIGHT_OFF, HEIGHT_SCALE represent the regularization parameters corresponding to the ground coordinates.
[0081] Furthermore, the regularization parameters corresponding to the above-mentioned image point coordinates and the regularization parameters corresponding to the ground coordinates are calculated by the following formula:
[0082]
[0083]
[0084] Among them, (x i ,y i ) represents the image point coordinates of the i-th control point, i = 1, 2, ..., k, k represents the number of control points; (B i , L i , H i ) represents the ground coordinates of the i-th control point.
[0085] Furthermore, the rational polynomial function model includes 78 rational polynomial coefficients, and there is a certain correlation between the 78 parameters. In the solution provided in the embodiment of the present application, the distribution of control points is related to the image registration efficiency to some extent. Under the premise of high registration efficiency, in order to improve the calculation efficiency, ensure the relative independence of rational polynomial coefficients and eliminate the influence of equation pathology on the accuracy of solving rational polynomial coefficients, a part of RPC parameters are selected for solution. For example, some RPC parameters are (a1~a 20 , b1~b 20 , c1~c 20 , d1~d 20 ).
[0086] Specifically, some initial RPC parameters are calculated using the following formula:
[0087]
[0088] Num s (B′, L′, H′)=c1+c2L′+c3B′+c4H′+c5L′B′+c6L′H′+c7B′H′+c8L′ 2 +c9B′ 2 +c 10 H′ 2 +c 11 B′L′H′+c 12 L′ 3 +c 13 L′B′ 2 +c 14 L′H′ 2 +c 15 L′ 2 B′+c 16 B′ 3 +c 17 B′H′ 2 +c18 L′ 2 H′+c 19 B′ 2 H′+c 20 H′ 3 Den s (B′,L′,H′)=d1+d2L′+d3B′+d4H′+d5L′B′+d6L′H′+d7B′H′+d8L′ 2 +d9B′ 2 +d 10 H′ 2 +d 11 B′L′H′+d 12 L′ 3 +d 13 L′B′ 2 +d 14 L′H′ 2 +d 15 L′ 2 B′+d 16 B′ 3 +d 17 B′H′ 2 +d 18 L′ 2 H′+d 19 B′ 2 H′+d 20 H′ 3 (8)
[0089] Num L (B′,L′,H′)=a1+a2L′+a3B′+a4H′+a5L′B′+a6L′H′+a7B′H′+a8L′ 2 +a9B′ 2 +a 10 H′ 2 +a 11 B′L′H′+a 12 L′ 3 +a 13 L′B′ 2 +a 14 L′H′ 2 +a 15 L′ 2 B′++a8L′ 2 +a9B′ 2 +a 10 H′ 2 +a 11 B′L′H′+a 12 L′ 3 +a 13 L′B′ 2 +a 14 L′H′2 +a 15 L′ 2 B′+a 16 B′ 3 +a 17 B′H′ 2 +a 18 L′ 2 H′+a 19 B′ 2 H′+a 20 H′ 3 (9)
[0090] Den L (B′, L′, H′)=b1+b2L′+b3B′+b4H′+b5L′B′+b6L′H′+b7B′H′+b8L′ 2 +b9B′ 2 +b 10 H′ 2 +b 11 B′L′H′+b 12 L′ 3 +b 13 L′B′ 2 +b 14 L′H′ 2 +b 15 L′ 2 B′+b 16 B′ 3 +b 17 B′H′ 2 +b 18 L′ 2 H′+b 19 B′ 2 H′+b 20 H′ 3 (10)
[0091] Among them, a i , b i , c i , d i represents the coefficient of the rational function model, i.e., the initial RPC parameters, i=1, 2,…, 20; b1, d1 represent constants, usually 1.
[0092] In step 102, the computer device determines a reference image corresponding to the rough geometric correction image to be corrected from a preset database, determines a plurality of control points with the same name from the reference image by a preset dense matching method, and calculates RPC correction parameters based on the control points with the same name and the initial RPC parameters.
[0093] In the solution provided in the embodiment of the present application, the computer device is provided with a plurality of reference images corresponding to the remote sensing images, and the reference image refers to a remote sensing image that has been finely corrected. Before performing the matching of the same-name points, it is necessary to determine the reference image corresponding to the rough geometric correction image to be corrected from the preset database. Specifically, there are many ways to determine the reference image corresponding to the rough geometric correction image to be corrected from the preset data, for example, first determine the minimum outer expansion matrix of the rough geometric correction image to be corrected, and then extract the reference image corresponding to the rough geometric correction image to be corrected from the preset database according to the minimum outer expansion matrix.
[0094] Further, after determining the reference image corresponding to the rough geometric correction image to be corrected from the preset database, the reference image and the rough geometric correction image to be corrected are matched with the same-name points to determine a plurality of control points with the same name, wherein the control points with the same name may be points corresponding to the control points in the reference image, or may be other points, for example, other points include but are not limited to ground feature points, path intersection points or undulation points with the same name as the rough geometric correction image to be corrected in the reference image, see Figure 3 FIG. 1 is a schematic diagram of multiple control points with the same name in a reference image provided by an embodiment of the present application. Specifically, there are multiple ways to determine multiple control points with the same name from a reference image, and a preferred way is used as an example to illustrate below.
[0095] In one possible implementation, a plurality of control points with the same name are determined from the reference image by a preset dense matching method, including: resampling the reference image to obtain a second resampled remote sensing image, wherein the second resampled remote sensing image has the same resolution as the first resampled remote sensing image; determining the position information of all grid cells of the effective image area in the first resampled remote sensing image, and setting a plurality of third grid cells in the second resampled remote sensing image according to the position information and the preset window size; and matching each of the third grid cells at the same position with the second grid cell according to the preset dense matching method to obtain a plurality of control points with the same name, wherein each of the control points with the same name is any pixel point in the third grid cell.
[0096] Further, after determining multiple control points with the same name, RPC correction parameters are calculated based on the control points with the same name and the initial RPC parameters. Specifically, there are multiple ways to calculate RPC correction parameters based on the control points with the same name and the initial RPC parameters, and a preferred way is described below as an example.
[0097] In one possible implementation, RPC correction parameters are calculated based on the control points with the same name and the initial RPC parameters, including: determining the row and column numbers, longitude and latitude information, and elevation information of each of the control points with the same name in the second resampled remote sensing image, and calculating reference RPC parameters based on the row and column numbers, longitude and latitude information, and elevation information corresponding to each control point with the same name; and calculating the RPC correction parameters based on the reference RPC parameters and the initial RPC parameters.
[0098] Specifically, the row and column numbers of each control point with the same name are determined in the second resampled remote sensing image corresponding to the reference image, and the ground longitude and latitude coordinates corresponding to each control point with the same name are calculated by formula (1) according to the row and column numbers of each control point with the same name, and then the elevation information corresponding to each control point is calculated by the DEM model, the ground longitude and latitude coordinates and formula (2), and then the reference RPC parameters are calculated according to the above formulas (3) to (10), and then the RPC correction parameters are calculated according to the reference RPC parameters and the initial RPC parameters. In the scheme provided in the embodiment of the present application, there are multiple ways to calculate the RPC correction parameters according to the reference RPC parameters and the initial RPC parameters, and a preferred way is used as an example to illustrate below.
[0099] In a possible implementation manner, calculating the RPC correction parameter according to the reference RPC parameter and the initial RPC parameter includes:
[0100] An RPC parameter error equation is calculated according to the reference RPC parameter and the initial RPC parameter, and the RPC parameter error equation is linearized to obtain a linearized RPC parameter error equation;
[0101] Solving the linearized RPC parameter error equation to obtain an initial RPC correction parameter, and determining whether the initial RPC correction parameter is within a preset limit range;
[0102] If not, continue to iterate and calculate to obtain new RPC correction parameters until the new RPC correction parameters are within the preset limit range, and determine the current number of iterations;
[0103] Determine whether the current number of iterations is greater than a preset threshold;
[0104] If it is not greater than the preset threshold, continue to iterate and calculate to obtain the RPC correction parameters until the number of iterations is greater than the preset threshold, determine the RPC correction parameters obtained from the last iteration, and optimize the initial RPC parameters according to the RPC correction parameters obtained from the last iteration to obtain the optimized RPC parameters.
[0105] Specifically, firstly, the initial RPC parameters and the reference RPC parameters are respectively substituted into formula (7) to obtain two sets of equations, the two sets of equations are subtracted to obtain the error equation of the RPC parameters, and then the error equation of the RPC parameters is linearized to obtain the following error equation:
[0106]
[0107] Furthermore, the above formula (11) is transformed to obtain the following formula:
[0108] V=AΔ-l (12)
[0109] Where V = (v X ,v Y ), represents the error parameter of the regularized image point coordinates; △ represents the RPC correction parameter, Δ=[ΔB ΔL ΔH] T ;
[0110] Furthermore, the RPC correction parameters can be calculated by the least square method according to the above formula (12) as follows:
[0111] Δ=[ΔB ΔL ΔH] T =(A T A) -1 A T l (13)
[0112] Specifically, in the process of solving the RPC correction parameters, due to the correlation between the unknowns, the ridge estimation algorithm will be used instead of the least squares iteration solution in the calculation process until the solved RPC correction parameters are within the preset limit range, see Figure 4 A schematic diagram of a simple flow chart for solving RPC correction parameters provided in an embodiment of the present application.
[0113] In the solution provided in the embodiment of the present application, not only the data and uniform distribution of the control points with the same name are ensured by obtaining multiple control points with the same name from the reference image through the dense matching method, but also the accuracy of the control points is ensured by constructing the RPC parameter error equation and iteratively obtaining the RPC correction parameters according to the preset constraints and optimizing the initial RPC parameters through the RPC correction parameters, thus avoiding the problems of small number of control points, high accuracy requirements and strictly limited distribution in the traditional correction process.
[0114] Step 103: The computer device optimizes the initial RPC parameters according to the RPC correction parameters to obtain optimized RPC parameters, and generates a corrected orthophoto according to the optimized RPC parameters and the digital elevation model.
[0115] In the solution provided in the embodiment of the present application, after calculating the RPC correction parameters, the computer device optimizes the initial RPC parameters according to the RPC correction parameters to obtain optimized RPC parameters, and then brings the optimized RPC parameters into formulas (3) to (7) to recalculate the longitude and latitude information and elevation information of each control point, and then generates a corrected orthophoto based on the recalculated longitude and latitude information, elevation information and DEM model of each control point.
[0116] It should be understood that in the solution provided in the embodiments of the present application, the computer device includes but is not limited to a desktop computer, a laptop computer or a server with image data processing function, etc. When the computer device performs secondary correction on the rough geometric correction image to be corrected, it not only involves the hardware environment but also the software environment. The hardware environment and software environment of the computer device are briefly introduced below in the form of examples.
[0117] (1) Hardware environment
[0118] For example, the computer equipment hardware includes: two-way ten-core 2.0GHZ processors, Inspur rack server 128GB memory and graphics card, among which the graphics card model is NVIDIA P40 and the size of the graphics card is 22GB.
[0119] (2) Software Environment
[0120] For example, the software environment includes: server operating system: Red-Hat 7.2; OpenCV library: version 3.0; GDAL library: version 2.1.3; Gcc: version 4.7 or above.
[0121] Furthermore, in the solution provided in the embodiment of the present application, after the computer device performs secondary correction on the rough geometric correction image to obtain the corrected orthophoto, in order to facilitate the explanation of the effect of correcting the rough geometric correction image through the solution provided in the embodiment of the present application, the correction effect is explained below in the form of an example.
[0122] For example, the rough geometric correction image to be corrected is a 4-scene CBERS04-star level 2 archived product, which is a rough geometric correction product after system-level geometric correction; the reference image is a 2-meter resolution orthophoto with a plane accuracy of less than 5 meters (mountainous areas); digital elevation model DEM: global 30m resolution DEM data. See Table 1 for the comparison data of the correction results of the scheme provided in the embodiment of the present application and the traditional scheme.
[0123] Table 1
[0124]
[0125]
[0126] For further information, see Figure 5a and Figure 5b , wherein a is a remote sensing image of a geometrically roughly corrected image to be corrected provided in an embodiment of the present application; 5b is a topographic change map in a remote sensing image of a geometrically roughly corrected image to be corrected provided in an embodiment of the present application; see Figure 6a A comparison diagram of a remote sensing image corrected by a traditional solution for a plain area provided in an embodiment of the present application, a remote sensing image corrected by the present application solution, and a reference image; see Figure 6b A comparison diagram of a remote sensing image corrected by a traditional solution in a plain area provided in an embodiment of the present application and a reference image; see Figure 6c A comparison diagram of a remote sensing image corrected by the present application scheme and a reference image of a plain area provided in the present application embodiment; see Figure 7a A comparison diagram of a remote sensing image corrected by a traditional solution in a mountainous area provided in an embodiment of the present application, a remote sensing image corrected by the present application solution, and a reference image; see Figure 7b A comparison diagram of a remote sensing image corrected by a traditional method in a mountainous area provided in an embodiment of the present application and a reference image; see Figure 7c A comparison diagram of a remote sensing image of a mountain area after correction and a reference image provided by the embodiment of the present application. See Table 2 for the geometric accuracy before and after correction.
[0127] Table 2
[0128]
[0129]
[0130] In the solution provided in the embodiment of the present application, control points are automatically extracted from the rough geometric correction image, and the initial RPC parameters are reversely solved through a preset digital elevation model, and then the initial RPC parameters corresponding to the rough geometric correction image are optimized and adjusted by extracting the control points with the same name from the reference image, thereby eliminating the erroneous geographic coordinates and projection information in the rough geometric correction image itself. Therefore, in the solution provided in the embodiment of the present application, control points are automatically extracted from the rough geometric correction image to ensure the number and extraction efficiency of control points. By introducing the digital elevation model into the correction process of the rough geometric correction image, not only the problem of poor accuracy and effect of the corrected image caused by relying on two-dimensional plane control points to correct terrain changes in the traditional correction process is avoided, but also the applicability of the solution is improved.
[0131] Based on Figure 1 The invention concept of the method shown in FIG. 1 is the same as that of the method shown in FIG. 1 , and the embodiment of the present application provides a correction device for geometrically roughly correcting an image, see Figure 8 , the device comprises:
[0132] The calculation unit 801 is used to automatically extract control points from the rough geometric correction image to be corrected, and calculate the initial RPC parameters according to the control points and a preset digital elevation model;
[0133] The determining unit 802 is used to determine a reference image corresponding to the rough geometric correction image to be corrected from a preset database, determine a plurality of control points with the same name from the reference image by a preset dense matching method, and calculate RPC correction parameters according to the control points with the same name and the initial RPC parameters;
[0134] The correction unit 803 is used to optimize the initial RPC parameters according to the RPC correction parameters to obtain optimized RPC parameters, and generate a corrected orthophoto according to the optimized RPC parameters and the digital elevation model.
[0135] Optionally, the calculation unit 801 is specifically used to: resample the geometric coarse correction image to be corrected according to a preset sampling ratio to obtain a first resampled remote sensing image, and determine a valid image area from the first resampled remote sensing image according to the pixel value of each image point; set a plurality of first grid units in the first resampled remote sensing image according to a preset window size, and screen each of the first grid units to determine all second grid units in the valid image area; determine the corner points of each of the second grid units, and use all the determined corner points as the control points.
[0136] Optionally, the calculation unit 801 is specifically used to: determine the row and column numbers of each control point in the first resampled remote sensing image, and calculate the longitude and latitude information and elevation information corresponding to each control point according to the row and column numbers and the preset digital elevation model; determine the ground coordinates of each control point according to the longitude and latitude information and the elevation information, and determine the image point coordinates corresponding to each control point in the first resampled remote sensing image; determine the regularized image point coordinates and the regularized ground coordinates corresponding to each control point according to the row and column numbers, the ground coordinates and the image point coordinates; calculate the initialization RPC parameters according to the row and column numbers, the regularized image point coordinates and the regularized ground coordinates.
[0137] Optionally, the determination unit 802 is specifically used to: resample the reference image to obtain a second resampled remote sensing image, wherein the second resampled remote sensing image has the same resolution as the first resampled remote sensing image; determine the position information of all grid cells of the effective image area in the first sampled remote sensing image, and set a plurality of third grid cells in the second resampled remote sensing image according to the position information and the preset window size; and perform same-name point matching on each of the third grid cells at the same position with the second grid cell according to the preset dense matching method to obtain a plurality of same-name control points, wherein each of the same-name control points is any pixel point in the third grid cell.
[0138] Optionally, the determination unit 802 is specifically used to: determine the row and column numbers, longitude and latitude information and elevation information of each of the control points with the same name in the second resampled remote sensing image, and calculate reference RPC parameters according to the row and column numbers, longitude and latitude information and elevation information corresponding to each control point with the same name; calculate the RPC correction parameters according to the reference RPC parameters and the initial RPC parameters.
[0139] Optionally, the determination unit 802 is specifically used to: calculate an RPC parameter error equation according to the reference RPC parameters and the initial RPC parameters, linearize the RPC parameter error equation to obtain a linearized RPC parameter error equation; solve the linearized RPC parameter error equation to obtain initial RPC correction parameters, and determine whether the initial RPC correction parameters are within a preset limit range; if not, continue to iteratively calculate to obtain new RPC correction parameters until the new RPC correction parameters are within the preset limit range, and determine the current number of iterations; determine whether the current number of iterations is greater than a preset threshold; if not, continue to iteratively calculate to obtain RPC correction parameters until the number of iterations is greater than the preset threshold, determine the RPC correction parameters obtained in the last iteration, and optimize the initial RPC parameters according to the RPC correction parameters obtained in the last iteration to obtain optimized RPC parameters.
[0140] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0141] The present application 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 box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes 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.
[0142] 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.
[0143] 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.
[0144] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A correction method for geometrically roughly corrected images, It is characterized in that include: Automatically extract control points from the rough geometric correction image to be corrected, and calculate initial RPC parameters based on the control points and a preset digital elevation model; Determine a reference image corresponding to the rough geometric correction image to be corrected from a preset database, determine a plurality of control points with the same name from the reference image by a preset dense matching method, and calculate RPC correction parameters according to the control points with the same name and the initial RPC parameters; Optimizing the initial RPC parameters according to the RPC correction parameters to obtain optimized RPC parameters, and generating a corrected orthophoto according to the optimized RPC parameters and the digital elevation model; Automatically extract control points from the rough geometric correction image to be corrected, including: Resampling the rough geometric correction image to be corrected according to a preset sampling ratio to obtain a first resampled remote sensing image, and determining a valid image area from the first resampled remote sensing image according to a pixel value of each image point; Setting a plurality of first grid units in the first resampled remote sensing image according to a preset window size, and screening each of the first grid units to determine all second grid units in the effective image area; The corner points of each of the second grid units are determined, and all the determined corner points are used as the control points.
2. The method according to claim 1, It is characterized in that The initial RPC parameters are calculated based on the control points and the preset digital elevation model, including: Determine the row and column numbers of each control point in the first resampled remote sensing image, and calculate the longitude and latitude information and elevation information corresponding to each control point according to the row and column numbers and the preset digital elevation model; Determine the ground coordinates of each control point according to the latitude and longitude information and the elevation information and determine the image point coordinates corresponding to each control point in the first resampled remote sensing image; Determine the regularized image point coordinates and the regularized ground coordinates corresponding to each control point according to the row and column numbers, the ground coordinates and the image point coordinates; The initialization RPC parameters are calculated according to the row and column numbers, the regularized image point coordinates and the regularized ground coordinates.
3. The method according to claim 2, It is characterized in that Determine a plurality of control points with the same name from the reference image by a preset dense matching method, including: Resampling the reference image to obtain a second resampled remote sensing image, wherein the second resampled remote sensing image has the same resolution as the first resampled remote sensing image; Determine the position information of all grid cells of the effective image area in the first resampled remote sensing image, and set a plurality of third grid cells in the second resampled remote sensing image according to the position information and the preset window size; According to the preset dense matching method, each of the third grid units at the same position is matched with the second grid unit to obtain a plurality of control points with the same name, wherein each of the control points with the same name is any pixel point in the third grid unit.
4. The method according to claim 3, It is characterized in that Calculating RPC correction parameters according to the control points with the same name and the initial RPC parameters includes: Determine the row and column number, longitude and latitude information, and elevation information of each of the control points with the same name in the second resampled remote sensing image, and calculate reference RPC parameters according to the row and column number, longitude and latitude information, and elevation information corresponding to each of the control points with the same name; The RPC correction parameters are calculated based on the reference RPC parameters and the initial RPC parameters.
5. The method according to claim 4, It is characterized in that The RPC correction parameter is calculated according to the reference RPC parameter and the initial RPC parameter, including: An RPC parameter error equation is calculated according to the reference RPC parameter and the initial RPC parameter, and the RPC parameter error equation is linearized to obtain a linearized RPC parameter error equation; Solving the linearized RPC parameter error equation to obtain an initial RPC correction parameter, and determining whether the initial RPC correction parameter is within a preset limit range; If not, continue to iterate and calculate to obtain new RPC correction parameters until the new RPC correction parameters are within the preset limit range, and determine the current number of iterations; Determine whether the current number of iterations is greater than a preset threshold; If it is not greater than the preset threshold, continue to iterate and calculate to obtain the RPC correction parameters until the number of iterations is greater than the preset threshold, determine the RPC correction parameters obtained from the last iteration, and optimize the initial RPC parameters according to the RPC correction parameters obtained from the last iteration to obtain the optimized RPC parameters.
6. A correction device for geometrically roughly correcting an image, It is characterized in that include: A calculation unit, used for automatically extracting control points from the rough geometric correction image to be corrected, and calculating initial RPC parameters according to the control points and a preset digital elevation model; A determination unit, used to determine a reference image corresponding to the rough geometric correction image to be corrected from a preset database, determine a plurality of control points with the same name from the reference image by a preset dense matching method, and calculate RPC correction parameters according to the control points with the same name and the initial RPC parameters; A correction unit, configured to optimize the initial RPC parameters according to the RPC correction parameters to obtain optimized RPC parameters, and generate a corrected orthophoto according to the optimized RPC parameters and the digital elevation model; Resampling the rough geometric correction image to be corrected according to a preset sampling ratio to obtain a first resampled remote sensing image, and determining a valid image area from the first resampled remote sensing image according to a pixel value of each image point; Setting a plurality of first grid units in the first resampled remote sensing image according to a preset window size, and screening each of the first grid units to determine all second grid units in the effective image area; The corner points of each of the second grid units are determined, and all the determined corner points are used as the control points.
7. The device according to claim 6, It is characterized in that The computing unit is specifically used for: Determine the row and column numbers of each control point in the first resampled remote sensing image, and calculate the longitude and latitude information and elevation information corresponding to each control point according to the row and column numbers and the preset digital elevation model; Determine the ground coordinates of each control point according to the latitude and longitude information and the elevation information and determine the image point coordinates corresponding to each control point in the first resampled remote sensing image; Determine the regularized image point coordinates and the regularized ground coordinates corresponding to each control point according to the row and column numbers, the ground coordinates and the image point coordinates; The initialization RPC parameters are calculated according to the row and column numbers, the regularized image point coordinates, and the regularized ground coordinates.
8. The device according to any one of claims 6 to 7, It is characterized in that The determining unit is specifically configured to: Resampling the reference image to obtain a second resampled remote sensing image, wherein the second resampled remote sensing image has the same resolution as the first resampled remote sensing image; Determine the position information of all grid cells of the effective image area in the first resampled remote sensing image, and set a plurality of third grid cells in the second resampled remote sensing image according to the position information and the preset window size; According to the preset dense matching method, each of the third grid units at the same position is matched with the second grid unit to obtain a plurality of control points with the same name, wherein each of the control points with the same name is any pixel point in the third grid unit.
