A remote sensing image semantic segmentation method based on channel-spatial attention and DeeplabV3plus

By introducing the channel-spatial attention mechanism and Canny edge detection algorithm into the DeeplabV3plus model, the texture features are strengthened, the problem of insufficient accuracy and efficiency in semantic segmentation of remote sensing images is solved, and efficient and accurate segmentation of urban feature categories is achieved, improving the Accuracy and intersection-union ratio of semantic segmentation.

CN114596500BActive Publication Date: 2024-10-15NANTONG UNIV
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202210030581.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-12
Publication Date
2024-10-15
Estimated Expiration
2042-01-12

AI Technical Summary

Technical Problem

Existing technologies have problems with insufficient accuracy and efficiency when using artificial intelligence algorithms to perform semantic segmentation of high-precision remote sensing images. In particular, it is difficult to accurately segment ground object categories when monitoring urban surface object distribution patterns.

Method used

A remote sensing image semantic segmentation method based on channel-spatial attention and DeeplabV3plus is adopted, the texture features are enhanced through the Canny edge detection algorithm, and the DeeplabV3plus model is improved by combining the channel-spatial attention mechanism to improve the accuracy and efficiency of semantic segmentation.

Benefits of technology

It achieves efficient and accurate segmentation of remote sensing image feature categories (buildings, water bodies, vegetation, bare land, roads) and improves the accuracy and intersection ratio of semantic segmentation, especially in monitoring the distribution pattern of urban features. Good results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114596500B_ABST
    Figure CN114596500B_ABST
Patent Text Reader

Abstract

The present invention discloses a remote sensing image semantic segmentation method based on channel-spatial attention and DeeplabV3plus, and the specific steps are as follows: dividing the remote sensing image objects into five category labels of buildings, water bodies, vegetation, bare land, and roads, and masking each category; using the Canny edge detection operator in Python-OpenCV to enhance the texture features of the object category in the remote sensing image; adding channel attention and spatial attention modules to the deep features output by the backbone network in the DeeplabV3plus model; inputting the image enhanced image into the improved DeeplabV3plus model for training; and outputting the semantic information corresponding to the remote sensing image object category. The method enhances the texture features of the object through edge detection, and enhances the deep features through channel-spatial attention to achieve a more refined semantic segmentation of the remote sensing image object category, thereby improving the accuracy and average intersection-over-union ratio of the semantic segmentation of the original network model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a remote sensing image semantic segmentation method based on channel-spatial attention and DeeplabV3plus, and belongs to the field of urban planning and urban management. Background Art

[0002] With the rapid development of satellite sensors, the resolution of remote sensing images has been continuously improved. High-resolution remote sensing images provide information suitable for various observation tasks, which is conducive to the multi-faceted development of society and economy. Semantic segmentation is the key to analyzing remote sensing images. And with the development of artificial intelligence, the methods of semantic segmentation of remote sensing images have been expanded. The remote sensing object segmentation based on convolutional neural networks and their variant algorithms has gradually replaced traditional research due to its high accuracy and strong robustness. Therefore, how to use artificial intelligence algorithms combined with high-precision and high-resolution remote sensing images for semantic segmentation has become an urgent problem to be solved. Summary of the invention

[0003] In view of the problems existing in the above-mentioned prior art, the present invention provides a remote sensing image semantic segmentation method based on channel-spatial attention and DeeplabV3plus, so as to more accurately and efficiently segment the object categories of remote sensing images, so as to quickly and accurately monitor the spatial distribution pattern of urban objects.

[0004] In order to achieve the above object, the technical solution adopted by the present invention is: a remote sensing image semantic segmentation method based on channel-spatial attention and DeeplabV3plus, comprising the following steps:

[0005] S1. Sample collection and mask annotation: Collect remote sensing image samples, obtain the original remote sensing image dataset and its corresponding ground object category mask dataset, and divide them into training set, validation set and test set in a ratio of 7:2:1;

[0006] S2. Edge detection algorithm to enhance texture features: Based on the original remote sensing image training data set and verification data set, the Canny edge detection operator in Opencv is used in the data set channel component to extract the texture of the object and enhance the texture features of the remote sensing object category;

[0007] S3. Training the improved DeeplabV3plus semantic segmentation model: using the dataset processed with enhanced texture features as the input of the improved DeeplabV3plus semantic segmentation algorithm model for training, and obtaining the trained DeeplabV3plus semantic segmentation algorithm model;

[0008] S4. Perform semantic segmentation on remote sensing images: Use the remote sensing image test set data as the input of the trained DeeplabV3plus model to obtain the semantic segmentation results of each remote sensing image, and calculate its accuracy and intersection-over-union ratio.

[0009] Furthermore, the step S1 specifically comprises:

[0010] S11. Collect remote sensing image samples;

[0011] First, obtain urban remote sensing images from the geospatial data cloud and open network map interface; perform atmospheric correction and georeferencing on the obtained urban remote sensing images to obtain remote sensing image samples. The specific process is as follows:

[0012] 1) Atmospheric correction: atmospheric correction is performed on urban remote sensing images in remote sensing image processing software to reduce the impact of clouds and fog on the clarity of urban remote sensing images;

[0013] 2) Geo-reference: convert the data into the corresponding geographic coordinate system in ArcGIS software and perform geometric correction.

[0014] S12. Mark the types of objects in the remote sensing image samples and perform mask extraction of remote sensing object types; the object types are selected as buildings, water bodies, vegetation, bare land, and roads; the building, water body, vegetation, bare land, and road object types are labeled with five Arabic numerals from 1 to 5 and mask extraction is performed; the shape of each object type is drawn using the labelme tool; if there is a building in the remote sensing image, it is coded as 1, and the shape of the building is extracted; if there is a water body in the remote sensing image, it is coded as 2, and the shape of the water body is extracted; if there is vegetation in the remote sensing image, it is coded as 3, and the shape of the vegetation is extracted; if there is bare land in the remote sensing image, it is coded as 4, and the shape of the bare land is extracted; if there is a road in the remote sensing image, it is coded as 5, and the shape of the road is extracted; the original image data set and mask data set of 5 object types are obtained;

[0015] S13. Divide into training set, validation set and test set in the ratio of 7:2:1.

[0016] Furthermore, the specific steps of step S2 are:

[0017] S21: uniformly transforming the sizes of the remote sensing images of the original remote sensing image training data set and the verification data set into M*M pixels;

[0018] S22: The Canny algorithm uses the Canny module in Python-Opencv, with parameter threshold1=100 and parameter threshold2=200;

[0019] S23: Perform a distortion transformation on the transformed image to obtain an enhanced and transformed remote sensing image training data set and a verification data set.

[0020] Furthermore, the edge extraction process of the Canny algorithm in step S22 is as follows:

[0021] S221: grayscale the original image;

[0022] S222: Perform Gaussian filtering on the image, wherein the Gaussian filter formula is as follows:

[0023]

[0024] In the above formula, h(x, y) represents the pixel value at (x, y), σ represents the variance, and k represents the filter dimension;

[0025] S223: Calculate the magnitude and direction of the gradient using the finite integral of the first-order partial derivative, and use the Sobel operator to calculate the magnitude of the gradient, the formula is as follows:

[0026]

[0027] S x =(a 2 +2a 3 +a 4 )-(a 0 +2a 7 +a 6 ) (4);

[0028] S y =(a 0 +2a 1 +a 2 )-(a 6 +2a 5 +a 4 ) (5);

[0029] In the above formula, S x represents the X-direction convolution kernel template, S y represents the convolution kernel template in the Y direction, K represents the domain point labeling matrix of the points to be processed, and G[i, j] represents the amplitude of the pixel at [i, j];

[0030] S224: Perform non-maximum suppression on the gradient amplitude;

[0031] S225: Dual threshold algorithm detects and connects edges.

[0032] Furthermore, the step S3 is specifically as follows:

[0033] S31: Construct a remote sensing image semantic segmentation network based on channel-spatial attention and DeeplabV3plus;

[0034] S32: Inputting the transformed remote sensing image training data set and verification data set into the improved DeeplabV3plus semantic segmentation network model, and forward propagating to obtain the shape information of the transformed remote sensing image sample ground object type output by the semantic segmentation network model;

[0035] S33. Using the Focal Loss function, the loss value is back-propagated according to the averaged error, and the weight of the improved DeeplabV3plus semantic segmentation network model is adjusted. The loss function calculation formula is as follows

[0036] FL=-(1-p t )γlog(p t ) (6);

[0037] In the above formula, FL represents the loss value, log(p t ) represents the result of the model cross entropy loss function, γ represents a constant, and in this embodiment, γ=2.

[0038] S34. The sample similarity loss function Dice Loss function is used to reduce the imbalance problem of positive and negative samples. The loss value is back-propagated according to the averaged error to adjust the weight of the improved DeeplabV3plus semantic segmentation network model, and the loss function calculation formula of the trained DeeplabV3plus semantic segmentation network model is as follows:

[0039]

[0040] In the above formula, t i represents the target value, y i represents the predicted value, ε represents the smoothing coefficient, and in this embodiment, ε=1e-5.

[0041] The beneficial effects of the present invention are as follows: compared with the prior art, the present invention improves DeeplaV3plus by using the Canny edge detection algorithm to enhance the image texture features and the channel-space attention mechanism to enhance the image deep features, and proposes a remote sensing image semantic segmentation algorithm model based on the channel-space attention modification and DeeplaV3plus. The model is trained and verified using a training set and a validation set, and the ground object categories (buildings, water bodies, vegetation, bare land, roads) of remote sensing images are efficiently and accurately segmented, realizing the embedded use between the channel-space attention and DeeplabV3plus semantic segmentation model, and improving the accuracy and intersection-over-union ratio of semantic segmentation. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a flow chart of a remote sensing image semantic segmentation method based on channel-spatial attention and DeeplabV3plus provided by the present invention;

[0043] Figure 2 It is a structural diagram of a remote sensing image semantic segmentation algorithm model based on channel-spatial attention and DeeplabV3plus constructed in an embodiment of the present invention;

[0044] Figure 3 is a schematic diagram of some remote sensing images used in the embodiments of the present invention;

[0045] Figure 4 It is a schematic diagram of network learning loss in a remote sensing image semantic segmentation algorithm model based on channel-spatial attention and DeeplabV3plus in an embodiment of the present invention. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solution and advantages of the present invention more clear, the present invention is further described in detail below through the accompanying drawings and embodiments. However, it should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the scope of the present invention.

[0047] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which the present invention belongs. The terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

[0048] like Figure 1 As shown, the remote sensing image semantic segmentation method based on channel-spatial attention and DeeplabV3plus provided in this embodiment includes the following steps:

[0049] S1. Sample collection and mask annotation: Collect remote sensing image samples, obtain the original remote sensing image dataset and its corresponding ground object category mask dataset and divide them into training set, validation set and test set in the ratio of 7:2:1; specifically,

[0050] S11. Collect remote sensing image samples;

[0051] First, obtain urban remote sensing images from the geospatial data cloud and open network map interface; perform atmospheric correction and georeferencing on the obtained urban remote sensing images to obtain remote sensing image samples. The specific process is as follows:

[0052] 1) Atmospheric correction: atmospheric correction is performed on urban remote sensing images in remote sensing image processing software to reduce the impact of clouds and fog on the clarity of urban remote sensing images;

[0053] 2) Geographical alignment: Since the spatial reference of the road network data is inconsistent with the spatial reference of the data in other steps, their positions cannot match each other during spatial analysis. Therefore, it is necessary to convert the data into the corresponding geographic coordinate system in ArcGIS software and perform geometric correction.

[0054] S12. Mark the types of objects in the remote sensing image samples and perform mask extraction of remote sensing object types; the object types are selected as buildings, water bodies, vegetation, bare land, and roads; the building, water body, vegetation, bare land, and road object types are labeled with five Arabic numerals from 1 to 5 and mask extraction is performed; the shape of each object type is drawn using the labelme tool; if there is a building in the remote sensing image, it is coded as 1, and the shape of the building is extracted; if there is a water body in the remote sensing image, it is coded as 2, and the shape of the water body is extracted; if there is vegetation in the remote sensing image, it is coded as 3, and the shape of the vegetation is extracted; if there is bare land in the remote sensing image, it is coded as 4, and the shape of the bare land is extracted; if there is a road in the remote sensing image, it is coded as 5, and the shape of the road is extracted; the original image data set and mask data set of 5 object types are obtained;

[0055] S13. Divide into training set, validation set and test set in the ratio of 7:2:1.

[0056] Step S2. Strengthening texture features by edge detection algorithm: Based on the original remote sensing image training data set and verification data set, the Canny edge detection operator in Opencv is used in the data set channel component to extract the texture of the object and strengthen the texture features of the remote sensing object category;

[0057] The specific steps of step S2 are:

[0058] S21: uniformly transforming the sizes of the remote sensing images of the original remote sensing image training data set and the remote sensing image validation data set into M*M pixels; in this embodiment, the value of M is 256;

[0059] S22: The Canny algorithm uses the Canny module in Python-Opencv, with parameter threshold1=100 and parameter threshold2=200;

[0060] S221: grayscale the original image;

[0061] S222: Perform Gaussian filtering on the image, wherein the Gaussian filter formula is as follows:

[0062]

[0063] In the above formula, h(x, y) represents the pixel value at (x, y), σ represents the variance, and k represents the filter dimension;

[0064] S223: Calculate the magnitude and direction of the gradient using the finite integral of the first-order partial derivative, and use the Sobel operator to calculate the magnitude of the gradient, the formula is as follows:

[0065]

[0066] S x =(a 2 +2a 3 +a 4 )-(a 0 +2a 7 +a 6 ) (4);

[0067] S y =(a 0 +2a 1 +a 2 )-(a 6 +2a 5 +a 4 ) (5);

[0068] In the above formula, S x represents the X-direction convolution kernel template, S y represents the convolution kernel template in the Y direction, K represents the domain point labeling matrix of the points to be processed, and G[i, j] represents the amplitude of the pixel at [i, j];

[0069] S224: Perform non-maximum suppression on the gradient amplitude;

[0070] S225: dual threshold algorithm to detect and connect edges;

[0071] S23: Perform a distortion transformation on the transformed image to obtain an enhanced and transformed remote sensing image training data set and a verification data set.

[0072] Step S3. Training the improved DeeplabV3plus semantic segmentation model: using the data set processed with enhanced texture features as the input of the improved DeeplabV3plus semantic segmentation algorithm model for training, and obtaining the trained DeeplabV3plus semantic segmentation algorithm model;

[0073] S31: Build a remote sensing image semantic segmentation network based on channel-spatial attention and DeeplabV3plus; Figure 3 shown.

[0074] It is based on the GeForce RTX 3060GPU hardware platform, uses Python Pytorch module, uses Xception network as classification network, uses channel-spatial attention to strengthen Xception network to extract deep feature information of remote sensing images, uses ASPP network as feature multi-scale segmentation module, uses convolution blocks with different expansion convolution rates (0, 6, 12, 18) and a basic convolution block for a total of five feature layers and splices them together to construct DeeplabV3plus semantic segmentation network based on channel-spatial attention improvement. The size of the input image in the semantic segmentation network is determined to be M*M pixels, and the value of M in the example of the present invention is 256.

[0075] The channel-spatial attention network is designed as:

[0076] Channel Attention Convolution Module:

[0077] A global average pooling layer and a global maximum pooling layer each constitute a pooling module;

[0078] A convolutional layer with a convolution kernel size of 1×1, a Relu activation layer, and a convolutional layer with a convolution kernel size of 1×1 are stacked into a convolutional block;

[0079] Sigmoid activation function as activation layer;

[0080] The forward propagation process is as follows: the deep features extracted by the Xception network are used as the input of the global average pooling layer and the global maximum pooling layer, and then input into the convolution block. Finally, the two feature layers are added and output after activation by the Sigmoid activation function.

[0081] Spatial Attention Convolution Module:

[0082] A convolutional layer with a kernel size of 7×7 constitutes the convolution block, and the Sigmoid activation function is used as the activation layer;

[0083] The forward propagation process is as follows: the product of the features output by the channel attention convolution module and the deep features extracted by the Xception network is taken as input, which is divided into an average feature with a column number of 1 and a maximum feature. The two features are concatenated and input into the convolution block, and then output after activation by the Sigmoid activation function.

[0084] The forward propagation process of the channel-spatial attention convolution module is:

[0085] The deep features extracted by the Xception network are used as the input of the channel attention convolution module, the product of the output result and the deep features is used as the input of the spatial attention convolution module, and the product of the output result of the spatial attention convolution module and the deep features is used as the output of the channel-spatial attention convolution module.

[0086] S32: Inputting the transformed remote sensing image training data set and verification data set into the improved DeeplabV3plus semantic segmentation network model, and forward propagating to obtain the shape information of the transformed remote sensing image sample ground object type output by the semantic segmentation network model;

[0087] S33. Using the Focal Loss function, the loss value is back-propagated according to the averaged error, and the weight of the improved DeeplabV3plus semantic segmentation network model is adjusted. The loss function calculation formula is as follows

[0088] FL=-(1-p t )γlog(p t ) (6);

[0089] In the above formula, FL represents the loss value, log(p t ) represents the result of the model cross entropy loss function, γ represents a constant, and in this embodiment, γ=2.

[0090] S34. The sample similarity loss function Dice Loss function is used to reduce the imbalance problem of positive and negative samples. The loss value is back-propagated according to the averaged error to adjust the weight of the improved DeeplabV3plus semantic segmentation network model, and the loss function calculation formula of the trained DeeplabV3plus semantic segmentation network model is as follows:

[0091]

[0092] In the above formula, t i represents the target value, y i represents the predicted value, ε represents the smoothing coefficient, and in this embodiment, ε=1e-5.

[0093] S4. Perform semantic segmentation on remote sensing images: Use the remote sensing image test set data as the input of the trained DeeplabV3plus model to obtain the semantic segmentation results of each remote sensing image, and calculate its accuracy and intersection-over-union ratio.

[0094] The remote sensing image samples collected in the embodiment of the present invention include a series of remote sensing images selected from the Jiangsu, Zhejiang and Shanghai regions, including 20,000 images of buildings, water bodies, vegetation, bare land, and road features. Among them, some remote sensing image samples are as follows: Figure 3(a) is shown. The target city is Chongchuan District, Nantong City. The specific environment is Pycharm and ArcGIS software platforms and hardware platforms such as GeForce RTX3060GPU. Python and its related libraries are used for development experiments, such as Numpy, Pytorch, PIL, Opencv, etc. The remote sensing image data is Baidu remote sensing images from 2018 to 2020, with a resolution of 0.5 meters.

[0095] Figure 4 This is a schematic diagram of the network learning loss of the improved DeeplabV3plus network model. The epoch loss and valloss are in a slow downward trend, and the curve fluctuations are relatively stable. When trained to around the 90th generation, the two curves basically converge, and the model achieves good results at this time.

[0096] The remote sensing image test dataset is input into the trained and improved DeeplabV3plus semantic segmentation model. Some test data and prediction results are shown in Figure 3 (b) As shown in the figure, most of the objects can be segmented well with high segmentation accuracy. The intersection-over-union ratio of the predicted results of the test data set and its true label is calculated. The data is shown in Table 1. It can be seen that the average intersection-over-union ratio of the five object categories reaches 94.51%, among which the intersection-over-union ratio of water bodies is the highest, reaching 95.21%. This shows that the improved DeeplabV3plus semantic segmentation model can achieve good results in the semantic segmentation problem of remote sensing images.

[0097] Table 1

[0098]

[0099] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modification, equivalent substitution or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A remote sensing image semantic segmentation method based on channel-spatial attention and DeeplabV3plus, characterized in that: The following steps are involved: S1. Sample collection and mask annotation: Collect remote sensing image samples, obtain the original remote sensing image dataset and its corresponding ground object category mask dataset, and divide them into training set, validation set and test set in a ratio of 7:2:1; S2. Edge detection algorithm to enhance texture features: Based on the original remote sensing image training data set and verification data set, the Canny edge detection operator in Opencv is used in the data set channel component to extract the texture of the object and enhance the texture features of the remote sensing object category; S3. Training the improved DeeplabV3plus semantic segmentation model: using the dataset processed with enhanced texture features as the input of the improved DeeplabV3plus semantic segmentation algorithm model for training, and obtaining the trained DeeplabV3plus semantic segmentation algorithm model; The step S3 is specifically as follows: S31: Construct a remote sensing image semantic segmentation network based on channel-spatial attention and DeeplabV3plus; S32: Inputting the transformed remote sensing image training data set and verification data set into the improved DeeplabV3plus semantic segmentation network model, and forward propagating to obtain the shape information of the transformed remote sensing image sample ground object type output by the semantic segmentation network model; S33. Using the Focal Loss function, the loss value is back-propagated according to the averaged error, and the weight of the improved DeeplabV3plus semantic segmentation network model is adjusted. The loss function calculation formula is as follows FL=-(1-p t ) γ log(p t ) (6); In the above formula, FL represents the loss value, log(p t ) represents the result of the model cross entropy loss function, γ represents a constant, γ = 2; S34. The sample similarity loss function Dice Loss function is used to reduce the imbalance problem of positive and negative samples. The loss value is back-propagated according to the averaged error to adjust the weight of the improved DeeplabV3plus semantic segmentation network model, and the loss function calculation formula of the trained DeeplabV3plus semantic segmentation network model is as follows: In the above formula, t i represents the target value, y i represents the predicted value, ε represents the smoothing coefficient, ε=1e-5; S4. Perform semantic segmentation on remote sensing images: Use the remote sensing image test set data as the input of the trained DeeplabV3plus model to obtain the semantic segmentation results of each remote sensing image, and calculate its accuracy and intersection-over-union ratio.

2. According to claim 1, a remote sensing image semantic segmentation method based on channel-spatial attention and DeeplabV3plus is characterized in that: The step S1 is specifically: S11. Collect remote sensing image samples; First, obtain urban remote sensing images from the geospatial data cloud and open network map interface; perform atmospheric correction and georeferencing on the obtained urban remote sensing images to obtain remote sensing image samples. The specific process is as follows: 1) Atmospheric correction: atmospheric correction is performed on urban remote sensing images in remote sensing image processing software to reduce the impact of clouds and fog on the clarity of urban remote sensing images; 2) Geo-reference: convert the data into the corresponding geographic coordinate system in ArcGIS software and perform geometric correction; S12. Mark the types of objects in the remote sensing image samples and perform mask extraction of remote sensing object types; the object types are selected as buildings, water bodies, vegetation, bare land, and roads; the building, water body, vegetation, bare land, and road object types are labeled with five Arabic numerals from 1 to 5 and mask extraction is performed; the shape of each object type is drawn using the labelme tool; if there is a building in the remote sensing image, it is coded as 1, and the shape of the building is extracted; if there is a water body in the remote sensing image, it is coded as 2, and the shape of the water body is extracted; if there is vegetation in the remote sensing image, it is coded as 3, and the shape of the vegetation is extracted; if there is bare land in the remote sensing image, it is coded as 4, and the shape of the bare land is extracted; if there is a road in the remote sensing image, it is coded as 5, and the shape of the road is extracted; the original image data set and mask data set of 5 object types are obtained; S13. Divide into training set, validation set and test set in the ratio of 7:2:

1.

3. The remote sensing image semantic segmentation method based on channel-spatial attention and DeeplabV3plus according to claim 1, characterized in that: The specific steps of step S2 are: S21: uniformly transforming the sizes of the remote sensing images of the original remote sensing image training data set and the verification data set into M*M pixels; S22: The Canny algorithm uses the Canny module in Python-Opencv, with parameter threshold1=100 and parameter threshold2=200; S23: Perform a distortion transformation on the transformed image to obtain an enhanced and transformed remote sensing image training data set and a verification data set.

4. The remote sensing image semantic segmentation method based on channel-spatial attention and DeeplabV3plus according to claim 3, characterized in that: The edge extraction process of the Canny algorithm in step S22 is as follows: S221: grayscale the original image; S222: Perform Gaussian filtering on the image, wherein the Gaussian filter formula is as follows: In the above formula, h(x,y) represents the pixel value at (x,y), σ represents the variance, and k represents the filter dimension; S223: Calculate the magnitude and direction of the gradient using the finite integral of the first-order partial derivative, and use the Sobel operator to calculate the magnitude of the gradient, the formula is as follows: <h2 style=";text-align:left;direction:ltr">S<h2 style=";text-align:left;direction:ltr"> x <h2 style=";text-align:left;direction:ltr"> (a2+2a3+a4)-(a0+2a7+a6) (4) <h2 style=";text-align:left;direction:ltr">S<h2 style=";text-align:left;direction:ltr"> y <h2 style=";text-align:left;direction:ltr"> (a0+2a1+a2)-(a6+2a5+a4) (5) In the above formula, S x represents the X-direction convolution kernel template, S y represents the convolution kernel template in the Y direction, K represents the domain point labeling matrix of the points to be processed, and G[i, j] represents the amplitude of the pixel at [i, j]; S224: Perform non-maximum suppression on the gradient amplitude; S225: Dual threshold algorithm detects and connects edges.

Citation Information

Cited By

  • Ground background small target identification method based on cascade combination network

    CN115861756A

  • Earth background clutter identification method based on cascaded combination network

    CN115861756B