Forward-looking sonar image segmentation method based on empirical mode decomposition
Through image processing methods based on empirical mode decomposition, including background removal, decomposition, denoising and enhancement processing, combined with two-dimensional maximum entropy and chicken flock optimization algorithms, the problems of noise sensitivity and clustering parameter dependence in forward-looking sonar image segmentation are solved. problem, achieving high-precision adaptive segmentation effects.
Patent Information
- Application Number
- CN202111547257.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-16
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-12-16
AI Technical Summary
Forward-looking sonar images are seriously affected by noise and have low resolution. It is difficult for traditional image segmentation methods to achieve high-precision and robust segmentation results. Moreover, segmentation technology is sensitive to noise and relies on the initial values of clustering parameters.
An image processing method based on empirical mode decomposition is adopted, including background removal processing, image decomposition processing, denoising and enhancement processing, and cluster segmentation. The two-dimensional maximum entropy and chicken flock optimization algorithms are used for preliminary separation, combined with the two-dimensional empirical mode State decomposition and enhanced C-means clustering segmentation, adaptive segmentation of forward-looking sonar images.
It effectively suppresses noise interference, protects image edge details, realizes adaptive unsupervised segmentation, reduces the influence of the initial cluster center, improves processing speed, and is suitable for adaptive segmentation of forward-looking sonar images.
Smart Images

Figure CN114494280B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical fields of digital image processing, digital signal processing, computer artificial intelligence and pattern recognition, and in particular to a forward-looking sonar image segmentation method based on empirical mode decomposition, which utilizes a computer to enhance and effectively segment a forward-looking sonar image. Background Art
[0002] In recent years, with the development of underwater technology, acoustic imaging systems have become the eyes of various submarines and intelligent underwater robots, providing them with intuitive and reliable image data. Using these image data for image processing and pattern recognition can quickly and accurately judge the target and realize the automation or intelligence of underwater operations. Multi-beam forward-looking sonar is obtained by transmitting, transmitting, receiving, processing and visualizing the acoustic signal. Due to the influence of the variability of the marine environment, the propagation characteristics of sound waves and the interference of the sonar's own equipment, for forward-looking sonar, the sonar image is seriously affected by noise, with low contrast, low resolution and greatly reduced image quality. In addition, the target has relatively few detailed features, the boundary of the target has large irregularity, and there is basically no precise boundary and contour features. This brings greater difficulties and challenges to further data processing and analysis.
[0003] Sonar image segmentation is the premise for subsequent target recognition, tracking, classification and other issues, and is an important part of image processing. Through precise and accurate segmentation, the target can be separated from the background, providing a basis for target classification and recognition. Therefore, sonar image segmentation is another issue that needs to be studied in depth after sonar image enhancement. Due to the low imaging quality of sonar images and serious noise pollution, traditional image segmentation methods based on edge information or statistical information are difficult to obtain high-precision and high-robustness segmentation results. In addition, since sonar image segmentation is in a key position in sonar image processing, it is crucial to the correct identification of the final target; and the influence of reverberation and various environmental noises makes segmentation technology more difficult, so sonar image segmentation, as a difficulty and hot spot in sonar image processing, has received widespread attention.
[0004] In terms of sonar image enhancement, the empirical mode decomposition method is used. Similar to the frequently used wavelet transform method, the empirical mode decomposition can be regarded as a filter bank, and the intrinsic mode functions of each order generated by it are gradually unfolded from high frequency to low frequency, that is, the first layer of intrinsic mode functions contains high frequency information in the image, and the last layer of intrinsic mode functions contains the lowest frequency information (or trend information) in the image. Empirical mode decomposition can decompose multivariate signals by cross-channel mode alignment. This method decomposes signals based on its own time scale characteristics without presetting basis functions. In theory, it can be applied to any type of signal decomposition, so it has a very obvious advantage in processing nonlinear and non-stationary data, and is more suitable for sonar image enhancement. In the segmentation of sonar images, due to the serious noise of sonar images and the large irregularity of target boundaries, necessary denoising and detail information enhancement are required before segmentation. The noise of sonar images is mainly distributed in the high-frequency area. Since the target grayscale is small, the low-frequency area is not suitable for denoising, but the low-frequency area contains a lot of image information, and corresponding detail information enhancement processing can be performed.
[0005] The segmentation algorithm of sonar images is still immature. Generally speaking, most of the research at home and abroad is to transplant the optical image segmentation theory and algorithm to sonar image segmentation. The existing sonar image segmentation algorithms include: threshold-based segmentation method, fuzzy C-means segmentation method, Markov random field, level set, etc. Figure 1 Forward-looking sonar images have the following characteristics: 1) The target has fewer gray levels, and the background and noise have more gray levels; 2) There is often randomly distributed noise; 3) The resolution is low, the target has fewer detailed features, the target boundary has a large irregular shape, and there is basically no precise boundary and contour; 4) The background often occupies most of the position, and the overall image looks dark. Some sonar image segmentation algorithms with better effects are based on certain prior conditions and cannot automatically complete image segmentation. For example, the threshold-based segmentation method is simple and easy to operate. In the threshold segmentation method, a part of the segmentation threshold is determined according to the image histogram. The threshold segmentation calculation is simple and fast, but the gray values of the foreground and background of the sonar image are slightly different, and the foreground gray level is not particularly concentrated, so the segmentation effect is poor. The level set method has good robustness and accuracy, and has good effects on high-noise sonar images and real sonar images, especially for side-scan sonar. However, for forward-looking sonar images, the calculation process is complicated, and the time for sonar image processing needs to be improved. Fuzzy C-means clustering segmentation is the most widely used algorithm. It has the advantages of small amount of calculation and multi-target segmentation. However, the initial cluster center of fuzzy C-means clustering has a great influence on the segmentation result. And if the relationship between pixels is not used, it will be very sensitive to noise. Summary of the invention
[0006] In view of the problems existing in the prior art, the present invention discloses a forward-looking sonar image segmentation method based on empirical mode decomposition, comprising the following steps:
[0007] S1: performing background removal processing on the forward-looking sonar image to obtain a forward-looking sonar image after background removal processing;
[0008] S2: performing image decomposition processing on the forward-looking sonar image after background processing to obtain a forward-looking sonar image after image decomposition processing;
[0009] S3: performing denoising and enhancement processing on the forward-looking sonar image after the image decomposition processing to obtain a denoised and enhanced forward-looking sonar image; and then reconstructing the denoised and enhanced forward-looking sonar image to obtain a reconstructed forward-looking sonar image;
[0010] S4: performing clustering segmentation on the reconstructed forward-looking sonar image to obtain a segmented forward-looking sonar image.
[0011] Further: the background removal process comprises the following steps:
[0012] S1-1: Calculate the one-dimensional grayscale histogram f of the average neighborhood grayscale of the input forward-looking sonar image I(x, y) xy ;
[0013] S1-2: Construct a two-dimensional histogram p with the point grayscale as the horizontal coordinate and the probability of the regional grayscale mean as the vertical coordinate xy ;
[0014] S1-3: Use the swarm optimization algorithm to find the gray value s and the regional gray mean probability t when the two-dimensional entropy of the forward-looking sonar image I (x, y) is maximum;
[0015] S1-4: Set the areas of the forward-looking sonar image I(x, y) whose grayscale values are less than s and whose regional grayscale mean probability is less than t to zero, and retain the parts of the forward-looking sonar image I(x, y) whose grayscale values are greater than s, to obtain the image I1(x, y) after removing the background.
[0016] Further: the step of using the chicken swarm optimization algorithm to obtain the grayscale value when the two-dimensional entropy of the sonar image I (x, y) is the maximum is as follows:
[0017] S1-3-1: Initialize the chicken group, set the number of iterations, variable t = 0;
[0018] S1-3-2: Start iteration:
[0019] S1-3-3: Calculate the fitness of each individual chicken, and the fitness formula is calculated using the maximum entropy judgment function y;
[0020] S1-3-4: Sort the chickens in descending order of fitness, establish a hierarchy, and randomly divide the chicken flock into several sub-chicken flocks;
[0021] S1-3-5: Update the positions of roosters, hens, and chicks respectively, and calculate the fitness of each individual in the flock;
[0022] S1-3-6: Update the best position of the chickens in the current chicken group, i.e. the position with the highest fitness and the position of the chickens; calculate the fitness of each individual again;
[0023] S1-3-7: Iteration number t = t + 1;
[0024] S1-3-8: Iteration end condition: If the set number of iterations is reached, then go to S1-3-9, otherwise return to step S1-3-2;
[0025] S1-3-9: Determine the grayscale value s with the maximum fitness and the regional grayscale mean probability th, set the areas with grayscale less than the grayscale value s with the maximum fitness and the regional grayscale mean probability less than t to zero and remove them, and retain the rest to obtain the image I1(x,y) after removing the background.
[0026] Furthermore: the image decomposition process adopts two-dimensional empirical mode decomposition.
[0027] Further: The process of using two-dimensional empirical mode decomposition is as follows:
[0028] S2-1: Use the background-removed forward-looking sonar image I1(x,y) as the decomposition initial value, the plane matrix r i =I1, pixel horizontal coordinate i=0;
[0029] S2-2: Set the plane matrix h j =r i , pixel ordinate j = 1;
[0030] S2-3: Find h j Regional maxima and minima;
[0031] S2-4: Use cubic spline interpolation to obtain the upper envelope env for the maximum and minimum values obtained max and the lower envelope env min ;
[0032] S2-5: Calculate the upper envelope env max and the lower envelope env min The mean value m,
[0033] S2-6: From h j Subtract m from the value in the equation and set h j+1 =h j-m, j=j+1;
[0034] S2-7: When h j If the average energy of ≥ the threshold value or j < 4, go to S2-3 to continue execution;
[0035] When h j The average energy of < threshold or j> = 4, then the i-th intrinsic mode function F of the sonar image I1(x, y) after background removal is obtained. i =h j , go to S2-8;
[0036] S2-8: Set i=i+1, When i is a monotonic function or i>=5, then R=r i is the residual component, the decomposition process ends; otherwise, go to S2-2.
[0037] Furthermore: the forward-looking sonar image after the image decomposition processing is expressed by using high-frequency eigenfunctions and residual components.
[0038] Further, the process of performing denoising and enhancement processing on the forward-looking sonar image after the image decomposition processing to obtain the denoised and enhanced forward-looking sonar image; and then reconstructing the denoised and enhanced forward-looking sonar image to obtain the reconstructed forward-looking sonar image is as follows:
[0039] S3-1: Obtain the IMF of the first four high-frequency layers of the forward-looking sonar image after image decomposition processing: F1, F2, F3, F4, and the residual component to obtain five layers of components;
[0040] S3-2: Perform fuzzy enhancement processing on the five-layer components; that is, calculate the fuzzy feature planes of the five-layer components respectively;
[0041] S3-3: For each fuzzy feature plane, the grayscale of the part with a membership degree less than 0.5 is reduced, and the grayscale of the part with a membership degree greater than 0.5 is increased, to obtain the components XX1, XX2, XX3, XX4, and XX5 after five-layer component enhancement;
[0042] S3-4: Guided filtering is performed on the components after enhancement of the first four layers to obtain filtered components XL1, XL2, XL3, and XL4;
[0043] S3-5: The components XL1, XL2, XL3, XL4 after the first four layers of filtering and the enhanced residual XX5 are added to reconstruct the image to obtain the reconstructed forward-looking sonar image.
[0044] Furthermore, the reconstructed forward-looking sonar image is clustered and segmented using a C-means clustering segmentation method, and the enhanced C-means clustering segmentation method has the following steps:
[0045] S4-1: Select the initial clustering centers cc1 and cc2 of the reconstructed forward-looking sonar image;
[0046] S4-2: filtering the reconstructed forward-looking sonar image enhancement and denoised image using the mean of the neighborhood pixels to generate a new weighted image im;
[0047] S4-3: Generate the grayscale histogram of the weighted image im and calculate the objective function value J of each grayscale value for the two cluster centers cc1 and cc2 enfcm ;
[0048] S4-4: Iteratively update cluster center v j and his fuzzy membership matrix u ji ;
[0049] S4-5: If the objective function value J enfcm When the specified accuracy or the set number of iterations is reached, the iteration is stopped, and the final two cluster centers cc1 and cc2 and the membership matrix u of the two cluster centers cc1 and cc2 are obtained. cc1 and u cc2 , otherwise return to step S4-2;
[0050] S4-6: According to the fuzzy membership matrix u cc1 and u cc2 , compare the two membership matrices from the pixel at position (1,1) to the last pixel. If u cc1 >u cc2 , then the pixel is classified as the cluster center cc1. If u cc1 cc2 , then the pixel is classified as the cluster center cc2;
[0051] S4-7: Set the pixels divided into two categories to 0 and 255 respectively to complete the binary segmentation and obtain the segmented sonar image.
[0052] Due to the adoption of the above technical solution, the forward-looking sonar image segmentation method based on empirical mode decomposition provided by the present invention overcomes the sensitivity of the existing forward-looking sonar image segmentation method to noise and the dependence on the initial value of the clustering parameter, and provides an adaptive segmentation method for forward-looking sonar images. The method uses two-dimensional maximum entropy to perform preliminary target background separation, and then enhances and denoises the intrinsic mode function after the empirical mode decomposition of the sonar image; calculates a new weighted image for the reconstructed image, and performs fuzzy clustering segmentation, so as to achieve the purpose of effectively suppressing noise interference and protecting the image edge detail information for segmentation. And the method can perform adaptive unsupervised segmentation based on the characteristics of the forward-looking sonar image while ensuring the target characteristics. The Enhanced C-means Clustering Algorithm (ENFCM) is used to consider spatial information and effectively reduce noise interference. Before iteration, the spatial information of the input image is extracted to obtain a new image containing spatial information, and then this new image is linearly superimposed on the original input image; and clustering is performed directly on the grayscale of the image pixels. Because the number of pixel grayscale levels L (usually 256) is much smaller than the number of image pixels n, it can not only reduce the influence of the initial clustering center, but also greatly improve the processing speed. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0054] Figure 1 Example of forward-looking sonar image;
[0055] Figure 2 Flowchart of sonar image segmentation method based on empirical mode decomposition;
[0056] Figure 3 Flowchart of using IMF reconstruction to remove noise and enhance edge information of sonar images;
[0057] Figure 4 Flowchart of sonar image segmentation based on enhanced C-means clustering. DETAILED DESCRIPTION
[0058] In order to make the technical solutions and advantages of the present invention more clear, the technical solutions in the embodiments of the present invention are clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention:
[0059] A forward-looking sonar image segmentation method based on empirical mode decomposition comprises the following steps:
[0060] S1: performing background removal processing on the forward-looking sonar image to obtain a forward-looking sonar image after background removal processing;
[0061] S2: performing image decomposition processing on the forward-looking sonar image after background processing to obtain a forward-looking sonar image after image decomposition processing;
[0062] S3: performing denoising and enhancement processing on the forward-looking sonar image after the image decomposition processing to obtain a denoised and enhanced forward-looking sonar image; and then reconstructing the denoised and enhanced forward-looking sonar image to obtain a reconstructed forward-looking sonar image;
[0063] S4: performing clustering segmentation on the reconstructed forward-looking sonar image to obtain a segmented forward-looking sonar image.
[0064] Since the target grayscale of the sonar image is relatively small, while the background and noise grayscale are relatively large, according to the probability distribution characteristics of the two-dimensional histogram, the probability peaks are the target and the background. Therefore, the two-dimensional maximum entropy can be used to find the critical value of the target grayscale and the background and noise grayscale to perform preliminary target extraction.
[0065] The background removal process comprises the following steps:
[0066] S1-1: Calculate the one-dimensional grayscale histogram f of the average neighborhood grayscale of the input forward-looking sonar image I(x, y) xy ; Histogram gray level L = 256;
[0067] S1-2: Construct a two-dimensional histogram P with the point grayscale as the horizontal coordinate and the probability of the regional grayscale mean as the vertical coordinate xy ;
[0068] S1-3: Use the swarm optimization algorithm to find the gray value s and the regional gray mean probability t when the two-dimensional entropy of the forward-looking sonar image I (x, y) is maximum;
[0069] S1-4: The areas of the forward-looking sonar image I(x, y) whose grayscale values are less than s and whose regional grayscale mean probability is less than t are set to zero, and the parts of the forward-looking sonar image I(x, y) whose grayscale values are greater than s are retained to obtain the image I1(x, y) after background removal.
[0070] Furthermore, the step of using the swarm optimization algorithm to obtain the grayscale value when the two-dimensional entropy of the sonar image I (x, y) is maximum is as follows:
[0071] S1-3-1: Initialize the flock, set the number of iterations, MM = 100, flock size pop = 20, dimension dim = 2, flock update frequency G = 10; variable t = 0;
[0072] S1-3-2: Start iteration:
[0073] S1-3-3: Calculate the fitness of each individual chicken, and the fitness formula is calculated using the maximum entropy determination function y; the formula of the maximum entropy determination function y is as follows:
[0074]
[0075] Where: PA is P xy Medium xy (0, 0) to p xy (s, t) is called the probability sum of area A, Px = 1-PA is p xy (s, t) to P xy (L, L) is called the probability sum of region B, and HA is the two-dimensional entropy of region A. HA = -∑ i ∑ j P xy (i, j)log P xy (i, j), i = 1, ..., s; j = 1, ..., t; Hll is the two-dimensional entropy of all regions Hll = -∑ i ∑ i P xy (i, j)log P xy (i, j), i=1,...,L; j=1,...,L;
[0076] S1-3-4: Sort the chickens in descending order of fitness, establish a hierarchy, and randomly divide the chicken flock into several sub-chicken flocks;
[0077] S1-3-5: Update the positions of the rooster, hen, and chicks respectively. The positions of the rooster, hen, and chicks are updated as follows:
[0078] The formula used to update the rooster's position is as follows:
[0079] x ij (t+1)=x i,j (t).(1+Randn(0,σ 2 )) (2)
[0080]
[0081] Where: x ij (t+1) is the new position of the rooster; x i,j (t) is the old position of the rooster; Randn(0, σ 2 ) is the standard deviation σ 2 , a Gaussian distribution with a mean of 0; f k is the fitness of the old position, f i is the fitness of the new position, and ε is a constant.
[0082] The formula used to update the hen's position is as follows:
[0083] x ij (t+1)=x i,j (t)+c1.Rand.(x r1,j (t)-x i,j (t))+c2.Rand.(x r2,j (t)-x i,j (t))(4)
[0084]
[0085] C2=exp(f r2 -f i ) (6)
[0086] Where: x ij (t+1) is the new position of the hen, x i,j (t) is the old position of the hen, Rand is any value in the range (0, 1); f r1 is the fitness of the group r1 of the roosters in which the hens are located, f i is the fitness of the current hen, C1 is the influence factor of the rooster group on it; f r2 is the fitness of individual r2 randomly selected from other roosters and hens, and C2 is the influence factor of other chickens on it.
[0087] The formula used to update the chicken's position is as follows:
[0088] x ij (t+1)=x i,j (t)+F.(x m,j (t)-x i,j (t)) (7)
[0089] Where: x ij (t+1) is the new position of the chick, x i,j (t) is the old position of the chick, and the j-th dimension value of the mother hen m’s position is x m,j (t), the influence factor of the mother hen's position on the chick's position is F, which is randomly generated by a random function and its value range is generally (0, 2).
[0090] Calculate the fitness of each individual in the flock;
[0091] S1-3-6: Update the best position of the chickens in the current chicken group, i.e. the position with the highest fitness and the position of the chickens; calculate the fitness of each individual again;
[0092] S1-3-7: Iteration number t = t + 1;
[0093] S1-3-8: Iteration end condition: If the set number of iterations is reached, then go to S1-3-9, otherwise return to step S1-3-2;
[0094] S1-3-9: Determine the grayscale value s with the maximum fitness and the regional grayscale mean probability th, set the areas with grayscale less than the grayscale value s with the maximum fitness and the regional grayscale mean probability less than t to zero and remove them, and retain the rest to obtain the image I1(x, y) after removing the background.
[0095] Furthermore, the image decomposition process uses the bidimensional empirical mode decomposition (BEMD), and the process of using the bidimensional empirical mode decomposition is as follows:
[0096] S2-1: Using the background-removed sonar image I1(x, y) as the decomposition initial value, the plane matrix r i =I1, pixel horizontal coordinate i=0;
[0097] S2-2: Set the plane matrix h j =r i , pixel ordinate j = 1;
[0098] S2-3: Find h j Regional maxima and minima;
[0099] S2-4: Use cubic spline interpolation to obtain the upper envelope env for the maximum and minimum values obtained max and the lower envelope env min ;
[0100] S2-5: Calculate the upper envelope env max and the lower envelope env min The mean value m of , the expression of m is as follows:
[0101]
[0102] S2-6: From h j Subtract m from the value in the equation and set h j+1 =h j -m, j=j+1;
[0103] S2-7: When h j If the average energy of ≥ the threshold value or j < 4, go to S2-3 to continue execution;
[0104] When h j If the average energy of is less than the threshold value ε or j>=4, the i-th intrinsic mode function F of the sonar image I1(x, y) after background removal is obtained. i =h j, go to S2-8;
[0105] S2-8: Set i=i+1, When i is a monotonic function or i>=5, then R=r i , r i is the residual component, the decomposition process ends; otherwise, go to S2-2.
[0106] After the empirical mode decomposition of sonar images, the noise is mainly distributed in the high-frequency intrinsic mode functions, and the low-frequency intrinsic mode functions contain a lot of image information. Using this feature, all the intrinsic mode functions and residual layers can be fuzzy enhanced, and then the high-frequency intrinsic mode functions can be removed by guided filtering; secondly, only the high-frequency intrinsic mode functions are enhanced and denoised accordingly. The sonar image is reconstructed using the processed high-frequency intrinsic mode functions and residual layers, which has a larger information entropy, mean value and signal-to-noise ratio than the original image.
[0107] Furthermore, the forward-looking sonar image after the image decomposition processing is sampled. i (intrinsic mode functions: IMF) is expressed by high-frequency intrinsic functions and residual components R. The forward-looking sonar image after image decomposition is subjected to denoising and enhancement processing to obtain a denoised and enhanced forward-looking sonar image; and the denoised and enhanced forward-looking sonar image is reconstructed to obtain a reconstructed forward-looking sonar image. The process is as follows:
[0108] S3-1: Obtain the IMF of the first four high-frequency layers of the forward-looking sonar image after image decomposition processing: F1, F2, F3, F4, and the residual component, and obtain five layers of components;
[0109] S3-2: Perform fuzzy enhancement processing on the five-layer components; that is, calculate the fuzzy feature planes P(i, j) of the five-layer components respectively,
[0110]
[0111] Where: x max is the maximum gray value, x min is the minimum gray value, f ij is the current pixel gray value;
[0112] S3-3: For each fuzzy feature plane, the grayscale of the part with a membership degree less than 0.5 is reduced, and the grayscale of the part with a membership degree greater than 0.5 is increased, to obtain the components XX1, XX2, XX3, XX4, and XX5 after five-layer component enhancement;
[0113] S3-4: Guided filtering is performed on the components after the enhancement of the first four layers to obtain filtered components XL1, XL2, XL3, and XL4;
[0114] XL=a k .XX+b k (10)
[0115]
[0116]
[0117] Among them: XX is the guide map; p i As the input graph, this algorithm also takes XX; μ k and Represents the input image in the local window ω k The mean and variance of |ω| is the number of pixels in the window; p k represents the mean value of the guided layer in the window ωk; a k , b k is the linear coefficient.
[0118] S3-5: The components XL1, XL2, XL3, XL4 after the first four layers of filtering and the enhanced residual XX5 are added to reconstruct the image to obtain the reconstructed forward-looking sonar image.
[0119] Enhanced C-means clustering segmentation (enFCM) has certain advantages in processing images with uncertainty and ambiguity such as sonar images because it uses membership to comprehensively measure the influence of various factors. It is an unsupervised classification method that can be free from human intervention in the entire segmentation process. It also takes into account neighborhood information and can effectively reduce the impact of noise on clustering segmentation.
[0120] The reconstructed forward-looking sonar image is clustered and segmented by using an enhanced C-means clustering segmentation method, and the steps of the enhanced C-means clustering segmentation method are as follows:
[0121] S4-1: Select the initial cluster center cc1 of the reconstructed forward-looking sonar image, cc1 = s + x min ,cc2,cc2=x max -s; where: x min is the minimum gray value in Image J, x max is the maximum gray value in image J, s is the critical gray value in the first stage;
[0122] S4-2: filtering the reconstructed forward-looking sonar image enhancement and denoised image using the mean of the neighborhood pixels to generate a new weighted image im;
[0123]
[0124] Among them, x k is the current pixel, x r For xk Neighborhood pixels, N k For x k The number of neighborhood pixels, is the pixel value after mean filtering, α is the weight factor;
[0125] S4-3: Generate the grayscale histogram of the weighted image im and calculate the objective function value J of each grayscale value for the two cluster centers cc1 and cc2 enfcm ;
[0126]
[0127] Where: r k is the number of statistically valid gray levels, m is the fuzziness weighted index, n is the number of gray levels to be segmented (number of cluster samples), L is the number of pixel gray levels, c is the number of predefined cluster categories, and u is ji is the fuzzy membership matrix element, v j is the cluster center and is calculated;
[0128] S4-4: Iteratively update cluster center v j and fuzzy membership u ji ;
[0129]
[0130]
[0131] Where: x i is the current pixel, m is the blurriness weighted index, u ji is the fuzzy membership matrix element, and c is the number of predefined clustering categories.
[0132] S4-5: If J enfcm If the specified accuracy or the set number of iterations is reached, the iteration is stopped to obtain the final two cluster centers cc1 and cc2, and their membership matrices and, otherwise, return to step S4-2;
[0133] S4-6: Get the sum of the two fuzzy membership matrices of the final two cluster centers, and compare the two membership matrices from the pixel at position (1,1) to the last pixel. If u cc1 >u cc2 , then the pixel is classified as the cluster center cc1. If u cc1 cc2 , then the pixel is classified as the cluster center cc2.
[0134] S4-7: Set the pixel points divided into two clusters to 0 and 255 respectively to complete the binary segmentation and obtain the segmented sonar image.
[0135] The above is an implementation of the method proposed by the present invention, but in some steps, appropriate changes can be made to meet the needs of specific situations. For example, the use of cubic splines for interpolation in the process of two-dimensional empirical mode decomposition can be appropriately adjusted as needed. For example, when the intrinsic mode function is used to reconstruct the image in step S3, the number of high-frequency intrinsic mode function layers selected can be appropriately adjusted. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
[0136] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A forward-looking sonar image segmentation method based on empirical mode decomposition, characterized in that: Includes: The following step: S1: performing background removal processing on the forward-looking sonar image to obtain a forward-looking sonar image after background removal processing; S2: performing image decomposition processing on the forward-looking sonar image after background processing to obtain a forward-looking sonar image after image decomposition processing; S3: performing denoising and enhancement processing on the forward-looking sonar image after the image decomposition processing to obtain a denoised and enhanced forward-looking sonar image; and then reconstructing the denoised and enhanced forward-looking sonar image to obtain a reconstructed forward-looking sonar image; S4: performing clustering segmentation on the reconstructed forward-looking sonar image to obtain a segmented forward-looking sonar image; The background removal process comprises the following steps: S1-1: Calculate the one-dimensional grayscale histogram f of the average neighborhood grayscale of the input forward-looking sonar image I(x, y) xy ; S1-2: Construct a two-dimensional histogram P with the point grayscale as the horizontal coordinate and the probability of the regional grayscale mean as the vertical coordinate xy ; S1-3: Use the swarm optimization algorithm to find the gray value s and the regional gray mean probability t when the two-dimensional entropy of the forward-looking sonar image I (x, y) is maximum; S1-4: Set the areas of the forward-looking sonar image I(x, y) whose grayscale values are less than s and whose regional grayscale mean probability is less than t to zero, and retain the areas of the forward-looking sonar image I(x, y) whose grayscale values are greater than s, to obtain an image I1(x, y) after removing the background; The steps of using the chicken swarm optimization algorithm to obtain the grayscale value when the two-dimensional entropy of the sonar image I (x, y) is the maximum are as follows: S1-3-1: Initialize the chicken group, set the number of iterations, variable t = 0; S1-3-2: Start iteration: S1-3-3: Calculate the fitness of each individual chicken, and the fitness formula is calculated using the maximum entropy judgment function y; S1-3-4: Sort the chickens in descending order of fitness, establish a hierarchy, and randomly divide the chicken flock into several sub-chicken flocks; S1-3-5: Update the positions of roosters, hens, and chicks respectively, and calculate the fitness of each individual in the flock; S1-3-6: Update the best position of the chickens in the current chicken group, i.e. the position with the highest fitness and the position of the chickens; calculate the fitness of each individual again; S1-3-7: Iteration number t = t + 1; S1-3-8: Iteration end condition: If the set number of iterations is reached, then go to S1-3-9, otherwise return to step S1-3-2; S1-3-9: Determine the gray value s with the maximum fitness and the regional gray mean probability th, set the gray value less than the gray value s with the maximum fitness and the regional gray mean probability less than t to zero and remove it, and retain the rest to obtain the image I1(x, y) after removing the background; The image decomposition process adopts two-dimensional empirical mode decomposition; The process of using two-dimensional empirical mode decomposition is as follows: S2-1: Using the background-removed forward-looking sonar image I1(x, y) as the decomposition initial value, the plane matrix r i =I1, pixel horizontal coordinate i=0; S2-2: Set the plane matrix h j =r i , pixel ordinate j = 1; S2-3: Find h j Regional maxima and minima; S2-4: Use cubic spline interpolation to obtain the upper envelope env for the maximum and minimum values obtained max and the lower envelope env min ; S2-5: Calculate the upper envelope env max and the lower envelope env min The mean value m, S2-6: From h j Subtract m from the value in the equation and set h j+1 =h j -m, j=j+1; S2-7: When h j If the average energy of ≥ the threshold value or j < 4, go to S2-3 to continue execution; When h j The average energy of < threshold value or j>=4, then the i-th intrinsic mode function F of the sonar image I1(x, y) after background removal is obtained. i =h j , go to S2-8; S2-8: Set i=i+1, When i is a monotonic function or i>=5, then R=r i is the residual component, the decomposition process ends; otherwise, go to S2-2; The forward-looking sonar image after the image decomposition processing is expressed by using high-frequency eigenfunctions and residual components; The process of performing denoising and enhancement processing on the forward-looking sonar image after the image decomposition processing to obtain the denoised and enhanced forward-looking sonar image; and then reconstructing the denoised and enhanced forward-looking sonar image to obtain the reconstructed forward-looking sonar image is as follows: S3-1: Obtain the IMF of the first four high-frequency layers of the forward-looking sonar image after image decomposition processing: F1, F2, F3, F4, and the residual component to obtain five layers of components; S3-2: Perform fuzzy enhancement processing on the five-layer components; that is, calculate the fuzzy feature planes of the five-layer components respectively; S3-3: For each fuzzy feature plane, the grayscale of the part with a membership degree less than 0.5 is reduced, and the grayscale of the part with a membership degree greater than 0.5 is increased, to obtain the components XX1, XX2, XX3, XX4, and XX5 after five-layer component enhancement; S3-4: Guided filtering is performed on the components after enhancement of the first four layers to obtain filtered components XL1, XL2, XL3, and XL4; S3-5: The components XL1, XL2, XL3, XL4 after the first four layers of filtering and the enhanced residual XX5 are added to reconstruct the image to obtain the reconstructed forward-looking sonar image.
2. The forward-looking sonar image segmentation method based on empirical mode decomposition according to claim 1, characterized in that: The reconstructed forward-looking sonar image is clustered and segmented using a C-means clustering segmentation method. The enhanced C-means clustering segmentation method has the following steps: S4-1: Select the initial clustering centers cc1 and cc2 of the reconstructed forward-looking sonar image; S4-2: filtering the reconstructed forward-looking sonar image enhancement and denoised image using the mean of the neighborhood pixels to generate a new weighted image im; S4-3: Generate the grayscale histogram of the weighted image im and calculate the objective function value J of each grayscale value for the two cluster centers cc1 and cc2 enfcm ; S4-4: Iteratively update cluster center v j and his fuzzy membership matrix u ji ; S4-5: If the objective function value J enfcm When the specified accuracy or the set number of iterations is reached, the iteration is stopped, and the final two cluster centers cc1 and cc2 and the membership matrix u of the two cluster centers cc1 and cc2 are obtained. cc1 and u cc2 , otherwise return to step S4-2; S4-6: According to the fuzzy membership matrix u cc1 and u cc2 , compare the two membership matrices from the pixel at position (1,1) to the last pixel. If u cc1 >u cc2 , then the pixel is classified as the cluster center cc1. If u cc1 cc2 , then the pixel is classified as the cluster center cc2; S4-7: Set the pixels divided into two categories to 0 and 255 respectively to complete the binary segmentation and obtain the segmented sonar image.
Citation Information
Patent Citations
Empirical mode decomposition based method for acquiring image characteristics and measuring corresponding physical parameters
CN101872425A
Sonar image target enhancement method based on dual-tree complex number wavelet and fuzzy theory
CN112862716A
Sonar image processing apparatus, sonar image processing method, sonar image processing program, and recording medium
JP2014132248A
