Remote sensing image preprocessing method, device, electronic equipment and storage medium
By constructing a null value raster data set and processing it in blocks, and using pre-built transformation formulas and polynomials, the problem of long time-consuming remote sensing image preprocessing is solved and efficient calculation efficiency is improved.
Patent Information
- Application Number
- CN202410024136.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-05
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-01-05
AI Technical Summary
Existing remote sensing image preprocessing methods take a long time to calculate, mainly due to the large loss of data reading and writing volume and pixel traversal time, and do not fully utilize the potential of parallel processing of data blocks.
By constructing a null value raster data set, the remote sensing image to be processed is divided into multiple data blocks. Each data block is preprocessed in turn, and the surface reflection of the pixel is calculated using the pre-constructed projection inverse transform and orthorectified inverse transform formulas. rate, and determine the final result based on a polynomial that fuses radiometric correction, atmospheric correction, and thin cloud detection.
It greatly saves the time of repeated data reading and writing and pixel traversal during remote sensing image preprocessing, significantly improves calculation efficiency, and is suitable for preprocessing of medium and high-resolution multi-source remote sensing images.
Smart Images

Figure CN117911667B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a remote sensing image preprocessing method, device, electronic equipment and storage medium. Background Art
[0002] Remote sensing imaging is a complex process that is affected by many factors, including optical system distortion, sensor attitude changes, atmospheric conditions, satellite platform movement, changes in the earth's curvature, and terrain undulations. There are radiation and geometric deformations. Therefore, in practical applications, a preprocessing process is required to correct the spectral and geometric deformations.
[0003] Commonly used remote sensing image data preprocessing solutions often divide the preprocessing process into several steps, such as radiation correction, atmospheric correction, orthorectification, cloud removal, geometric correction, and projection transformation. The remote sensing image data preprocessing calculations are performed in a certain order and step by step, and the output data of the previous step is used as the input of the next step. Related methods to improve the efficiency of remote sensing image preprocessing calculations, such as optimizing algorithm calculation processes, integrating parallel computing strategies, etc., are often designed for each step. Although these methods have improved the processing efficiency of remote sensing images to a certain extent, they ignore the role of reducing the amount of data reading and writing in improving the efficiency of remote sensing image preprocessing calculations, making remote sensing image calculations time-consuming. Summary of the invention
[0004] The present invention provides a remote sensing image preprocessing method, device, electronic equipment and storage medium, which are used to solve the problem that remote sensing image calculation is time-consuming.
[0005] The present invention provides a remote sensing image preprocessing method, comprising:
[0006] Constructing a null value raster dataset corresponding to the remote sensing image to be processed; the raster attribute corresponding to each band in the null value raster dataset is a null value; the raster attribute represents the surface reflectance of any pixel in the remote sensing image to be processed;
[0007] Dividing the null value grid dataset into a plurality of data blocks; the data blocks include a plurality of pixels;
[0008] For each of the data blocks, preprocessing each of the pixels in the data block in turn to obtain the surface reflectance of each pixel;
[0009] Based on the surface reflectivity of each pixel, a processed remote sensing image is determined.
[0010] According to a remote sensing image preprocessing method provided by the present invention, the remote sensing image after processing is determined based on the surface reflectivity of each pixel, including:
[0011] Assigning the surface reflectance of each pixel to the data block;
[0012] Writing each of the data blocks into the null value raster dataset to obtain a target raster dataset;
[0013] Based on the target raster dataset, the processed remote sensing image is determined.
[0014] According to a remote sensing image preprocessing method provided by the present invention, for each data block, preprocessing each pixel in the data block in turn to obtain the surface reflectance of each pixel includes:
[0015] For each of the pixels in each of the data blocks, determining the central plane coordinates of the pixel in the plane coordinate system;
[0016] Determine the geographic coordinates corresponding to the central plane coordinates based on the central plane coordinates and a pre-constructed projection inverse transformation fitting function;
[0017] Extracting the digital elevation corresponding to the geographic coordinates based on a plurality of digital elevation data within the spatial range of the minimum longitude and latitude point and the maximum longitude and latitude point acquired in advance;
[0018] The surface reflectance of each pixel is determined based on the digital elevation, the geographic coordinates and a pre-constructed orthorectification inverse transformation formula.
[0019] According to a remote sensing image preprocessing method provided by the present invention, the surface reflectance of each pixel is determined based on the digital elevation, the geographic coordinates and a pre-constructed orthorectification inverse transformation formula, including:
[0020] Based on the digital elevation, the geographic coordinates and a pre-constructed orthorectification inverse transformation formula, determining the image coordinates of the pixel in the remote sensing image to be processed corresponding to the geographic coordinates;
[0021] Based on the image coordinates, determining the corresponding satellite payload observation value in the remote sensing image to be processed;
[0022] Determine the surface reflectivity of the pixel based on the satellite payload observations and a pre-constructed target polynomial integrating radiation correction, atmospheric correction, and thin cloud detection; the target polynomial is used to determine the surface reflectivity of the pixel;
[0023] The above steps of determining the surface reflectance of the pixel are repeated until all the pixels in the data block are completely executed, thereby obtaining the surface reflectance of each pixel.
[0024] According to a remote sensing image preprocessing method provided by the present invention, the step of constructing a null value grid dataset corresponding to the remote sensing image to be processed includes:
[0025] Determine vertex coordinates of a plurality of vertices of the remote sensing image to be processed in a plane coordinate system and a first spatial resolution of the remote sensing image to be processed in the plane coordinate system;
[0026] The null value raster dataset is constructed based on the vertex coordinates and the first spatial resolution.
[0027] According to a remote sensing image preprocessing method provided by the present invention, the vertex coordinates of a plurality of vertices of the remote sensing image to be processed in a plane coordinate system are determined, including:
[0028] Based on a pre-constructed orthorectification positive transformation formula, determining the object space coordinates corresponding to the image space coordinates of a plurality of vertices of the remote sensing image to be processed; the orthorectification positive transformation formula is determined based on the image space coordinates of the remote sensing image to be processed;
[0029] Based on each of the object coordinates, determining a second spatial resolution of the remote sensing image to be processed in the latitude direction and the longitude direction;
[0030] Based on the second spatial resolution, determining the minimum longitude and latitude point and the maximum longitude and latitude point of the boundary of the remote sensing image to be processed;
[0031] Based on the minimum longitude and latitude point and the maximum longitude and latitude point, determine the projection coordinates corresponding to the minimum longitude and latitude point and the maximum longitude and latitude point respectively;
[0032] Based on the projection coordinates corresponding to the minimum longitude and latitude point and the maximum longitude and latitude point respectively, the vertex coordinates of each vertex of the remote sensing image to be processed in the plane coordinate system are determined.
[0033] According to a remote sensing image preprocessing method provided by the present invention, determining a first spatial resolution of the remote sensing image to be processed in the plane coordinate system includes:
[0034] Based on the projection coordinates of each of the vertices in the plane coordinate system, a first spatial resolution of the remote sensing image to be processed in the plane coordinate system is determined.
[0035] The present invention also provides a remote sensing image preprocessing device, comprising:
[0036] A construction module is used to construct a null value raster dataset corresponding to the remote sensing image to be processed; the raster attribute corresponding to each band in the null value raster dataset is a null value; the raster attribute represents the surface reflectance of any pixel in the remote sensing image to be processed;
[0037] A partitioning module, used for partitioning the null value grid dataset into a plurality of data blocks; the data blocks include a plurality of pixels;
[0038] A preprocessing module, used for preprocessing each pixel in each data block in turn to obtain the surface reflectance of each pixel;
[0039] The determination module is used to determine the processed remote sensing image based on the surface reflectivity of each pixel.
[0040] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the remote sensing image preprocessing methods described above is implemented.
[0041] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the remote sensing image preprocessing method described in any one of the above is implemented.
[0042] The remote sensing image preprocessing method, device, electronic device and storage medium provided by the present invention construct a null value grid data set corresponding to the remote sensing image to be processed; the grid attribute corresponding to each band in the null value grid data set is a null value; the grid attribute represents the surface reflectance of any pixel in the remote sensing image to be processed; the null value grid data set is divided into multiple data blocks; the data block includes multiple pixels; for each data block, each pixel in the data block is preprocessed in turn to obtain the surface reflectance of each pixel; based on the surface reflectance of each pixel, the processed remote sensing image is determined. By preprocessing each pixel in each data block, the time loss of repeated reading and writing and pixel traversal in the remote sensing image preprocessing process is greatly saved, thereby greatly improving the computational efficiency of remote sensing image data preprocessing. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0044] Figure 1 It is one of the flow charts of the remote sensing image preprocessing method provided by the present invention;
[0045] Figure 2 It is a schematic diagram of the construction process of the null value raster dataset provided by the present invention;
[0046] Figure 3It is a schematic diagram of the preprocessing process of any pixel in any data block provided by the present invention;
[0047] Figure 4 This is the second flow chart of the remote sensing image preprocessing method provided by the present invention;
[0048] Figure 5 It is a structural schematic diagram of the remote sensing image preprocessing device provided by the present invention;
[0049] Figure 6 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0051] Remote sensing technology uses different types of sensing instruments to collect, process and image the electromagnetic wave information radiated and reflected by distant targets, thereby realizing the detection and identification of various ground scenes. Remote sensing images contain the spectral characteristics of the observed targets in the visible light-near infrared-thermal infrared-microwave bands. With its wide observation range, diverse sources, rapid updates, and diverse spatiotemporal characteristics, it has gradually become an important data source for monitoring spatiotemporal changes in the land surface. In recent years, multi-source remote sensing image data has experienced explosive growth, and the conflicts between the spatial resolution characteristics, temporal resolution characteristics, and spectral resolution characteristics of the data can be gradually weakened through the integration and complementarity of multi-source remote sensing data. On this basis, it is possible to apply medium and high-resolution remote sensing data to the monitoring of spatiotemporal changes in the land surface, while ensuring the real-time requirements of monitoring. In this context, the near-real-time application needs for monitoring spatiotemporal changes in the land surface in the fields of agriculture, cities, public safety, and the environment place high demands on the efficiency of remote sensing image preprocessing.
[0052] In the traditional remote sensing image data preprocessing calculation process performed step by step, the time consumed by the intermediate data output and reading calculations used to connect adjacent steps in series accounts for a large proportion of the total preprocessing time, and may even exceed the pixel calculation time of the remote sensing image. Therefore, shortening the intermediate data output and reading calculation time can greatly improve the efficiency of remote sensing image data preprocessing calculations.
[0053] Based on this, the present invention provides a remote sensing image preprocessing method, which disassembles and reorganizes radiation correction, atmospheric correction, orthorectification, projection transformation and thin cloud detection, so that after the remote sensing image is read into the memory, multiple remote sensing image preprocessing calculations are completed for each pixel and output in blocks, which greatly saves the time loss of repeated data reading and writing and pixel traversal in the remote sensing image preprocessing process, thereby greatly improving the remote sensing image data preprocessing calculation efficiency. This method is suitable for the preprocessing calculation of medium and high resolution multi-source remote sensing images, and is suitable for a variety of image radiation correction, atmospheric correction, orthorectification, projection transformation and thin cloud detection preprocessing, and is compatible with customized remote sensing image block parallel processing strategies.
[0054] Combine the following Figure 1-Figure 4 The remote sensing image preprocessing method of the present invention is described.
[0055] Figure 1 It is one of the flow charts of the remote sensing image preprocessing method provided by the present invention, such as Figure 1 As shown, the method includes steps 101 to 104; wherein,
[0056] Step 101, constructing a null value raster dataset corresponding to the remote sensing image to be processed; the raster attribute corresponding to each band in the null value raster dataset is a null value; the raster attribute represents the surface reflectance of any pixel in the remote sensing image to be processed.
[0057] It should be noted that the remote sensing image preprocessing method provided by the present invention is suitable for the scenario of remote sensing image preprocessing, and the executor of the method can be a remote sensing image preprocessing device, such as an electronic device, or a control module in the remote sensing image preprocessing device for executing the remote sensing image preprocessing method.
[0058] Specifically, multiple bands of remote sensing images to be processed are obtained, and for each band of the remote sensing images to be processed, a null value raster dataset T' corresponding to the remote sensing images to be processed is constructed, wherein the raster attribute corresponding to each band in the null value raster dataset is a null value, the remote sensing image to be processed corresponds to multiple rasters, and each raster is a pixel of the remote sensing image to be processed; the raster attribute represents the surface reflectance of any pixel in the remote sensing image to be processed.
[0059] For example, taking the WFV L1A multispectral remote sensing image of the Gaofen-1 satellite as an example, it has a spatial resolution of 16 meters, including four bands: red, green, blue and near-infrared, which are 0.45-0.52μm, 0.52-0.59μm, 0.63-0.69μm, and 0.77-0.89μm respectively, and the coordinate reference is the WGS84 geographic coordinate system.
[0060] Step 102: divide the null value grid dataset into a plurality of data blocks; the data blocks include a plurality of pixels.
[0061] Specifically, according to the user-defined number of rows rn and columns cn, the null value grid dataset T' is divided into rn*cn data blocks T' rn,cn Each data block includes multiple pixels, and the number of pixel rows in each data block is The number of pixel columns is is the rounding symbol, M represents the number of rows of the remote sensing image to be processed, and N represents the number of columns of the remote sensing image to be processed.
[0062] If rn=1&cn=1 is set, that is, the remote sensing image to be processed is not divided into data blocks, that is, the remote sensing image to be processed is not partitioned, and all pixels in the remote sensing image to be processed are processed in a serial manner; if rn>1||cn>1 is set, the remote sensing image to be processed is divided into data blocks, and the data blocks are distributed to different threads for parallel processing.
[0063] Step 103: for each of the data blocks, pre-process each of the pixels in the data block in turn to obtain the surface reflectance of each pixel.
[0064] Specifically, for each data block T' rn,cn , preprocess each pixel in the data block in turn, that is, perform preprocessing calculations pixel by pixel, and obtain the surface reflectance P of each pixel i (i=1 / 2 / 3 / 4), i represents the band.
[0065] Step 104: Determine a processed remote sensing image based on the surface reflectivity of each pixel.
[0066] Specifically, the processed remote sensing image can be determined according to the surface reflectance of each pixel.
[0067] The remote sensing image preprocessing method provided by the present invention is to construct a null value grid data set corresponding to the remote sensing image to be processed; the grid attribute corresponding to each band in the null value grid data set is a null value; the grid attribute represents the surface reflectance of any pixel in the remote sensing image to be processed; the null value grid data set is divided into multiple data blocks; the data block includes multiple pixels; for each data block, each pixel in the data block is preprocessed in turn to obtain the surface reflectance of each pixel; based on the surface reflectance of each pixel, the processed remote sensing image is determined. By preprocessing each pixel in each data block, the time loss of repeated reading and writing and pixel traversal in the remote sensing image preprocessing process is greatly saved, thereby greatly improving the calculation efficiency of remote sensing image data preprocessing.
[0068] Optionally, a specific implementation of step 101 includes:
[0069] (1) Determine the vertex coordinates of multiple vertices of the remote sensing image to be processed in a plane coordinate system and a first spatial resolution of the remote sensing image to be processed in the plane coordinate system.
[0070] Specifically, in a user-defined plane coordinate system, the vertex coordinates of multiple vertices of the remote sensing image to be processed in the plane coordinate system can be determined according to the number of image bands. and the first spatial resolution of the remote sensing image to be processed in the plane coordinate system in, Indicates the spatial resolution in the X-axis and Y-axis directions in a plane coordinate system.
[0071] (2) Constructing the null value grid dataset based on the vertex coordinates and the first spatial resolution.
[0072] Specifically, a null value grid dataset T' may be constructed according to the coordinates of each vertex and the first spatial resolution.
[0073] Optionally, determining vertex coordinates of a plurality of vertices of the remote sensing image to be processed in a plane coordinate system includes:
[0074] (a) Based on a pre-constructed orthorectification transformation formula, the object space coordinates corresponding to the image space coordinates of multiple vertices of the remote sensing image to be processed are determined; the orthorectification transformation formula is determined based on the image space coordinates of the remote sensing image to be processed.
[0075] Specifically, the orthorectification positive transformation formula is pre-constructed, and the orthorectification positive transformation formula is determined based on the image coordinates of the remote sensing image to be processed. The orthorectification positive transformation formula is expressed by formula (1):
[0076]
[0077] Among them, (S, L) represents the image coordinates, (D lat , D lon ) represents the object coordinates, D lat Indicates the latitude of the pixel center point, D lon Indicates the longitude of the center point of the pixel, f j and g j Represents the approximate affine transformation parameters, j=0, 1, 2.
[0078] Assuming that the number of rows and columns of the remote sensing image T to be processed are M and N respectively, the image coordinates of the four vertex pixels (A, B, C, D) of the remote sensing image T to be processed are (0,0), (0,N-1), (M-1,0), (M-1,N-1) respectively. The above formula (1) is used to calculate the object coordinates corresponding to the image coordinates of the four vertex pixels (A, B, C, D) of the remote sensing image T to be processed, that is, (Dlat,A ,D lon,A ), (D lat,B ,D lon,B ), (D lat,C ,D lon,C ), (D lat,D ,D lon,D ).
[0079] (b) Based on each of the object coordinates, determining a second spatial resolution of the remote sensing image to be processed in the latitude direction and the longitude direction.
[0080] Specifically, according to each object coordinate, the second spatial resolution (Δ x ,Δ y ).
[0081]
[0082]
[0083] Among them, D lon,A Indicates the longitude of the center point of vertex A pixel, D lat,A Indicates the latitude of the center point of vertex A pixel, D lon,B Indicates the longitude of the center point of vertex B pixel, D lat,B Indicates the latitude of the center point of vertex B pixel, D lon,D Indicates the longitude of the center point of vertex D pixel, D lat,D Indicates the latitude of the center point of vertex D pixel.
[0084] (c) Based on the second spatial resolution, determining the minimum longitude and latitude point and the maximum longitude and latitude point of the boundary of the remote sensing image to be processed.
[0085] Specifically, according to the second spatial resolution, the minimum longitude and latitude point of the remote sensing image boundary to be processed can be determined. and the maximum latitude and longitude point
[0086] (d) Based on the minimum longitude and latitude point and the maximum longitude and latitude point, determine the projection coordinates corresponding to the minimum longitude and latitude point and the maximum longitude and latitude point respectively.
[0087] Specifically, according to the user-defined plane coordinate system, the analytical method should be able to calculate the projection coordinates corresponding to the minimum longitude and latitude point The projection coordinates corresponding to the maximum longitude and latitude points
[0088] (e) determining the vertex coordinates of each vertex of the remote sensing image to be processed in a plane coordinate system based on the projection coordinates corresponding to the minimum longitude and latitude point and the maximum longitude and latitude point respectively.
[0089] Specifically, according to the projection coordinates corresponding to the minimum longitude and latitude point and the maximum longitude and latitude point, the vertex coordinates of each vertex of the remote sensing image to be processed in the plane coordinate system can be further determined.
[0090] Optionally, determining a first spatial resolution of the remote sensing image to be processed in the plane coordinate system includes:
[0091] Based on the projection coordinates of each of the vertices in the plane coordinate system, a first spatial resolution of the remote sensing image to be processed in the plane coordinate system is determined.
[0092] Specifically, according to the projection coordinates (X A , Y A ), (X B , Y B ), (X C , Y C ), (X D , X D ), the first spatial resolution of the remote sensing image to be processed in the plane coordinate system can be calculated by using formula (4) and formula (5):
[0093]
[0094] Optionally, based on the boundary of the remote sensing image to be processed, with a tolerance of 0.1°, based on the minimum latitude and longitude point (D lat,min -Δ y -0.1°,D lon,min -Δ x -0.1°) and the maximum longitude and latitude point (D lat,max +Δ y +0.1°,D lon,max +Δ x +0.1°) to read the digital elevation data of each pixel in the remote sensing image to be processed.
[0095] Figure 2 is a schematic diagram of the construction process of the null value grid dataset provided by the present invention, such as Figure 2As shown in the figure, assuming that the number of rows and columns of the remote sensing image T to be processed are M and N respectively, then the image coordinates of the four vertex pixels (A, B, C, D) of the remote sensing image T to be processed are (0,0), (0,N-1), (M-1,0), (M-1,N-1) respectively. The above formula (1) is used to calculate the object coordinates corresponding to the image coordinates of the four vertex pixels (A, B, C, D) of the remote sensing image T to be processed, that is, (D lat,A ,D lon,A ), 9D lat,B ,D lon,B ), (D lat,C ,D lon,C ), (D lat,D ,D lon,D ). According to the object coordinates, the second spatial resolution (Δ x ,Δ y ). According to the second spatial resolution, the minimum longitude and latitude point of the remote sensing image boundary to be processed can be determined and the maximum latitude and longitude point According to the user-defined plane coordinate system, the analytical method should be able to calculate the projection coordinates corresponding to the minimum longitude and latitude point The projection coordinates corresponding to the maximum longitude and latitude points According to the projection coordinates (X A , Y A ), (X B , Y B ), (X C , Y C ), (X D , X D ), the first spatial resolution of the remote sensing image to be processed in the plane coordinate system can be calculated by using formula (4) and formula (5):
[0096] Optionally, the specific implementation of step 103 includes:
[0097] 1) For each of the pixels in each of the data blocks, determine the central plane coordinates of the pixel in the plane coordinate system.
[0098] Specifically, for each pixel in each data block, the central plane coordinates of the pixel in the plane coordinate system may be determined.
[0099] For example, for a specific data block T' rn,cn , perform preprocessing calculations pixel by pixel. Take the pixel Z in the r1th row (r1=0,1,2…,M-1) and the c1th column (c1=0,1,2…,N-1) as an example, the central plane coordinates of the pixel Z are The central plane coordinate of the pixel Z in, Indicates the projection horizontal coordinate corresponding to the minimum longitude and latitude point of the image boundary to be processed. Indicates the projection ordinate corresponding to the maximum latitude and longitude point of the image boundary to be processed. Indicates the first spatial resolution.
[0100] 2) Based on the central plane coordinates and a pre-constructed projection inverse transformation fitting function, the geographic coordinates corresponding to the central plane coordinates are determined.
[0101] Specifically, a projection inverse transformation fitting function CT(X) based on an orthogonal polynomial is pre-constructed. g ,Y g ), for any pixel G(X g ,Y g ), the geographic coordinates corresponding to the pixel can be determined (D lat,G ,D lon,G )=CT(X g ,Y g ).
[0102] For example, according to the central plane coordinates and the pre-built projection inverse transformation fitting function CT(X g ,Y g ), determine the center plane coordinates (X Z ,Y Z ) corresponds to the geographical coordinates Z′(D lat,Z ,D lon,Z )=CT(X Z ,Y Z ).
[0103] 3) Based on a plurality of digital elevation data within the spatial range of the minimum longitude and latitude point and the maximum longitude and latitude point acquired in advance, the digital elevation corresponding to the geographic coordinates is extracted.
[0104] Specifically, after obtaining the center plane coordinates (X Z ,Y Z ) corresponds to the geographical coordinates Z′(D lat,Z ,D lon,Z ) After that, the digital elevation D corresponding to the geographic coordinates can be extracted according to the multiple digital elevation data within the spatial range of the minimum longitude and latitude point and the maximum longitude and latitude point obtained in advance. hei,Z .
[0105] 4) Determine the surface reflectivity of each pixel based on the digital elevation, the geographic coordinates and a pre-constructed orthorectification inverse transformation formula.
[0106] Specifically, the orthorectification inverse transformation formula is pre-constructed and expressed using formulas (6)-(12):
[0107]
[0108] Among them, (O, P) represents the regularized image coordinates, and (P, L, H) represents the regularized object coordinates.
[0109] N S (P,L,H)=c1+c2L+c3P+c4H+c5LP+c6LH+c7PH+c8L 2 +c9P 2 +c 10 H 2 +c 11 PLH+c 12 H 3 +c 13 LP 2 +c 14 LH 2 +c 15 L 2 P+c 16 P 3 +c 17 PH 2 +c 18 L 2 H+c 19 P 2 H+c 20 H 23 (7)
[0111] D s (P,L,H)=d1+d2L+d3P+d4H+d5LP+d6LH+d7PH+d8L 2 +d9P 2 +d 10 H 2 +d 11 PLH+d 12 L 3 +d 13 LP 2 +d 14 LH 2 +d 15 L 2 P+d 16 P 3 +d 17 PH 2 +d 18 L 2 H+d 19 P 2 H+d 20 H 3 (8)
[0113] N l (P,L,H)=a1+a2L+a3P+a4H+a5LP+a6LH+a7PH+a8L 2 +a9P 2 +a 10 H 2 +a 11 PLH+a 12 L 3 +a 13 LP 2 +a 14 LH 2 +a 15 L 2 P+a 16 P 3 +a 17 PH 2 +a 18 L 2 H+a 19 P 2 H+a 20 H 3 (9)
[0115] D l (P,L,H)
[0116] =b1+b2L+b3P+b4H+b5LP+b6LH+b7PH+b8L 2 +b9P 2 +b 10 H 2 +b 11 PLH+b 12 L 3 +b 13 LP 2 +b 14 LH 2 +b 15 L 2 P+b 16 P 3 +b 17 PH 2 +b 18 L 2 H+b 19 P 2 H+b 20 H 3 (10)
[0118]
[0119]
[0120] Among them, a i , b i 、c i and d i are the Rational Polynomial Coefficients (RPC) model coefficients (i = 1, 2, ..., 20), D hei_off and D hei_scale is the regularization parameter of the object coordinates, D hei Indicates elevation, S off , S scale , l off , l scale is the regularization parameter of the image coordinates.
[0121] Optionally, determining the surface reflectance of each pixel based on the digital elevation, the geographic coordinates and a pre-constructed orthorectification inverse transformation formula includes:
[0122] a) Based on the digital elevation, the geographic coordinates and a pre-constructed orthorectification inverse transformation formula, the image coordinates of the pixel in the remote sensing image to be processed corresponding to the geographic coordinates are determined.
[0123] Specifically, according to the digital elevation, geographic coordinates and the pre-constructed orthorectification inverse transformation formula, the above formulas (6)-(12) can calculate the image coordinates (S, L) of the pixel in the remote sensing image to be processed corresponding to the geographic coordinates. lat,Z ,D lon,Z ) corresponds to the image coordinates (S Z , L Z ).
[0124] b) Based on the image coordinates, determining the corresponding satellite payload observation value in the remote sensing image to be processed.
[0125] Specifically, according to the image coordinates, the satellite payload observation value DN of the pixel Z″ in the remote sensing image to be processed in band i can be directly determined: i (i=1 / 2 / 3 / 4), that is, extract the image coordinates (S Z , L Z ) corresponding to the pixel value.
[0126] c) determining the surface reflectivity of the pixel based on the satellite payload observations and a pre-constructed target polynomial integrating radiation correction, atmospheric correction, and thin cloud detection; the target polynomial is used to determine the surface reflectivity of the pixel.
[0127] Specifically, for the remote sensing image to be processed, the metadata information of the remote sensing image to be processed is first obtained. For example, for the Gaofen-1 satellite WFV L1A multispectral remote sensing image to be preprocessed, the metadata information of the remote sensing image to be processed is read from the XML file and the RPC file, and the metadata information includes sensor type, imaging date, four vertex coordinates, number of rows, number of columns, solar altitude angle, solar azimuth angle, satellite altitude angle, satellite azimuth angle, longitude and latitude coordinates of the image center pixel, sensor spectral response function data, satellite calibration slope data, absolute calibration coefficient offset and RPC model coefficient.
[0128] For the remote sensing image to be processed, for example, the WFV L1A multispectral remote sensing image of the Gaofen-1 satellite, extract each spectral band B according to the image imaging date and sensor type i (i=1,2,3,4) corresponding radiation calibration coefficient, radiation calibration coefficient includes calibration slope GAin i and the absolute calibration coefficient offset Offset i .
[0129] According to the metadata information, for each spectral band B i (i=1,2,3,4) Construct the temporary input file "in.txt" of the 6S model. Table 1 is a parameter list of the input file. As shown in Table 1, the parameters of the input file include geometric parameters, atmospheric model, aerosol model, aerosol concentration, ground height, detector height, detector spectral conditions, surface characteristics and apparent reflectance switch value.
[0130] Table 1. Parameter list of input files
[0131]
[0132]
[0133] As shown in Table 1, geometric parameters, including satellite observation angle, solar observation angle and observation time, are extracted based on metadata information; atmospheric modes, including tropical (T), midlatitude summer (MLS), midlatitude winter (MLW), subarctic winter (SAW) and subarctic summer (SAS), can be determined according to the imaging date and the latitude of the central pixel corresponding to Table 2, which is the atmospheric mode selection table; aerosol mode can be dynamically defined according to the geographic coordinates of the image data vertices, and aerosol modes include continental aerosol mode, oceanic aerosol mode, urban aerosol mode, desert aerosol mode and biomass aerosol mode; in terms of aerosol concentration, it is assumed that the images involved in the analysis have high visibility, the default is 40KM, and users can customize visibility parameters or aerosol concentration parameters at 550nm; ground height, Defined as the "heightOffset" value in the image rpc file; detector height, defined as "-1000" (indicating onboard sensor); detector spectral condition, based on the official GF-1 satellite sensor spectral response function information, resampled at intervals of 2.5nm to construct a predefined file, and during the construction of the input file "in.txt", the corresponding predefined file data is read according to the sensor type and band number; surface characteristics, the default is a Lambertian body under a uniform surface; surface reflectance switch value, to determine whether the atmospheric correction mode is working forward or reverse.
[0134] Table 2. Atmospheric mode selection table
[0135]
[0136]
[0137] For each spectral band B of the image data i (i=1,2,3,4), input the "in.txt" file into the 6S model, and extract the conversion coefficient x of the surface reflectivity from the corresponding output file of the 6S model a,i 、x b,i and x c,i .
[0138] The spectral reflectance characteristics of thin cloud samples are extracted, and the maximum likelihood model, minimum distance method, decision tree method, random forest model or deep learning model are used to construct a thin cloud detection classifier CDM (P1, P2, P3, P4), where P1, P2, P3 and P4 are surface reflectances.
[0139] Therefore, the target polynomial integrating radiation correction, atmospheric correction and thin cloud detection is constructed in advance and expressed by formulas (13)-(16):
[0140] L i =Gain i *DN i +Offset i (13)
[0141] LE i =x a,i *L i -x b,i (14)
[0142] P i =LE i / (1+x c,i *LE i ) (15)
[0143] F=CDM(P1,P2,P3,P4) (16)
[0144] Among them, DN i represents the satellite payload observation value of band i, P i is the surface reflectivity, i = 1, 2, 3, 4, Gain i Indicates the calibration slope Gain i , offset i Indicates the absolute calibration coefficient offset, x a,i 、x b,i and x c,i Both represent the conversion coefficient of surface reflectivity, F indicates whether the pixel is blocked by thin clouds, F = 1 means that the pixel is blocked by thin clouds, and F = 0 means that the pixel is not blocked by thin clouds. For pixels blocked by thin clouds (i.e. pixels with F = 1), P i Reset to null value.
[0145] The surface reflectance of the pixel can be determined based on the satellite payload observations and the pre-constructed target polynomials that integrate radiation correction, atmospheric correction, and thin cloud detection, namely the above formulas (13)-(16).
[0146] d) Repeat the above step of determining the surface reflectance of the pixel until all pixels in the data block are completely executed, thereby obtaining the surface reflectance of each pixel.
[0147] Specifically, for each pixel in the data block, the above steps a) to c) are repeated until all pixels in the data block are executed, and the surface reflectance of each pixel in the data block can be obtained, thereby obtaining the surface reflectance of each pixel in all data blocks.
[0148] Figure 3 is a schematic diagram of the preprocessing process of any pixel in any data block provided by the present invention, such as Figure 3 As shown, for a specific data block T' rn,cn , taking the pixel Z in the r1th row (r1=0,1,2…,M-1) and the c1th column (c1=0,1,2,…,N-1) as an example, the central plane coordinates of the pixel Z are The central plane coordinate of the pixel Z in, Indicates the projection horizontal coordinate corresponding to the minimum longitude and latitude point of the image boundary to be processed. Indicates the projection ordinate corresponding to the maximum latitude and longitude point of the image boundary to be processed. Represents the first spatial resolution. According to the central plane coordinate (X Z ,Y Z ) and the pre-built inverse projection transform fitting function CT(X g ,Y g ), determine the center plane coordinates (X Z ,Y Z ) corresponds to the geographical coordinates Z′(D lat,Z ,D lon,Z )=CT(X Z ,Y Z ). After obtaining the center plane coordinates (X Z ,Y Z ) corresponds to the geographical coordinates Z′(D lat,Z ,D lon,Z ) After that, the digital elevation D corresponding to the geographic coordinates can be extracted according to the multiple digital elevation data within the spatial range of the minimum longitude and latitude point and the maximum longitude and latitude point obtained in advance. hei,Z Based on the digital elevation, geographic coordinates and the pre-constructed orthorectification inverse transformation formula (the above formulas (6)-(12)), Z′(D lat,Z ,D lon,Z ) corresponds to the image coordinates (S Z ,L Z ). According to the image coordinates, the satellite payload observation value DN of pixel Z″ in the remote sensing image to be processed in band i can be directly determined i (i=1 / 2 / 3 / 4). Based on the satellite payload observations and the pre-constructed target polynomials for fusion radiation correction, atmospheric correction, and thin cloud detection, i.e., the above formulas (13)-(16), the surface reflectance of pixel Z can be determined. For each pixel in the data block, the above steps a)-c) are repeated until all pixels in the data block are executed. The surface reflectance of each pixel in the data block can be obtained, and thus the surface reflectance of each pixel in all data blocks can be obtained.
[0149] The surface reflectance of each pixel is assigned to the data block; each data block with the assigned value is written into a null value raster dataset to obtain a target raster dataset; based on the target raster dataset, the processed remote sensing image is determined.
[0150] Optionally, the specific implementation of step 104 includes:
[0151] The surface reflectance of each pixel is assigned to the data block; each data block is written into the null value grid dataset to obtain a target grid dataset; based on the target grid dataset, the processed remote sensing image is determined.
[0152] Specifically, the surface reflectance of each pixel is assigned to the data block T' in the memory rn,cn , the surface reflectance of each pixel in all data blocks can be obtained. Then, the data blocks with completed values are written into the corresponding row and column positions of the null value grid dataset T' according to the order in which the calculations are completed, and the target grid dataset can be obtained; wherein, the grid attribute corresponding to each band in the target grid dataset is the surface reflectance of any pixel in the remote sensing image to be processed.
[0153] The remote sensing image preprocessing method provided by the present invention changes the traditional step-by-step calculation logic process of remote sensing image preprocessing. By disassembling and reorganizing the processes of radiation correction, atmospheric correction, orthorectification, projection transformation, and thin cloud detection, it greatly saves the time loss of repeated data reading and writing and pixel traversal in the remote sensing image preprocessing process, thereby greatly improving the calculation efficiency of remote sensing image data preprocessing. At the same time, this method is applicable to multi-source heterogeneous multi-scale original remote sensing image data, and is compatible with data-intensive parallel processing strategies. The preprocessing efficiency can be further improved by parallel processing of remote sensing images to be processed in blocks.
[0154] Figure 4 This is the second flow chart of the remote sensing image preprocessing method provided by the present invention. Figure 4 As shown, the method includes steps 401 to 410; wherein,
[0155] Step 401, obtain metadata information of the remote sensing image to be processed. The metadata information includes sensor type, imaging date, four vertex coordinates, number of rows, number of columns, solar altitude angle, solar azimuth angle, satellite altitude angle, satellite azimuth angle, longitude and latitude coordinates of the image center pixel, sensor spectral response function data, satellite calibration slope data, absolute calibration coefficient offset and RPC model coefficient.
[0156] Step 402: construct a target polynomial integrating radiation correction, atmospheric correction, and thin cloud detection according to the metadata information.
[0157] Step 403, constructing orthorectification forward and inverse transformation formulas and projection inverse transformation fitting functions.
[0158] Step 404 : determining vertex coordinates of a plurality of vertices of the remote sensing image to be processed in the plane coordinate system and a first spatial resolution of the remote sensing image to be processed in the plane coordinate system.
[0159] Step 405: construct a null value raster dataset based on the coordinates of each vertex and the first spatial resolution.
[0160] Step 406, dividing the null value grid dataset into a plurality of data blocks; a data block includes a plurality of pixels.
[0161] Step 407: for each data block, pre-process each pixel in the data block in turn to obtain the surface reflectance of each pixel.
[0162] Step 408: assign the surface reflectance of each pixel to the data block.
[0163] Step 409, write each value-assigned data block into the corresponding row and column position of the null value raster dataset to obtain the target raster dataset.
[0164] Step 410, determining a processed remote sensing image based on the target raster dataset.
[0165] The remote sensing image preprocessing method provided by the present invention is different from the existing strategies of optimizing the efficiency of the remote sensing image preprocessing parallel computing algorithm or optimizing the reading and writing efficiency of remote sensing image data based on cluster storage. Instead, it disassembles and reorganizes the processes of radiation correction, atmospheric correction, orthorectification, projection transformation, thin cloud detection and other links in the remote sensing image preprocessing, so that after the remote sensing image is read into the memory, a set of polynomials is applied to complete multiple remote sensing image preprocessing calculations for each pixel and output them in blocks, which greatly saves the time loss of repeated reading and writing of data and pixel traversal in the remote sensing image preprocessing process, thereby greatly improving the remote sensing image data preprocessing calculation efficiency. The method is suitable for multi-source medium and high resolution remote sensing images and is easy to promote and apply.
[0166] The remote sensing image preprocessing device provided by the present invention is described below. The remote sensing image preprocessing device described below and the remote sensing image preprocessing method described above can be referred to each other.
[0167] Figure 5 is a schematic diagram of the structure of the remote sensing image preprocessing device provided by the present invention, such as Figure 5 As shown, the remote sensing image preprocessing device 500 includes: a construction module 501, a division module 502, a preprocessing module 503 and a determination module 504; wherein,
[0168] Construction module 501, used to construct a null value grid data set corresponding to the remote sensing image to be processed; the grid attribute corresponding to each band in the null value grid data set is a null value; the grid attribute represents the surface reflectance of any pixel in the remote sensing image to be processed;
[0169] A division module 502 is used to divide the null value grid dataset into a plurality of data blocks; the data blocks include a plurality of pixels;
[0170] A preprocessing module 503 is used to preprocess each pixel in each data block in turn to obtain the surface reflectance of each pixel;
[0171] The determination module 504 is used to determine the processed remote sensing image based on the surface reflectance of each pixel.
[0172] The remote sensing image preprocessing device provided by the present invention constructs a null value grid data set corresponding to the remote sensing image to be processed; the grid attribute corresponding to each band in the null value grid data set is a null value; the grid attribute represents the surface reflectance of any pixel in the remote sensing image to be processed; the null value grid data set is divided into multiple data blocks; the data block includes multiple pixels; for each data block, each pixel in the data block is preprocessed in turn to obtain the surface reflectance of each pixel; based on the surface reflectance of each pixel, the processed remote sensing image is determined. By preprocessing each pixel in each data block, the time loss of repeated reading and writing and pixel traversal in the remote sensing image preprocessing process is greatly saved, thereby greatly improving the calculation efficiency of remote sensing image data preprocessing.
[0173] Optionally, the determining module 504 is specifically configured to:
[0174] Assigning the surface reflectance of each pixel to the data block;
[0175] Writing each valued data block into the null value grid dataset to obtain a target grid dataset;
[0176] Based on the target raster dataset, the processed remote sensing image is determined.
[0177] Optionally, the preprocessing module 503 is specifically used to:
[0178] For each of the pixels in each of the data blocks, determining the central plane coordinates of the pixel in the plane coordinate system;
[0179] Determine the geographic coordinates corresponding to the central plane coordinates based on the central plane coordinates and a pre-constructed projection inverse transformation fitting function;
[0180] Extracting the digital elevation corresponding to the geographic coordinates based on a plurality of digital elevation data within the spatial range of the minimum longitude and latitude point and the maximum longitude and latitude point acquired in advance;
[0181] The surface reflectance of each pixel is determined based on the digital elevation, the geographic coordinates and a pre-constructed orthorectification inverse transformation formula.
[0182] Optionally, the preprocessing module 503 is further used to:
[0183] Based on the digital elevation, the geographic coordinates and a pre-constructed orthorectification inverse transformation formula, determining the image coordinates of the pixel in the remote sensing image to be processed corresponding to the geographic coordinates;
[0184] Based on the image coordinates, determining the corresponding satellite payload observation value in the remote sensing image to be processed;
[0185] Determine the surface reflectivity of the pixel based on the satellite payload observations and a pre-constructed target polynomial integrating radiation correction, atmospheric correction, and thin cloud detection; the target polynomial is used to determine the surface reflectivity of the pixel;
[0186] The above steps of determining the surface reflectance of the pixel are repeated until all the pixels in the data block are completely executed, thereby obtaining the surface reflectance of each pixel.
[0187] Optionally, the construction module 501 is specifically used to:
[0188] Determine vertex coordinates of a plurality of vertices of the remote sensing image to be processed in a plane coordinate system and a first spatial resolution of the remote sensing image to be processed in the plane coordinate system;
[0189] The null value raster dataset is constructed based on the vertex coordinates and the first spatial resolution.
[0190] Optionally, the construction module 501 is further used to:
[0191] Based on a pre-constructed orthorectification positive transformation formula, determining the object space coordinates corresponding to the image space coordinates of a plurality of vertices of the remote sensing image to be processed; the orthorectification positive transformation formula is determined based on the image space coordinates of the remote sensing image to be processed;
[0192] Based on each of the object coordinates, determining a second spatial resolution of the remote sensing image to be processed in the latitude direction and the longitude direction;
[0193] Based on the second spatial resolution, determining the minimum longitude and latitude point and the maximum longitude and latitude point of the boundary of the remote sensing image to be processed;
[0194] Based on the minimum longitude and latitude point and the maximum longitude and latitude point, determine the projection coordinates corresponding to the minimum longitude and latitude point and the maximum longitude and latitude point respectively;
[0195] Based on the projection coordinates corresponding to the minimum longitude and latitude point and the maximum longitude and latitude point respectively, the vertex coordinates of each vertex of the remote sensing image to be processed in the plane coordinate system are determined.
[0196] Optionally, the construction module 501 is further used to:
[0197] Based on the projection coordinates of each of the vertices in the plane coordinate system, a first spatial resolution of the remote sensing image to be processed in the plane coordinate system is determined.
[0198] Figure 6 is a schematic diagram of the physical structure of an electronic device provided by the present invention, such as Figure 6 As shown, the electronic device may include: a processor 610, a communication interface 620, a memory 630 and a communication bus 640, wherein the processor 610, the communication interface 620 and the memory 630 communicate with each other through the communication bus 640. The processor 610 may call the logic instructions in the memory 630 to execute the remote sensing image preprocessing method, which includes: constructing a null value grid data set corresponding to the remote sensing image to be processed; the grid attribute corresponding to each band in the null value grid data set is a null value; the grid attribute represents the surface reflectance of any pixel in the remote sensing image to be processed; dividing the null value grid data set into a plurality of data blocks; the data block includes a plurality of pixels; for each data block, preprocessing each pixel in the data block in turn to obtain the surface reflectance of each pixel; and determining the processed remote sensing image based on the surface reflectance of each pixel.
[0199] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0200] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the remote sensing image preprocessing method provided by the above-mentioned methods, the method comprising: constructing a null-value raster dataset corresponding to the remote sensing image to be processed; the raster attribute corresponding to each band in the null-value raster dataset is a null value; the raster attribute represents the surface reflectance of any pixel in the remote sensing image to be processed; dividing the null-value raster dataset into a plurality of data blocks; the data block comprises a plurality of pixels; for each of the data blocks, preprocessing each of the pixels in the data block in turn to obtain the surface reflectance of each pixel; and determining the processed remote sensing image based on the surface reflectance of each pixel.
[0201] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0202] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0203] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A remote sensing image preprocessing method, characterized in that: include: Constructing a null value raster dataset corresponding to the remote sensing image to be processed; the raster attribute corresponding to each band in the null value raster dataset is a null value; the raster attribute represents the surface reflectance of any pixel in the remote sensing image to be processed; Dividing the null value grid dataset into a plurality of data blocks; the data blocks include a plurality of pixels; For each of the data blocks, preprocessing each of the pixels in the data block in turn to obtain the surface reflectance of each pixel; Determining a processed remote sensing image based on the surface reflectivity of each of the pixels; For each of the data blocks, preprocessing each of the pixels in the data block in turn to obtain the surface reflectance of each pixel includes: For each of the pixels in each of the data blocks, determining the central plane coordinates of the pixel in the plane coordinate system; Determine the geographic coordinates corresponding to the central plane coordinates based on the central plane coordinates and a pre-constructed projection inverse transformation fitting function; Extracting the digital elevation corresponding to the geographic coordinates based on a plurality of digital elevation data within the spatial range of the minimum longitude and latitude point and the maximum longitude and latitude point acquired in advance; Based on the digital elevation, the geographic coordinates and a pre-constructed orthorectification inverse transformation formula, determining the image coordinates of the pixel in the remote sensing image to be processed corresponding to the geographic coordinates; Based on the image coordinates, determining the corresponding satellite payload observation value in the remote sensing image to be processed; Determine the surface reflectivity of the pixel based on the satellite payload observation value and a pre-constructed target polynomial integrating radiation correction, atmospheric correction, and thin cloud detection; the target polynomial is used to determine the surface reflectivity of the pixel; The above steps of determining the surface reflectance of the pixel are repeated until all the pixels in the data block are completely executed, thereby obtaining the surface reflectance of each pixel.
2. The remote sensing image preprocessing method according to claim 1, characterized in that: The step of determining the processed remote sensing image based on the surface reflectance of each pixel comprises: Assigning the surface reflectance of each pixel to the data block; Writing each valued data block into the null value grid dataset to obtain a target grid dataset; Based on the target raster dataset, the processed remote sensing image is determined.
3. The remote sensing image preprocessing method according to claim 1, characterized in that: The step of constructing a null value grid dataset corresponding to the remote sensing image to be processed includes: Determine vertex coordinates of a plurality of vertices of the remote sensing image to be processed in a plane coordinate system and a first spatial resolution of the remote sensing image to be processed in the plane coordinate system; The null value raster dataset is constructed based on the vertex coordinates and the first spatial resolution.
4. The remote sensing image preprocessing method according to claim 3, characterized in that: Determining vertex coordinates of a plurality of vertices of the remote sensing image to be processed in a plane coordinate system comprises: Based on a pre-constructed orthorectification positive transformation formula, determining the object space coordinates corresponding to the image space coordinates of a plurality of vertices of the remote sensing image to be processed; the orthorectification positive transformation formula is determined based on the image space coordinates of the remote sensing image to be processed; Based on each of the object coordinates, determining a second spatial resolution of the remote sensing image to be processed in the latitude direction and the longitude direction; Based on the second spatial resolution, determining the minimum longitude and latitude point and the maximum longitude and latitude point of the boundary of the remote sensing image to be processed; Based on the minimum longitude and latitude point and the maximum longitude and latitude point, determine the projection coordinates corresponding to the minimum longitude and latitude point and the maximum longitude and latitude point respectively; Based on the projection coordinates corresponding to the minimum longitude and latitude point and the maximum longitude and latitude point respectively, the vertex coordinates of each vertex of the remote sensing image to be processed in the plane coordinate system are determined.
5. The remote sensing image preprocessing method according to claim 3, characterized in that: Determining a first spatial resolution of the remote sensing image to be processed in the plane coordinate system includes: Based on the projection coordinates of each of the vertices in the plane coordinate system, a first spatial resolution of the remote sensing image to be processed in the plane coordinate system is determined.
6. A remote sensing image preprocessing device, characterized in that: include: A construction module is used to construct a null value raster dataset corresponding to the remote sensing image to be processed; the raster attribute corresponding to each band in the null value raster dataset is a null value; the raster attribute represents the surface reflectance of any pixel in the remote sensing image to be processed; A partitioning module, used for partitioning the null value grid dataset into a plurality of data blocks; the data blocks include a plurality of pixels; A preprocessing module, used for preprocessing each pixel in each data block in turn to obtain the surface reflectance of each pixel; A determination module, used for determining a processed remote sensing image based on the surface reflectance of each pixel; The preprocessing module is specifically used for: For each of the pixels in each of the data blocks, determining the central plane coordinates of the pixel in the plane coordinate system; Determine the geographic coordinates corresponding to the central plane coordinates based on the central plane coordinates and a pre-constructed projection inverse transformation fitting function; Extracting the digital elevation corresponding to the geographic coordinates based on a plurality of digital elevation data within the spatial range of the minimum longitude and latitude point and the maximum longitude and latitude point acquired in advance; Based on the digital elevation, the geographic coordinates and a pre-constructed orthorectification inverse transformation formula, determining the image coordinates of the pixel in the remote sensing image to be processed corresponding to the geographic coordinates; Based on the image coordinates, determining the corresponding satellite payload observation value in the remote sensing image to be processed; Determine the surface reflectivity of the pixel based on the satellite payload observations and a pre-constructed target polynomial integrating radiation correction, atmospheric correction, and thin cloud detection; The target polynomial is used to determine the surface reflectance of the pixel; The above steps of determining the surface reflectance of the pixel are repeated until all the pixels in the data block are completely executed, thereby obtaining the surface reflectance of each pixel.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the remote sensing image preprocessing method as described in any one of claims 1 to 5 is implemented.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the remote sensing image preprocessing method as claimed in any one of claims 1 to 5 is implemented.
