SAR image change detection method and system
Through image registration, homomorphic filtering denoising and clustering algorithms for SAR images, the problem of low accuracy of SAR image change detection methods is solved, the detection accuracy and robustness are improved, and it is suitable for rapid detection of high-resolution images. Change detection.
Patent Information
- Application Number
- CN202410797826.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-06-20
AI Technical Summary
Existing SAR image change detection methods have low accuracy and are seriously affected by noise. Especially when processing large-resolution images, information details are easily lost, consume a lot of computing resources, and are difficult to process images with certain offsets.
By acquiring the SAR image of the target scene, perform image registration and cropping, retain the overlapping areas, and use homomorphic filtering denoising technology to generate denoising difference maps and detail difference maps based on logarithmic ratio operators and logarithmic difference operators. After fusion Use a preset clustering algorithm to determine changing pixel points to improve detection accuracy and robustness.
It improves the accuracy and robustness of change detection, retains more details and edge information, reduces noise interference, and is suitable for rapid change detection of high-resolution images.
Smart Images

Figure CN118379637B
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing, and in particular to a SAR image change detection method and system. Background Art
[0002] Change detection is a key technology in the field of remote sensing. It obtains the required ground object change information by analyzing the differences between corresponding images of the same area at different times.
[0003] In the related art, the methods of SAR image change detection are mainly divided into supervised and unsupervised methods. Unsupervised change detection methods are simple and have low time complexity, but they lack consideration of spatial features and are usually seriously affected by noise. Supervised change detection methods require sufficient labeled data and computing resources for training, which is difficult to achieve in practical applications. In addition, supervised change detection methods are usually used to process SAR images with larger resolutions, which require scaling of the images, resulting in loss of information details, or slicing of the images, which requires long inference time. Summary of the invention
[0004] The embodiments of the present application provide a SAR image change detection method, system, electronic device, and storage medium to at least solve the problem of low accuracy of SAR image change detection methods in related technologies.
[0005] In a first aspect, an embodiment of the present application provides a SAR image change detection method, the method comprising:
[0006] Acquire a SAR image of a target scene, wherein the SAR image includes a first image and a second image taken at different times;
[0007] Performing image registration and cropping on the SAR image, retaining an overlapping area between the first image and the second image, and obtaining a first preprocessed image and a second preprocessed image;
[0008] Performing homomorphic filtering denoising on the first preprocessed image and the second preprocessed image, generating a denoised difference map and a detail difference map of the first preprocessed image and the second preprocessed image after denoising based on a logarithmic ratio operator and a logarithmic difference operator respectively;
[0009] The denoised difference map and the detail difference map are fused to obtain a fused difference image, and based on a preset clustering algorithm, changed pixels and non-changed pixels are determined in the fused difference image.
[0010] In some embodiments, generating a denoised difference map and a detail difference map of the first pre-processed image and the second pre-processed image after denoising based on a logarithmic ratio operator and a logarithmic difference operator respectively comprises:
[0011] Based on a logarithmic ratio operator, generating an initial difference map of the two first pre-processed images and the second pre-processed image after denoising;
[0012] De-noising the initial difference map by using a spectral residual significance detection algorithm to obtain a de-noised difference map;
[0013] Based on a logarithmic difference operator, a detail difference map between the first preprocessed image and the second preprocessed image after denoising is generated.
[0014] In some embodiments, the denoising process is performed on the initial difference map by using a saliency detection algorithm of a spectral residual to obtain the denoised difference map, comprising:
[0015] Acquire frequency domain data of the initial difference map, and obtain a spectrum amplitude and a first logarithm of the spectrum amplitude according to the frequency domain data;
[0016] Based on local average filtering, smoothing the first logarithm to obtain a second logarithm of the spectrum amplitude;
[0017] Obtaining a spectrum residual based on a difference between the first logarithm and the second logarithm, converting the spectrum residual into spatial domain data, and obtaining a preprocessing difference map;
[0018] Gaussian blur and normalization are performed on the preprocessed difference map to obtain the denoised difference map.
[0019] In some embodiments, fusing the denoised difference map and the detail difference map to obtain a fused difference image includes:
[0020] Performing non-subsampled contour transformation on the SAR image to obtain different image levels;
[0021] In the denoised difference map and the detail difference map, high-frequency parts and low-frequency parts corresponding to each image level are respectively weighted averaged to obtain a fused layer;
[0022] A fused difference image is generated based on the fused layer through a non-subsampled contour inverse transform.
[0023] In some embodiments, determining the changed pixel points and the non-changed pixel points in the fused difference image based on a preset clustering algorithm includes:
[0024] Clustering the pixels in the fused difference image based on a fuzzy C-means clustering algorithm;
[0025] According to the clustering result, the changed pixel points and the non-changed pixel points are obtained.
[0026] In some embodiments, performing image registration and cropping on the SAR image, retaining the overlapping area between the first image and the second image, and obtaining the first preprocessed image and the second preprocessed image comprises:
[0027] Identify the SAR image to obtain key points in the SAR image and descriptors of the key points;
[0028] Based on the descriptor, determining the Euclidean distances between all key points in the first image and all key points in the second image;
[0029] Obtaining a root mean square error of the key point according to the Euclidean distance, and matching the key points based on the root mean square error to obtain a key point matching pair;
[0030] Based on the key point matching pair, registering the first image and the second image to obtain the overlapping area;
[0031] The first image and the second image are cropped according to the overlapping area to obtain the first pre-processed image and the second pre-processed image.
[0032] In some embodiments, the registering the first image and the second image based on the key point matching pair to obtain the overlapping area includes:
[0033] Based on the RANSAC algorithm, obtaining a transformation matrix of the first image and the second image according to the key point matching pairs;
[0034] transforming the data of the second image into the coordinate system of the first image according to the transformation matrix, so as to register the first image and the second image;
[0035] The overlapping area is obtained according to the registration result.
[0036] In some embodiments, performing homomorphic filtering denoising on the first pre-processed image and the second pre-processed image comprises:
[0037] Acquiring frequency domain data of the first preprocessed image and the second preprocessed image;
[0038] The frequency domain data is subjected to Gaussian filtering and denoising processing, and the denoised frequency domain data is converted back to the spatial domain.
[0039] In a second aspect, an embodiment of the present application provides a SAR image change detection system, the system comprising: an image acquisition module, a preprocessing module, a difference map generation module and a clustering module.
[0040] The image acquisition module is used to acquire a SAR image of a target scene, wherein the SAR image includes a first image and a second image taken at different times;
[0041] The preprocessing module is used to perform image registration and cropping on the SAR image, retain the overlapping area between the first image and the second image, and obtain a first preprocessed image and a second preprocessed image;
[0042] The difference map generation module is used to perform homomorphic filtering denoising on the first preprocessed image and the second preprocessed image, and generate a denoised difference map and a detail difference map of the first preprocessed image and the second preprocessed image after denoising based on a logarithmic ratio operator and a logarithmic difference operator respectively;
[0043] The clustering module is used to fuse the denoised difference map and the detail difference map to obtain a fused difference image, and to determine changed pixels and non-changed pixels in the fused difference image based on a preset clustering algorithm.
[0044] In a third aspect, an embodiment of the present application provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the SAR image change detection method as described in the first aspect above is implemented.
[0045] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the SAR image change detection method as described in the first aspect above.
[0046] Compared with the related art, the SAR image change detection method provided in the embodiment of the present application obtains a SAR image of a target scene, wherein the SAR image includes a first image and a second image taken at different times, performs image registration and cropping on the SAR image, retains the overlapping area in the first image and the second image, obtains a first preprocessed image and a second preprocessed image, performs homomorphic filtering denoising on the first preprocessed image and the second preprocessed image, generates a denoised difference map and a detail difference map of the denoised first preprocessed image and the second preprocessed image based on a logarithmic ratio operator and a logarithmic difference operator, respectively, fuses the denoised difference map and the detail difference map to obtain a fused difference image, and determines the changed pixel points and the non-changed pixel points in the fused difference image based on a preset clustering algorithm, thereby solving the problem of low accuracy of the SAR image change detection method. By fusing the denoised difference map and the detail difference map, more details and edge information can be retained, thereby improving the accuracy of change detection. At the same time, by using image registration technology, the input SAR image is allowed to have a certain offset, thereby improving the robustness of change detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0048] Figure 1 is a flow chart of a SAR image change detection method according to an embodiment of the present application;
[0049] Figure 2 is a schematic diagram of a difference map fusion method according to an embodiment of the present application;
[0050] Figure 3 is a flow chart of a specific method for detecting changes in SAR images according to an embodiment of the present application;
[0051] Figure 4 is a structural block diagram of a SAR image change detection system according to an embodiment of the present application;
[0052] Figure 5 It is a schematic diagram of the internal structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0053] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0054] Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. In addition, it can also be understood that although the efforts made in this development process may be complicated and lengthy, for ordinary technicians in this field related to the content disclosed in this application, some changes in design, manufacturing or production based on the technical content disclosed in this application are just conventional technical means, and should not be understood as insufficient content disclosed in this application.
[0055] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.
[0056] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantity limitation, and may indicate the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects before and after are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.
[0057] This embodiment provides a SAR image change detection method. Figure 1 is a flow chart of a SAR image change detection method according to an embodiment of the present application. Figure 1 As shown, the process includes the following steps:
[0058] Step S101 : acquiring a SAR image of a target scene, where the SAR image includes a first image and a second image taken at different times.
[0059] Two SAR images of the same scene at different phases are obtained. It should be noted that the two SAR images may be from different viewing angles.
[0060] Step S102, performing image registration and cropping on the SAR image, retaining the overlapping area between the first image and the second image, and obtaining a first preprocessed image and a second preprocessed image.
[0061] By using image registration technology, the robustness of SAR images with different viewing angles or different illumination angles is improved. Optionally, image registration is performed by using an improved SAR-SIFT registration method. After registration, the overlapping area of the two SAR images is cropped out.
[0062] In some embodiments, step S102 specifically includes:
[0063] Step S1021 : identifying the SAR image to obtain key points and descriptors of the key points in the SAR image.
[0064] Optionally, key points in the SAR image and descriptors of the key points are detected by SAR-KAZE image registration technology.
[0065] Step S1022: Based on the descriptor, determine the Euclidean distances of all key points in the first image and all key points in the second image, obtain the root mean square error of the key points according to the Euclidean distance, and match the key points based on the root mean square error to obtain key point matching pairs.
[0066] Step S1023: register the first image and the second image based on the key point matching pairs to obtain an overlapping area.
[0067] In some embodiments, step S1023 specifically includes:
[0068] Step S201, based on the RANSAC algorithm, obtain the transformation matrix of the first image and the second image according to the key point matching pairs.
[0069] Step S202: transform the data of the second image into the coordinate system of the first image according to the transformation matrix, so as to register the first image and the second image.
[0070] Step S203, obtaining the overlapping area according to the registration result.
[0071] Random sampling consensus (RANSAC) is used to screen out reliable matching point pairs and eliminate mismatched point pairs, thereby estimating the transformation matrix, where the objective function of the RANSAC algorithm can be optimized and solved by the least squares method. The data of the second SAR image is transformed into the coordinate space of the first SAR image through the transformation matrix to obtain the overlapping area of the two images.
[0072] Step S1024: cropping the first image and the second image according to the overlapping area to obtain a first preprocessed image and a second preprocessed image.
[0073] The overlapping area of the two SAR images is retained, and change detection is performed on the overlapping area of the two SAR images later.
[0074] Step S103, performing homomorphic filtering denoising on the first preprocessed image and the second preprocessed image, generating a denoised difference map and a detail difference map of the denoised first preprocessed image and the second preprocessed image based on a logarithmic ratio operator and a logarithmic difference operator respectively;
[0075] When performing homomorphic filtering denoising, the SAR pre-processed image is converted from the spatial domain to the frequency domain, subjected to Gaussian filtering, and then converted back to the spatial domain.
[0076] In some embodiments, performing homomorphic filtering and denoising on the first preprocessed image and the second preprocessed image in step S103 includes:
[0077] Step S1031: Acquire frequency domain data of the first preprocessed image and the second preprocessed image.
[0078] The preprocessed image is logarithmically transformed to reduce the dynamic range of the image and convert the multiplicative noise in the image into additive noise.
[0079] The logarithmic transformation formula is:
[0080] I log =log(1+I)
[0081] Where, I is the input SAR preprocessed image, I log It is the SAR preprocessed image after logarithmic transformation.
[0082] Furthermore, the logarithmic transformed image is subjected to fast Fourier transform (FFT) to convert it into the frequency domain.
[0083] The frequency domain data of the image is obtained through Fourier transform. The formula of Fourier transform is:
[0084] I fft =FFT(I log )
[0085] Among them, I fft It is the frequency domain data of SAR preprocessed image, and FFT stands for Fourier transform.
[0086] Step S1032: Perform Gaussian filtering and denoising on the frequency domain data, and convert the denoised frequency domain data back to the spatial domain.
[0087] The frequency domain data is modulated by a Gaussian filter to obtain denoised frequency domain data.
[0088] The expression of Gaussian filter is as follows:
[0089]
[0090] Among them, D(u,v) is the frequency distance, that is, the distance from the center point (P,Q) of the frequency domain image to any pixel point (u,v), and σ is the standard deviation of the Gaussian filter.
[0091] The expression of the Gaussian filter can also be rewritten as:
[0092]
[0093] Among them, (u,v) is the pixel coordinates, and (P,Q) is the center coordinates.
[0094] The filtered frequency domain data is converted back to the spatial domain through an inverse Fourier transform (IFFT).
[0095] The formula for the inverse Fourier transform is as follows:
[0096] I filt =IFFT(HI fft )
[0097] Among them, I filt is the image converted back to the spatial domain after filtering, HI fft is the frequency domain data after denoising, and IFFT stands for inverse Fourier transform.
[0098] Finally, the filtered image is exponentially transformed to restore its original brightness range.
[0099] The exponential transformation formula is as follows:
[0100]
[0101] Among them, I final The final denoised SAR preprocessed image.
[0102] Continue to refer to Figure 1 , after step S102, execute step S103.
[0103] In some embodiments, generating a denoised difference map and a detail difference map of the denoised first preprocessed image and the second preprocessed image based on a logarithmic ratio operator and a logarithmic difference operator respectively in step S103 includes:
[0104] Step S1034: generating an initial difference map of the first preprocessed image and the second preprocessed image after denoising based on a logarithmic ratio operator.
[0105] The expression of the initial difference map obtained by the logarithmic ratio operator is as follows:
[0106]
[0107] Among them, I1 is the first SAR preprocessed image after denoising, I2 is the second SAR preprocessed image after denoising, and DI log is the initial difference map generated.
[0108] Step S1035 , denoising the initial difference map by using a spectral residual significance detection algorithm to obtain a denoised difference map.
[0109] In some embodiments, step S1035 specifically includes:
[0110] Step S301, obtaining frequency domain data of an initial difference map, and obtaining a spectrum amplitude and a first logarithm of the spectrum amplitude according to the frequency domain data.
[0111] The initial difference map is converted from the spatial domain to the frequency domain through discrete Fourier transform. The conversion formula is: C = DFT (DI log ), C is the complex representation of the initial difference map in the frequency domain, and DFT represents discrete Fourier transform.
[0112] The amplitude of the complex frequency domain data of the initial difference map is obtained by combining the squares of the real and imaginary parts and taking the square root.
[0113] The amplitude calculation formula is as follows:
[0114]
[0115] Among them, C real and C imag denote the real and imaginary parts of the complex spectrum C, respectively, and M is the amplitude of the complex frequency domain data of the initial difference map. Calculate the logarithm of the spectrum amplitude, i.e., the first logarithm.
[0116] Step S302: Smoothing the first logarithm based on local average filtering to obtain a second logarithm of the spectrum amplitude.
[0117] The second logarithm is obtained by performing local average filtering on the first logarithm to smooth the spectrum and reduce noise while retaining important frequency components.
[0118] Step S303: obtaining a spectrum residual based on the difference between the first logarithm and the second logarithm, and converting the spectrum residual into spatial domain data to obtain a preprocessing difference map.
[0119] The spectral residual is the difference between the smoothed logarithmic amplitude and the original logarithmic amplitude. The spectral residual is inverse Fourier transformed to convert the image from the frequency domain back to the spatial domain.
[0120] Step S304, performing Gaussian blur and normalization processing on the preprocessed difference map to obtain a denoised difference map.
[0121] The final denoised difference map is generated by performing Gaussian blurring and normalization on the preprocessed difference map obtained after the inverse transformation.
[0122] Step S1036: generating a detail difference map of the first preprocessed image and the second preprocessed image after denoising based on a logarithmic difference operator.
[0123] The mathematical expression of the detail difference map obtained by the logarithmic difference operator is as follows:
[0124] DI detail =log(1+I1)–log(1+I2)
[0125] Among them, I1 is the first preprocessed image after denoising, I2 is the second preprocessed image after denoising, and DI detail Represents the generated detail difference map.
[0126] Step S104, fusing the denoised difference image and the detail difference image to obtain a fused difference image, and determining changed pixels and non-changed pixels in the fused difference image based on a preset clustering algorithm.
[0127] DI fusion using non-subsampled contour transform (NSCT) log , DI detail Two difference images are taken, and denoising is completed in the fusion process, high-frequency information is fused, and boundaries are enhanced to obtain a fused difference image.
[0128] The pixels in the fused difference image are divided into change class and non-change class to obtain the change detection result.
[0129] In some embodiments, fusing the denoised difference image and the detail difference image in step S104 to obtain a fused difference image includes:
[0130] Step S1041 , performing non-subsampling contour transformation on the SAR image to obtain different image levels.
[0131] The SAR image is subjected to non-subsampled contour transform and decomposed into multi-scale and multi-directional detail levels.
[0132] Step S1042 , weighted average fusion is performed on the high-frequency part and the low-frequency part corresponding to each image level in the denoised difference map and the detail difference map to obtain a fused layer.
[0133] Based on the hierarchy of the SAR image, the detail coefficients (high frequency part) and approximate coefficients (low frequency part) of each layer are weighted average fused respectively.
[0134] Step S1043, generating a fused difference image based on the fused layer by inverse non-subsampled contour transform.
[0135] The inverse transform of NSCT is used to reconstruct the fused coefficients into a single image, ensuring that all important information of the image is effectively retained.
[0136] Figure 2 is a schematic diagram of a difference graph fusion method according to an embodiment of the present application, such as Figure 2 As shown in the figure, DI1 represents the denoised difference map, and DI2 represents the detail difference map. NSCT transform is performed on DI1 and DI2 respectively to obtain the high-frequency coefficient and low-frequency coefficient of DI1, and the high-frequency coefficient and low-frequency coefficient of DI2. The high-frequency coefficient of DI1 and the high-frequency coefficient of DI2 are weighted average fused to obtain the high-frequency fusion coefficient; the low-frequency coefficient of DI1 and the low-frequency coefficient of DI2 are weighted average fused to obtain the low-frequency fusion coefficient. Based on the inverse NSCT transform, the low-frequency fusion coefficient and the high-frequency fusion coefficient are reconstructed to obtain the fused difference map.
[0137] In some embodiments, in step S104, determining the changed pixels and the non-changed pixels in the fused difference image based on a preset clustering algorithm includes:
[0138] Step S1044: clustering the pixels in the fused difference image based on the fuzzy C-means clustering algorithm.
[0139] Step S1045, obtaining changed pixel points and non-changed pixel points according to the clustering result.
[0140] The pixels are divided into two states: changed and unchanged by the fuzzy C-means clustering (FCM) algorithm.
[0141] Optionally, the specific process of the FCM algorithm is as follows:
[0142] Initialization parameters:
[0143] The number of clusters is set to 2, and the fuzzy weight m=2 is selected to control the fuzziness of the membership in the algorithm.
[0144] Randomly select 2 cluster centers.
[0145] Membership initialization: The initial membership is randomly assigned and normalized to ensure that the sum of the membership of each data point to all cluster centers is 1.
[0146] Iteration process:
[0147] Calculate the cluster center y i :
[0148]
[0149] y irepresents the i-th cluster center, Z represents the number of pixels, u ηi Represents pixel y η and cluster center y i The degree of membership between .
[0150] Update the membership, use the FCM membership update formula to update the membership of each data point to each cluster center.
[0151] All cluster centers y need to be calculated and compared i To each pixel y η The distance between the two is , where m represents the fuzzy weight.
[0152] The objective function of FCM clustering is:
[0153]
[0154] The goal of clustering is to minimize J m , the loop iterates until J m Reaching a preset threshold or reaching a preset number of iterations.
[0155] After clustering, the location of each cluster center and the membership matrix of each pixel are output.
[0156] The final change detection result is obtained by comparing the membership degree of each pixel. The final detection result change mask is expressed as follows:
[0157]
[0158] Among them, η1 and u η2 They represent the preset upper and lower limits of membership respectively. cm(i,j)=0 means that the pixel belongs to the non-changing class, and cm(i,j)=255 means that the pixel belongs to the changing class. Figure 3 It is a flowchart of a specific method for SAR image change detection according to an embodiment of the present application.
[0159] Through the above steps, a SAR image of the target scene is obtained, the SAR image includes a first image and a second image taken at different times, the SAR image is registered and cropped, the overlapping area in the first image and the second image is retained, and the first preprocessed image and the second preprocessed image are obtained, the first preprocessed image and the second preprocessed image are subjected to homomorphic filtering denoising, and a denoised difference map and a detail difference map of the denoised first preprocessed image and the second preprocessed image are generated based on a logarithmic ratio operator and a logarithmic difference operator respectively, the denoised difference map and the detail difference map are fused to obtain a fused difference image, and based on a preset clustering algorithm, changed pixels and non-changed pixels are determined in the fused difference image, thereby solving the problem of low accuracy of the SAR image change detection method.
[0160] By fusing the denoised difference map and the detail difference map, more details and edge information can be retained, and the accuracy of change detection can be improved. At the same time, the image registration technology is used to allow the input SAR image to have a certain offset, which improves the robustness of change detection. SAR images are always accompanied by multiplicative speckle noise, which causes some traditional change detection methods using difference maps to be seriously interfered by noise. The denoising method mentioned above can not only reduce the impact of speckle noise, but also ensure the running speed under high-resolution images.
[0161] It should be noted that the steps shown in the above process or the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0162] This embodiment also provides a SAR image change detection system, which is used to implement the above embodiments and preferred implementations, and will not be repeated for what has been described. As used below, the terms "module", "unit", "subunit", etc. can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0163] Figure 4 is a structural block diagram of a SAR image change detection system according to an embodiment of the present application, such as Figure 4 As shown, the system includes: an image acquisition module 41, a preprocessing module 42, a difference map generation module 43 and a clustering module 44, wherein:
[0164] The image acquisition module 41 is used to acquire a SAR image of a target scene. The SAR image includes a first image and a second image taken at different times.
[0165] The preprocessing module 42 is used to perform image registration and cropping on the SAR image, retain the overlapping area between the first image and the second image, and obtain a first preprocessed image and a second preprocessed image.
[0166] The difference map generation module 43 is used to perform homomorphic filtering denoising on the first preprocessed image and the second preprocessed image, and generate a denoised difference map and a detail difference map of the denoised first preprocessed image and the second preprocessed image based on a logarithmic ratio operator and a logarithmic difference operator respectively.
[0167] The clustering module 44 is used to fuse the denoised difference image and the detail difference image to obtain a fused difference image, and to determine changed pixels and non-changed pixels in the fused difference image based on a preset clustering algorithm.
[0168] In some embodiments, the difference map generation module 43 includes: a first difference map generation module, a denoising module and a second difference map generation module.
[0169] The first difference map generating module is used to generate an initial difference map of the two first pre-processed images and the second pre-processed image after denoising based on a logarithmic ratio operator.
[0170] The denoising module is used to denoise the initial difference map by using a saliency detection algorithm of the spectral residual to obtain a denoised difference map.
[0171] The second difference map generating module is used to generate a detail difference map of the first preprocessed image and the second preprocessed image after denoising based on a logarithmic difference operator.
[0172] In some of the embodiments, the denoising module includes: a first logarithmic acquisition module, a second logarithmic acquisition module, an inverse frequency domain conversion module and a Gaussian denoising module.
[0173] The first logarithm acquisition module is used to acquire frequency domain data of the initial difference map, and obtain the spectrum amplitude and the first logarithm of the spectrum amplitude according to the frequency domain data.
[0174] The second logarithm acquisition module performs smoothing processing on the first logarithm based on local average filtering to obtain a second logarithm of the spectrum amplitude.
[0175] The inverse frequency domain conversion module is used to obtain a spectrum residual based on the difference between the first logarithm and the second logarithm, and convert the spectrum residual into spatial domain data to obtain a preprocessing difference map.
[0176] The Gaussian denoising module is used to perform Gaussian blurring and normalization processing on the preprocessed difference map to obtain a denoised difference map.
[0177] In some embodiments, the clustering module 44 includes: a NSCT transformation module, a fusion module and a NSCT inverse transformation module.
[0178] The NSCT transformation module is used to perform non-subsampled contour transformation on SAR images to obtain different image levels.
[0179] The fusion module is used to perform weighted averaging on the high-frequency part and the low-frequency part corresponding to each image level in the denoised difference map and the detail difference map to obtain a fused layer.
[0180] The NSCT inverse transform module is used to generate a fused difference image based on the fused layer through non-subsampled contour inverse transform.
[0181] In some embodiments, the clustering module 44 further includes: a clustering module and a pixel point clustering module.
[0182] The clustering module is used to cluster the pixels in the fused difference image based on the fuzzy C-means clustering algorithm.
[0183] The pixel clustering module is used to obtain the changed pixels and the non-changed pixels according to the clustering results.
[0184] In some of the embodiments, the pre-processing module 42 includes: a key point recognition module, a matching module, an overlapping area determination module and a cropping module.
[0185] The key point recognition module is used to recognize the SAR image and obtain the key points and key point descriptors in the SAR image.
[0186] A matching module is used to determine the Euclidean distances of all key points in the first image and all key points in the second image based on the descriptor, obtain the root mean square error of the key points according to the Euclidean distance, and match the key points based on the root mean square error to obtain key point matching pairs.
[0187] The overlapping area determination module is used to register the first image and the second image based on the key point matching pair to obtain the overlapping area.
[0188] The cropping module is used to crop the first image and the second image according to the overlapping area to obtain the first preprocessed image and the second preprocessed image.
[0189] In some of the embodiments, the overlapping area determination module includes: an estimation transformation matrix module, a coordinate conversion module and an overlapping area acquisition module.
[0190] The estimated transformation matrix module is used to obtain the transformation matrix of the first image and the second image according to the key point matching pairs based on the RANSAC algorithm.
[0191] The coordinate conversion module is used to transform the data of the second image into the coordinate system of the first image according to the transformation matrix, so as to align the first image and the second image.
[0192] The overlapping area acquisition module is used to obtain the overlapping area according to the registration result.
[0193] In some embodiments, the difference map generation module 43 further includes: a frequency domain conversion module and a denoising module.
[0194] A frequency domain conversion module is used to obtain frequency domain data of the first preprocessed image and the second preprocessed image.
[0195] The denoising module is used to perform Gaussian filtering denoising on the frequency domain data and convert the denoised frequency domain data back to the spatial domain.
[0196] Through the above system, the image acquisition module 41 is used to acquire the SAR image of the target scene, and the SAR image includes a first image and a second image taken at different times. The preprocessing module 42 is used to perform image registration and cropping on the SAR image, retain the overlapping area in the first image and the second image, and obtain the first preprocessed image and the second preprocessed image. The difference map generation module 43 performs homomorphic filtering denoising on the first preprocessed image and the second preprocessed image, and generates a denoised difference map and a detail difference map of the denoised first preprocessed image and the second preprocessed image based on the logarithmic ratio operator and the logarithmic difference operator respectively. The clustering module 44 fuses the denoised difference map and the detail difference map to obtain a fused difference image. Based on a preset clustering algorithm, the changed pixel points and the non-changed pixel points are determined in the fused difference image, which solves the problem of low accuracy of the SAR image change detection method. By fusing the denoised difference map and the detail difference map, more details and edge information can be retained, and the accuracy of change detection can be improved. At the same time, the image registration technology is used to allow the input SAR image to have a certain offset, thereby improving the robustness of change detection.
[0197] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.
[0198] This embodiment further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0199] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0200] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0201] S1, acquiring a SAR image of a target scene, where the SAR image includes a first image and a second image taken at different times.
[0202] S2, performing image registration and cropping on the SAR image, retaining the overlapping area between the first image and the second image, and obtaining a first preprocessed image and a second preprocessed image.
[0203] S3, performing homomorphic filtering denoising on the first preprocessed image and the second preprocessed image, and generating a denoised difference map and a detail difference map of the denoised first preprocessed image and the second preprocessed image based on a logarithmic ratio operator and a logarithmic difference operator respectively.
[0204] S4, fusing the denoised difference image and the detail difference image to obtain a fused difference image, and determining changed pixels and non-changed pixels in the fused difference image based on a preset clustering algorithm.
[0205] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0206] In one embodiment, Figure 5 is a schematic diagram of the internal structure of an electronic device according to an embodiment of the present application, such as Figure 5 As shown, an electronic device is provided, which may be a server, and its internal structure diagram may be as shown in Figure 5 As shown. The electronic device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the electronic device is used to store data. The network interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a SAR image change detection method is implemented.
[0207] Those skilled in the art will understand that Figure 5The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0208] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0209] Those skilled in the art should understand that the technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0210] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A SAR image change detection method, characterized in that: The method comprises: Acquire a SAR image of a target scene, wherein the SAR image includes a first image and a second image taken at different times; Performing image registration and cropping on the SAR image, retaining the overlapping area between the first image and the second image, and obtaining a first preprocessed image and a second preprocessed image, including: Identify the SAR image to obtain key points in the SAR image and descriptors of the key points; Based on the descriptor, determining the Euclidean distances between all key points in the first image and all key points in the second image; Obtaining a root mean square error of the key point according to the Euclidean distance, and matching the key points based on the root mean square error to obtain a key point matching pair; Based on the key point matching pair, registering the first image and the second image to obtain the overlapping area; According to the overlapping area, cropping the first image and the second image to obtain the first pre-processed image and the second pre-processed image; Performing homomorphic filtering denoising on the first preprocessed image and the second preprocessed image, generating a denoised difference map and a detail difference map of the first preprocessed image and the second preprocessed image after denoising based on a logarithmic ratio operator and a logarithmic difference operator respectively; The denoised difference map and the detail difference map are fused to obtain a fused difference image, and based on a preset clustering algorithm, changed pixels and non-changed pixels are determined in the fused difference image.
2. The method according to claim 1, characterized in that The generating of the denoised difference map and the detail difference map of the first pre-processed image and the second pre-processed image after denoising based on the logarithmic ratio operator and the logarithmic difference operator respectively comprises: Based on the logarithmic ratio operator, generating an initial difference map of the two first pre-processed images and the second pre-processed image after denoising; De-noising the initial difference map by using a spectral residual significance detection algorithm to obtain a de-noised difference map; Based on the logarithmic difference operator, a detail difference map of the first preprocessed image and the second preprocessed image after denoising is generated.
3. The method according to claim 2, characterized in that The denoising process is performed on the initial difference map by using a saliency detection algorithm of the spectrum residual to obtain the denoised difference map, which includes: Acquire frequency domain data of the initial difference map, and obtain a spectrum amplitude and a first logarithm of the spectrum amplitude according to the frequency domain data; Based on local average filtering, smoothing the first logarithm to obtain a second logarithm of the spectrum amplitude; Obtaining a spectrum residual based on a difference between the first logarithm and the second logarithm, converting the spectrum residual into spatial domain data, and obtaining a preprocessing difference map; Gaussian blur and normalization are performed on the preprocessed difference map to obtain the denoised difference map.
4. The method according to claim 1, characterized in that The fusing the denoised difference map and the detail difference map to obtain a fused difference image comprises: Performing non-subsampled contour transformation on the SAR image to obtain different image levels; In the denoised difference map and the detail difference map, high-frequency parts and low-frequency parts corresponding to each image level are respectively weighted averaged to obtain a fused layer; A fused difference image is generated based on the fused layer through a non-subsampled contour inverse transform.
5. The method according to claim 1, characterized in that: The determining of changed pixel points and non-changed pixel points in the fused difference image based on a preset clustering algorithm includes: Clustering the pixels in the fused difference image based on a fuzzy C-means clustering algorithm; According to the clustering result, the changed pixel points and the non-changed pixel points are obtained.
6. The method according to claim 1, characterized in that The registering the first image and the second image based on the key point matching pair to obtain the overlapping area comprises: Based on the RANSAC algorithm, obtaining a transformation matrix of the first image and the second image according to the key point matching pairs; transforming the data of the second image into the coordinate system of the first image according to the transformation matrix, so as to register the first image and the second image; The overlapping area is obtained according to the registration result.
7. The method according to claim 1, characterized in that The performing homomorphic filtering denoising on the first pre-processed image and the second pre-processed image comprises: Acquiring frequency domain data of the first preprocessed image and the second preprocessed image; The frequency domain data is subjected to Gaussian filtering and denoising processing, and the denoised frequency domain data is converted back to the spatial domain.
8. A SAR image change detection system, characterized in that: The system comprises: an image acquisition module, a preprocessing module, a difference map generation module and a clustering module, wherein: The image acquisition module is used to acquire a SAR image of a target scene, wherein the SAR image includes a first image and a second image taken at different times; The preprocessing module is used to perform image registration and cropping on the SAR image, retain the overlapping area between the first image and the second image, and obtain a first preprocessed image and a second preprocessed image, including: Identify the SAR image to obtain key points in the SAR image and descriptors of the key points; Based on the descriptor, determining the Euclidean distances between all key points in the first image and all key points in the second image; Obtaining a root mean square error of the key point according to the Euclidean distance, and matching the key points based on the root mean square error to obtain a key point matching pair; Based on the key point matching pair, registering the first image and the second image to obtain the overlapping area; According to the overlapping area, cropping the first image and the second image to obtain the first pre-processed image and the second pre-processed image; The difference map generation module is used to perform homomorphic filtering denoising on the first preprocessed image and the second preprocessed image, and generate a denoised difference map and a detail difference map of the first preprocessed image and the second preprocessed image after denoising based on a logarithmic ratio operator and a logarithmic difference operator respectively; The clustering module is used to fuse the denoised difference map and the detail difference map to obtain a fused difference image, and to determine changed pixels and non-changed pixels in the fused difference image based on a preset clustering algorithm.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the SAR image change detection method according to any one of claims 1 to 7 is implemented.
