A cloud removal method for optical and SAR image fusion based on deep dense residual network

Fusion of optical and SAR images through a deep dense residual network solves the problem of low-resolution dependence and insufficient consideration of differences in the existing technology, and achieves efficient cloud removal and clear boundaries.

CN114549385BActive Publication Date: 2024-09-03CHONGQING UNIV OF POSTS & TELECOMM
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210174565.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-24
Publication Date
2024-09-03
Estimated Expiration
2042-02-24

AI Technical Summary

Technical Problem

Existing optical and SAR image fusion cloud removal methods require low-resolution auxiliary images and do not fully consider image differences, resulting in poor cloud removal results, especially in thick cloud areas where the boundary information of ground objects is unclear.

Method used

An optical and SAR image fusion method based on a deep dense residual network is used, and the deep residual network and RDN network are trained to generate cloud-free images. Cloud masks and loss functions are used to distinguish cloudy and cloud-free areas to improve cloud removal accuracy. and boundary clarity.

Benefits of technology

It reduces the dependence on low-resolution images, improves cloud removal accuracy and boundary clarity, directly uses SAR images to generate optical images, reduces the difficulty of data acquisition, and maintains the clarity of ground object information in thick cloud areas.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114549385B
    Figure CN114549385B
Patent Text Reader

Abstract

The present invention belongs to the field of remote sensing image declouding, and specifically relates to a declouding method for optical and SAR image fusion based on a deep dense residual network. The method comprises: acquiring an image to be declouded, and preprocessing the image to be declouded; inputting the preprocessed image into a trained declouding model to obtain a declouded image; marking a target area according to the declouded image; the declouding model comprises a deep residual network and an RDN network; before performing optical and SAR image fusion declouding, firstly performing a conversion from a SAR image to an optical image, so that the difference between the optical image and the SAR image directly caused by imaging reasons is reduced, thereby improving the utilization of information in the SAR image and the final declouding accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of remote sensing image declouding, and in particular relates to a declouding method for optical and SAR image fusion based on a deep dense residual network. Background Art

[0002] Clouds have a great impact on the use of remote sensing images, and the impact of clouds and fog in optical remote sensing images is complex and changeable. Thick clouds almost completely block ground information, while thin clouds pollute and attenuate information. According to the different data sources used, the existing cloud removal methods can be divided into single remote sensing image declouding and multi-source remote sensing image declouding. Single remote sensing images are mostly used for thin clouds, which can be divided into space-based, frequency-based and spectrum-based methods. However, due to limited information, single images cannot effectively remove thick clouds and reconstruct ground information; multi-source data declouding methods introduce multi-sensor data or multi-temporal data as supplementary information, and reconstruct the surface information under the cloud by pixel replacement, pixel gray value mapping, image fusion and other methods in thick cloud areas, such as optical and synthetic aperture radar (SAR) image fusion declouding, RPCA declouding algorithm, Poisson distribution and deep learning declouding methods. The multi-temporal image declouding method can effectively remove thick clouds, but long time series images are difficult to obtain and the time span is large, which has a great impact on the credibility of the reconstruction results. The optical and SAR image fusion declouding method can use SAR images acquired at the same time as the missing information of the optical image, which can achieve better declouding reconstruction results.

[0003] Due to the difference in the imaging principles of optical and SAR images, it is difficult to fuse them using traditional methods. Therefore, the current methods for fusion and cloud removal mainly use deep learning methods. In 2013, Robert Eckardt et al. proposed a method for removing thick clouds from multispectral images using multi-frequency SAR data. Based on the closest spectral fitting (CSF), this method introduced the nearest eigenvector to improve the removal accuracy. This method restores the cloud area pixels by evaluating the spectral domain and spectral similarity to find the cloud-free pixels that are most similar to the cloud area. In 2015, Bo Huang et al. proposed a thick cloud removal method based on sparse representation. Low-resolution cloud-free optical images and SAR images were used as supplementary information. The relationship between low-resolution optical images and high-resolution optical images containing clouds and the relationship between SAR images and high-resolution optical images containing clouds were established using sparse representation, and the missing information was reconstructed by establishing structural correspondence. In 2018, Claas Grohnfeldt et al. proposed a method for removing clouds by fusing optical and SAR images based on conditional generative adversarial networks. The method improved the pix2pix network of the cGAN architecture, used the generative network to generate simulated cloud-free images from cloud images and SAR images, and used the discriminator to judge the authenticity of the generated cloud-free images for joint training. In 2019, Wenbo Li et al. proposed a method for removing thick clouds from remote sensing images based on multi-source estimation. They designed a mapping layer and used the convolution-mapping-deconvolution architecture to design a restoration network. They directly estimated cloud-free images from multi-source reference images, used SAR images and low-resolution optical images as reference images, and restored the missing information in high-resolution images contaminated by clouds. In 2020, Andrea Meraner et al. used a deep residual network to construct a fusion network of optical and SAR images for cloud removal. The network only needs to use optical images with clouds and SAR images to generate cloud-free optical images, reducing the use of low-resolution optical images.

[0004] However, the above prior art still has the following problems:

[0005] (1) Currently, most cloud removal methods that use optical and SAR image fusion require the use of low-resolution auxiliary images, which makes data collection difficult, and the quality of the auxiliary images can easily affect the cloud removal results.

[0006] (2) Most existing methods do not fully consider the differences between optical and SAR images, resulting in poor fusion effects.

[0007] (3) Due to the almost complete loss of information about the ground objects beneath the clouds due to thick clouds, the restoration results of existing cloud removal methods using SAR and optical image fusion are generally not as clear as those in cloudless areas in terms of ground object boundary information in thick cloud areas. Summary of the invention

[0008] In order to solve the problems existing in the above prior art, the present invention proposes a declouding method for optical and SAR image fusion based on a deep dense residual network, the method comprising: obtaining an image to be declouded and preprocessing the image to be declouded; inputting the preprocessed image into a trained declouding model to obtain a declouded image; marking the target area according to the declouded image; the declouding model comprises a deep residual network and an RDN network;

[0009] The process of training a cloud-free model includes:

[0010] S1: Obtain the original data set and preprocess the original data set; divide the preprocessed data set into a training set and a test set; the images in the original data set are composed of data groups, and each group of data includes Sentinel-1 SAR images, Sentinel-2 cloud optical images, and Sentinel-2 near-time cloud-free optical images;

[0011] S2: extract the cloud mask CMask of the Sentinel-2 cloud optical image in the training set;

[0012] S3: Input the Sentinel-1SAR image into the trained deep residual network to obtain the RGB three-channel simulated optical image;

[0013] S4: Input the cloud-covered optical image of Sentinel-2, the SAR image of Sentinel-1, and the RGB three-channel simulated optical image into the RDN network, and process the image fused with the cloud mask CMask to obtain a cloud-free image;

[0014] S5: Calculate the loss function of the model based on the cloud-free image;

[0015] S6: continuously input the image data in the training set into the model, adjust the parameters of the model, and complete the model training when the loss function of the model is minimized;

[0016] S7: Input the data in the test set into the trained model for testing.

[0017] Preferably, preprocessing the original data set includes: the SAR image of Sentinel 1 contains two polarization channels, VV and VH, and the optical image data of Sentinel 2 contains 13 channels; the SAR image of Sentinel 1 and the optical image of Sentinel 2 are respectively subjected to image registration, upsampling and downsampling processing so that the resolution of all images is the same.

[0018] Preferably, the process of extracting the cloud mask CMask of the Sentinel 2 optical image with clouds includes: obtaining the first band and the second band of the Sentinel 2 optical image with clouds, and performing least squares fitting on the first band and the second band; extracting the cloud reflectivity of the cloud image according to the fitting coefficients of the first band and the second band; setting a threshold γ, and setting the mask value of the cloudy area to 1 and the mask value of the cloudless area to 0 according to the set threshold and the cloud reflectivity, so as to obtain the cloud mask CMask.

[0019] Furthermore, the formula for calculating the cloud reflectivity of the cloud image is:

[0020]

[0021] in, The first band representing the cloud image, represents the second band of the cloud image, α and β are the fitting coefficients calculated by least squares in the clear sky image, and the fitting formula is:

[0022] ρ2=α+β·ρ1

[0023] Among them, ρ1 represents the first band of the clear sky image, ρ2 represents the second band of the clear sky image, and α and β are the required fitting coefficients.

[0024] Preferably, the process of training the deep residual network includes: inputting a SAR image with two polarization channels, VV and VH, into the deep residual network, and then inputting it into a Relu activation layer after passing through a convolution layer with a size of 3*3 and a filter of 128; inputting the image after activation multiplication into the residual network; performing dimensionality reduction processing on the image after passing through the residual network to obtain an output image; constructing a loss function of the deep residual network according to the output image, and completing the training of the deep residual network when the loss function is minimized.

[0025] Furthermore, the loss function of the deep residual network is expressed as:

[0026]

[0027] Among them, α, β are the coefficients controlling the two loss ratios, P is the generated simulated optical image, T is the target cloud-free Sentinel-2 reference image, N sum is the total number of image pixels, CMask is the cloud mask, and I is the input optical image with clouds.

[0028] Preferably, the process of using the RDN network to fuse the cloud optical image of Sentinel 2, the SAR image of Sentinel 1 and the RGB three-channel simulated optical image includes: superimposing the bands of the cloud optical image of Sentinel 2, the SAR image of Sentinel 1 containing two polarization channels of VV and VH, and the RGB three-channel simulated optical image generated in the previous part to form input data, and then inputting the data into the RDN fusion network after a convolution layer with a size of 3*3 and 256 filters. The RDN network is constructed by superimposing 16 RDBlocks, each of which is composed of 4 two-dimensional convolution layers with a size of 3*3 and 128 filters, and a dimension reduction convolution layer with a size of 1*1 and 128 filters. After the dimension reduction, the first feature of the dense residual block is connected to the feature after the dimension reduction using Add to ensure the transmission of the original feature. After 16 layers of RDBlock, a convolutional layer with a size of 3*3 and 13 filters is used for dimensionality reduction to make the feature dimension the same as the 13-channel Sentinel 2 image. A long skip layer is added after the convolutional layer, and the input Sentinel 2 optical image with cloud is connected to the output feature using Add to ensure the transmission of the original feature. In the skip connection, the cloud mask is used to mask the original input image, and only the data in the non-cloud area is retained. The loss function of the deep residual network is constructed based on the output image, and the training of the deep residual network is completed when the loss function is minimized.

[0029] Preferably, the loss function of the model is:

[0030]

[0031] Among them, α, β, δ are the coefficients controlling the proportion of the three losses, P is the declouding result, T is the cloud-free Sentinel-2 reference image, and N sum is the total number of image pixels, CMask is the cloud mask, B P ,B T The boundaries extracted by 3*3soble operator for P and T respectively.

[0032] To achieve the above objectives, the present invention also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, it implements any of the above-mentioned cloud removal methods for optical and SAR image fusion based on a deep dense residual network.

[0033] To achieve the above-mentioned objectives, the present invention also provides a declouding device for optical and SAR image fusion based on a deep dense residual network, comprising a processor and a memory; the memory is used to store a computer program; the processor is connected to the memory, and is used to execute the computer program stored in the memory, so that the declouding device for optical and SAR image fusion based on a deep dense residual network performs any of the above-mentioned declouding methods for optical and SAR image fusion based on a deep dense residual network.

[0034] Beneficial effects of the present invention:

[0035] 1) Before the fusion of optical and SAR images for cloud removal, the SAR image is converted to an optical image, which reduces the difference between the optical image and the SAR image caused by imaging reasons, improves the utilization of information in the SAR image and the final cloud removal accuracy;

[0036] 2) Instead of using low-resolution optical images as auxiliary data, low-resolution optical data is directly generated using SAR images, which reduces the difficulty of obtaining auxiliary images;

[0037] 3) Use RDBlock to build a new optical and SAR image fusion de-clouding network to improve de-clouding accuracy;

[0038] 4) When constructing the loss function, the clouded area and the cloudless area are distinguished so that the cloudless area can be better preserved, and the boundary of the clouded area is constrained, so that the cloudless image structure after fusion and de-clouding is clearer. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is the overall flow chart of the present invention;

[0040] Figure 2 A simulated optical image model for generating the present invention;

[0041] Figure 3 It is the ResBlocks module structure diagram of the present invention;

[0042] Figure 4 This is a diagram of the RDN fusion cloud-free network structure of the present invention;

[0043] Figure 5 It is the structure diagram of the RDBlocks module of the present invention;

[0044] Figure 6 This is a diagram of the cloud removal result of the present invention. DETAILED DESCRIPTION

[0045] 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 without creative work are within the scope of protection of the present invention.

[0046] A cloud removal method for optical and SAR image fusion based on a deep dense residual network comprises: obtaining an image to be declouded and preprocessing the image to be declouded; inputting the preprocessed image into a trained declouding model to obtain a declouded image; marking a target area according to the declouded image; the declouding model comprises a deep residual network and an RDN network.

[0047] The process of training a cloud-free model includes:

[0048] S1: Obtain the original data set and preprocess the original data set; divide the preprocessed data set into a training set and a test set; the images in the original data set are composed of data groups, and each group of data includes Sentinel-1 SAR images, Sentinel-2 cloud optical images, and Sentinel-2 near-time cloud-free optical images;

[0049] S2: extract the cloud mask CMask of the Sentinel-2 cloud optical image in the training set;

[0050] S3: Input the Sentinel-1SAR image into the trained deep residual network to obtain the RGB three-channel simulated optical image;

[0051] S4: Input the cloud-covered optical image of Sentinel-2, the SAR image of Sentinel-1, and the RGB three-channel simulated optical image into the RDN network, and process the image fused with the cloud mask CMask to obtain a cloud-free image;

[0052] S5: Calculate the loss function of the model based on the cloud-free image;

[0053] S6: continuously input the image data in the training set into the model, adjust the parameters of the model, and complete the model training when the loss function of the model is minimized;

[0054] S7: Input the data in the test set into the trained model for testing.

[0055] Attached Figure 1 This is the overall cloud removal framework of the present invention, Figure 2 and attached Figure 4 It is a SAR image to optical image conversion network constructed based on existing research and inventions and an RDN fusion de-clouding network that fuses Sentinel-1 SAR images, Sentinel-2 cloud optical images, and RGB simulated optical images. Figure 3and attached Figure 5 The block structures in the two main networks are shown respectively. The technical solutions in the embodiments of the present invention will be clearly and detailedly introduced below in conjunction with the accompanying drawings in the implementation examples of the present invention.

[0056] A cloud removal method for optical and SAR image fusion based on a deep dense residual network, the specific steps of the method include:

[0057] Step 1: Collect the required data sets and perform preprocessing. Divide the data sets into two parts for training the simulated optical image network and the fusion de-clouding network, and divide them into training set, test set and validation set respectively.

[0058] The training of the network requires a large amount of data. The training data set used in the present invention is the SEN12MS-CR data set constructed by scholars such as Ebel. This data set contains a large amount of data in spring, summer, autumn and winter from all over the world. Each set of data consists of Sentinel-1 SAR, Sentinel-2 cloud optical images and Sentinel-2 adjacent time cloud-free optical images. The SAR image of Sentinel-1 contains two polarization channels, VV and VH, and the Sentinel-2 optical data contains 13 channels. This data set preprocesses the data collected from all over the world, including image registration, upsampling and downsampling, samples all image resolutions to the same resolution, and divides them into images of size 256*256.

[0059] The collected remote sensing data set needs to be divided into the data set used to generate simulated optical image training and the data set used by the RDN fusion network, and the two data sets are divided into training set: test set: validation set in the ratio of 8:1:1 to ensure that the training of the two networks does not use the same data.

[0060] Step 2: Extract the cloud mask CMask of the cloud-covered Sentinel-2 image for subsequent processing. Select a cloudless clear sky image and use its band 1 and band 2 for least squares fitting, as shown in the following formula:

[0061] ρ2=α+β·ρ1

[0062] The cloud reflectivity of the cloud image is extracted using the fitted coefficients α and β, as shown in the following formula:

[0063]

[0064] in For cloud image band 1, is the cloud image band 2. Select a suitable threshold γ as the cloud The threshold for segmenting clouds and no clouds is set in the cloud area, the mask value of the cloud area is set to 1, and the mask value of the no-cloud area is set to 0, and the cloud mask CMask is obtained.

[0065] Step 3: Build a SAR to optical image conversion network based on a deep residual network and perform end-to-end training.

[0066] The network used in the present invention to generate simulated optical images refers to the Sentinel 2 super-resolution network structure proposed by Lanaras et al. Figure 3 The residual blocks (ResBlocks) shown are stacked. First, a SAR image with two polarization channels, VV and VH, is used as input data, and is input into the residual network after a convolution layer with a size of 3*3 and a filter number of 128 and a Relu activation layer. The residual block consists of two layers of convolution, each with a convolution size of 3*3 and a filter number of 128. A deep residual network is composed of 16 layers of residual blocks, and each layer has the same number of filters. After a layer of convolution, the output image is obtained by dimensionality reduction. Here, the number of channels of the output image needs to be controlled. In the present invention, the number of channels of the output image is set to 3, and a simulated optical image of three RGB channels is generated.

[0067] The goal of cloud removal is to remove clouds from the clouded Sentinel 2 image and restore ground information, so the restored image space and spectral characteristics should be closer to the real ground of the clouded Sentinel 2. In order to make the generated simulated optical image as close as possible to the cloud-free representation of the clouded Sentinel 2 image, rather than the cloud-free image of the Sentinel 2 at the adjacent time, the present invention constructs a different loss function for the clouded and cloud-free areas during training. Let the generated simulated optical image perform loss on the cloud-free area with the cloud-free area of ​​the Sentinel 2 cloud image, and perform loss on the cloud-free area with the cloud-free Sentinel 2. The loss function is as follows:

[0068]

[0069] Among them, α, β are the coefficients controlling the two loss ratios, P is the generated simulated optical image, T is the target cloud-free Sentinel-2 reference image, N sum is the total number of image pixels, CMask is the cloud mask, and I is the input optical image with clouds. Using such a loss function for training can keep the non-cloud area unchanged as much as possible.

[0070] Step 4: Use the SAR to optical image conversion network trained in step 3 to generate RGB three-channel simulated optical images from the SAR images in the fusion data set for standby use. It should be noted that the SAR to optical conversion in this step does not need to distinguish between training sets, test sets, and validation sets, because the conversion results will all be directly used in the subsequent RDN network.

[0071] Step 5: Construct an optical and SAR image fusion declouding network based on a deep dense residual network (RDN), input the Sentinel-2 optical image with cloud, the SAR image and the RGB simulated optical image generated in step 4 to obtain a cloud-free image, and perform end-to-end training on the RDN.

[0072] The RDN network basic module for fusion and de-clouding of SAR images and optical images in the present invention adopts the dense residual block (Residual Dense Network for Image Restoration) proposed by Yulun Zhang et al. in 2021, and constructs the RDN fusion network of the present invention according to the requirements of the fusion task. Figure 5 As shown in the figure, the dense residual block (RDBlock) combines the advantages of dense blocks (denseblock) and residual blocks (Resblock). Like dense blocks, after each layer of convolution, the superposition operation is used to superimpose the features of each layer before the convolution block with the features after the convolution to ensure that the low-level features can be passed backward. After multiple layers of feature superposition, the feature dimension will become very large, resulting in an increase in training parameters. A 1*1 convolution is used to reduce the feature dimension to the same as the feature dimension before the input dense block. After the dimensionality reduction, the first feature of the dense residual block is connected to the reduced feature using Add to ensure the transmission of the original feature.

[0073] When fusion is performed, the input data is divided into three parts: the cloud optical image with 13 channels from Sentinel 2, the SAR image with two polarization channels of VV and VH from Sentinel 1, and the RGB three-channel simulated optical image generated in the previous part. First, the three images are band-superimposed to form the input data, and then input into the fusion network after a convolution layer with a size of 3*3 and 256 filters. The RDN network is constructed by superimposing 16 RDBlocks, each of which consists of 4 two-dimensional convolution layers with a size of 3*3 and 128 filters, and a It is composed of a dimensionality reduction convolution layer with a size of 1*1 and 128 filters. After 16 layers of RDBlock, a convolution layer with a size of 3*3 and 13 filters is used for dimensionality reduction to make the feature dimension the same as the 13-channel Sentinel 2 image. A long skip layer is added after the convolution layer, and the input Sentinel 2 optical image with cloud is connected to the output feature using Add to ensure the transmission of the original feature. In addition, in the skip connection, the cloud mask is used to mask the original input image and only the data in the non-cloud area is retained. The purpose is to keep the pixels in the non-cloud area less affected after passing through the network.

[0074] In order to keep the non-cloud area unchanged as much as possible, the RDN fusion network loss function also distinguishes between cloud and non-cloud areas. The non-cloud area uses the cloud-free area with Cloud Sentinel 2 as a reference, and the cloud area uses the Cloud Sentinel 2 in the adjacent time as a reference.

[0075] At the same time, the boundary loss function is designed, using a 3*3 sobel filter

[0076]

[0077]

[0078] The image is bounded by extraction, generating 13 channels of x-direction boundaries and 13 channels of y-direction boundaries, and at the same time calculating the boundary loss of the cloud area in the x and y directions to improve the ability to constrain the boundaries. The loss function of the RDN network training is as follows:

[0079]

[0080] Among them, α, β, δ are the coefficients controlling the proportion of the three losses, P is the declouding result, T is the cloud-free Sentinel-2 reference image, and N sum is the total number of image pixels, CMask is the cloud mask, B P ,B T are the boundaries of P and T respectively.

[0081] Step 6: Use the trained deep residual network and deep RDN network to remove clouds from the actual data. According to actual needs, select the SAR image of Sentinel 1, the cloud optical image of Sentinel 2, and the cloud-free optical image of Sentinel 2 in the area to be declouded. Upsample the SAR image to a resolution of 10m and align the data using envi software, and crop the data into 256*256 images.

[0082] First, the cloud mask of the cloud optical image is extracted using the method in step 2, and then the deep residual network in step 3 is used to convert the SAR image into a simulated optical image with RGB three channels. Finally, the RDN network in step 5 is used for de-clouding.

[0083] Attached Figure 6 The figure shows the comparison of the cloud removal results of the optical and SAR image fusion declouding network based on RDN according to the present invention and the cloud removal results of the ResNet16 proposed by Andrea Meraner et al. when using the same data set. Figure 6In the first cloud image, the declouding result of the present invention has a clearer structure, and the ground object information structure of the thick cloud area marked in the red box is clearer, with obvious boundary information. In the declouding result of the second picture, the color of the declouding result of the method proposed in the present invention is closer to the reference image, and no large spectral difference is produced. In the declouding result of the third cloud image, the boundary structure of the local area marked in the red box is clearer, and the structural information contained in the SAR image is effectively obtained and fused into the optical image. In summary, the optical and SAR image fusion declouding method based on a deep dense residual network proposed in the present invention can provide effective and effective declouding results.

[0084] In one embodiment of the present invention, the present invention also includes a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-mentioned cloud removal methods for optical and SAR image fusion based on a deep dense residual network.

[0085] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to the computer program. The aforementioned computer program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.

[0086] A cloud removal device for optical and SAR image fusion based on a deep dense residual network, comprising a processor and a memory; the memory is used to store a computer program; the processor is connected to the memory and is used to execute the computer program stored in the memory, so that the cloud removal device for optical and SAR image fusion based on a deep dense residual network performs any of the above-mentioned cloud removal methods for optical and SAR image fusion based on a deep dense residual network.

[0087] Specifically, the memory includes: ROM, RAM, magnetic disk, USB flash drive, memory card or optical disk, etc., which can store program codes.

[0088] Preferably, the processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0089] The above embodiments further illustrate the purpose, technical solutions and advantages of the present invention in detail. It should be understood that the above embodiments are only preferred implementation modes of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made to the present invention within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A cloud removal method for optical and SAR image fusion based on deep dense residual network, characterized in that: include: Obtain an image to be declouded and preprocess the image to be declouded; input the preprocessed image into a trained declouding model to obtain a declouded image; Mark the target area according to the de-clouded image; The cloud removal model includes deep residual network and RDN network; The process of training a cloud-free model includes: S1: Obtain the original data set and preprocess the original data set; divide the preprocessed data set into a training set and a test set; the images in the original data set are composed of data groups, and each group of data includes Sentinel-1 SAR images, Sentinel-2 cloud optical images, and Sentinel-2 near-time cloud-free optical images; S2: extract the cloud mask CMask of the Sentinel-2 cloud optical image in the training set; S3: Input the Sentinel-1SAR image into the trained deep residual network to obtain the RGB three-channel simulated optical image; S4: Input the cloud-covered optical image of Sentinel-2, the SAR image of Sentinel-1, and the RGB three-channel simulated optical image into the RDN network, and process the image fused with the cloud mask CMask to obtain a cloud-free image; S5: Calculate the loss function of the model based on the cloud-free image; S6: Continuously input the image data in the training set into the model, adjust the parameters of the model, and complete the model training when the loss function of the model is minimized; the loss function of the model is: Among them, α, β, δ are the coefficients controlling the proportion of the three losses, P is the declouding result, T is the cloud-free Sentinel-2 reference image, and N sum is the total number of image pixels, CMask is the cloud mask, B P ,B T The boundaries extracted by 3*3soble operator for P and T respectively; S7: Input the data in the test set into the trained model for testing.

2. The cloud removal method for optical and SAR image fusion based on deep dense residual network according to claim 1 is characterized in that: The preprocessing of the original data set includes: the SAR image of Sentinel-1 contains two polarization channels, VV and VH, and the optical image data of Sentinel-2 contains 13 channels; the SAR images of Sentinel-1 and the optical images of Sentinel-2 are respectively subjected to image registration, upsampling and downsampling processing to make the resolution of all images the same.

3. The cloud removal method for optical and SAR image fusion based on deep dense residual network according to claim 1 is characterized in that: The process of extracting the cloud mask CMask of the Sentinel-2 optical image with clouds includes: obtaining the first band and the second band of the Sentinel-2 optical image with clouds, and performing least squares fitting on the first band and the second band; extracting the cloud reflectivity of the image with clouds according to the fitting coefficients of the first band and the second band; setting a threshold γ, and setting the mask value of the cloudy area to 1 and the mask value of the cloudless area to 0 according to the set threshold and the cloud reflectivity, so as to obtain the cloud mask CMask.

4. The cloud removal method for optical and SAR image fusion based on deep dense residual network according to claim 3 is characterized in that: The formula for calculating the cloud reflectivity of a cloud image is: in, The first band representing the cloud image, represents the second band of the cloud image. α and β are the fitting coefficients calculated by least squares in the clear sky image. The fitting formula is: ρ2=α+β·ρ1 Among them, ρ1 represents the first band of the clear sky image, ρ2 represents the second band of the clear sky image, and α and β are the required fitting coefficients.

5. The cloud removal method for optical and SAR image fusion based on deep dense residual network according to claim 1 is characterized in that: The process of training the deep residual network includes: inputting the SAR image with two polarization channels, VV and VH, into the deep residual network, and then inputting it into the Relu activation layer after passing through a convolution layer with a size of 3*3 and a filter of 128; inputting the image after activation multiplication into the residual network; performing dimensionality reduction processing on the image after passing through the residual network to obtain the output image; constructing the loss function of the deep residual network according to the output image, and completing the training of the deep residual network when the loss function is minimized.

6. The cloud removal method for optical and SAR image fusion based on deep dense residual network according to claim 5 is characterized in that: The expression of the loss function for constructing a deep residual network is: Among them, α, β are the coefficients controlling the two loss ratios, P is the generated simulated optical image, T is the target cloud-free Sentinel-2 reference image, N sum is the total number of image pixels, CMask is the cloud mask, and I is the input optical image with clouds.

7. The cloud removal method for optical and SAR image fusion based on deep dense residual network according to claim 1 is characterized in that: The process of using the RDN network to fuse the cloud optical image of Sentinel-2, the SAR image of Sentinel-1 and the RGB three-channel simulated optical image includes: superimposing the bands of the cloud optical image of Sentinel-2, the SAR image of Sentinel-1 containing two polarization channels of VV and VH, and the GB three-channel simulated optical image to form the input data; the input data is input into the RDN fusion network after passing through a layer of convolution with a size of 3*3 and 256 filters. The RDN network is constructed by superimposing 16 RDBlocks, each of which consists of 4 two-dimensional convolution layers with a size of 3*3 and 128 filters, and a dimension reduction convolution layer with a size of 1*1 and 128 filters. The first feature of the dense residual block is connected to the reduced feature using Add after dimensionality reduction to ensure the transmission of the original feature. After 16 layers of RDBlock, a convolutional layer with a size of 3*3 and 13 filters is used for dimensionality reduction to make the feature dimension the same as the 13-channel Sentinel 2 image. A long skip layer is added after the convolutional layer to connect the input Sentinel 2 optical image with cloud and the output feature using Add to ensure the transmission of the original feature. In the skip connection, the cloud mask is used to mask the original input image to retain only the data in the non-cloud area. The loss function of the deep residual network is constructed according to the output image, and the training of the deep residual network is completed when the loss function is minimized.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: The computer program is executed by a processor to implement the cloud removal method for optical and SAR image fusion based on a deep dense residual network according to any one of claims 1 to 7.

9. A cloud removal device for optical and SAR image fusion based on deep dense residual network, characterized in that: It includes a processor and a memory; the memory is used to store a computer program; the processor is connected to the memory and is used to execute the computer program stored in the memory, so that the cloud removal device for optical and SAR image fusion based on a deep dense residual network performs any one of the cloud removal methods for optical and SAR image fusion based on a deep dense residual network in claims 1 to 7.

Citation Information

Patent Citations

  • Remote sensing image cloud removing method and device based on AM-GAN, equipment and storage medium

    CN112561817A

  • Optical image cloud removal method fusing SAR image information

    CN113012209A

  • Optical remote sensing image cloud removal method based on residual dense connection and feature fusion

    CN113379618A