Natural color restoration method and system for global satellite images based on radiation cloud control
Through the global color histogram grid library and Wallis transformation, the problem of excessive data volume in the global color benchmark image library is solved, natural color restoration and data timeliness of satellite images are achieved, storage and transmission are simplified, and a closed loop is formed.
Patent Information
- Application Number
- CN202210472091.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-29
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-04-29
AI Technical Summary
In the existing technology, the amount of data in the global color benchmark image database is too large, which makes data transmission, storage and use inconvenient, making it difficult to effectively restore the natural colors of satellite images.
Using a method based on radiation cloud control, through the global color histogram grid library and Wallis transformation, the mean and standard deviation of the grayscale value of the image to be processed are calculated, corrected for its approximation to the benchmark image, the natural color of the image is restored, and a closed-loop update is formed data.
It greatly saves storage space, simplifies data transmission and use, ensures the accuracy of image natural color restoration and data timeliness, forms a closed loop, and promotes the application of image natural color restoration technology.
Smart Images

Figure CN114841881B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of photogrammetry and remote sensing, and in particular relates to a natural color restoration scheme for global satellite images based on radiation cloud control. Background Art
[0002] Satellite remote sensing images have a long imaging distance and are greatly affected by atmospheric absorption and scattering, resulting in the color of objects in satellite images being far from the actual color. Currently, a common method to solve this problem is to establish a global color reference image library, that is, a color template library, and use the image color in the image library as a reference to achieve the purpose of correcting the color of satellite images through color registration processing. This method can well correct the color deviation between satellite images and between satellite images and actual objects, but storing the global color reference image library requires a lot of space, which is very inconvenient for data transmission, storage and use in actual production.
[0003] The essence of image color consistency processing based on color template is to regulate the hue and color contrast of the grayscale value of the image to be processed to the reference image. The mean value of the grayscale value of an image reflects its hue and brightness, and the standard deviation reflects its dynamic range of grayscale changes and, to a certain extent, its contrast. Therefore, the core information of the color template is the mean and variance of the image. The mean and variance of the image can be directly calculated through the grayscale statistical histogram. Therefore, using the color histogram to replace the template image can achieve: (1) the same color consistency processing effect; (2) because the size of the image color histogram is much smaller than the image itself, it greatly reduces the amount of data storage. In terms of color regulation processing, the Wallis filter is a relatively special filter that can enhance the contrast of the original image while suppressing noise. In particular, it can greatly enhance the image texture patterns of different scales in the image. Through the Wallis transform, the mean and standard deviation of the grayscale value of the image to be processed are corrected to be similar to or even the same as the reference image, so as to achieve the purpose of restoring the natural color of the image.
[0004] In terms of image geometric positioning, Zhang Zuxun and Tao Pengjie proposed a cloud control photogrammetry method. The so-called cloud control refers to the use of generalized ubiquitous geographic information data to replace field control points as geometric reference data to achieve high-precision geometric positioning of images. Since the control points obtained through image matching or registration are very dense and form a dense point cloud, it is called "cloud control". Compared with this geometric cloud control, we call the method of restoring the natural color of images based on image templates radiation cloud control, or color cloud control. Image color "cloud control" is supported by both "control data" and "processing technology". The former refers to: with the increasing number of remote sensing satellites around the world, the number of complete remote sensing images without stitching seams after more stringent radiation correction and artificial color adjustment is also increasing. These remote sensing images constitute a "color control framework" for the images to be processed; the latter refers to: using the grayscale value information of pixel points on the global reference image to construct a global color histogram grid library to replace the global color reference image library, and calculating the mean and standard deviation of the grayscale value of the reference image based on the histogram, and then correcting the grayscale value of each pixel point of the image to be processed through the Wallis transform to restore the natural color of the image.
[0005] Image color "cloud control" can not only restore the natural color of the image, but also the restored natural color image can be used as a reference image to update the global color histogram grid library, thus forming a closed loop of color "cloud control" to ensure the timeliness of the data. At the same time, the amount of data in the image histogram is much smaller than the amount of data in the image itself, which solves the problem of storing a large amount of space in the global color reference image library and the inconvenience of data transmission, storage and use in actual production, and promotes the further production application of image natural color restoration technology. Summary of the invention
[0006] In view of the deficiencies in the prior art, the present invention provides a method for restoring natural colors of global satellite images based on radiation cloud control, which solves the problem that the amount of data in the global color reference image library is too large, causing inconvenience in data transmission, storage and use.
[0007] In order to achieve the above object, the technical solution provided by the present invention includes a method for restoring the natural color of global satellite images based on radiation cloud control, comprising the following steps:
[0008] Step 1: select global benchmark images taken at different time periods as references, divide the benchmark images into adjacent grid areas of the same size along longitude and latitude directions, and record the row and column information of all grids;
[0009] Step 2, perform histogram statistics on the grid area obtained in step 1, store the statistically obtained histogram in a TIFF image, and obtain a global color histogram grid library;
[0010] Step 3, statistically analyze the histogram of the image to be processed, and calculate the mean and standard deviation of the grayscale value of the image to be processed according to the statistical histogram;
[0011] Step 4, select the global color histogram grid library that is closest to the imaging time of the image to be processed, and retrieve the grid that overlaps with the image to be processed in the TIFF image according to the geographic coordinates of the circumscribed rectangle of the image to be processed and the geographic coordinates of the upper left corner of the grid; obtain the histogram of the grid according to the pixel gray value information in the square grid, and then use the probability histogram weighted statistics method to calculate the overall histogram of the grid in the overlapping area, and then calculate the mean and standard deviation of the gray value of the benchmark image in the overlapping area according to the obtained histogram;
[0012] Step 5, based on the mean and standard deviation of the grayscale values of the image to be processed obtained in step 3 and the mean and standard deviation of the grayscale values of the reference image in the overlapping area obtained in step 4, correct the mean and standard deviation of the grayscale values of the image to be processed to be similar to or even the same as those of the reference image, thereby restoring the natural color of the image.
[0013] Moreover, in step 1, when selecting the reference image, a cloud-free image covering the entire world is obtained by satellite, which is close to the ground resolution of the satellite image to be processed, has been radiometrically corrected, and contains complete natural color data without stitching seams.
[0014] Furthermore, in step 1, starting from the prime meridian and 90° north latitude, the grid is divided with a grid spacing of 3′ in the longitude and latitude directions.
[0015] Moreover, after the histogram statistics in step 2, the valid information in a histogram grid includes the geographic range and the RGB three-band probability histogram. The geographic coordinates of the upper left corner of each grid are calculated based on the grid row and column information recorded in step 1 and the length and width of each grid on the longitude and latitude grid are both 3′.
[0016] Moreover, in step 4, when the size of the histogram grid is larger than the pixels of the image to be processed, the probability histogram weighted statistics is introduced to reduce the statistical error caused by the non-overlapping area at the edge of the image to be processed.
[0017] Furthermore, in step 5, the Wallis transformation is used to correct the mean and standard deviation of the grayscale values of the image to be processed to be similar to or even the same as those of the reference image.
[0018] On the other hand, the present invention provides a global satellite image natural color restoration system based on radiation cloud control, which is used to implement the global satellite image natural color restoration method based on radiation cloud control as described above.
[0019] Furthermore, the invention comprises a processor and a memory, wherein the memory is used to store program instructions, and the processor is used to call the stored instructions in the memory to execute the above-mentioned method for restoring natural colors of global satellite images based on radiation cloud control.
[0020] Alternatively, it includes a readable storage medium having a computer program stored thereon, and when the computer program is executed, the method for restoring natural colors of global satellite images based on radiation cloud control as described above is implemented.
[0021] Compared with the prior art, the present invention has the following advantages:
[0022] 1) The histogram information of the reference image is stored in TIFF format, making the color histogram information of the reference image more compatible in the software and more convenient to use; 2) The data volume of the image histogram is much smaller than the data volume of the image itself, which greatly saves storage space; 3) In actual production, it is much more convenient to transmit, store and use the image histogram than to directly transmit, store and use the image; 4) A global color histogram grid library is constructed according to seasons or months. When restoring the natural color of the image, the global color histogram grid library with the closest imaging time to the image to be processed is selected to ensure the accuracy of the natural color restoration result of the image; 5) The image after the natural color is restored in the image color "cloud control" can be used as a reference image to update the global color histogram grid library, forming a closed loop of color "cloud control" to ensure the timeliness of the data. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 Schematic diagram of global reference image grid division according to an embodiment of the present invention.
[0024] Figure 2 Schematic diagram of storing the histogram information of the reference image in the global color histogram grid library according to an embodiment of the present invention.
[0025] Figure 3 It is an overall flow chart of an embodiment of the present invention. DETAILED DESCRIPTION
[0026] The present invention relates to a method for restoring the natural color of global satellite images based on radiation cloud control. Based on the global color histogram grid library, the mean and standard deviation of the grayscale value of the image to be processed are corrected to be similar to or even the same as those of the reference image through Wallis transformation, so as to achieve the purpose of restoring the natural color of the image.
[0027] The present invention not only solves the problem that storing a global color reference image library takes up a lot of space when restoring the natural color of an image, and the problem that the global color reference image library is inconvenient to transmit, store and use in actual production, but also selects a global color histogram grid library that is closest to the imaging time of the image to be processed to participate in the calculation, thereby ensuring the accuracy of the natural color restoration result of the image. At the same time, the image after natural color restoration in the image color "cloud control" can be used as a reference image to update the global color histogram grid library, forming a closed loop of the color "cloud control" to ensure the timeliness of the data. It promotes the further production application of image natural color restoration technology.
[0028] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and an embodiment example of restoring the natural color of global satellite images using a global color histogram grid library constructed based on Landsat-8 multispectral images. The embodiment generates a global color histogram grid library for four seasons or twelve months in units of seasons or months, selects a global color histogram grid library closest to the imaging time of the image to be processed, and corrects the mean and standard deviation of the grayscale value of the image to be processed to be similar to or even the same as the reference image through Wallis transformation, thereby realizing "cloud control" of the image color and achieving the purpose of restoring the natural color of the image.
[0029] like Figure 3 As shown, a method for restoring natural colors of global satellite images based on radiation cloud control provided by an embodiment of the present invention includes the following steps:
[0030] Step 1: Select global benchmark images taken in different seasons or months as references, such as Figure 1 As shown in the figure, starting from the prime meridian and 90° north latitude, the reference image is divided into adjacent grid areas of the same size along the longitude and latitude directions and the row and column information of all grids is recorded. The main function is to extract the required small-capacity statistical information from the global reference image with a large storage volume;
[0031] The first condition for selecting the reference image in step 1 is that the satellite that has been operating stably in space for many years needs to obtain cloud-free images covering the entire world. In addition, the natural color restoration method of images uses histogram information as a reference, requiring that there are enough pixels in the corresponding geographical range of the image to be processed on the reference image, so it is necessary to select a reference image that is as close as possible to the ground resolution of the satellite image to be processed. Finally, for color processing, the reference image should be complete natural color data without seams after strict radiation correction and artificial color adjustment. At the same time, because the color of objects in some parts of the world changes significantly with the seasons, and even the color of objects in different months is quite different, a global color histogram grid library of four seasons or twelve months is generated according to the season or even the month, and the global color histogram grid library closest to the imaging time of the image to be processed is selected for the next step of operation to ensure the accuracy of the natural color restoration results of the image.
[0032] The size of the grid is directly related to the storage size of the final histogram grid library. The edge of the image to be processed does not strictly coincide with the grid. The larger the grid size, the lower the overlap between the grid and the edge of the image to be processed, the lower the accuracy of the color correction by the Wallis transform, and the smaller the storage space occupied. On the contrary, the smaller the grid size, the higher the overlap between the grid and the edge of the image to be processed, the higher the accuracy of the color correction by the Wallis transform, but the larger the storage space occupied. Figure 1 As shown in the figure, in order to make the number of grids obtained by dividing the global reference image an integer, and taking into account the overlap between the grid and the edge of the image to be processed and the size of the required storage space, starting from the prime meridian and 90° north latitude, the grids are divided with a grid spacing of 3′ (the corresponding ground range is approximately 5.5km×5.5km) in the longitude and latitude directions.
[0033] In step 1 of the embodiment, the Landsat series satellites have a short repetition period of only 16 days and a swath width of 370 kilometers, so they can quickly acquire effective multispectral images with a ground resolution of 30 meters in most areas of the world. In addition, since the launch of the first Landsat remote sensing satellite in 1972, after decades of development and research, its high-precision geometric and radiation correction technology has become very mature, and many commercial software such as ENVI have complete and accurate geometric and radiation correction processes. Among them, Landsat-8 has attracted the most attention. Since it was launched in 2013, its orthophoto products that have undergone strict geometric correction have been made public for free. The global multispectral images of Landsat-8 in four seasons are selected as benchmark images. Figure 1 , starting from the prime meridian and 90° north latitude, the reference image is divided into adjacent grid areas with a grid spacing of 3′ (corresponding to a ground range of approximately 5.5km×5.5km) in the longitude and latitude directions, and the row and column information of all grids is recorded.
[0034] Step 2, perform histogram statistics on the grid area obtained in step 1, store the statistically obtained histogram in a TIFF image, and obtain a global color histogram grid library;
[0035] The histogram statistics in step 2 are based on the 8-bit color space, and the statistical range is valid grayscale values from 0 to 255. The valid information in a histogram grid includes the geographic range (starting geographic coordinates) and the RGB three-band probability histogram. According to the grid row and column information recorded in step 1 and the length and width of each grid on the longitude and latitude grid are both 3', the geographic coordinates of the upper left corner of each grid can be calculated.
[0036] TIFF file format (Tagged Image File Format) is widely used in various geographic information systems, photogrammetry and remote sensing. Compared with the custom histogram storage format, TIFF file format has stronger flexibility and adaptability. Therefore, using TIFF images to store the global color histogram grid library makes the histogram information more compatible and convenient to use in the software. Figure 2 As shown, the embodiment creates a new TIFF image, and divides the square area corresponding to the grid in the TIFF image into 16×16 pixel blocks. As shown in the table below, 256 pixel blocks are associated with grayscale values 0-255 (where the lower left pixel block represents a grayscale value of 0). Then, the probability of each grayscale value in the statistical RGB three-band probability histogram is assigned to the grayscale value of the corresponding pixel block in the TIFF image, and the histogram information of the RGB three-band corresponds to the grayscale value of the RGB three-band pixels in the TIFF image one by one, so that the statistical histogram information is converted into the pixel grayscale value information in the TIFF image. At the same time, the grid on the reference image corresponds one by one to the square area on the TIFF image, and the obtained global color histogram grid library is a TIFF image in which the histogram grid strictly overlaps with the geographical area it represents. Finally, the global color histogram grid library of four seasons is obtained;
[0037] The following is a table showing the correspondence between 256 pixel blocks and 0-255 grayscale values in a square area in the global color histogram grid library that corresponds to the grid area in the reference image:
[0038] 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
[0039] Step 3, statistically analyzing the color histogram of the satellite image to be processed, and calculating the mean and standard deviation of the grayscale value of the satellite image to be processed according to the statistical histogram;
[0040] The statistical and calculation methods can adopt the existing technology, which will not be described in detail in the present invention.
[0041] Step 4: Select the global color histogram grid library that is closest to the imaging time of the image to be processed, and retrieve the grid in the TIFF image that overlaps with the image to be processed based on the geographic coordinates of the circumscribed rectangle of the image to be processed and the geographic coordinates of the upper left corner of the grid. Obtain the histogram of the grid based on the grayscale value information of the pixels in the square grid, and then use the probability histogram weighted statistics method to calculate the overall histogram of the grid in the overlapping area, and then calculate the mean and standard deviation of the grayscale value of the benchmark image in the overlapping area based on the obtained histogram;
[0042] In step 4, as long as the size of the histogram grid is larger than the pixel of the image to be processed, non-overlapping area error statistics will inevitably be introduced at the edge of the image to be processed. In order to reduce the statistical error caused by the non-overlapping area at the edge of the image to be processed, the probability histogram weighted statistical method is introduced:
[0043]
[0044] In the formula, p dn represents the histogram probability when the gray value of the image to be processed is dn. J represents the number of grids in the histogram grid library covered by the image to be processed. j dn Represents the histogram probability of the gray value dn in the histogram grid j covered by the image to be processed. j It represents the effective overlapping area between the image to be processed and histogram grid j. In actual calculation, it represents the number of effective pixels of the image to be processed in histogram grid j. S represents the effective area of the image to be processed, that is, the total number of effective pixels in the image. In actual calculation, the sum of the effective pixels in each grid is taken as the total effective area. j / represents the effective area ratio of the image to be processed in grid j, which serves as the weight of its histogram.
[0045] In step 4 of the embodiment, a global color histogram grid library of satellite images to be processed whose imaging time is in one season is selected.
[0046] Step 5: Based on the mean and standard deviation of the grayscale values of the image to be processed obtained in step 3 and the mean and standard deviation of the grayscale values of the reference image in the overlapping area obtained in step 4, the mean and standard deviation of the grayscale values of the image to be processed are corrected to be similar to or even the same as those of the reference image through Wallis transformation to restore the natural color of the image.
[0047] In step 5, the Wallis transform corrects the mean and standard deviation of the grayscale values of the image to be processed to be similar or even the same as the reference image. The general expression is:
[0048]
[0049] Where g represents the gray value of the image to be processed. f represents the gray value after Wallis transformation. meang and std g Represents the mean and standard deviation of the grayscale value of the image to be processed. f and std f Represents the mean and standard deviation of the grayscale value of the reference image. c represents the expansion constant of the standard deviation of the image grayscale value, and b represents the brightness coefficient of the image. Both constants are between 0 and 1. The typical Wallis transform sets both c and b to 1, that is, the Wallis transform expression used in actual calculations:
[0050]
[0051] Where g represents the gray value of the satellite image to be processed. f represents the gray value after Wallis transformation. g and std g Represents the mean and standard deviation of the grayscale value of the satellite image to be processed. f and std f Represents the mean and standard deviation of the grayscale value of Landsat-8 image.
[0052] Formula (3) is a linear expression. At this time, Wallis transform also degenerates into a color conversion method based on mean-standard deviation.
[0053] In specific implementation, the method proposed in the technical solution of the present invention can be implemented by technical personnel in this field using computer software technology to realize automatic operation process. System devices for implementing the method, such as computer-readable storage media storing the corresponding computer program of the technical solution of the present invention and computer equipment running the corresponding computer program, should also be within the scope of protection of the present invention.
[0054] In some possible embodiments, a global satellite image natural color restoration system based on radiation cloud control is provided, including a processor and a memory, the memory being used to store program instructions, and the processor being used to call the stored instructions in the memory to execute a global satellite image natural color restoration method based on radiation cloud control as described above.
[0055] In some possible embodiments, a global satellite image natural color restoration system based on radiation cloud control is provided, including a readable storage medium, on which a computer program is stored. When the computer program is executed, a global satellite image natural color restoration method based on radiation cloud control as described above is implemented.
[0056] The specific embodiments described herein are merely examples of the spirit of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in similar ways, but they will not deviate from the spirit of the present invention or exceed the scope defined by the appended claims.
Claims
1. A method for restoring natural colors of global satellite images based on radiation cloud control, characterized in that: The following steps are involved: Step 1: select global benchmark images taken at different time periods as references, divide the benchmark images into adjacent grid areas of the same size along longitude and latitude directions, and record the row and column information of all grids; Step 2, perform histogram statistics on the grid area obtained in step 1, store the statistically obtained histogram in a TIFF image, and obtain a global color histogram grid library; Step 3, statistically analyze the histogram of the image to be processed, and calculate the mean and standard deviation of the grayscale value of the image to be processed according to the statistical histogram; Step 4, select the global color histogram grid library that is closest to the imaging time of the image to be processed, and retrieve the grid that overlaps with the image to be processed in the TIFF image according to the geographic coordinates of the circumscribed rectangle of the image to be processed and the geographic coordinates of the upper left corner of the grid; obtain the histogram of the grid according to the pixel gray value information in the square grid, and then use the probability histogram weighted statistics method to calculate the overall histogram of the grid in the overlapping area, and then calculate the mean and standard deviation of the gray value of the benchmark image in the overlapping area according to the obtained histogram; Step 5: Based on the mean and standard deviation of the grayscale values of the image to be processed obtained in step 3 and the mean and standard deviation of the grayscale values of the reference image in the overlapping area obtained in step 4, the mean and standard deviation of the grayscale values of the image to be processed are corrected according to the reference image to restore the natural color of the image.
2. The method for restoring natural colors of global satellite images based on radiation cloud control according to claim 1, characterized in that: In step 1, when selecting the reference image, a cloud-free image covering the entire world is obtained by satellite, which is close to the ground resolution of the satellite image to be processed, has been radiometrically corrected, and contains complete natural color data without stitching seams.
3. The method for restoring natural colors of global satellite images based on radiation cloud control according to claim 1, characterized in that: In step 1, starting from the prime meridian and 90° north latitude, the grid is divided with a grid spacing of 3′ in the longitude and latitude directions.
4. The method for restoring natural colors of global satellite images based on radiation cloud control according to claim 1, characterized in that: After the histogram statistics in step 2, the valid information in a histogram grid includes the geographic range and the RGB three-band probability histogram. The geographic coordinates of the upper left corner of each grid are calculated based on the grid row and column information recorded in step 1 and the length and width of each grid on the longitude and latitude grid are both 3′.
5. The method for restoring natural colors of global satellite images based on radiation cloud control according to claim 1, characterized in that: In step 4, when the size of the histogram grid is larger than the pixels of the image to be processed, the probability histogram weighted statistics is introduced to reduce the statistical error caused by the non-overlapping area at the edge of the image to be processed.
6. A method for restoring natural colors of global satellite images based on radiation cloud control as claimed in claim 1, 2, 3, 4 or 5, characterized in that: In step 5, the Wallis transform is used to correct the mean and standard deviation of the grayscale values of the image to be processed to be similar to or even the same as those of the reference image.
7. A global satellite image natural color restoration system based on radiation cloud control, characterized by: Used to implement a global satellite image natural color restoration method based on radiation cloud control as described in any one of claims 1-6.
8. The global satellite image natural color restoration system based on radiation cloud control according to claim 7 is characterized by: It includes a processor and a memory, the memory is used to store program instructions, and the processor is used to call the stored instructions in the memory to execute a global satellite image natural color restoration method based on radiation cloud control as described in any one of claims 1-6.
9. The global satellite image natural color restoration system based on radiation cloud control according to claim 7, characterized in that: It includes a readable storage medium, on which a computer program is stored. When the computer program is executed, a method for restoring natural colors of global satellite images based on radiation cloud control as described in any one of claims 1 to 6 is implemented.
