A remote sensing image storage preprocessing method and system
By performing all-round defect repair when remote sensing images are put into the database, and screening and storing high-value images, we solve the problem of image problem areas affecting image availability, and improve image usage efficiency and resource utilization.
Patent Information
- Application Number
- CN202410713852.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-04
AI Technical Summary
During the remote sensing image collection process, image problem areas caused by sensor defects or imaging environment affects image availability. The existing technology requires users to repair one by one after acquiring the images, which increases the complexity of the process and wastes resources.
When remote sensing images are stored in the database, all-round defect repair is performed through image acquisition, data detection and analysis, screening and repair modules. High-value images are screened out and automatically repaired before being stored for subsequent direct use.
It improves the efficiency of using and retrieving remote sensing images, reduces the tediousness and waste of resources in subsequent repair processing, and improves the usability of images.
Smart Images

Figure CN118296170B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of remote sensing image processing and analysis, and in particular to a remote sensing image storage preprocessing method and system. Background Art
[0002] With the rapid development of remote sensing technology, communication technology and computer technology, the field of earth observation has entered the era of big data. The continuous growth of data types and data volumes has generated massive amounts of remote sensing image data at all levels.
[0003] During the remote sensing image acquisition process, due to sensor defects or the influence of imaging methods and the environment, there will be some problem areas in the collected remote sensing images, which will affect the usability of the images. After the collected images are stored in the warehouse, the relevant image files are retrieved according to the needs of the user, and the problem areas in the images need to be repaired. Every time the user retrieves the required image, the problem needs to be repaired, which increases the complexity and time consumption of the process; since the data of the stored images is relatively large, and some images are not used frequently, repairing all of them will cause a large waste of resources. Therefore, it is necessary to develop a method that can automatically repair images with high use value when they are stored, so as to reduce the complexity and time consumption of the process in the subsequent use process. Summary of the invention
[0004] The purpose of the present invention is to address the shortcomings and deficiencies of the prior art and propose a remote sensing image storage preprocessing method. When images are stored in the storage, the method first performs relevant calculation analysis, screens and obtains multiple high-value images, performs comprehensive defect repair on the obtained high-value images, obtains the repaired images, and then stores them in the storage, so that they can be directly used when the images are retrieved later.
[0005] To achieve the above object, the present invention provides the following solution: The present invention provides a remote sensing image storage preprocessing method, comprising the following steps:
[0006] S1. Acquire a set of remote sensing images using an image acquisition module, wherein the remote sensing images include a plurality of original images and corresponding metadata;
[0007] S2. Use a data detection and analysis module to detect and analyze the remote sensing images to obtain quality detection results, quality scores, and effective domain scores of each image;
[0008] S3. In the image screening module, multiple images are screened according to the quality score and effective domain score of each image to obtain high-value images;
[0009] S4, inputting the obtained high-value image and its quality detection result into the image restoration module, performing all-round restoration on the problem area of the high-value image, and obtaining a restored image;
[0010] S5. Use the data upload module to upload the repaired image to the storage module for storage.
[0011] The metadata in step S1 is the description information of the remote sensing image, including: the date and time of image acquisition, image acquisition range, image type, sensor, serial number, etc.
[0012] The data detection and analysis module in step S2 includes a first quality detection unit, a second quality detection unit and a data analysis unit;
[0013] Furthermore, the first quality detection unit performs integrity detection on the remote sensing image metadata obtained, analyzes the metadata detection situation based on the analysis method, and obtains the original image with complete metadata; the second quality detection unit performs quality detection on the original image with complete metadata obtained in the first detection unit based on the quality detection items, and obtains the quality detection result; the data analysis unit performs data analysis based on the quality detection result to obtain the quality score and valid domain score of the image.
[0014] The specific steps of detecting and analyzing the remote sensing images in step S2 to obtain the quality detection results, quality scores and effective domain scores of each image are as follows:
[0015] S21 performs integrity detection on the metadata of the remote sensing image by a first quality detection unit to obtain an original image with complete metadata;
[0016] S22 performs a quality inspection on the original image with complete metadata by a second quality inspection unit to obtain a quality inspection result of the image;
[0017] S23: Analyze and calculate the obtained quality detection results through the data analysis unit to obtain the quality score and effective domain score of the image.
[0018] Furthermore, the results of the integrity detection of the metadata by the first quality detection unit in step S21 include three situations: metadata complete, metadata missing, and metadata damaged.
[0019] The original image with complete metadata enters the second quality inspection unit for quality inspection; for the image with missing metadata or damaged metadata, the quality score and usable domain score are directly set to 0.
[0020] The specific steps of performing quality detection on the original image with complete metadata by the second quality detection unit in step S22 are: determining the quality detection items of the original image, performing quality detection on the original image respectively using the detection method corresponding to each quality detection item, and obtaining the detection result corresponding to each quality detection item.
[0021] Among them, the quality detection items include: side view detection, band matching detection, edge detection, null value detection, cloud cover detection, shadow detection, histogram detection, stripe detection, and high exposure detection. The cloud cover detection includes thin cloud detection and thick cloud detection. The quality detection items may also include other detection items.
[0022] The quality inspection results include three situations: no defects, slight defects, and serious defects.
[0023] The second quality detection unit is configured with detection methods for multiple quality detection items, and can detect all quality detection items of the remote sensing image, and can also detect required quality detection items of the remote sensing image. There can be multiple detection methods for each quality detection item.
[0024] Furthermore, the specific process of obtaining the quality score and the effective domain score of the image by analyzing and calculating by the data analysis unit in step S23 is as follows:
[0025] S231 obtains the quality score of the image and the defect area of the image in each quality inspection item according to the inspection results of all quality inspection items;
[0026] The defective area of the image in each quality inspection item is the area where the image has defects in each quality inspection item, including a slight defect area and a serious defect area.
[0027] The quality score is calculated based on the degree of defects in the test results of each test item, with different deduction points set and a percentage system. The specific calculation rules are as follows:
[0028]
[0029] Among them, i represents the detection item category, S i Indicates the deduction value corresponding to the test result of test item category i. The deduction points for serious defects are deducted first.
[0030] S232: Taking the union of the defective areas of the image in each quality inspection item, obtaining the problem area of the image, obtaining the area outside the problem area in the image as the effective area of the image, and calculating the effective domain score of the image based on the effective area.
[0031] The calculation method of the effective domain score is:
[0032] Effective domain fraction = effective area size / image size × 100.
[0033] The high-value image in step S3 is an image whose effective domain is not less than a first threshold and whose quality score is not less than a second threshold.
[0034] The problem areas in step S4 include: edge abnormal areas, null value areas, thick cloud areas, thin cloud areas, fog areas, shadow areas, histogram abnormal areas, strip areas, and high exposure areas.
[0035] The image restoration module in step S4 includes a classification unit, a first restoration unit, a second restoration unit, a third restoration unit and a quality inspection unit.
[0036] The first repair unit repairs the first type of quality problems, the second repair unit repairs the second type of quality problems; the third repair unit repairs the third type of quality problems; the classification unit classifies the quality detection results of the input image according to the repair method to obtain the first type of quality problems, the second type of quality problems and the third type of quality problems.
[0037] The specific process of comprehensively repairing the problem area of the high-value image in step S4 is as follows:
[0038] S41 In the classification unit, based on the defects in the problem area of high-value images, the problem area is divided into the first type of quality problems, the second type of quality problems and the third type of quality problems according to different repair methods;
[0039] S42 The first, second and third repair units respectively repair the first, second and third quality problems by using a certain repair method to obtain a first repair area, a second repair area and a third repair area;
[0040] S43 performing quality inspection on the first-category repair area and the second-category repair area by a quality inspection unit, and obtaining the first-category repair area and the second-category repair area that pass the quality inspection, and the first-category repair area and the second-category repair area that fail the quality inspection;
[0041] S44 The first-category repair area that failed the quality inspection and the second-category repair area that failed the quality inspection are re-repaired in the third repair unit and merged into the third-category repair area;
[0042] S45: The qualified first-category repair area, the qualified second-category repair area, and the third-category repair area are combined into a repaired area as a repair result of the problem area of the image to be repaired, thereby obtaining a repaired image.
[0043] Further, the repair method in step S42 includes a first repair method, a second repair method and a third repair method.
[0044] The first repair unit uses a first repair method to repair the first type of quality problems to obtain a first repair area; the second repair unit uses a second repair method to repair the second type of quality problems to obtain a second repair area; the third repair unit uses a third repair method to repair the third type of quality problems and the first type of repair areas that failed quality inspection and the second type of repair areas that failed quality inspection to obtain a third repair area.
[0045] The first repair method uses the image's own information to complete the missing part of the image, thereby achieving the first repair of quality problems at a relatively low cost and ensuring the authenticity of the information in the repaired area to a certain extent.
[0046] The second repair method adopts an image enhancement solution to enhance image contrast and image details, thereby repairing the second type of quality problems and ensuring the authenticity of information in the repaired area.
[0047] The third repair method uses an image filling method to fill and repair the third type of quality problems and the first type of repair areas that fail the quality inspection and the second type of repair areas that fail the quality inspection.
[0048] Furthermore, the specific process of performing quality inspection on the first type repair area and the second type repair area by the quality inspection unit in step S43 is as follows:
[0049] S431: The first type repair area and the second type repair area are used as areas to be inspected, and image conversion is performed on the areas to be inspected to obtain grayscale images of the first type repair area and the second type repair area;
[0050] S432 divides the obtained grayscale image into square image blocks of a certain size;
[0051] S433 calculates and evaluates the homogeneity of each image block;
[0052] S434: taking the image blocks in the area to be inspected whose homogeneity degree is greater than the homogeneity threshold as qualified image blocks;
[0053] S435 The area to be inspected in which the ratio of qualified image blocks to all images in the area to be inspected is greater than a set qualified rate threshold is regarded as a repair area that has passed the quality inspection.
[0054] The present invention also provides a remote sensing image storage preprocessing system applied to the above-mentioned remote sensing image storage preprocessing method, which specifically includes: an image acquisition module, a data detection and analysis module, an image screening module, an image repair module, and a data upload module; the data detection and analysis module includes a first quality detection unit, a second quality detection unit, and a data analysis unit; the image repair module includes a classification unit, a first repair unit, a second repair unit, a third repair unit, and a quality inspection unit.
[0055] The beneficial effects of the present invention are as follows: the present invention constructs an evaluation and calculation method for the effective domain data and quality data of remote sensing images, and adopts this method to perform effective domain and quality evaluation when remote sensing images are put into storage, screen out images with higher usable value, and perform all-round repair on the problems existing in the screened images. After the images are put into storage, they can be directly retrieved when they are used later without the need for repair processing, thereby improving the efficiency of image use and retrieval. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only 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.
[0057] Figure 1 A flowchart of a remote sensing image storage preprocessing method provided by the present invention;
[0058] Figure 2 A schematic diagram of the structure of a remote sensing image storage preprocessing system provided by the present invention. DETAILED DESCRIPTION
[0059] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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 belong to the scope of protection of the present invention.
[0060] Figure 1 The figure is a flow chart of a remote sensing image storage preprocessing method of the present invention. The method of the present invention is further described in detail below with respect to each step in the embodiment process, which specifically includes the following steps:
[0061] S1. Acquire a set of remote sensing images using an image acquisition module, wherein the remote sensing images include a plurality of original images and corresponding metadata;
[0062] The metadata is the description information of the remote sensing image, which describes the parameters related to the acquisition of the remote sensing image, including: the date and time of image acquisition, image range, image type, sensor, serial number, etc.
[0063] S2. Use a data detection and analysis module to detect and analyze the remote sensing images to obtain quality detection results, quality scores, and effective domain scores of each image;
[0064] The data detection and analysis module includes a first quality detection unit, a second quality detection unit, and a data analysis unit;
[0065] The first quality detection unit mainly performs integrity detection on the obtained remote sensing image metadata, analyzes the metadata detection situation based on an analysis method, and obtains an original image with complete metadata.
[0066] The results of the metadata integrity check include three situations: metadata complete, metadata missing, and metadata damaged.
[0067] Among them, metadata integrity means that the metadata files can be opened normally, the metadata content is not missing, the metadata file name matches the file content, etc. Metadata missing situations include incomplete metadata content, incomplete metadata file name, incomplete information in the metadata file, etc. Metadata damage situations include the metadata file cannot be opened, the metadata file format is wrong, etc.
[0068] The original image with complete metadata enters the second quality detection unit for quality detection, and the quality score and usable domain score of the original image with missing metadata or damaged metadata are directly set to 0.
[0069] The second quality detection unit performs quality detection on the original image with complete metadata based on the quality detection items to obtain a quality detection result;
[0070] The specific steps of performing quality detection on the original image with complete metadata based on the quality detection items to obtain the quality detection result are:
[0071] Determine the quality detection items of the original image, use the detection methods corresponding to the quality detection items to perform quality detection on the original image respectively, and obtain the detection results corresponding to each quality detection item;
[0072] Among them, the quality detection items include: side view detection, band matching detection, edge detection, null value detection, cloud cover detection, shadow detection, histogram detection, stripe detection, and high exposure detection. The cloud cover detection includes thin cloud detection and thick cloud detection. The quality detection items may also include other detection items.
[0073] The quality inspection results include three situations: no defects, slight defects, and serious defects.
[0074] The second quality detection unit is configured with detection methods for multiple quality detection items, and can detect all quality detection items of the remote sensing image, or can detect required quality detection items of the remote sensing image, and there can be multiple detection methods for each quality detection item. For example, the detection method for cloud cover detection can be a physical threshold method, a full probability Bayesian method, or other detection methods, and the result of the cloud cover detection is the cloud content of the remote sensing image.
[0075] The data analysis unit performs data analysis based on the detection result obtained by the second quality detection unit to obtain the quality score and effective domain score of the image.
[0076] The specific process of obtaining the quality score and the effective domain score according to the quality detection result is as follows:
[0077] 1. Obtain the image quality score and the defect area of the image in each quality inspection item based on the inspection results of all quality inspection items;
[0078] The defective area of the image in each quality inspection item is the area where the image has defects in each quality inspection item.
[0079] The quality score is calculated by setting different deduction values according to the degree of defects in the test results of each test item. The specific calculation rules are as follows:
[0080]
[0081] Among them, i represents the detection item category, S i Indicates the deduction value of the test result of test item category i. The error deduction points for serious defects are deducted first.
[0082] The deduction value settings for each quality inspection item are as follows:
[0083] (1) Side view detection
[0084] In order to shorten the coverage period of satellite images on the ground and improve the ability to acquire satellite data, current high-resolution satellites all have the ability to perform side-view imaging. However, side-view imaging may lead to degradation of spatial resolution and reduced positioning capability. In addition, as the side viewing angle increases, the image point error caused by terrain undulations increases. Therefore, the side viewing angle has a direct impact on the availability of remote sensing images.
[0085] In the side viewing angle detection, the side viewing angle range [0°, 90°] is divided into multiple side viewing angle value domains, each value domain corresponds to a deduction value, and the image quality is deducted according to the side viewing angle detection result.
[0086] The numerical domains and corresponding deduction values set in this embodiment are shown in the following table:
[0087] Side view value range Defect level Deduction value [0°,5°] No defects 0 (5°,10°] Minor defects 5 (10°,20°] Minor defects 10 (20°,90°] Serious flaws 100
[0088] (2) Band matching detection
[0089] Band matching refers to whether the number of bands of the remote sensing image meets the requirements and whether there are any missing bands. The specific scoring process of band matching detection is: read the number of panchromatic spectral bands and multispectral bands of the remote sensing image. If the number of bands matches, there is no defect and the deduction value is 0; if the number of bands does not match, it is a serious defect and the deduction value is 100; the image quality is deducted according to the detection results of band matching.
[0090] (3) Edge detection
[0091] Edge detection mainly extracts and evaluates the boundary information between the target object and the background in the image to identify abnormal edges in the image. The specific scoring process of edge detection is: if there is no abnormality in the edge detection result, there is no edge defect, and the deduction value is 0; if there is an edge color abnormality, it is a minor defect and the deduction value is 5; the image quality is deducted according to the edge detection result.
[0092] (4) Null value detection
[0093] The pixel brightness detection method is used to detect the null value of remote sensing images, and the null value pixel area is obtained. The null value detection score is evaluated according to the ratio of the null value area to the entire image. In addition to considering the null value ratio, the score evaluation in the null value detection also needs to consider the size of the image connected domain affected by the null value. Therefore, a minimum connected domain threshold R is set to combine the null value ratio to simultaneously evaluate the null value detection score. The specific scoring process of null value detection is as follows: if the image does not meet the requirements of the minimum connected domain threshold R, the deduction value of the detection item is 100; if it meets the requirements of the minimum connected domain threshold R, the null value ratio range [0%, 100%] is divided into multiple null value domains, each of which corresponds to a deduction value, and the image quality is deducted according to the null value detection results.
[0094] The null value fields and corresponding deduction value settings in this embodiment are shown in the following table:
[0095] Null value fields Defect level Deduction value [0%,1%] No defects 0 (1%,5%] Minor defects 5 (5%,20%] Minor defects 10 (20%,50%] Minor defects 20 (50%,100%] Minor defects 40 Minimum connected region <R Serious flaws 100
[0096] (5) Cloud cover detection
[0097] Cloud cover is defined as the proportion of cloud area (including thin clouds and thick clouds) in the entire image. The cloud cover detection score is evaluated based on the proportion of cloud area in the entire image. In addition to considering the cloud cover proportion, the score evaluation in cloud cover detection also needs to consider the size of the image connected domain affected by clouds. Therefore, a minimum connected domain threshold R is set to combine the cloud cover proportion to simultaneously evaluate the cloud cover detection score. The specific scoring process of cloud cover detection is as follows: if the image does not meet the requirements of the minimum connected domain threshold R, the deduction value of the detection item is 100; if it meets the requirements of the minimum connected domain threshold R, the cloud cover range [0%, 100%] is divided into multiple cloud cover value domains, each value domain corresponds to a deduction value, and the image quality is deducted according to the cloud cover detection results.
[0098] The cloud cover value domain and the corresponding deduction value settings in this embodiment are shown in the following table:
[0099] Cloud cover value domain Defect level Deduction value [0%,5%] No defects 0 (5%,10%] Minor defects 2.5 (10%,30%] Minor defects 10 (30%,60%] Minor defects 20 (60%,100%] Minor defects 40 Minimum connected region <R Serious flaws 100
[0100] (6) Shadow detection
[0101] The shadow area of the image is obtained by using the shadow detection method based on the HSV color space, and the shadow detection score is evaluated according to the proportion of the shadow area to the entire image. The specific scoring process of shadow detection is: the shadow ratio range [0%, 100%] is divided into multiple shadow value domains, each value domain corresponds to a deduction value, and the image quality is deducted according to the shadow detection result.
[0102] The shadow value fields and corresponding deduction value settings in this embodiment are shown in the following table:
[0103] Shadow value field Defect level Deduction value [0%,5%] No defects 0 (5%,20%] Minor defects 5 (20%,30%] Minor defects 10 (30%,60%] Minor defects 20 (60%,100%] Minor defects 40
[0104] (7) Histogram detection
[0105] Histogram detection uses the statistical characteristics of remote sensing images to identify potential anomalies or quality problems. The brightness value of each pixel in the remote sensing image can form a histogram. By analyzing the distribution characteristics of this histogram, abnormal areas in the image can be quickly discovered. The specific scoring process of histogram detection is: if there is no histogram anomaly, it is a defect-free area and the deduction value is set to 0; if there is a histogram anomaly, it is a serious defect and the deduction value is set to 100.
[0106] The histogram anomaly is the detection result after removing the influence of clouds, shadows and high exposure. For hyperspectral image histogram detection, a multidimensional histogram is constructed based on the histogram characteristics of different bands, and then the abnormal pixels are determined by calculating the Mahalanobis distance and other methods. The histogram anomaly of a specific band is set as a minor defect, and 2 points are deducted for each band.
[0107] (8) Band detection
[0108] Stripe detection is mainly used to identify and locate stripe noise in images. Stripe noise is caused by a variety of factors such as sensor failure, data transmission problems or atmospheric conditions. It usually appears as horizontal, vertical or diagonal bright or dark stripes in the image, which will seriously affect the quality of remote sensing images and reduce their accuracy in applications such as object classification, target recognition, and change detection. Stripe detection includes row stripe detection method and column stripe detection method. The specific scoring process of stripe detection is: if there is no stripe problem, it is a stripe-free defect and the deduction value is set to 0; if there is a stripe problem, it is a minor defect and the deduction value is set to 10; the image quality is deducted according to the stripe detection results.
[0109] (9) High exposure detection
[0110] High exposure refers to a situation where the brightness of a certain pixel or area is significantly higher than that of other areas. High exposure is detected by detecting the brightness value of each pixel in the remote sensing image, filtering out pixel blocks with brightness values greater than 250, calculating the ratio of the total area of all pixel blocks with brightness greater than 250 to the total area of the entire remote sensing image, and evaluating the high exposure detection score based on the ratio. The specific scoring process of high exposure detection is: divide the high exposure ratio range [0%, 100%] into multiple high exposure value domains, each value domain corresponds to a deduction value, and deduct the image quality based on the high exposure detection results.
[0111] The high exposure value domain and the corresponding deduction value settings in this embodiment are shown in the following table:
[0112] High exposure range Defect level Deduction value 0% No defects 0 (0%,5%] Minor defects 5 (5%,10%] Minor defects 10 (10%,20%] Minor defects 20 (20%,100%] Minor defects 40
[0113] 2. Take the union of the defective areas of the images in each quality inspection item to obtain the problem area of the image, obtain the area outside the problem area in the image as the effective area of the image, and calculate the effective domain score of the image based on the effective area.
[0114] The calculation method of the effective domain score is:
[0115] Effective domain fraction = effective area size / image size × 100.
[0116] S3. In the image screening module, the images are screened according to the obtained effective domain scores and quality scores to obtain high-value images;
[0117] The high-value image is an image whose effective domain is not less than a first threshold and whose quality score is not less than a second threshold.
[0118] In this embodiment, the first threshold and the second threshold are set to 80.
[0119] S4, inputting the obtained high-value image and its quality inspection results into the image restoration module, performing all-round restoration on the problem area of the image, and obtaining a restored image;
[0120] The problem areas include: edge abnormal area, null value area, thick cloud area, thin cloud area, fog area, shadow area, histogram abnormal area, strip area, and high exposure area.
[0121] The image restoration module includes a classification unit, a first restoration unit, a second restoration unit, a third restoration unit and a quality inspection unit.
[0122] The classification unit classifies the defect problems in the quality detection results of the input image according to the repair method to obtain the first type of quality problems, the second type of quality problems and the third type of quality problems.
[0123] In this example, the first type of quality problems include: edge abnormal area, null value area, strip area; the second type of quality problems include: thin cloud area, fog area, shadow area, histogram abnormal area; the third type of quality problems include: thick cloud area.
[0124] The first repair unit repairs the first type of quality problems, the second repair module repairs the second type of quality problems; and the third repair module repairs the third type of quality problems.
[0125] The specific process of comprehensively repairing the problem areas of high-value images is as follows:
[0126] S41. Based on the defects in the high-value image problem area in the classification unit, the problem area is divided into the first type of quality problems, the second type of quality problems and the third type of quality problems according to different repair methods.
[0127] S42. The first, second and third repair units respectively use certain repair methods to repair the above-mentioned first, second and third quality problems, and obtain first, second and third repair areas.
[0128] The repair method includes a first repair method, a second repair method and a third repair method.
[0129] The first repair unit uses a first repair method to repair a first type of quality problem to obtain a first repair area; the second repair unit uses a second repair method to repair a second type of quality problem to obtain a second repair area; the third repair unit uses a third repair method to repair a third type of quality problem to obtain a third repair area.
[0130] The first repair method uses the image's own information to complete the missing part, thereby repairing the first type of quality problems at a relatively low cost and ensuring the authenticity of the information in the repaired area to a certain extent.
[0131] In this embodiment, a linear interpolation method is used to repair the first type of quality problem. The specific steps are as follows:
[0132] 1. Binarize the image area with the first type of quality problems, where 0 represents the normal pixel position and 1 represents the pixel position that needs to be repaired;
[0133] 2. For each pixel to be repaired, select the known normal data pixels around it as reference points. Usually, the four pixels above, below, left and right that are closest to the pixel to be repaired are selected. For high-dimensional data (such as multispectral and hyperspectral images), select the neighboring pixels of the corresponding band;
[0134] If the pixel to be repaired is located at the edge of the image and there are few available adjacent pixels, the search range can be appropriately expanded, such as selecting more adjacent pixels along the edge, or considering using edge extension technology (such as mirroring, periodic extension) to increase reference points;
[0135] 3. Based on the selected reference points, a one-dimensional or two-dimensional (determined by the data dimension) linear model is constructed to fit these points, and the linear model is obtained. The slope and intercept are calculated according to the coordinates of the reference points and the corresponding grayscale values (or spectral values);
[0136] For the one-dimensional case, assuming that the reference points are (x1, y1) and (x2, y2), and the position of the pixel to be repaired is x, then the linear model is y = mx + b, where m is the slope and b is the intercept. The slope m and intercept b are calculated based on the reference points to obtain the linear model.
[0137] 4. Use the constructed linear model to perform interpolation calculation on each pixel in the missing or abnormal area, that is, substitute the position of the pixel to be repaired into the linear model to obtain its pixel estimation value;
[0138] 5. Fill the pixel value obtained by interpolation calculation into the missing or abnormal area of the original image to complete the pixel repair;
[0139] 6. Repeat the above steps for all pixels marked as needing to be repaired until all missing or abnormal pixels are linearly interpolated to obtain pixel values and filled back into the original image. Smooth the repaired image to obtain the first type of repair area.
[0140] The first restoration method may also use polynomial interpolation, spline interpolation, inverse distance weighted interpolation, Kriging interpolation and other methods.
[0141] The second repair method enhances the image contrast and further enhances the image details through image enhancement, thereby achieving the repair of the second type of quality problems and ensuring the authenticity of the information in the repaired area.
[0142] In this embodiment, the frequency domain enhancement repair method is used to repair the second type of quality problems. The specific steps are as follows:
[0143] 1. Use fast Fourier transform to convert the second type of quality problem area from the spatial domain to the frequency domain to obtain the high-frequency information and low-frequency information of the second type of quality problem area. The low-frequency part corresponds to the large-scale structure and slow-changing characteristics of the image, and the high-frequency part corresponds to the details and edges of the image;
[0144] The specific process of using fast Fourier transform to obtain high-frequency information and low-frequency information of the second type of quality problem area is as follows:
[0145] (1) The second type of quality problem area f(x, y) is expressed as the product of the illumination component i(x, y) and the reflection component r(x, y), that is:
[0146]
[0147] Among them, i(x,y) represents the illumination component, which represents the information describing the illumination of the scene, changes slowly, and can be regarded as the low-frequency part of the image; r(x,y) represents the reflection component, which represents the information of the scene details, changes quickly, and can be regarded as the high-frequency part of the image.
[0148] (2) Perform logarithmic operation on f(x, y) to separate the components related to i(x, y) and r(x, y), and then perform Fourier transform and frequency domain processing on it to obtain the high-frequency information and low-frequency information of the second type of quality problem area, that is:
[0149]
[0150] Where DFT represents the Fourier transform function, ln represents the logarithmic function, and F i (u,v) represents the low-frequency information of the second type of quality problem area, F r (u,v) represents the high-frequency information of the second type of quality problem area.
[0151] 2. Perform high-pass filtering on the high-frequency information and low-frequency information processed by Fourier transform and frequency domain, weaken the low-frequency information, enhance the high-frequency information, and obtain the filtering result, namely:
[0152]
[0153] Among them, S(u,v) represents the filtering result, and H(u,v) represents the high-pass filtering function.
[0154] 3. Use inverse discrete Fourier transform to convert the processed frequency domain image back to the spatial domain, and then use exponential operation to obtain the repaired image, that is, the second repair area;
[0155]
[0156]
[0157] Among them, g(x, y) represents the second type of repair area, i0(x, y) represents the irradiation component of the second type of repair area, and r0(x, y) represents the incident component of the second type of repair area.
[0158] The third repair method uses an image filling method to fill and repair the third type of quality problems and the first type of repair areas that fail the quality inspection and the second type of repair areas that fail the quality inspection to obtain the third type of repair areas.
[0159] In this embodiment, a sample-based repair method is used to repair the third type of quality problems. The specific steps are as follows:
[0160] 1. The third-category quality problem area is taken as the target area, and the image to be repaired with the third-category quality problem area is taken as the target image;
[0161] 2. Retrieve and select reference images for target image restoration, where the reference images contain the target area and have no quality defects in the target area;
[0162] The reference image should be as similar as possible to the target image in terms of content, viewing angle, lighting conditions, etc. The content includes features such as color, texture, shape, etc.
[0163] 3. Use image registration technology (such as feature point matching, optical flow estimation, affine transformation, perspective transformation, etc.) to accurately align the reference image with the target restoration image to ensure that the corresponding position of the target area is consistent with the reference image content;
[0164] 4. In the reference image after registration, according to the position of the target area in the target image, select the corresponding complete, clear and content-related area as the filling area, crop the required filling area, and perform operations such as resizing, rotation, mirror flipping, etc. as needed to ensure that it perfectly matches the target area of the target image;
[0165] 5. The cropped filling area of the reference image is spliced with the target area of the target image to perform filling and repair, thereby obtaining a third type of repair area.
[0166] For complex scenes, blending strategies can also be used, such as alpha blending, Poisson blending, and other methods, to make the filled area transition naturally with the original content of the target image and reduce the visual sense of fragmentation.
[0167] S43, performing quality inspection on the first-category repair area and the second-category repair area by a quality inspection unit, and obtaining first-category repair areas and second-category repair areas that pass the quality inspection, and first-category repair areas and second-category repair areas that fail the quality inspection.
[0168] The specific process and standards for the quality inspection unit to conduct quality inspection on the first type of repair area and the second type of repair area are as follows:
[0169] 1. The first type of repaired area and the second type of repaired area are taken as the area to be inspected, and the area to be inspected is converted to obtain grayscale images of the first type of repaired area and the second type of repaired area, and the grayscale image of the area to be inspected is recorded as R;
[0170] 2. Divide the obtained grayscale image into square image blocks of size M×M. Each image block is centered at pixel (x, y). The image block is represented as:
[0171]
[0172] Among them, K x,y represents an image block centered on pixel (x, y), and f(i, j) represents K in the image block. x,y The pixel value of the pixel, Ω x,y Represents a neighborhood centered at (x,y), with an image size of M×M;
[0173] 3. Calculate and evaluate the homogeneity of each image block. For image block K x,y The degree of homogeneity is expressed as:
[0174]
[0175] in, Represents image block K x,y The degree of homogeneity, |K x,y | represents image block K x,y The number of pixels in , Φ(i,j) represents the local change of pixel point (i,j).
[0176] The local change is calculated based on the pixel value of the pixel point (i, j) and its four surrounding pixels in the following way:
[0177] .
[0178] The degree of homogeneity reflects the difference in intensity of adjacent pixels, and the smaller the difference, the greater the degree of uniformity of the image.
[0179] Set the homogenization threshold size Τ h , according to the homogeneity degree H of the image block K With homogeneity threshold Τ h Determine whether the image block in the inspection area is qualified, H K > h , then it is considered qualified, H K ≤T h , it is recorded as unqualified.
[0180] Whether the first type of repaired area and the second type of repaired area are qualified in quality inspection is determined according to the ratio of qualified image blocks to all images in the area to be inspected and a set threshold.
[0181] Since not all local areas of the image are suitable for evaluating image quality using homogeneity, we first treat the image block K in the quality inspection area x,y Screening of image blocks suitable for homogeneity detection, the specific process is as follows:
[0182] 1. Calculate each image block K x,y Variance of pixel values in :
[0183]
[0184] in, Represents image block K x,y The pixel value variance of the pixels in ; Represents each image block K x,y The average pixel value of the pixels in is calculated as follows:
[0185]
[0186] 2. Select the image block set S to be filtered r , calculate the image block set S to be filtered r Variance of:
[0187]
[0188] Among them, S r represents the set of image blocks to be screened, which accounts for 15% of the total number of image blocks in the area to be inspected. r | represents the image block S r The number of image blocks in Represents the set of image blocks to be filtered S r The variance of .
[0189] 3. According to the image block set S to be screened r The variance of each image block K x,yThe variance difference is screened to obtain the image block set S used to calculate the degree of homogeneity e :
[0190]
[0191] Among them, S e Represents the set of image patches S that can be screened to calculate the degree of homogeneity e ; T σ Represents the set of image blocks to be filtered S r The variance of each image block K x,y The threshold for the difference between the variances of
[0192] S44. Re-repair the first-category repair area that failed the quality inspection and the second-category repair area that failed the quality inspection in the third repair unit using the third repair method, and merge them into the third-category repair area.
[0193] S45, the qualified first-category repair area, the qualified second-category repair area, and the third-category repair area are combined into a repaired area as a repair result of the problem area of the image to be repaired, thereby obtaining a repaired image.
[0194] S5. Use the data upload module to upload the repaired image to the storage module for storage.
[0195] Figure 2 What is shown is a structural schematic diagram of a remote sensing image storage preprocessing system of the present invention, and the remote sensing image storage preprocessing system of the present invention is further described in detail, specifically including: an image acquisition module, a data detection and analysis module, an image screening module, an image repair module, and a data upload module; the data detection and analysis module includes a first quality detection unit, a second quality detection unit, and a data analysis unit; the image repair module includes a classification unit, a first repair unit, a second repair unit, a third repair unit, and a quality inspection unit.
[0196] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A remote sensing image storage preprocessing method, characterized in that: The method comprises the following steps: S1 uses an image acquisition module to acquire a set of remote sensing images, where the remote sensing images include multiple original images and corresponding metadata; S2 uses a data detection and analysis module to detect and analyze the remote sensing images to obtain quality detection results, quality scores and effective domain scores of each image; In the image screening module, S3 screens multiple images according to the quality score and effective domain score of each image to obtain high-value images; S4 inputs the obtained high-value image and its quality detection result into the image restoration module, performs all-round restoration on the problem area of the high-value image, and obtains a restored image; S5 uses the data upload module to upload the repaired image to the storage module for storage; The metadata in step S1 is the description information of the remote sensing image, including: the date and time of image acquisition, image acquisition range, image type, sensor, and serial number; Wherein, the data detection and analysis module in step S2 includes a first quality detection unit, a second quality detection unit and a data analysis unit; The specific steps of detecting and analyzing the remote sensing images in step S2 to obtain the quality detection results, quality scores and effective domain scores of each image are as follows: S21 performs integrity detection on the metadata of the remote sensing image by a first quality detection unit to obtain an original image with complete metadata; S22 performs quality detection on the original image with complete metadata by a second quality detection unit to obtain a quality detection result of the image; S23 analyzes and calculates the obtained quality detection result through the data analysis unit to obtain the quality score and effective domain score of the image; The specific steps of performing quality detection on the original image with complete metadata by the second quality detection unit in step S22 are: determining quality detection items of the original image, performing quality detection on the original image using the detection method corresponding to each quality detection item, and obtaining the detection result corresponding to each quality detection item; The quality detection items include: side view detection, band matching detection, edge detection, null value detection, cloud detection, shadow detection, histogram detection, strip detection, high exposure detection, and the cloud detection includes thin cloud detection and thick cloud detection; The second quality detection unit is configured with a detection method for multiple quality detection items, and can detect multiple quality detection items on the original image; The step S23 wherein the quality score and the effective domain score of the image are obtained by analyzing and calculating by the data analysis unit specifically includes: S231 obtains the quality score of the image and the defect area of the image in each quality inspection item according to the inspection results of all quality inspection items; S232 obtains the union of defective areas of the image in each quality inspection item to obtain the problem area of the image, obtains the area outside the problem area in the image as the effective area of the image, and calculates the effective domain score of the image based on the effective area; The calculation method of the effective domain score is: Effective domain fraction = effective area size / image size × 100; The defective area of the image in each quality inspection item in step S231 is the area where the image has defects in each quality inspection item; the quality score is calculated by setting different deduction values according to the degree of defects in the inspection results of each inspection item, and the specific calculation rules are as follows: Among them, i represents the detection item category, S i Indicates the deduction value of the test result corresponding to the test item category i; The high-value image in step S3 is an image whose effective domain is not less than a first threshold and whose quality score is not less than a second threshold.
2. A remote sensing image storage preprocessing method according to claim 1, characterized in that: The image restoration module in step S4 includes a classification unit, a first restoration unit, a second restoration unit, a third restoration unit and a quality inspection unit.
3. A remote sensing image storage preprocessing method according to claim 2, characterized in that: The specific process of performing all-round repair on the problem area of the high-value image in step S4 to obtain the repaired image is as follows: In the classification unit, S41 divides the problem areas into the first type of quality problems, the second type of quality problems, and the third type of quality problems according to different repair methods based on the defects in the problem areas of high-value images; S42 uses the first, second and third repair units to respectively repair the first, second and third quality problems by using corresponding repair methods to obtain a first repair area, a second repair area and a third repair area; S43 performs quality inspection on the first-category repair area and the second-category repair area by a quality inspection unit, and obtains the first-category repair area and the second-category repair area that pass the quality inspection, and the first-category repair area and the second-category repair area that fail the quality inspection; S44 re-repairs the first-category repair area that fails the quality inspection and the second-category repair area that fails the quality inspection in the third repair unit and merges them into the third-category repair area; S45 combines the qualified first-category repair area, the qualified second-category repair area, and the third-category repair area into a repaired area as a repair result of the problem area of the image to be repaired, thereby obtaining a repaired image.
4. A remote sensing image storage preprocessing method according to claim 3, characterized in that: The repair method in step S42 includes a first repair method, a second repair method and a third repair method; The first repair unit repairs the first type of quality problem using a first repair method to obtain a first repair area; The second repair unit repairs the second type of quality problem using a second repair method to obtain a second repair area; The third repair unit repairs the first repair area with the third quality problem and the unqualified quality inspection and the second repair area with the unqualified quality inspection by using the third repair method to obtain a third repair area; The first repair method uses the image's own information to complete the missing part of the image, thereby repairing the first type of quality problems at a low cost and ensuring the authenticity of the information in the repaired area to a certain extent; The second repair method adopts an image enhancement solution to achieve the repair of the second type of quality problems by enhancing the image contrast and image details, thereby ensuring the authenticity of the information in the repaired area; The third repair method uses an image filling method to fill and repair the third type of quality problems and the first type of repair areas that fail the quality inspection and the second type of repair areas that fail the quality inspection.
5. The method for preprocessing remote sensing images for storage according to claim 3, characterized in that: The specific process of performing quality inspection on the first type repair area and the second type repair area by the quality inspection unit in step S43 is as follows: S431: The first type repair area and the second type repair area are used as areas to be inspected, and image conversion is performed on the areas to be inspected to obtain grayscale images of the first type repair area and the second type repair area; S432 divides the obtained grayscale image into square image blocks of a certain size; S433 calculates and evaluates the homogeneity of each image block; S434: taking the image blocks in the area to be inspected whose homogeneity degree is greater than the homogeneity threshold as qualified image blocks; S435: The area to be inspected where the ratio of qualified image blocks to all images in the area to be inspected is greater than a set qualified rate threshold is regarded as a repair area that has passed the quality inspection.
6. A remote sensing image storage preprocessing system, characterized in that: The system is applied to the method described in any one of claims 1 to 5 above, and the system specifically comprises: an image acquisition module, a data detection and analysis module, an image screening module, an image restoration module, a data upload module and a storage module; The data detection and analysis module includes a first quality detection unit, a second quality detection unit and a data analysis unit; The image restoration module includes a classification unit, a first restoration unit, a second restoration unit, a third restoration unit and a quality inspection unit.
Citation Information
Patent Citations
Usability-Oriented Remote Sensing Image Quality Assessment Method
CN114937038A
Remote sensing image restoration method and device
CN115423725A
