Method, device and equipment for identifying invalid value of remote sensing data

By obtaining the invalid value information in the header file of the remote sensing data and the band values ​​of edge pixel points, the invalid value in the remote sensing data is accurately identified, which solves the problem of poor accuracy in the identification of invalid value in the prior art and improves the quality of data visualization.

CN120088581AActive Publication Date: 2025-06-03北京观微科技有限公司
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510556063.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-29
Publication Date
2025-06-03
Estimated Expiration
2045-04-29

AI Technical Summary

Technical Problem

The prior art has poor accuracy when identifying invalid values ​​in remote sensing data and cannot effectively respond to the visualization needs of massive remote sensing data.

Method used

By obtaining the invalid value of the first remote sensing data in the header file of the remote sensing data, and determining the invalid value of the second remote sensing data based on the values ​​of multiple bands corresponding to the edge pixel points in the remote sensing data, and finally determining the invalid value of the remote sensing data through comparison and analysis.

Benefits of technology

It improves the accuracy of remote sensing data invalid values, and can more effectively identify and process invalid values, thereby improving the quality of data visualization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120088581A_ABST
    Figure CN120088581A_ABST
Patent Text Reader

Abstract

The invention provides a remote sensing data invalid value identification method, device and equipment, and relates to the technical field of remote sensing data analysis, and the method comprises the steps: obtaining a first remote sensing data invalid value in a header file of remote sensing data; determining a second remote sensing data invalid value according to values of a plurality of wavebands corresponding to each edge pixel point in the remote sensing data; and determining a target invalid value of the remote sensing data according to the first remote sensing data invalid value and the second remote sensing data invalid value. According to the method provided by the embodiment of the invention, the invalid value of the remote sensing data can be accurately determined.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of remote sensing data analysis, and particularly to a method, device and equipment for identifying invalid values of remote sensing data. Background Art

[0002] With the development of the national civilian and commercial mapping and geographic information satellite remote sensing cause, the application of spatial raster data in the market tends to be diversified.

[0003] In related technologies, the invalid value information of a remote sensing image is obtained by reading the header file of the remote sensing image, and the invalid value pixels are transparently processed in the visualization of the remote sensing image. This method has poor accuracy and cannot accurately identify the invalid values in the remote sensing data, and there are obvious technical drawbacks in dealing with the scenario of visualizing a large amount of remote sensing data. Summary of the Invention

[0004] The present invention provides a method, device and equipment for identifying invalid values of remote sensing data. First, the first invalid value of the remote sensing data is determined based on the invalid value information in the header file, and then the second invalid value of the remote sensing data is determined based on the values of multiple bands corresponding to the edge pixel points in the remote sensing data. Finally, through the comparison and analysis of the first invalid value of the remote sensing data and the second invalid value of the remote sensing data, the invalid value of the remote sensing data can be accurately determined, effectively improving the accuracy of the invalid value of the remote sensing data.

[0005] The present invention provides a method for identifying invalid values of remote sensing data, including the following steps.

[0006] Obtain the first invalid value of the remote sensing data in the header file of the remote sensing data; Determine the second invalid value of the remote sensing data according to the values of multiple bands corresponding to each edge pixel point in the remote sensing data; Determine the target invalid value of the remote sensing data according to the first invalid value of the remote sensing data and the second invalid value of the remote sensing data.

[0007] According to the method for identifying invalid values of remote sensing data provided by the present invention, the determining the second invalid value of the remote sensing data according to the values of multiple bands corresponding to each edge pixel point in the remote sensing data includes: Obtain a plurality of homogeneous pixel point sets according to the values of multiple bands corresponding to each edge pixel point in the remote sensing data; wherein, a homogeneous pixel point is a pixel point whose values of the multiple bands are all equal; Determine the second invalid value of the remote sensing data according to the number of homogeneous pixel points in each of the homogeneous pixel point sets.

[0008] A method for identifying invalid values of remote sensing data provided by the present invention, the determining the second remote sensing data invalid value according to the number of homogeneous pixel points in each of the homogeneous pixel point sets includes: Determine a first homogeneous pixel point set from the multiple homogeneous pixel point sets according to the number of homogeneous pixel points in each of the homogeneous pixel point sets; the first homogeneous pixel point set is the homogeneous pixel point set with the largest number of homogeneous pixel points among the multiple homogeneous pixel point sets; Take the set of values of multiple bands corresponding to the homogeneous pixel points in the first homogeneous pixel point set as the second remote sensing data invalid value.

[0009] A method for identifying invalid values of remote sensing data provided by the present invention, the determining the target invalid value of the remote sensing data according to the first remote sensing data invalid value and the second remote sensing data invalid value includes: When the first remote sensing data invalid value is the same as the second remote sensing data invalid value, determine the first remote sensing data invalid value or the second remote sensing data invalid value as the target invalid value of the remote sensing data; When the first remote sensing data invalid value is different from the second remote sensing data invalid value, determine the target invalid value of the remote sensing data according to the number of edge pixel points corresponding to the first remote sensing data invalid value and the number of edge pixel points corresponding to the second remote sensing data invalid value.

[0010] A method for identifying invalid values of remote sensing data provided by the present invention, the determining the target invalid value of the remote sensing data according to the number of edge pixel points corresponding to the first remote sensing data invalid value and the number of edge pixel points corresponding to the second remote sensing data invalid value when the first remote sensing data invalid value is different from the second remote sensing data invalid value includes: When the number of edge pixel points corresponding to the first remote sensing data invalid value is greater than the number of edge pixel points corresponding to the second remote sensing data invalid value, take the first remote sensing data invalid value as the target invalid value of the remote sensing data; When the number of edge pixel points corresponding to the first remote sensing data invalid value is less than the number of edge pixel points corresponding to the second remote sensing data invalid value, take the second remote sensing data invalid value as the target invalid value of the remote sensing data.

[0011] A method for identifying invalid values of remote sensing data provided by the present invention, the determining the second remote sensing data invalid value according to the values of multiple bands corresponding to each edge pixel point in the remote sensing data includes: Determine the dispersion degree of the band values of the pixel points within the edge sliding window according to the values of multiple bands corresponding to each pixel point within the edge sliding window of the remote sensing data; When the dispersion degree of the band values of the pixel points within the edge sliding window is less than the threshold, use the edge sliding window as the filtered edge sliding window, and use the pixel points within the filtered edge sliding window as the edge pixel points.

[0012] According to a method for identifying invalid values of remote sensing data provided by the present invention, when the first invalid value of the remote sensing data is different from the second invalid value of the remote sensing data, and the difference between the number of homogeneous pixel points in the first set of homogeneous pixel points and the number of homogeneous pixel points in the second set of homogeneous pixel points is less than a preset value, adjust the size of the edge sliding window and re-determine the first set of homogeneous pixel points; the second set of homogeneous pixel points is any one of the multiple sets of homogeneous pixel points.

[0013] The present invention also provides an apparatus for identifying invalid values of remote sensing data, including the following modules: An acquisition module, configured to acquire a first invalid value of the remote sensing data in the header file of the remote sensing data; A determination module, configured to determine a second invalid value of the remote sensing data according to the values of multiple bands corresponding to each edge pixel point in the remote sensing data; An identification module, configured to determine a target invalid value of the remote sensing data according to the first invalid value of the remote sensing data and the second invalid value of the remote sensing data.

[0014] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where when the processor executes the program, it implements the method for identifying invalid values of remote sensing data as described in any one of the above.

[0015] The present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the method for identifying invalid values of remote sensing data as described in any one of the above.

[0016] The present invention also provides a computer program product, including a computer program, and when the computer program is executed by a processor, it implements the method for identifying invalid values of remote sensing data as described in any one of the above.

[0017] The method, device, and equipment for identifying invalid values of remote sensing data provided by the present invention first determine the first invalid values of remote sensing data based on the invalid value information in the header file, then determine the second invalid values of remote sensing data based on the values of multiple bands corresponding to the edge pixel points in the remote sensing data, and finally, through the comparison and analysis of the first invalid values and the second invalid values of remote sensing data, the invalid values of remote sensing data can be accurately determined, effectively improving the accuracy of the invalid values of remote sensing data. Description of the Drawings

[0018] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0019] Figure 1 It is one of the schematic diagrams of the method for identifying invalid values of remote sensing data provided by the present invention.

[0020] Figure 2 It is a schematic diagram of the defect in identifying invalid values of remote sensing data provided by the present invention.

[0021] Figure 3 It is another schematic diagram of the method for identifying invalid values of remote sensing data provided by the present invention.

[0022] Figure 4 It is a third schematic diagram of the method for identifying invalid values of remote sensing data provided by the present invention.

[0023] Figure 5 It is a fourth schematic diagram of the method for identifying invalid values of remote sensing data provided by the present invention.

[0024] Figure 6 It is a schematic diagram of the device for identifying invalid values of remote sensing data provided by the present invention.

[0025] Figure 7 It is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Embodiments

[0026] To make the objectives, technical solutions, and advantages of the present invention clearer, the following will clearly and completely describe the technical solutions in the present invention in conjunction with the drawings in the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present invention.

[0027] The following will be combined with Figures 1-7Disclosed are a method, apparatus, and device for identifying invalid values in remote sensing data according to the present invention.

[0028] To facilitate a clearer understanding of the technical solutions of the embodiments of the present application, some technical content related to the embodiments of the present application will be introduced first.

[0029] As Figure 1 shown, in common raster data visualization solutions, the identification of invalid values in remote sensing images is achieved by reading the invalid value information in the structured data of the remote sensing image header file, and the invalid value pixels are made transparent during the visualization process of the remote sensing image.

[0030] For raster data with inconsistent specifications, it is difficult to obtain the optimal visualization effect by simply reading the data header file in an automated manner for visualization slicing display in complex scenario applications and massive data applications. Since the invalid value identified in the remote sensing image header is different from the actual invalid value, there is an obvious "black edge" phenomenon in the data visualization display.

[0031] As Figure 2 shown, the remote sensing image in the figure is composed of two different satellite data sources mosaicked (gf1: referring to the pixel source as the remote sensing image of the Gaofen-1 satellite, S2A: referring to the pixel source as the Sentinel L2A-level remote sensing image; Null(pro): referring to the invalid value specified by humans or automated programs). The invalid value of such data completely depends on the remote sensing image data production and manufacturing unit or producer. In actual production applications, whether it is a professional surveying and mapping geographic information unit, a satellite remote sensing technology unit, or relevant units such as agriculture, geology, and emergency at the downstream of data application, due to different project backgrounds and different demand backgrounds, there are numerous such data. In projects involving the convergence of relevant spatial data, a large number of complex scenarios and raster data with complex sources will cause great difficulties in identifying invalid values in data visualization. If the single method of reading the header file is still used to identify the invalid values of raster data and then visualize the data for release, it will be a wrong representation of such data.

[0032] Figure 3 is a schematic flowchart of the method for identifying invalid values in remote sensing data provided by the present invention. As Figure 3 shown, the method includes the following: Step 301: Obtain the first remote sensing data invalid value in the header file of the remote sensing data.

[0033] Specifically, in the embodiments of the present application, the first remote sensing data invalid value in the header file of the remote sensing data is first obtained, that is, the invalid value of the raster data is identified by reading the header file first. For example, it is indicated in the header file that the remote sensing data invalid value is GRB000, that is, the pixel points with RGB value of 000 are the invalid value pixels in the remote sensing data, and the invalid value pixels can be transparently processed during the visualization process of the remote sensing image.

[0034] Step 302: Determine the second remote sensing data invalid value according to the values of multiple bands corresponding to each edge pixel point in the remote sensing data.

[0035] Specifically, in the embodiments of the present application, after obtaining the first remote sensing data invalid value in the header file of the remote sensing data, the second remote sensing data invalid value is also determined according to the values of multiple bands corresponding to each edge pixel point in the remote sensing data. Optionally, the invalid values in the remote sensing data are mostly concentrated on the edges of the remote sensing image. In the present application, the invalid values in the second remote sensing data are accurately determined by the values of multiple bands corresponding to each edge pixel point in the remote sensing data. Optionally, the band combination value with the largest proportion in the edge pixel points can be used as the invalid value of the remote sensing data. For example, if the proportion of the edge pixel points with RGB value of 000 among the edge pixel points is 70%, and the proportion of the edge pixel points with RGB value of 001 among the edge pixel points is 30%, then the second remote sensing data invalid value can be determined to be 000. Optionally, the edge pixel points can be directly circled on the remote sensing image, or determined by other means.

[0036] Step 303: Determine the target invalid value of the remote sensing data according to the first remote sensing data invalid value and the second remote sensing data invalid value.

[0037] Specifically, after determining the first remote sensing data invalid value and the second remote sensing data invalid value, the target invalid value of the remote sensing data can be determined according to the first remote sensing data invalid value and the second remote sensing data invalid value. For example, if the first remote sensing data invalid value is 000 and the second remote sensing data invalid value is also 000, that is, the invalid values of the remote sensing data determined by the two methods are both 000, then the target invalid value of the remote sensing data can finally be determined to be 000. Optionally, if the first remote sensing data invalid value is 000 and the second remote sensing data invalid value is 001, an alarm message can be output indicating that there may be an error in the invalid value in the remote sensing data header file and further verification is required. That is, in the embodiments of the present application, the first remote sensing data invalid value is first determined based on the invalid value information in the header file, then the second remote sensing data invalid value is determined based on the values of multiple bands corresponding to the edge pixel points in the remote sensing data, and finally, through the comparison and analysis of the first remote sensing data invalid value and the second remote sensing data invalid value, the invalid value of the remote sensing data can be finally accurately determined, effectively improving the accuracy of the remote sensing data invalid value.

[0038] For the method of the above embodiment, first, the first remote sensing data invalid value is determined based on the invalid value information in the header file, then the second remote sensing data invalid value is determined based on the values of multiple bands corresponding to the edge pixel points in the remote sensing data, and finally, through the comparison and analysis of the first remote sensing data invalid value and the second remote sensing data invalid value, the invalid value of the remote sensing data can be accurately determined, effectively improving the accuracy of the invalid value of the remote sensing data.

[0039] In one embodiment, determining the second remote sensing data invalid value according to the values of multiple bands corresponding to each edge pixel point in the remote sensing data includes: Obtaining multiple homogeneous pixel point sets according to the values of multiple bands corresponding to each edge pixel point in the remote sensing data; wherein, a homogeneous pixel point is a pixel point with equal values of multiple bands; Determining the second remote sensing data invalid value according to the number of homogeneous pixel points in each homogeneous pixel point set.

[0040] Specifically, in the embodiment of the present application, first, multiple homogeneous pixel point sets are obtained according to the values of multiple bands corresponding to each edge pixel point in the remote sensing data; wherein, a homogeneous pixel point is a pixel point with equal values of multiple bands. For example, if the RGB values of 3 bands corresponding to edge pixel point 1 and edge pixel point 2 are 000, then edge pixel point 1 and edge pixel point 2 can be combined into homogeneous pixel point set 1. If the RGB values of 3 bands corresponding to edge pixel point 2, edge pixel point 3, and edge pixel point 4 are all 001, then edge pixel point 2, edge pixel point 3, and edge pixel point 4 can be combined into homogeneous pixel point set 2.

[0041] Optionally, after obtaining multiple homogeneous pixel point sets according to the values of multiple bands corresponding to each edge pixel point in the remote sensing data, the second remote sensing data invalid value can be determined according to the number of homogeneous pixel points in each homogeneous pixel point set. Optionally, if the number of homogeneous pixel points in homogeneous pixel point set 2 is 3 and the number of homogeneous pixel points in homogeneous pixel point set 1 is 2, that is, the number of pixel points with RGB value 001 among the edge pixel points is more than the number of pixel points with RGB value 000, then the RGB value 001 can be determined as the invalid value of the remote sensing data.

[0042] The method of the above embodiments obtains multiple homogeneous pixel point sets according to the values of multiple bands corresponding to each edge pixel point in the remote sensing data, that is, classifies the edge pixel points according to the values of multiple bands corresponding to each edge pixel point to obtain multiple homogeneous pixel point sets; and then, according to the number of homogeneous pixel points in each homogeneous pixel point set, the invalid value of the second remote sensing data can be accurately determined. Further, through the comparison and analysis of the invalid value of the first remote sensing data and the invalid value of the second remote sensing data, the invalid value of the remote sensing data can be finally accurately determined, effectively improving the accuracy of the invalid value of the remote sensing data.

[0043] In some embodiments, determining the invalid value of the second remote sensing data according to the number of homogeneous pixel points in each homogeneous pixel point set includes: Determining a first homogeneous pixel point set from multiple homogeneous pixel point sets according to the number of homogeneous pixel points in each homogeneous pixel point set; the first homogeneous pixel point set is the homogeneous pixel point set with the largest number of homogeneous pixel points among the multiple homogeneous pixel point sets; Taking the set of values of multiple bands corresponding to the homogeneous pixel points in the first homogeneous pixel point set as the invalid value of the second remote sensing data.

[0044] Specifically, after the embodiments of the present application classify the edge pixel points according to the values of multiple bands corresponding to each edge pixel point to obtain multiple homogeneous pixel point sets, a first homogeneous pixel point set is further determined from the multiple homogeneous pixel point sets according to the number of homogeneous pixel points in each homogeneous pixel point set; wherein, the first homogeneous pixel point set is the homogeneous pixel point set with the largest number of homogeneous pixel points among the multiple homogeneous pixel point sets. For example, if there are 100 pixel points with RGB value 000 in the homogeneous pixel point set A and 200 pixel points with RGB value 001 in the homogeneous pixel point set B, then it can be determined that the homogeneous pixel point set B is the first homogeneous pixel point set. Optionally, the number of pixel points in the homogeneous pixel point set A and the homogeneous pixel point set B can be sorted to determine whether there are more homogeneous pixel points with RGB value 000 in the homogeneous pixel point set A or more homogeneous pixel points with RGB value 001 in the homogeneous pixel point set B, so that the first homogeneous pixel point set can be accurately determined from the homogeneous pixel point set A and the homogeneous pixel point set B.

[0045] Optionally, after determining the first homogeneous pixel point set, the set of values of multiple bands corresponding to the homogeneous pixel points in the first homogeneous pixel point set can be taken as the invalid value of the second remote sensing data. For example, after determining that the homogeneous pixel point set B is the first homogeneous pixel point set, the set of multiple band values RGB001 corresponding to the homogeneous pixel points in the homogeneous pixel point set B can be taken as the invalid value of the second remote sensing data.

[0046] For the method of the above embodiments, according to the number of homogeneous pixel points in each set of homogeneous pixel points, the first set of homogeneous pixel points is determined from multiple sets of homogeneous pixel points, that is, after determining the set of homogeneous pixel points with the largest number of homogeneous pixel points as the first set of homogeneous pixel points from multiple sets of homogeneous pixel points, the set of multiple band values corresponding to the homogeneous pixel points in the first set of homogeneous pixel points can be used as the invalid value of the second remote sensing data, achieving the accurate and rapid determination of the invalid value of the second remote sensing data.

[0047] In one embodiment, determining the target invalid value of the remote sensing data according to the invalid value of the first remote sensing data and the invalid value of the second remote sensing data includes: In the case where the invalid value of the first remote sensing data is the same as the invalid value of the second remote sensing data, determine the invalid value of the first remote sensing data or the invalid value of the second remote sensing data as the target invalid value of the remote sensing data; In the case where the invalid value of the first remote sensing data is different from the invalid value of the second remote sensing data, determine the target invalid value of the remote sensing data according to the number of edge pixel points corresponding to the invalid value of the first remote sensing data and the number of edge pixel points corresponding to the invalid value of the second remote sensing data.

[0048] Specifically, in the embodiments of the present application, in the case where the invalid value of the first remote sensing data is the same as the invalid value of the second remote sensing data, determine the invalid value of the first remote sensing data or the invalid value of the second remote sensing data as the target invalid value of the remote sensing data. For example, when the invalid value of the first remote sensing data is RGB000 and the invalid value of the second remote sensing data is also RGB000, the target invalid value of the remote sensing data is determined to be RGB000.

[0049] Optionally, in the case where the invalid value of the first remote sensing data is different from the invalid value of the second remote sensing data, determine the target invalid value of the remote sensing data according to the number of edge pixel points corresponding to the invalid value of the first remote sensing data and the number of edge pixel points corresponding to the invalid value of the second remote sensing data. Optionally, in the case where the number of edge pixel points corresponding to the invalid value of the first remote sensing data is greater than the number of edge pixel points corresponding to the invalid value of the second remote sensing data, use the invalid value of the first remote sensing data as the target invalid value of the remote sensing data. In the case where the number of edge pixel points corresponding to the invalid value of the first remote sensing data is less than the number of edge pixel points corresponding to the invalid value of the second remote sensing data, use the invalid value of the second remote sensing data as the target invalid value of the remote sensing data. For example, when the number of edge pixel points corresponding to the invalid value RGB000 of the first remote sensing data is 100, and the number of edge pixel points corresponding to the invalid value RGB001 of the second remote sensing data is 200, the target invalid value RGB001 of the remote sensing data is determined.

[0050] For the method of the above embodiments, when the invalid values of the first remote sensing data and the second remote sensing data are the same, the invalid value of the first remote sensing data or the second remote sensing data is determined as the target invalid value of the remote sensing data; when the invalid values of the first remote sensing data and the second remote sensing data are different, the target invalid value of the remote sensing data is determined according to the number of edge pixels corresponding to the invalid value of the first remote sensing data and the number of edge pixels corresponding to the invalid value of the second remote sensing data. Thus, in different scenarios and situations, the accurate determination of the target invalid value of the remote sensing data can be achieved, effectively improving the accuracy of the invalid value of the remote sensing data.

[0051] In some embodiments, determining the second remote sensing data invalid value according to the values of multiple bands corresponding to each edge pixel in the remote sensing data includes: Determining the dispersion degree of the band values of the pixels within the edge sliding window of the remote sensing data according to the values of multiple bands corresponding to each pixel within the edge sliding window of the remote sensing data; When the dispersion degree of the band values of the pixels within the edge sliding window is less than the threshold, the edge sliding window is used as the filtered edge sliding window, and the pixels within the filtered edge sliding window are used as edge pixels.

[0052] Specifically, in the embodiments of the present application, the size and step length of the edge sliding window of the remote sensing data can be determined first, and then the edge pixels of the remote sensing data are traversed through the edge sliding window of the remote sensing data. Then, according to the values of multiple bands corresponding to each pixel within the edge sliding window of the remote sensing data, the dispersion degree of the band values of the pixels within the edge sliding window is determined. For example, when there are multiple pixels within the edge sliding window, if the RGB value of pixel 1 is 000, the RGB value of pixel 2 is 001, and the RGB value of pixel 3 is 111, then the dispersion degree of the band values of the pixels within the edge sliding window can be calculated according to the values of multiple bands corresponding to multiple pixels within the edge sliding window. Optionally, the dispersion degree of the band values of the pixels within the edge sliding window can be characterized by the variance or standard deviation of the multiple band values of multiple pixels.

[0053] Optionally, when the dispersion degree of the band values of the pixels within the edge sliding window is less than the threshold, it indicates that the dispersion degree of the band values of the pixels within the sliding window is small. Then, the edge sliding window can be used as the filtered edge sliding window, and the pixels within the filtered edge sliding window can be used as edge pixels, so as to determine the second remote sensing data invalid value, which makes the determined second remote sensing data invalid value more accurate and effectively improves the accuracy of the invalid value of the remote sensing data. Optionally, when the dispersion degree of the band values of the pixels within the edge sliding window is greater than the threshold, the pixels within the edge sliding window are discarded, that is, they are no longer used as sample data for calculating the second remote sensing data, improving the accuracy of the invalid value of the remote sensing data.

[0054] For the method of the above embodiment, when the degree of dispersion of the band values of the pixel points within the edge sliding window is less than the threshold, it indicates that the degree of dispersion of the band values of the pixel points within the sliding window is small. Then, the edge sliding window can be used as the filtered edge sliding window, and the pixel points within the filtered edge sliding window can be used as edge pixel points, so as to determine the invalid values of the second remote sensing data, effectively improving the accuracy of the invalid values of the remote sensing data.

[0055] In one embodiment, when the invalid values of the first remote sensing data and the second remote sensing data are different, and the difference between the number of homogeneous pixel points in the first homogeneous pixel point set and the number of homogeneous pixel points in the second homogeneous pixel point set is less than a preset value, the size of the edge sliding window is adjusted, and the first homogeneous pixel point set is re-determined; the second homogeneous pixel point set is any one of multiple homogeneous pixel point sets.

[0056] Specifically, when the difference between the number of homogeneous pixel points in the first homogeneous pixel point set and the number of homogeneous pixel points in the second homogeneous pixel point set is less than a preset value, it indicates that the representativeness of the statistical result is insufficient. Therefore, the size of the edge sliding window can be enlarged to re-determine the first homogeneous pixel point set, thereby effectively improving the accuracy of the invalid values of the remote sensing data.

[0057] For the method of the above embodiment, when the difference between the number of homogeneous pixel points in the first homogeneous pixel point set and the number of homogeneous pixel points in the second homogeneous pixel point set is less than a preset value, the size of the edge sliding window is enlarged to re-determine the first homogeneous pixel point set, effectively improving the accuracy of the invalid values of the remote sensing data.

[0058] Exemplarily, as Figure 4 shown, the embodiment of the present application provides a method for identifying invalid values of remote sensing data, which is specifically as follows: (1)Data acquisition & header file reading.

[0059] First, raster data is acquired, and the header file of the raster data is read to obtain the invalid values of the raster data.

[0060] (2)Edge sliding window traversal & variance and standard deviation calculation.

[0061] The edge sliding window traversal is to automatically select several long strip-shaped borders at the edge of the spatial raster data for subsequent calculations in the edge of the spatial raster data. Optionally, attention should be paid to the uniformity of the sliding window to ensure that the traversed sliding window blocks can effectively represent the effective distribution of the boundary pixel values of the raster data. After the selection of the sliding window blocks is completed, the variance and standard deviation within different sliding window blocks are calculated to check the internal pixel value distribution differences.

[0062] (3)Sliding window quadrat screening & homogeneous pixel count comparison.

[0063] After completing the edge sliding window traversal and calculating the variance and standard deviation of the pixel values within the sliding window block, the sliding window block with the maximum and minimum extreme values and the median floating within a fixed range of the variance and standard deviation should be selected as the sliding window quadrat. After the sliding window quadrat screening is completed, the homogeneous pixel count comparison is performed. In the stage of homogeneous pixel count comparison, the pixel values of all bands within the sliding window quadrat should be cumulatively counted for different bands, and after completion, the pixel value with the largest count is selected to represent the invalid value of the count statistics.

[0064] (4)Invalid value count comparison & determination of invalid value.

[0065] As Figure 5 shown, in the case where the "header file invalid value" is the same as the "invalid value of count statistics", the "header file invalid value" or the "invalid value of count statistics" is determined as the invalid value of the final remote sensing data. In the case where the "header file invalid value" is different from the "invalid value of count statistics", the target invalid value of the remote sensing data is determined according to the number of edge pixel points corresponding to the "header file invalid value" and the number of edge pixel points corresponding to the "invalid value of count statistics".

[0066] The method of the above embodiment realizes the accurate identification assisted by the invalid value of data visualization (sliced or non-sliced) of massive multi-source remote sensing data in complex scenarios, and realizes the identification of invalid values in remote sensing data with high universality.

[0067] Next, the identification device for the invalid value of remote sensing data provided by the present invention will be described. The identification device for the invalid value of remote sensing data described below can be mutually corresponding and referred to the identification method for the invalid value of remote sensing data described above. The identification device for the invalid value of remote sensing data in the embodiment of the present application is as Figure 6 shown, and includes: An acquisition module 610, configured to acquire the first remote sensing data invalid value in the header file of the remote sensing data; A determination module 620, configured to determine the second remote sensing data invalid value according to the values of multiple bands corresponding to each edge pixel point in the remote sensing data; An identification module 630, configured to determine the target invalid value of the remote sensing data according to the first remote sensing data invalid value and the second remote sensing data invalid value.

[0068] Optionally, the determination module 620 is specifically configured to: obtain multiple homogeneous pixel point sets according to the values of multiple bands corresponding to each edge pixel point in the remote sensing data; wherein, the homogeneous pixel points are pixel points with equal values of multiple bands; Determine the second remote sensing data invalid value according to the number of homogeneous pixel points in each homogeneous pixel point set.

[0069] Optionally, the determination module 620 is specifically configured to: Determine a first homogeneous pixel point set from multiple homogeneous pixel point sets according to the number of homogeneous pixel points in each homogeneous pixel point set; the first homogeneous pixel point set is the homogeneous pixel point set with the largest number of homogeneous pixel points among the multiple homogeneous pixel point sets; Use the set of values of multiple bands corresponding to the homogeneous pixel points in the first homogeneous pixel point set as the second remote sensing data invalid value.

[0070] Optionally, the recognition module 630 is specifically configured to: When the first remote sensing data invalid value and the second remote sensing data invalid value are the same, determine the first remote sensing data invalid value or the second remote sensing data invalid value as the target invalid value of the remote sensing data; When the first remote sensing data invalid value and the second remote sensing data invalid value are different, determine the target invalid value of the remote sensing data according to the number of edge pixel points corresponding to the first remote sensing data invalid value and the number of edge pixel points corresponding to the second remote sensing data invalid value.

[0071] Optionally, the recognition module 630 is specifically configured to: When the number of edge pixel points corresponding to the first remote sensing data invalid value is greater than the number of edge pixel points corresponding to the second remote sensing data invalid value, use the first remote sensing data invalid value as the target invalid value of the remote sensing data; When the number of edge pixel points corresponding to the first remote sensing data invalid value is less than the number of edge pixel points corresponding to the second remote sensing data invalid value, use the second remote sensing data invalid value as the target invalid value of the remote sensing data.

[0072] Optionally, the determination module 620 is further configured to: Determine the dispersion degree of the band values of the pixel points within the edge sliding window according to the values of multiple bands corresponding to each pixel point within the edge sliding window of the remote sensing data; When the dispersion degree of the band values of the pixel points within the edge sliding window is less than the threshold, use the edge sliding window as the filtered edge sliding window, and use the pixel points within the filtered edge sliding window as edge pixel points.

[0073] Optionally, the determination module 620 is further configured to: When the first remote sensing data invalid value and the second remote sensing data invalid value are different, and the difference between the number of homogeneous pixel points in the first homogeneous pixel point set and the number of homogeneous pixel points in the second homogeneous pixel point set is less than a preset value, adjust the size of the edge sliding window and re-determine the first homogeneous pixel point set; the second homogeneous pixel point set is any one of the multiple homogeneous pixel point sets.

[0074] Figure 7It exemplifies a schematic diagram of the physical structure of an electronic device, which may include: a processor 710, a communications interface 720, a memory 730, and a communication bus 740. Among them, the processor 710, the communication interface 720, and the memory 730 complete mutual communication through the communication bus 740. The processor 710 can call the logical instructions in the memory 730 to execute the method for identifying invalid values of remote sensing data. The method includes: obtaining the first remote sensing data invalid value in the header file of the remote sensing data; determining the second remote sensing data invalid value according to the values of multiple bands corresponding to each edge pixel point in the remote sensing data; and determining the target invalid value of the remote sensing data according to the first remote sensing data invalid value and the second remote sensing data invalid value.

[0075] In addition, when the logical instructions in the above-mentioned memory 730 are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs that can store program codes.

[0076] On the other hand, the present invention also provides a computer program product. The computer program product includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the method for identifying invalid values of remote sensing data provided by the above-mentioned various methods. The method includes: obtaining the first remote sensing data invalid value in the header file of the remote sensing data; determining the second remote sensing data invalid value according to the values of multiple bands corresponding to each edge pixel point in the remote sensing data; and determining the target invalid value of the remote sensing data according to the first remote sensing data invalid value and the second remote sensing data invalid value.

[0077] In another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the method for identifying invalid values of remote sensing data provided by the above-mentioned various methods. The method includes: obtaining a first invalid value of remote sensing data in the header file of the remote sensing data; determining a second invalid value of the remote sensing data according to the values of multiple bands corresponding to each edge pixel point in the remote sensing data; and determining a target invalid value of the remote sensing data according to the first invalid value and the second invalid value.

[0078] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.

[0079] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment 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 essence of the above technical solution, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disc, etc., and includes several instructions to enable 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.

[0080] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for identifying invalid values ​​of remote sensing data, characterized in that: include: Obtain the first remote sensing data invalid value in the remote sensing data header file; Determine the invalid value of the second remote sensing data according to the values ​​of multiple bands corresponding to each edge pixel point in the remote sensing data; A target invalid value of the remote sensing data is determined according to the first remote sensing data invalid value and the second remote sensing data invalid value.

2. The method for identifying invalid values ​​of remote sensing data according to claim 1, characterized in that: The step of determining the invalid value of the second remote sensing data according to the values ​​of the multiple bands corresponding to each edge pixel point in the remote sensing data includes: According to the values ​​of multiple bands corresponding to each edge pixel point in the remote sensing data, a plurality of sets of homogeneous pixel points are obtained; wherein the homogeneous pixel points are pixel points whose values ​​of the multiple bands are all equal; The invalid value of the second remote sensing data is determined according to the number of homogeneous pixel points in each of the homogeneous pixel point sets.

3. The method for identifying invalid values ​​of remote sensing data according to claim 2, characterized in that: The step of determining the invalid value of the second remote sensing data according to the number of homogeneous pixel points in each of the homogeneous pixel point sets includes: Determine a first homogeneous pixel set from the multiple homogeneous pixel sets according to the number of homogeneous pixel points in each of the homogeneous pixel point sets; the first homogeneous pixel point set is a homogeneous pixel point set with the largest number of homogeneous pixel points in the multiple homogeneous pixel point sets; A set of values ​​of multiple bands corresponding to the homogeneous pixels in the first homogeneous pixel set is used as the invalid value of the second remote sensing data.

4. The method for identifying invalid values ​​of remote sensing data according to any one of claims 1 to 3, characterized in that: The step of determining a target invalid value of the remote sensing data according to the first remote sensing data invalid value and the second remote sensing data invalid value includes: In the case where the first remote sensing data invalid value and the second remote sensing data invalid value are the same, determining the first remote sensing data invalid value or the second remote sensing data invalid value as a target invalid value of the remote sensing data; When the invalid value of the first remote sensing data is different from the invalid value of the second remote sensing data, the target invalid value of the remote sensing data is determined according to the number of edge pixels corresponding to the invalid value of the first remote sensing data and the number of edge pixels corresponding to the invalid value of the second remote sensing data.

5. The method for identifying invalid values ​​of remote sensing data according to claim 4, characterized in that: The method of determining the target invalid value of the remote sensing data according to the number of edge pixels corresponding to the invalid value of the first remote sensing data and the number of edge pixels corresponding to the invalid value of the second remote sensing data when the invalid value of the first remote sensing data is different from the invalid value of the second remote sensing data includes: When the number of edge pixel points corresponding to the invalid value of the first remote sensing data is greater than the number of edge pixel points corresponding to the invalid value of the second remote sensing data, using the invalid value of the first remote sensing data as the target invalid value of the remote sensing data; When the number of edge pixels corresponding to the invalid value of the first remote sensing data is less than the number of edge pixels corresponding to the invalid value of the second remote sensing data, the invalid value of the second remote sensing data is used as the target invalid value of the remote sensing data.

6. The method for identifying invalid values ​​of remote sensing data according to claim 3, characterized in that: The method further comprises: According to the values ​​of multiple bands corresponding to each pixel point in the edge sliding window of the remote sensing data, the discrete degree of the band value of the pixel point in the edge sliding window is determined; When the discrete degree of the band value of the pixel point in the edge sliding window is less than a threshold value, the edge sliding window is used as a filtered edge sliding window, and the pixel point in the filtered edge sliding window is used as the edge pixel point.

7. The method for identifying invalid values ​​of remote sensing data according to claim 6, characterized in that: The method further comprises: When the invalid value of the first remote sensing data is different from the invalid value of the second remote sensing data, and the difference between the number of homogeneous pixels in the first homogeneous pixel set and the number of homogeneous pixels in the second homogeneous pixel set is less than a preset value, the size of the edge sliding window is adjusted and the first homogeneous pixel set is re-determined; the second homogeneous pixel set is any one of the multiple homogeneous pixel sets.

8. A device for identifying invalid values ​​of remote sensing data, characterized in that: include: An acquisition module, used for acquiring the first remote sensing data invalid value in the header file of the remote sensing data; A determination module, used for determining an invalid value of the second remote sensing data according to the values ​​of multiple bands corresponding to each edge pixel point in the remote sensing data; The identification module is used to determine a target invalid value of the remote sensing data according to the invalid value of the first remote sensing data and the invalid value of the second remote sensing data.

9. 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 computer program, the method for identifying invalid values ​​of remote sensing data as described in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Method and device for determining data exception in remote sensing image, equipment and medium

    CN111292254A

  • Remote sensing image mosaic method, system and device and storage medium

    CN118396846A

  • Data cleaning method and device for remote sensing image and attribute information missing

    CN118689867A

  • Remote sensing image cloud removal method for multi-temporal data

    CN119741231A

  • Forestry surveying and mapping method based on remote sensing big data

    CN119831158A