A method for SAR image overlapping area positioning based on spatial geometric ratio relationship

By using a method based on the spatial geometric ratio relationship, a rational function model is constructed to calculate the overlay area mask of SAR images, which solves the problem of image quality degradation caused by the overlay phenomenon of SAR images in mountainous areas, and achieves fast and accurate positioning and processing. Improved the applicability of SAR images.

CN114463417BInactive Publication Date: 2024-08-23WUHAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210012784.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-07
Publication Date
2024-08-23
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The image quality of SAR images in mountainous areas is degraded due to overlapping phenomenon. Traditional positioning methods are complex and require strict model parameters, which affects large-scale application.

Method used

Using a method based on the spatial geometric ratio relationship, a rational function model is constructed by obtaining the incident angle and DEM data of the SAR image, calculating the ratio relationship between the ground range and the slant range, and generating an overlay area mask to achieve rapid positioning.

Benefits of technology

It simplifies the overlay area positioning process, improves the efficiency and accuracy of the method, does not require complex calculations, is suitable for different image types, and improves the applicability of SAR images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114463417B
    Figure CN114463417B
Patent Text Reader

Abstract

The present invention relates to a SAR image overlap area positioning method based on a spatial geometric ratio relationship. First, SAR data and DEM data of the corresponding area are obtained; the image incidence angle is obtained according to the XML file attached to the SAR image; the RPC parameter file is read to construct a rational function model RFM of the satellite-borne SAR image; the geodetic coordinates corresponding to the coordinates of the four corner image points of the SAR image are determined, and the minimum bounding rectangle composed of the geodetic coordinates is obtained; the DEM data is clipped according to the minimum bounding rectangle and resampled; the threshold of the ratio relationship between the number of object pixels and the number of image pixels when overlap occurs is determined; on the basis of object-side block division of the resampled DEM data, the mask of each object-side sub-block is calculated in a multi-threaded parallel manner, and the masks are merged and post-processed to generate the final overlap mask. The method proposed by the present invention can be used to quickly generate SAR overlap masks, providing technical guarantee for the further application of SAR images.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of microwave remote sensing, and in particular relates to a SAR image overlapping area positioning method based on a spatial geometric ratio relationship. Background Art

[0002] Synthetic Aperture Radar (SAR) is an active imaging sensor that uses microwaves to detect surface targets. It has the characteristics of all-day and all-weather imaging. It can be used as an important supplement to optical remote sensing and has been widely used in surveying and mapping, ocean, etc. However, due to the characteristics of side-view geometric imaging, SAR will suffer from serious geometric distortion, such as overlap and shadow, when the terrain is undulating. The degree of distortion is related to the angle of incidence. When the slope angle is greater than the angle of incidence, overlap will occur. For overlap and shadow, the scattered signals from these distorted areas contain almost no information about the type of terrain coverage, which seriously affects the further large-scale application of SAR images. In mountainous areas, overlap is the main factor restricting the further application of SAR and seriously affects the image quality. With the large-scale application of SAR technology in military, surveying and mapping and other fields, overlap has become a problem that cannot be ignored. To solve the overlap problem, it is necessary to first determine the location of the overlap area. The traditional overlap area positioning method needs to calculate the change of the slant distance from the target point to the sensor as the distance increases to the coordinate. The method is complex and requires the relevant parameters of the rigorous model. Summary of the invention

[0003] The present invention aims at the deficiencies of the prior art and provides a SAR image overlap area positioning method based on spatial geometric ratio relationship. Starting from SAR imaging geometry, by analyzing the imaging mechanism, a simplified SAR image overlap area positioning method based on spatial geometric ratio relationship is obtained. This method can be used to quickly generate SAR overlap masks, providing technical support for the further application of SAR images.

[0004] In order to achieve the above object, the technical solution provided by the present invention is a SAR image overlapping area positioning method based on spatial geometric ratio relationship, comprising the following steps:

[0005] Step 1: Obtain the original SAR image, estimate the location based on the image center point range, and obtain DEM data covering the area corresponding to the image range;

[0006] Step 2, parse the XML file attached to the SAR image to obtain the image incident angle;

[0007] Step 3, read the RPC parameter file and construct a rational function model of the spaceborne SAR image;

[0008] Step 4, calculating the image point coordinates of the four corner points of the SAR image, converting the image point coordinates of the four corner points into geodetic coordinates, and calculating the corresponding minimum circumscribed rectangle according to the geodetic coordinates;

[0009] Step 5: According to the minimum bounding rectangle obtained in step 4, the DEM data obtained in step 1 is clipped, and the clipped DEM data is resampled to a specified resolution;

[0010] Step 6, constructing the corresponding relationship between ground range and slant range according to the SAR overlapping imaging geometry, and performing spatial geometric transformation to obtain the ratio relationship threshold of object-side pixels and image-side pixels when overlapping occurs;

[0011] Step 7, generating a mask of the overlapping area according to the ratio relationship threshold obtained in step 6, so as to realize rapid positioning of the overlapping area.

[0012] Moreover, the rational function model in step 3 is to express the image point coordinates (R, C) as the ratio of polynomials with the geodetic coordinates (X, Y, Z) as independent variables, that is:

[0013]

[0014] In the formula, (X n ,Y n ,Z n )、(r n ,c n ) represent the regularized coordinates of the geodetic coordinates and the image point coordinates after translation and scaling, and their values ​​are between [-1, 1]; P i (i=1,2,3,4) is a polynomial.

[0015] Each polynomial P i The coordinate components X of each item in (i=1,2,3,4) n , Y n , Z n The maximum power is no more than 3, and the sum of the powers of the coordinate components in each item is no more than 3. n ,Y n ,Z n ) as an example, its specific form is shown in formula (2):

[0016]

[0017] In the formula, a j (j=0,1,…,19) are rational polynomial coefficients. For P2, P3 and P4, we only need to replace a in equation (1) j Replace with b j 、c j and d j That’s it, and b0 and d0 are generally set to 1.

[0018] The rational function model uses regularized coordinates to improve the stability of the solution of each coefficient in the model and reduce the data rounding error caused by excessive data difference during the calculation process. The regularization formula is:

[0019]

[0020] In the formula, X0, Y0, Z0, R0, C0 are the regularized translation parameters, X s , Y s , Z s , R s , C s is the regularized scale coefficient. Both the translation parameter and the scale parameter can be obtained from the RPC file of the SAR image.

[0021] Moreover, the step 4 includes the following sub-steps:

[0022] Step 4.1, obtain the image point coordinates of the four corner points.

[0023] The width and height of the read image are recorded as W and H respectively, and the image point coordinates P of the four corner points are obtained t1 (0,0), P t2 (0,W-1),P t3 (H-1,0), P t4 (H-1,W-1).

[0024] Step 4.2: regularization of image point coordinates.

[0025] P t1 , P t2 , P t3 , P t4 The image point coordinates are regularized according to formula (3), the elevation corresponding to the image point coordinates is set to the average elevation Z0, and the elevation value is regularized according to formula (3) to obtain Set the geodetic coordinate regularization coordinate X n and Y n The initial value is 0, that is

[0026] Step 4.3, the error equation is established.

[0027] Transforming the rational function model (1), we can get the following formula:

[0028]

[0029] In formula (4), the image point coordinate (r n ,c n ) is known, and the elevation value in the geodetic coordinates has been given a zero value, that is, Z n= 0 is known, so the unknown number to be solved in equation (4) is only the plane coordinate X in the geodetic coordinates n and Y n , taking it as an unknown number, the matrix form of the error equation is as follows:

[0030] V=Bx-l,W (5)

[0031] Where W is the weight matrix, which is generally a unit matrix. The expansions of B, x, and l are as follows:

[0032]

[0033] In the formula, f r 0 、f c 0 By (X n ,Y n ,Z n ) is substituted into formula (4) to calculate.

[0034] Step 4.4, solve the unknown parameters.

[0035] Two error equations can be established for each image point. According to the least squares principle, the normal equation is established as follows:

[0036] x=(B T B) -1 (B T 1) (6)

[0037] Each image point corresponds to a geodetic coordinate, and the corresponding unknown number to be solved is the plane coordinate X of the geodetic coordinate. n and Y n , the final X can be obtained by iterative solution n and Y n .

[0038] Step 4.5, obtain the minimum bounding rectangle of the corresponding geographic range of the SAR image.

[0039] The geodetic coordinates solved in step 4.4 are regularized coordinates, which need to be converted into non-regularized coordinates in practical applications, namely:

[0040]

[0041] Calculate the four corner points P t1 , P t2 , P t3 , P t4 The corresponding geodetic coordinates are obtained, and the maximum and minimum values ​​of X and Y of the geodetic coordinates are obtained, and the minimum bounding rectangle is established based on the maximum and minimum value ranges.

[0042] Moreover, in step 6, the ground distance Lground The length in the X direction satisfies the following formula:

[0043]

[0044] Where, L X Indicates L ground The projected length in the X direction, θ is the angle between the distance direction and the X direction.

[0045] Considering the following relationship between slant distance and ground distance:

[0046]

[0047] Where, L slant Indicates the slope distance; L ground For ground distance; Represents the viewing angle, which is equal to the angle of incidence.

[0048] The projection length of the ground in the X direction is L X The resolution Res after DEM resampling g The number of pixels corresponding to this length CNT X The product represents:

[0049] L X =Res g ×CNT X (10)

[0050] The slope range can be determined by the slope range resolution Res g The number of pixels in the corresponding direction CNT s To express:

[0051] L slant =Res s ×CNT s (11)

[0052] In the formula, CNT s represents the number of SAR slant range pixels, that is, the SAR image width W in step 4.1, then equation (11) can be further expressed as:

[0053] L slant =Res s ×W (12)

[0054] Combining equations (8), (9), (10) and (12), we can get:

[0055]

[0056] When the ratio of ground distance to slant range is not less than the threshold TH, the ground distance range is determined to be overlapped, that is:

[0057]

[0058] In actual calculation, the ground distance is not calculated separately but indirectly represented by the projection of the ground distance in the X direction. Formula (14) is converted into the product of resolution and number of pixels:

[0059]

[0060] Where n g ×Res g is the projection of the ground distance in the X direction, Indicates the ground distance, n g Indicates the number of pixels in the DEM in the X direction, n s Indicates the number of pixels in the slant range direction.

[0061] From equations (14) and (15), we can get: When overlap occurs, n g With n s The ratio relationship meets the following conditions:

[0062]

[0063] From formula (16), we can see that when there is no less than TH on the resampled DEM final When the geodetic coordinates (X, Y, Z) corresponding to the pixels and the image point coordinates (R, C) inversely calculated using the positioning model are in the same image square pixel grid, the position corresponding to the geodetic coordinates is determined to be overlapped.

[0064] Moreover, in the step 7, the DEM resampled in step 5 is divided into blocks, and the corresponding geodetic coordinates (X, Y, Z) are obtained pixel by pixel for the DEM sub-blocks. The coordinates (R, C) of the corresponding image points located in the SAR image are calculated using the rational function model in step 3. Different mask values ​​are assigned to the corresponding geodetic coordinate positions (X, Y, Z) according to the number of times the image point coordinates (R, C) are counted in the image square cell and the ratio relationship obtained in step 6. After the mask of each sub-block is calculated in parallel, the sub-block masks are merged into a whole mask. Finally, morphological operations are applied to the merged masks to reduce the "holes" and "holes" in the masks, and the final mask is obtained. The steps include the following sub-steps:

[0065] Step 7.1, divide the DEM data resampled in step 5 into blocks according to the specified size to obtain DEM sub-blocks.

[0066] Step 7.2, obtain the corresponding geodetic coordinates (X, Y, Z) for each pixel of the DEM sub-block, and use the rational function model in step 3 to calculate the coordinates (R, C) of the image point located in the SAR image, obtain the minimum bounding rectangle based on the maximum and minimum values ​​of the image point coordinates, and expand the boundary based on the minimum bounding rectangle to obtain the image block.

[0067] Step 7.3, after obtaining the DEM sub-block and its corresponding image square sub-block, the threshold TH calculated in step 6.2 is used final Generating the mask corresponding to the sub-block includes the following sub-steps:

[0068] Step 7.3.1, open a buffer pBuffer1 of the same size as the resampled DEM sub-block to store the one-dimensional coordinates of the image side, open a buffer pBuffer2 of the same size as the image side sub-block corresponding to the DEM sub-block to record the number of object side units corresponding to a single image side unit, and initialize pBuffer1 and pBuffer2 to 0; the one-dimensional coordinate OneDimCor can be calculated using the two-dimensional image coordinates (R, C), the formula is as follows:

[0069] OneDimCor=R×W+C (17)

[0070] Where W represents the width of the original SAR image.

[0071] Step 7.3.2, traverse the resampled DEM sub-blocks, calculate the (R, C) corresponding to the geodetic coordinates (X, Y, Z) of the ground point according to the DEM image coordinates and projection information, store (R, C) in pBuffer1 in one-dimensional form according to formula (17), and add 1 to the corresponding (R, C) position in pBuffer2.

[0072] Step 7.3.3, when the calculation in step 7.3.2 is completed, traverse pBuffer1 and obtain the value k of the two-dimensional coordinate (R, C) corresponding to the value OneDimCor in pBuffer1 in pBuffer2; when TH final When it is marked as overlapping, it is recorded as FLAG = 2; when it is 0 <k<TH final The time mark is normal, recorded as FLAG=1; the invalid area is recorded as FLAG=0.

[0073] Step 7.3.4, output pBuffer1 and set the same six geographic parameters and projection parameters for the output image as those of the resampled DEM sub-block.

[0074] In step 7.3.5, the data parallel method is used for the block images, and steps 7.3.1 to 7.3.4 are repeated to generate the initial mask block by block.

[0075] Step 7.4, merge the sub-block masks obtained in step 7.3 to generate a mask of the same size as the resampled DEM. The result is the initial object mask corresponding to the SAR image.

[0076] Step 7.5, use the morphological "closing" operation on the initial mask to eliminate some "holes" and "holes" to obtain the final SAR image overlapping area mask.

[0077] Compared with the prior art, the present invention has the following advantages:

[0078] 1) The threshold is calculated based on the spatial geometric ratio relationship and combined with the block parallel idea to quickly generate SAR image overlay masks without complex calculations. The method is simple and efficient.

[0079] 2) The rational function model (RFM) is used to replace the range-Doppler (RD) model to achieve unified processing of various image types. BRIEF DESCRIPTION OF THE DRAWINGS

[0080] Figure 1 is a flow chart of an embodiment of the present invention.

[0081] Figure 2 Schematic diagram of the angle between the ground distance and the X direction according to an embodiment of the present invention.

[0082] Figure 3 Schematic diagram of image block division corresponding to DEM sub-blocks of the present invention. DETAILED DESCRIPTION

[0083] The present invention provides a SAR image overlapping area positioning method based on a spatial geometric ratio relationship. The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0084] like Figure 1 As shown, the process of the embodiment of the present invention includes the following steps:

[0085] Step 1: Obtain the original SAR image, estimate the location based on the range of the image center point, and obtain the DEM data of the area corresponding to the image range.

[0086] Step 2: parse the XML file attached to the SAR image to obtain the image incidence angle.

[0087] Step 3: Read the RPC parameter file and construct a rational function model for spaceborne SAR images.

[0088] The rational function model expresses the image point coordinates (R, C) as the ratio of polynomials with geodetic coordinates (X, Y, Z) as independent variables, that is:

[0089]

[0090] In the formula, (X n ,Y n ,Z n )、(r n ,c n) represent the regularized coordinates of the geodetic coordinates and the image point coordinates after translation and scaling, and their values ​​are between [-1, 1]; P i (i=1,2,3,4) is a polynomial.

[0091] Each polynomial P i The coordinate components X of each item in (i=1,2,3,4) n , Y n , Z n The maximum power is no more than 3, and the sum of the powers of the coordinate components in each item is no more than 3. n ,Y n ,Z n ) as an example, its specific form is shown in formula (2):

[0092]

[0093] In the formula, a j (j=0,1,…,19) are rational polynomial coefficients. For P2, P3 and P4, we only need to replace a in equation (1) j Replace with b j 、c j and d j That’s it, and b0 and d0 are generally set to 1.

[0094] The rational function model uses regularized coordinates to improve the stability of the solution of each coefficient in the model and reduce the data rounding error caused by excessive data difference during the calculation process. The regularization formula is:

[0095]

[0096] In the formula, X0, Y0, Z0, R0, C0 are the regularized translation parameters, X s , Y s , Z s , R s , C s is the regularized scale coefficient. Both the translation parameter and the scale parameter can be obtained from the RPC file of the SAR image.

[0097] Step 4: Calculate the image point coordinates of the four corner points of the SAR image, convert the image point coordinates of the four corner points into geodetic coordinates, and calculate the corresponding minimum circumscribed rectangle based on the geodetic coordinates.

[0098] Step 4.1, obtain the image point coordinates of the four corner points.

[0099] The width and height of the read image are recorded as W and H respectively, and the image point coordinates P of the four corner points are obtained t1 (0,0), P t2 (0,W-1),Pt3 (H-1,0), P t4 (H-1,W-1).

[0100] Step 4.2: regularization of image point coordinates.

[0101] P t1 , P t2 , P t3 , P t4 The image point coordinates are regularized according to formula (3), the elevation corresponding to the image point coordinates is set to the average elevation Z0, and the elevation value is regularized according to formula (3) to obtain Set the geodetic coordinate regularization coordinate X n and Y n The initial value is 0, that is

[0102] Step 4.3, the error equation is established.

[0103] Transforming the rational function model (1), we can get the following formula:

[0104]

[0105] In formula (4), the image point coordinate (r n ,c n ) is known, and the elevation value in the geodetic coordinates has been given a zero value, that is, Z n = 0 is known, so the unknown number to be solved in equation (4) is only the plane coordinate X in the geodetic coordinates n and Y n , taking it as an unknown number, the matrix form of the error equation is as follows:

[0106] V=Bx-l,W (5)

[0107] Where W is the weight matrix, which is generally a unit matrix. The expansions of B, x, and l are as follows:

[0108]

[0109] In the formula, f r 0 、f c 0 By (X n ,Y n ,Z n ) is substituted into formula (4) to calculate.

[0110] Step 4.4, solve the unknown parameters.

[0111] Two error equations can be established for each image point. According to the least squares principle, the normal equation is established as follows:

[0112] x=(B T B) -1 (B T 1) (6)

[0113] Each image point corresponds to a geodetic coordinate, and the corresponding unknown number to be solved is the plane coordinate X of the geodetic coordinate. n and Y n , the final X can be obtained by iterative solution n and Y n .

[0114] Step 4.5, obtain the minimum bounding rectangle of the corresponding geographic range of the SAR image.

[0115] The geodetic coordinates solved in step 4.4 are regularized coordinates, which need to be converted into non-regularized coordinates in practical applications, namely:

[0116]

[0117] Calculate the four corner points P t1 , P t2 , P t3 , P t4 The corresponding geodetic coordinates are obtained, and the maximum and minimum values ​​of X and Y of the geodetic coordinates are obtained, and the minimum bounding rectangle is established based on the maximum and minimum value ranges.

[0118] Step 5: According to the minimum bounding rectangle obtained in step 4, the DEM data obtained in step 1 is cropped, and the cropped DEM data is resampled to a specified resolution.

[0119] Step 6: construct the corresponding relationship between ground range and slant range according to the SAR overlapping imaging geometry, and perform spatial geometric transformation to obtain the ratio relationship threshold of object-side pixels to image-side pixels when overlapping occurs.

[0120] Figure 2 is a schematic diagram of the angle between the ground distance and the X direction, where P t1 , P t2 The distance between the two points is the ground distance, and the length is recorded as L ground , then L ground The length in the X direction satisfies the following formula:

[0121]

[0122] Where, L X Indicates L ground The projected length in the X direction, θ is the angle between the distance direction and the X direction.

[0123] Considering the following relationship between slant distance and ground distance:

[0124]

[0125] Where, L slant Indicates the slope distance; L ground For ground distance; Represents the viewing angle, which can generally be considered to be equal to the angle of incidence.

[0126] The projection length of the ground in the X direction is L X The resolution Res after DEM resampling g The number of pixels corresponding to this length CNT X The product represents:

[0127] L X =Res g ×CNT X (10)

[0128] The slope range can be determined by the slope range resolution Res g The number of pixels in the corresponding direction CNT s To express:

[0129] L slant =Res s ×CNT s (11)

[0130] In the formula, CNT s represents the number of SAR slant range pixels, that is, the SAR image width W in step 4.1, then equation (11) can be further expressed as:

[0131] L slant =Res s ×W (12)

[0132] Combining equations (8), (9), (10) and (12), we can get:

[0133]

[0134] When the ratio of the ground distance to the slant distance is not less than the threshold TH (TH is 3 in this embodiment), the ground distance range is determined to be overlapping, that is:

[0135]

[0136] In actual calculation, the ground distance is not calculated separately but indirectly represented by the projection of the ground distance in the X direction. Formula (14) is converted into the product of resolution and number of pixels:

[0137]

[0138] Where n g ×Res g is the projection of the ground distance in the X direction, Indicates the ground distance, n g represents the number of pixels of the DEM in the X direction (in this embodiment, it is recorded as the number of object-side pixels), n s Indicates the number of pixels in the slant range direction (in this embodiment, recorded as the number of pixels on the image side).

[0139] From equations (14) and (15), we can get: When overlap occurs, n g With n s The ratio relationship meets the following conditions:

[0140]

[0141] From formula (16), we can see that when there is no less than TH on the resampled DEM final When the geodetic coordinates (X, Y, Z) corresponding to the pixels and the image point coordinates (R, C) inversely calculated using the positioning model are in the same image square pixel grid, the position corresponding to the geodetic coordinates is determined to be overlapped.

[0142] Step 7, generating a mask of the overlapping area according to the ratio relationship threshold obtained in step 6, so as to realize rapid positioning of the overlapping area.

[0143] The resampled DEM in step 5 is divided into blocks, and the corresponding geodetic coordinates (X, Y, Z) are obtained pixel by pixel for each DEM sub-block. The coordinates (R, C) of the corresponding image points in the SAR image are calculated using the rational function model in step 3. Different mask values ​​are assigned to the corresponding geodetic coordinate positions (X, Y, Z) according to the number of times the image point coordinates (R, C) are counted in the image square cell and the ratio obtained in step 6. After calculating the mask of each sub-block in parallel, the sub-block masks are merged into a whole mask. Finally, morphological operations are performed on the merged mask to reduce the "holes" and "cavities" in the mask and obtain the final mask.

[0144] Step 7.1, divide the DEM data resampled in step 5 into blocks according to the specified size to obtain DEM sub-blocks.

[0145] Step 7.2, obtain the corresponding geodetic coordinates (X, Y, Z) for each pixel of the DEM sub-block, and use the rational function model in step 3 to calculate the coordinates (R, C) of the image point located in the SAR image, obtain the minimum bounding rectangle based on the maximum and minimum values ​​of the image point coordinates, and expand the boundary based on the minimum bounding rectangle to obtain the image block.

[0146] like Figure 3 As shown in the figure, boundary 1 is the image area obtained by geometric positioning of the inner ring of the boundary of DEM sub-block 1 using the rational function model, and the maximum row coordinate R can be calculated. max With the minimum value R min , the maximum value in the column direction C max With the minimum value Cmin , and then the minimum enclosing rectangle is obtained, that is, boundary 2. Considering that the image square coordinates calculated by the DEM sub-block may exceed boundary 2, a certain extension amount Extend is added to obtain boundary 3. The size corresponding to boundary 3 is the final image square sub-block.

[0147] Step 7.3, after obtaining the DEM sub-block and its corresponding image square sub-block, the threshold TH calculated in step 6.2 is used final Generate the mask corresponding to the sub-block as follows:

[0148] Step 7.3.1, open a buffer pBuffer1 of the same size as the resampled DEM sub-block to store the one-dimensional coordinates of the image side, open a buffer pBuffer2 of the same size as the image side sub-block corresponding to the DEM sub-block to record the number of object side units corresponding to a single image side unit, and initialize pBuffer1 and pBuffer2 to 0. The one-dimensional coordinate OneDimCor can be calculated using the two-dimensional image coordinates (R, C) as follows:

[0149] OneDimCor=R×W+C (17)

[0150] Where W represents the width of the original SAR image.

[0151] Step 7.3.2, traverse the resampled DEM sub-blocks, calculate the (R, C) corresponding to the geodetic coordinates (X, Y, Z) of the ground point according to the DEM image coordinates and projection information, store (R, C) in pBuffer1 in one-dimensional form according to formula (17), and add 1 to the corresponding (R, C) position in pBuffer2.

[0152] Step 7.3.3, when the calculation in step 7.3.2 is completed, traverse pBuffer1 and obtain the value k in pBuffer2 of the two-dimensional coordinate (R, C) corresponding to the value OneDimCor in pBuffer1. final When it is marked as overlapping, it is recorded as FLAG = 2; when it is 0 <k<TH final The time mark is normal, recorded as FLAG=1; the invalid area is recorded as FLAG=0.

[0153] Step 7.3.4, output pBuffer1 and set the same six geographic parameters and projection parameters for the output image as those of the resampled DEM sub-block.

[0154] In step 7.3.5, the data parallel method is used for the block images, and steps 7.3.1 to 7.3.4 are repeated to generate the initial mask block by block.

[0155] Step 7.4, merge the sub-block masks obtained in step 7.3 to generate a mask of the same size as the resampled DEM. The result is the initial object mask corresponding to the SAR image.

[0156] Step 7.5, use the morphological "closing" operation on the initial mask to eliminate some "holes" and "holes" to obtain the final SAR image overlapping area mask.

[0157] During specific implementation, the above process can be automatically operated using computer software technology.

[0158] The specific embodiments described herein are merely examples of the spirit of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in similar ways, but they will not deviate from the spirit of the present invention or exceed the scope defined by the appended claims.

Claims

1. A SAR image overlapping area positioning method based on spatial geometric ratio relationship, It is characterized in that The following steps are involved: Step 1: Obtain the original SAR image, estimate the location based on the image center point range, and obtain DEM data covering the area corresponding to the image range; Step 2, parse the XML file attached to the SAR image to obtain the image incident angle; Step 3, read the RPC parameter file and construct a rational function model of the spaceborne SAR image; Step 4, calculating the image point coordinates of the four corner points of the SAR image, converting the image point coordinates of the four corner points into geodetic coordinates, and calculating the corresponding minimum circumscribed rectangle according to the geodetic coordinates; Step 5: According to the minimum bounding rectangle obtained in step 4, the DEM data obtained in step 1 is clipped, and the clipped DEM data is resampled to a specified resolution; Step 6, constructing the corresponding relationship between ground range and slant range according to the SAR overlapping imaging geometry, and performing spatial geometric transformation to obtain the ratio relationship threshold of object-side pixels and image-side pixels when overlapping occurs; Ground distance L ground The length in the X direction satisfies the following formula: Where, L X Indicates L ground The projected length in the X direction, θ is the angle between the distance direction and the X direction; Considering the following relationship between slant distance and ground distance: Where, L slant Indicates the slope distance; L ground For ground distance; represents the viewing angle, which is equal to the angle of incidence; The projection length of the ground in the X direction is L X The resolution Res after resampling from DEM g The number of pixels corresponding to this length CNT X The product represents: L X =Nothing g ×CNT X (10) Slope range is determined by the slope range resolution Res g The number of pixels in the corresponding direction CNT s To express: L slant =Nothing s ×CNT s (11) In the formula, CNT s represents the number of SAR slant range pixels, that is, the SAR image width W, then equation (11) can be further expressed as: L slant =Nothing s ×W (12) Combining equations (8), (9), (10) and (12), we can get: When the ratio of ground distance to slant range is not less than the threshold TH, the ground distance range is determined to be overlapped, that is: In actual calculation, the ground distance is not calculated separately but indirectly represented by the projection of the ground distance in the X direction. Formula (14) is converted into the product of resolution and number of pixels: Where n g ×Res g is the projection of the ground distance in the X direction, Indicates the ground distance, n g Indicates the number of pixels in the DEM in the X direction, n s Indicates the number of pixels in the slant range direction; From (15), when overlap occurs, n g With n s The ratio relationship meets the following conditions: From formula (16), we can see that when there is no less than TH on the resampled DEM final When the geodetic coordinates (X, Y, Z) corresponding to the pixels are in the same image square pixel grid using the image point coordinates (R, C) inversely calculated using the positioning model, the position corresponding to the geodetic coordinates is determined to be overlapped; Step 7, generating a mask of the overlapping area according to the ratio relationship threshold obtained in step 6, so as to realize rapid positioning of the overlapping area; Step 7.1, divide the DEM data resampled in step 5 into blocks according to the specified size to obtain DEM sub-blocks; Step 7.2, obtain the corresponding geodetic coordinates (X, Y, Z) for each pixel of the DEM sub-block, and use the rational function model in step 3 to calculate the coordinates (R, C) of the image point located in the SAR image, obtain the minimum bounding rectangle based on the maximum and minimum values ​​of the image point coordinates, and expand the boundary based on the minimum bounding rectangle to obtain the image block; Step 7.3, after obtaining the DEM sub-block and its corresponding image square sub-block, the threshold TH calculated in step 6 is used final Generate a mask corresponding to the sub-block; Step 7.4, merging the sub-block masks obtained in step 7.3 to generate a mask of the same size as the resampled DEM, and obtaining the object space initial mask corresponding to the SAR image; Step 7.5, use the morphological "closing" operation on the initial mask to eliminate some "holes" and "holes" to obtain the final SAR image overlapping area mask.

2. A SAR image overlapping area positioning method based on spatial geometric ratio relationship as claimed in claim 1, Features: The rational function model in step 3 expresses the image point coordinates (R, C) as the ratio of polynomials with geodetic coordinates (X, Y, Z) as independent variables, that is: In the formula, (X n ,Y n ,Z n )、(r n ,c n ) represent the regularized coordinates of the geodetic coordinates and the image point coordinates after translation and scaling, and their values ​​are between [-1, 1]; P i is a polynomial, i=1,2,3,4; Polynomial P i The coordinate components X of each item in n , Y n , Z n The maximum power is no more than 3, and the sum of the powers of the coordinate components in each item is no more than 3. 1 (X n ,Y n ,Z n ) as an example, its specific form is shown in formula (2): In the formula, a j are rational polynomial coefficients, j = 0, 1, ..., 19, for P 2 , P 3 and P 4 , we only need to replace a in formula (1) j Replace with b j 、c j and d j Then, b 0 ,d 0 The value is 1; The rational function model uses regularized coordinates to improve the stability of the solution of each coefficient in the model and reduce the data rounding error caused by excessive data difference during the calculation process. The regularization formula is: Where, X 0 , Y 0 , Z 0 , R 0 , C 0 is the regularized translation parameter, X s , Y s , Z s , R s , C s is the regularized scale coefficient. Both the translation parameter and the scale parameter can be obtained from the RPC file of the SAR image.

3. The SAR image overlapping area positioning method based on spatial geometric ratio relationship as claimed in claim 1, Features: Step 4 includes the following sub-steps: Step 4.1, obtain the image point coordinates of the four corner points; The width and height of the read image are recorded as W and H respectively, and the image point coordinates P of the four corner points are obtained t1 (0,0), P t2 (0,W-1),P t3 (H-1,0), P t4 (H-1,W-1); Step 4.2, regularization of image point coordinates; P t1 , P t2 , P t3 , P t4 The image point coordinates are regularized according to formula (3), and the elevation corresponding to the image point coordinates is set to the average elevation Z 0 , regularize the elevation value according to formula (3) to obtain Set the geodetic coordinate regularization coordinate X n and Y n The initial value is 0, that is Step 4.3, error equation is established; Transforming the rational function model (1), we can get the following formula: In formula (4), the image point coordinate (r n ,c n ) is known, and the elevation value in the geodetic coordinates has been given a zero value, that is, Z n = 0 is known, so the unknown number to be solved in equation (4) is only the plane coordinate X in the geodetic coordinates n and Y n , taking it as an unknown number, the matrix form of the error equation is as follows: V=Bx-l,W (5) Where W is the weight matrix, which is generally a unit matrix. The expansions of B, x, and l are as follows: In the formula, By (X n ,Y n ,Z n ) is substituted into formula (4) to calculate; Step 4.4, solving the unknown parameters; Two error equations can be established for each image point. According to the least squares principle, the normal equation is established as follows: x=(B T B) -1 (B T l) (6) Each image point corresponds to a geodetic coordinate, and the corresponding unknown number to be solved is the plane coordinate X of the geodetic coordinate. n and Y n , the final X can be obtained by iterative solution n and Y n ; Step 4.5, obtaining the minimum bounding rectangle of the geographical range corresponding to the SAR image; The geodetic coordinates solved in step 4.4 are regularized coordinates, which need to be converted into non-regularized coordinates in practical applications, namely: Calculate the four corner points P t1 , P t2 , P t3 , P t4 The corresponding geodetic coordinates are obtained, and the maximum and minimum values ​​of X and Y of the geodetic coordinates are obtained, and the minimum bounding rectangle is established based on the maximum and minimum value ranges.

4. The SAR image overlapping area positioning method based on spatial geometric ratio relationship as claimed in claim 1, Features: Step 7.3 includes the following sub-steps: Step 7.3.1, open a buffer pBuffer1 of the same size as the resampled DEM sub-block to store the one-dimensional coordinates of the image side, open a buffer pBuffer2 of the same size as the image side sub-block corresponding to the DEM sub-block to record the number of object side units corresponding to a single image side unit, and initialize pBuffer1 and pBuffer2 to 0; the one-dimensional coordinate OneDimCor can be calculated using the two-dimensional image coordinates (R, C), the formula is as follows: OneDimCor=R×W+C (17) Where W represents the width of the original SAR image; Step 7.3.2, traverse the resampled DEM sub-blocks, calculate the (R, C) corresponding to the geodetic coordinates (X, Y, Z) of the ground point according to the DEM image coordinates and projection information, convert (R, C) into one-dimensional form according to formula (17) and store it in pBuffer1, and add 1 to the corresponding (R, C) position in pBuffer2; Step 7.3.3, when the calculation in step 7.3.2 is completed, traverse pBuffer1 and obtain the value k of the two-dimensional coordinate (R, C) corresponding to the value OneDimCor in pBuffer1 in pBuffer2; when TH final When it is marked as overlapping, it is recorded as FLAG = 2; when it is 0 <k<TH final When it is marked as normal, it is recorded as FLAG=1; the invalid area is recorded as FLAG=0; Step 7.3.4, output pBuffer1, and set the same six geographic parameters and projection parameters for the output image as the resampled DEM sub-block; In step 7.3.5, the data parallel method is used for the block images, and steps 7.3.1 to 7.3.4 are repeated to generate the initial mask block by block.