Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

Research on improved level set image segmentation method

  • Mei Zhang,

    Roles Formal analysis, Funding acquisition, Writing – original draft

    Affiliations Information Institute, Guizhou University of Financial and Economics, Guiyang, China, Guizhou Key Laboratory of Big Data Statistical Analysis (No.[2019]5103), Guiyang, China

  • Dan Meng,

    Roles Data curation, Software, Writing – original draft

    Affiliation Information Institute, Guizhou University of Financial and Economics, Guiyang, China

  • Lingling Liu,

    Roles Writing – review & editing

    Affiliation Information Institute, Guizhou University of Financial and Economics, Guiyang, China

  • Jinghua Wen

    Roles Supervision

    jinghwen@yeah.net, 75301022@qq.com

    Affiliation Information Institute, Guizhou University of Financial and Economics, Guiyang, China

Abstract

Aiming at the shortcomings of the traditional level set model which only has good robustness to the weak boundary and strong noise of the original target image, this paper proposes an improved algorithm based on the no-weight initialization level set model, introducing bilateral filters and using implicit surface level sets to extract and segment the original target image object more accurately, clearly and intuitively in the evolution process. The experimental simulation results show that, compared with the traditional non-reinitialized level set model segmentation method, the improved method can more accurately extract the edge contours of the target image object, and has better edge contour extraction effect, and the original target noise reduction effect of the improved model is better than that of the model before the improvement. The original target image object edge contour takes less time to extract than the conventional non-reinitialized level set model before the improvement.

1. Introduction

Image segmentation is a fundamental work with important research value within the field of image processing and computer vision research [1]. Up to now, there is still no universal image segmentation method that can cope with or solve the segmentation problem of all original target images. Many studies and improvements on image segmentation algorithms exist at home and abroad, especially in the field of computer vision and information processing research [2].

Based on the existing classical image segmentation definitions, image segmentation can be roughly classified into region-based image segmentation algorithms (region growth method [3], clustering method [4] and boundary-based image segmentation algorithms [5] using intra-region similarity (e.g. Robert operator, Sobel operator, Laplacian operator, Canny operator). Deep learning methods have been mainstream methods of image processing:Wei Tang et al. propose a novel infrared and visible image fusion method, i.e., the Y-shape dynamic Trans- former (YDTR). Specifically, a dynamic Transformer module (DTRM) is designed to acquire not only the local features but also the significant context information [6]; Wei Tang et al. propose a novel unsupervised method to fuse multimodal medical images via a multiscale adaptive Transformer termed MATR. Instead of directly employing vanilla convolution, they introduce an adaptive convolution for adaptively modulating the convolutional kernel based on the global complementary context [7].

There is no shortage of optimization and improvement of various level set related series of image segmentation algorithms.

Bembenek Michal use a multiclass level-set approach with a developed penalty term as a framework for the advanced final damage segmentation stage, a quantitative analysis of the accuracy of the proposed approach is provided, the efficiency of the approach is demonstrated on authentic images of coated surfaces [8]. Birane Abdelkader et al. have developed a new level set function to implement a fast and robust active contour model. The model was built by combining the sbgfrls model and the Legendre polynomial, and instead of using the average intensity of the region, the level set function was regularized using a Gaussian filtering process [9]. Shamsi Koshki Asma et al. proposed a new local region based active contour model, the local self-weighted active contour model. The experimental results of applying the model to include synthetic and medical images, especially breast thermography images, were compared with the well-known local level set approach and demonstrated the perfect ability of the model [10]. Weng Guirong et al. proposed an additive bias correction (ABC) model based on intensity non-uniformity, which converts the local clustering criterion into an energy function based on the level set model by introducing a level set function [11].

Arora Jyoti et al. design an integrated method to implement a level set segmentation process for medical image segmentation that helps overcome the problem of manually initializing parameters. The input image is simplified by an intuitive fuzzification process of the image. Further segmentation is performed using an intuitive clustering technique with local spatial information (S-IFCM), and the control parameters of the level set method are automatically implemented by S-IFCM [12]. Badshah Noor et al. propose a first-hand mixing model via a mixing kernel and a Euclidean distance metric. Experimental results on a number of real and synthetic images show that the proposed model outperforms the models of Chan and Vese [13]. Chen H et al. proposed a fast image segmentation algorithm with a parametric level set active contour model, which embeds the parametric level set function into the classical LGDF (local Gaussian distribution fitting) model for image segmentation without the need for re-initialization and additional regular terms [14].

Hsieh Chi-Wen et al. developed an effective and accurate active contour model by improving the Distance Regularized Level Set Evolution (DRLSE) model to improve segmentation ability. The concept of balancing the thrust and image contour strength of the DRLSE model for contour segmentation was used to redefine the contour convergence / divergence forces to make it more feasible for complex boundaries [15]. Mesadi Fitsum et al. proposed a new parametric level set method, the Disjunctive Normal Level Set (DNLS), and applied it to two-phase (single-object) and multiphase (multi-object) image segmentation formulated segmentation algorithms in a Bayesian framework and used variational methods to minimize the energy relative to the model parameters [16]. Jiang Xiaoliang proposed a level set image segmentation algorithm with a local cross-entropy measure of fuzzy C-means and its simplified model. Compared with the traditional level set algorithm, this method successfully handles weak edges and grey scale inhomogeneous targets with some noise immunity [17].

On the whole, there are few algorithms for optimizing the weak boundary and strong noise robustness range of traditional uninitialized level sets. In this paper, we analyze and study the advantages of bilateral filters in the process of image noise reduction, improve the noise reduction method of the level set model in the pre-processing stage of the original target image, and further optimize and improve the existing original target image segmentation model in view of the defects of the level set model in the aforementioned research status. The scope of the no-weight initialization level set model, which is only robust to the weak boundary and strong noise of the original target image, is extended, so that the scope of weak boundary extraction and strong noise reduction of the original target image is expanded to a certain extent. In this thesis, the original target image is improved and optimized to some extent under the no re-initialization level set algorithm, and finally simulation experimental programming is carried out to verify the effectiveness of the improved algorithm.

2. Level set model without re-initialization

Osher et al. proposed the Level Set Method (LSM) based on the theory of the evolution of the edge profile curve of the original target object [18]. The basic idea of the Level Set Method is to complete the process of evolving the edge profile curves of the original target image objects by using the continuous updating of the high-dimensional implicit function. The evolution curve of the object edge profile of the original target image is assumed to be C(s, t), where s the parameter variables used to represent the object edge profile curve of the original target image are represented, and the time variables t used to represent the evolution curve are represented; the implicit level set function of the higher dimension is assumed to be ϕ(x, y, t); if ϕ(x, y, t) = ϕ(C(s, t), t) = 0 and when, that is, the zero level set of the evolution curve of the object edge profile of the original target image C(s, t) at the moment t. In general, there are different forms of level set function descriptions, but in order to consider the numerical stability of the object edge profile evolution curve of the original target image in the solution process, the Signal Distance Function (SDF) is usually used as the main form of description. The definition of the SDF is shown in Eq (1) [19]: (1)

From Eq (1), it can be derived that d is ϕ(x, y, t) the distance from the edge profile evolution curve of the original target image object C(s, t) to its embedded higher one-dimensional implicit level set function; when ϕ(x, y, t) the point of the implicit level set function (x, y) lies inside the edge profile evolution curve C(s, t) of the original target image object, then the opposite d of the distance is taken as the value ϕ(x, y, t) of the implicit level set function; when the point (x, y) of the implicit level set function ϕ(x, y, t) is located on the original target image object edge contour evolution curve C(s, t), then the original target image object edge contour evolution curve C(s, t) is the zero level set of the level set function ϕ(x, y, t), that is, the distance d is taken to be 0 as the value of the implicit level set function ϕ(x, y, t) at this time; when the point (x, y) of the implicit level set function ϕ(x, y, t) is located outside of the original target image object edge contour evolution curve C(s, t), the value of the distance d is taken as the value of this implicit level set function ϕ(x, y, t) at this time.

Using the principle of full differentiation to derive the parameters t of the time variables ϕ(x, y, t) = ϕ(C(s, t), t) = 0 in the level set function, Eq (2) is obtained [20]: (2)

In Eq (2), the evolution equation of the edge profile curve C(s, t) of the target object of the original image is defined as Eq (3): (3)

In Eq (3), V is a representation of the evolution rate of the edge profile curve C(s, t) of this original target image object, and is a representation of the inward unit normal vector of the edge profile curve C(s, t) of the original target image object. By substituting the evolution equation and the value of the inward unit normal vector for the evolution equation C(s, t) of the edge contour curve of the given original target image object into the level set full differential equation derived for the time variable parameter t, the evolution equation of object edge contour curve of original target image based on level set can be finally transformed into Eq (4), as shown below: (4)

3. Improved level set image segmentation

3.1 Improving algorithmic foundations

The curve ϕ((C(t), t)): R2 × R+R is assumed to be a level set function, which is an implicit expression of a t moment-to-moment continuous closed curve C(t), usually taken ϕ((C(t), t)) = 0 as the level set of the zero equivalence line. Derivation of the function ϕ((C(t), t)) = 0 according to the principle of full differentiation yields the formula (5) [17]: (5)

Let s be the arc length parameter C of the edge contour curve of the original target image object, the amount of variation of the implicit level set function ϕ along the tangent direction of the edge contour curve C of the original target image object satisfies the following relation, see Eq (6): (6)

If the implicit level set function ϕ takes negative values inside the original target image object edge contour curve C and positive values outside it, the basic equations for its internal unit normal vector and level set evolution method are expressed as Eqs (7) and (8), respectively: (7) (8)

Eq (6) belongs to the Hamilton-Jacobi equation. Taking the negative sign of the inner unit normal vector in Eq (4), it can be derived that: when the level set implicit function ϕ(x, y, t) > c, (x, y), (x, y) is located outside the original target image object closed edge contour curve C; when the level set implicit function ϕ(x, y, t) < c, (x, y), (x, y) is located inside the original target image object closed edge contour curve C; when the level set implicit function ϕ(x, y, t) = c, (x, y), (x, y) is located in the original target image object closed edge contour curve C.

Usually the c = 0 time is taken to represent the embedding of the evolution curve of the edge contour of the object of the selected original target image by an implicit function zero level set of one dimension higher [21]. In the segmentation process of the original target image, the description of the initial evolution curve of the edge contour of the selected original target image object is usually represented using the zero level set function defined in the original target image region, and the continuous updating of the zero level set function is accomplished by the combination of Eq (8), which drives the evolution curve C of the edge activity contour of the original target image object toward the selected original target image object edge contours continuously.

Caselles and Malladi were the first to propose curve evolution theory and the level set approach model separately. Since the level set approach model remains stable during the evolution of the selected original target image object edge contour curves, periodic initialization of the level set function ϕ(x, y) is required [22], which leads to a significant increase in computational effort during the evolution of the original target image object edge contour curves. Assuming Ω that the entire original target image domain is represented and the image intensity is I(x, y): Ω →R, the closed selected object edge contour curve C in the original target image Ω is represented implicitly by the high one-dimensional level set function ϕ(x, y, t) zero level set, i.e. C = {(x, y)|ϕ(x, y, t) = 0}. The initial representation of the signed distance function generated by the curve C is shown in Eq (9) (generally taken as positive for the inner side of the curve and negative for the outer side) [23]: (9)

In Eq (9), d is the distance from the point (x, y) in the plane image to the ϕ(x, y, t) zero level set of the level set function.

The level set approach in the driven evolution of the partial differential equation can thus be obtained as a formula for the process of re-initializing the level set function, as shown in Eq (10) for the solution of the partial differential equation: (10)

In Eq (10), which ϕ0 is the level set function that needs to be initialized again, sign(ϕ0) is the symbolic function, and ϕ is the level set function after the initialization is ϕ0 completed. Both the period of the re-initialized level set function and the choice of step size will affect the initialization of the level set function during the iteration to some extent [24].

This can be inferred from the nature of the symbolic distance function in the variational level set, and if the level set function |∇ϕ| ≈ 1, then the level set function ϕ meets the symbolic distance function requirement. It follows that the Li model defines the integral equation shown in Eq (11) as the penalty energy term (also known as the internal energy term): (11)

Eq (11) is a measure of the proximity of the level set function to the symbolic distance function during the evolution of the edge profile of the selected original target object. The internal energy term is introduced to constrain the initialized level set function ϕ to ensure that the level set function ϕ is always a valid symbolic distance function during the subsequent evolution of the edge profile of the selected original target object, successfully reducing the computational complexity of initializing the level set function ϕ again during the evolution.

3.2 Bilateral filters improving the traditional level-set model

The evolution equation for the evolution curve C of the object edge contour of the original target image for the geometric active contour model is expressed in Eq (12) [20]: (12)

In Eq (12), g is the condition used to determine whether the points on the evolution curve C of the edge contour of the original target image object need to continue to move during the motion; V0 is used to represent a constant coefficient that acts similarly to a balloon force (when V0 > 0, the original target image object edge contour evolution curve C expands outward; when V0 < 0, the original target image object edge contour evolution curve C contracts inward); a is a constant value used to adjust the curvature intensity; k is used to denote the curvature of the original target image object edge profile evolution curve C, which can both maintain the smoothness of the original target image object edge profile curve during evolution and enhance the resistance to noise interference during the evolution of the original target image object edge profile curve; and represents the inward unit normal vector of the evolution curve C of the object edge profile of the original target image. Since both the constant velocity and curvature of the evolution curve of the edge contour of the original target image object do not have a direct correlation with the preprocessed target image, the existence of the edge indicator function, i.e. the judgment condition g, does not influence the evolution motion of the edge contour curve C of the original target image object through the information of the preprocessed target image.

There are two main methods for smoothing and noise reduction of the original target image in the image segmentation process, one is the use of Gaussian filters, which are obtained by assigning different weights to the Gaussian values within a certain range of pixel values at the current point and then weighting and averaging them, i.e., the Gaussian kernel function is a radial basis function most often used, which only takes into account the influence of the spatial domain weights of the neighbouring pixels at the current point of the evolution curve of the edge contour of the selected original target image; another approach is to use a bilateral filter, which takes into account not only the spatial domain weight of the current point in the evolution process, but also the weight of the pixel grey value domain of the neighbouring pixel points. For example, in the evolution process of the edge contours of the selected original target image, in addition to the more common spatial distance of the neighbouring pixels, there are also relevant factors such as grey-scale similarity values.

Based on the differences between the above two image smoothing filters, it can be seen that the Gaussian filter does not adequately take into account the edges of the original target image object, especially when the edges of the original target image object change dramatically in grey scale; whereas the non-linear bilateral filter can effectively optimize and improve the above defects. In order to obtain a more intuitive and accurate result of extracting the edge contour of the original target image object, we replace the Gaussian filter in the unweighted initialized level set with a bilateral filter to complete the improvement of the unweighted initialized level set model.

The total energy function of the Li model is defined in Eq (13) [25]: (13)

In Eq (13), (μ > 0) is the constraint strength constant that controls the penalty energy term on the level set function ϕ and determines the degree of approximation to ϕ its symbolic distance function. Eg,λ,v(ϕ) is the external energy term that controls the evolutionary motion of the edge profile curve of the original target image object and is defined in the form of Eq (14): (14)

In Eq (14), λ(λ > 0) and v are constants, Lg(ϕ) and Ag(ϕ) are defined as defined as Eqs (15) and (16) respectively: (15) (16)

In Eq (15), δ(ϕ) is the Dirac function and H(−ϕ) is the Heaviside function in Eq (16), and g is the edge guide function.

The form of the edge guidance function g before and after the improvement of the Li model is given in Eqs (17) and (18) respectively: (17)

In Eq (17), Gσ is a Gaussian kernel function with standard deviation σ,”*” denotes the convolution, and I denotes the image intensity at that pixel point.

(18)

In Eq (18), 1/Wp is the normalization factor, is a spatial domain kernel function, σs is used to filter the pixel space neighborhood size; is the range-domain kernel function, σr controls the extent to which the adjacent pixel weights are reduced due to intensity;”*”denotes the convolution, and I denotes the image intensity at that pixel point.

This paper proposes an improved model of the Li model, using a bilateral filter to replace the contribution of the Gaussian filter in the smoothing phase of the model image, a rather important step in the overall image segmentation process. In this process, the extraction of the edge contours of the selected original target image objects is mainly performed by constantly balancing the spatial domain weights and the weights of the pixel range weight domain.

4. Experimental simulation and analysis of results

4.1 Data source selection

In this paper, the accuracy and validity of the algorithm is verified by using experimental simulations for both the traditional unweighted initialized level set [25] and the improved unweighted initialized level set models.

In order to validate the effectiveness of the improved model without re-initialization level set, the results of image segmentation of the traditional model without re-initialization level set and the improved model without re-initialization level set proposed in this paper are discussed by using several sets of original target image data sources. The superiority and shortcomings of the proposed improved model image segmentation method are analyzed in depth through the extraction effect, time consumption and peak signal-to-noise ratio of the object edge contours of the original target image in the above two model segmentation results. The original standard target image used for the experimental simulation is shown in Fig 1 (The experimental images in Fig 1 are public picture data from Matlab software itself, which usually are located in C:\Program Files\MATLAB\R2018b\toolbox\images\imdata).

thumbnail
Fig 1. Experimental image.

(a) Cells. (b) Coins. (c) Rugby. (d) Microbial Data Sources. (e) Lighthouse Data Sources. (f) Tire Data Sources.

https://doi.org/10.1371/journal.pone.0282909.g001

4.2 Analysis of simulation results

In order to make a more objective analysis of the experimental results of the model simulation without re-initialization level set before and after the improvement, the original target image object edge contour extraction results during the experimental simulation are compared by using the number of iterations n of 50,100,150,200 and 250 before and after the improvement. In general, the default first row is the experimental simulation image of the model before improvement, and the second row is the experimental simulation image of the model after improvement. In order to quantify and evaluate the improved no-weight initialization level set model more objectively, this paper quantifies the effectiveness of the improved no-weight initialization level set model in three dimensions: the time duration of the smoothing and noise reduction stage of the original target image, the edge contour extraction stage, and the signal-to-noise ratio of the object edge contour extraction map of the original target image obtained from the improved before and after model when the number of iterations reaches 250. The validity of the improved non re-initialization level set model was verified.

(1) Cellular data source simulation.

A comparison of the simulation experiments of the without re-initialization level set model before and after the improvement of the cellular data source images is shown in Fig 2:

thumbnail
Fig 2. Comparison of cell edge extraction results by the model before and after improvement.

https://doi.org/10.1371/journal.pone.0282909.g002

According to the analysis of the cell data source edge contour extraction process by the improved before and after no re-initialization level set model shown in Fig 2, it can be seen that: when the number of iterations n = 50, there is no significant difference in the cell edge contour extraction effect between the improved before and after model; when the number of iterations n increases to 100, the improved before model has a certain degree of extraction of the four corners of the cell edge contour, and the improved after model has a somewhat inferior extraction effect on the lower left corner of the cell object edge contour; when the number of iterations n reached 150, the former model had a relatively complete extraction of the cell edge contour as a whole, and the improved model had a closer extraction of the cell edge contour as a whole, especially the left part; when the number of iterations a reached 200, the former model had a more complete extraction of the left side of the cell edge contour, but the post-model produced some over-segmentation of the cell edge contour; when the number of iterations n reached 250, the pre-model increased the over-segmentation range of the two cell edge contours without segmenting the edge contour of the two cell objects, and the post-model extracted a more complete edge contour of both cells.

The Table 1 provides more convincing data support for the further analysis of the improved model in this paper by counting the objective quantitative indexes of the no re-initialized model before and after the improvement. By calculating the peak signal-to-noise ratio for the selected regions {[5:145], [145:160]} of the cell edge contour extraction maps before and after the improvement, it can be seen that the peak signal-to-noise ratio of the improved model is higher than that of the pre-improved model by 0.031, thus verifying that the original target noise reduction effect of the improved model is better than that of the pre-improved model. The improved model only has good noise reduction effect on Gaussian noise in the noise reduction stage, so the noise reduction time of the improved model is lower than that of the improved model by 0.8709s. The time of the edge extraction stage of the improved model is less than that of the improved model by 0.102s, and the total time is higher than that of the improved model by 0.7689s. Combined with the overall analysis of Fig 2 and Table 1, the improved model has good extraction of cell edge contours, and good noise reduction for the original cell data source images; further optimization and improvement are needed in the noise reduction time phase. Graphical visual representation of Table 1 is showed in Fig 3.

thumbnail
Table 1. Quantitative metrics for weightless initialization models before and after cellular data source improvement.

https://doi.org/10.1371/journal.pone.0282909.t001

(2) Coin data source simulation.

A comparison of the original target image improvement method for coin data sources with the traditional no re-initialization level set model simulation experiments is shown in Fig 4:

thumbnail
Fig 4. Comparison of edge extraction results of coin data source images before and after the improved model.

https://doi.org/10.1371/journal.pone.0282909.g004

Fig 4 compare the coin edge contour maps before and after the improvement for the coin data source at the number of iterations n = 50, 100, 150, 200 and 250 respectively. A visual observation and analysis of the first, second, third and fourth groups of Fig 4 shows that there is not much difference in the coin edge contour extraction of the models before and after the improvement. When the number of the iterations is n = 250, the pre-model only extracts one coin edge contour in the upper right corner completely, and the other three coin edge contours are not segmented; while the post-model has basically segmented the four coin edge contours completely and obtained the contour extraction results that are closer to the real edges of the four coins.

The Table 2 provides statistics on the time consumed by the coin data source for noise reduction, edge extraction and the total duration of the model before and after the improvement. The improved model also has a certain degree of effect on the noise other than Gaussian noise in the original target image, so the time duration of the improved model in the noise reduction stage is higher than that of the pre-improvement model by 0.8334s; the time duration of the edge extraction stage is lower than that of the pre-improvement model by 0.061s. Overall, the time duration of the edge contour extraction of the coin source by the improved model is higher than that of the pre-improvement model by 0.7724s. Using the original coin source data map as the reference map, the regions of {[20:100],[40:100]} were selected, and the peak signal-to-noise ratio was calculated by selecting regions of equal size for the coin edge contour extraction maps of the improved before and after model, and the improved model is higher than the improved model by 0.6012, thus the image noise reduction results of the improved model are verified. Graphical visual representation of Table 2 is showed in Fig 5.

thumbnail
Table 2. Quantitative metrics for no re-initialization models before and after improvement to the coin data source.

https://doi.org/10.1371/journal.pone.0282909.t002

(3) Rugby data source simulation.

A comparison of the experimental results of the simulation of the no re-initialization level set model before and after the improvement of the original target images of the rugby ball data source is shown in Fig 6:

thumbnail
Fig 6. Comparison of edge extraction results rugby data source images by the improved before and after model.

https://doi.org/10.1371/journal.pone.0282909.g006

Rugby ball data source at the number of iterations n = 50 and 100 in Fig 6, respectively, the model before and after the improvement is slightly different in the broad object edge contour range extraction. When the number of iterations n = 150, the improved model in the third set of simulated images is significantly less effective than the improved model in extracting contours to the left of the top of the rugby ball. When the number of iterations n = 200, the improved model achieved significantly better edge contour extraction results on the fourth set of simulated experimental images, especially when the position on the right slice of the rugby ball was basically close to the rugby ball edge contour of the original target image. When the number of iterations n = 250, the improved model showed over-segmentation on the left bottom of the rugby ball in the fifth group of experimental simulations, but still achieved good edge extraction results overall; the improved model successfully avoided the over-segmentation phenomenon of the improved model, and the edge contour extraction on the left side of the rugby ball deviated seriously from the real edge of the rugby ball in the original target image.

The objective quantitative indicators of the rugby ball data source in the before and after improvement model without re-initialization are counted and presented in the Table 3. The original target image of the rugby ball was used as the reference image for the rugby ball edge result extraction maps of the before and after improvement model, and the peak signal-to-noise ratio was calculated for the reference, before and after improvement model edge contour extraction maps according to the principle of equal scale selection. According to the comparison of the peak ratios of image regions with selected regions {[20:80],[20:60]} provided in the Table 3, it is found that the peak signal-to-noise ratio of the edge contour extraction map of the improved model is higher than that of the improved model by 1.3368s, which validates the effectiveness of the improved model in the smoothing and noise reduction stage. The comparison of the noise reduction, edge extraction and total time of the improved model showed that the time of the target image processed by the improved model in the noise reduction stage was slightly lower than that of the improved model by 0.016s; the time of the noise reduction stage was higher than that of the improved model by 1.698s, and the total time was higher than that of the improved model by 1.3208s. The time consumed by the improved model in the smoothing and noise reduction phase of the original target image needs to be further optimized. Graphical visual representation of Table 3 is showed in Fig 7.

thumbnail
Table 3. Quantitative metrics of the without re-initialization model before and after the improvement of the rugby data source.

https://doi.org/10.1371/journal.pone.0282909.t003

(4) Simulation of microbial data sources.

A comparison of experimental simulations of the non-re-initialized level set model before and after improvement of the microbial data source images is shown in Fig 8:

thumbnail
Fig 8. Comparison of microbial edge extraction results from the model before and after improvement.

https://doi.org/10.1371/journal.pone.0282909.g008

Fig 8 shows the stage by stage process of object edge contour extraction from microbial data source, comparing the extraction results of before and after the improved model, which can verify the effectiveness of the improved model object edge contour extraction more intuitively. According to Fig 8, the difference between the before and after model is very small when the number of iterations n = 50, 100 and 150; when the number of iterations n = 200, the improved model has a further extraction effect for the middle two objects compared with the before model; when the number of iterations n = 220, the improved model has a relatively complete extraction result for each object edge contour. For n = 220 iterations, the improved model has a more complete extraction result for each object’s edge contour, while the former model has not yet segmented the middle two objects’ edge contours.

The Table 4 provides convincing data support for the improved model in this paper by analyzing the four dimensions of noise reduction, edge extraction, total time and peak signal-to-noise ratio of selected regions before and after the improved model. The improved model takes 1.1170s longer than the pre-improvement model in the noise reduction stage because it takes into account the spatial and range domains of the original target image pixels, the edge extraction time is 0.242s less than the pre-improvement model; the total time is still 0.875s longer than the pre-improvement model. From the selected regions {[1:105],[1:115]} for peak signal-to-noise ratio comparison, the peak signal-to-noise ratio of the improved model was higher than that of the pre-model by 0.3943. Combined with Fig 8 and Table 4, the improved model was more effective in extracting microbial edge contours and had good noise reduction effect on the original microbial data source images. Graphical visual representation of Table 4 is showed in Fig 9.

thumbnail
Table 4. Quantitative metrics for non-reinitialized models before and after microbial data source improvement.

https://doi.org/10.1371/journal.pone.0282909.t004

(5) Lighthouse data source simulation.

A comparison of the original target image improvement method for the lighthouse data source with the traditional no re-initialization level set model simulation experiments is shown in Fig 10:

thumbnail
Fig 10. Comparison of the edge extraction results of the lighthouse data source images before and after the improved model.

https://doi.org/10.1371/journal.pone.0282909.g010

Fig 10 shows the extraction results of the outer edge of the lighthouse and the surrounding houses for n = 150,250,350,450 and 550 iterations of the lighthouse data source. By comparing the first three sets of Fig 10, it can be seen that the before and after model slightly inferior to the improved model in terms of the extraction results of the object edges. When the number of iterations n = 450, the right lower part of the lighthouse in the improved model has obvious distortion; When the number of iterations n = 550, the improved model has extracted the outer edge contour of the lighthouse and the surrounding houses more completely, and the edge contour extraction result of the improved model deviates from the real edge of the object seriously.

The Table 5 provides statistics on the time consumed by the model before and after the improvement in noise reduction, edge extraction and total duration of the lighthouse data source. The improved model also has a certain degree of smooth noise reduction effect on other noises except Gaussian noise, so the time duration of the noise reduction stage of the improved model is higher than that of the pre-improved model by 1.3385s. The time duration of the edge extraction stage is lower than that of the pre-improved model by 0.979s. Overall, the time duration of the edge contour extraction of the lighthouse data source image of the improved model is higher than that of the pre-improved model by 0.3595s. With the original lighthouse source data image as the reference, the {[1:165],[150:185]} area is selected, and the peak signal-to-noise ratio is calculated for the same size area selected for the lighthouse and the outer edge contour extraction map of the surrounding houses of the model before and after the improvement, and the improved model is higher than the model before the improvement by 1.6572. Graphical visual representation of Table 5 is showed in Fig 11.

thumbnail
Table 5. Quantitative metrics of the no-weight initialization model before and after the improvement of the lighthouse data source.

https://doi.org/10.1371/journal.pone.0282909.t005

(6) Tire data source simulation.

A comparison of the experimental results of the simulation of the no re-initialization level set model before and after the improvement of the original target images of the type data source is shown in Fig 12:

thumbnail
Fig 12. Comparison of the edge extraction results of the lighthouse data source images by the model before and after improvement.

https://doi.org/10.1371/journal.pone.0282909.g012

Fig 12 compares the tire inner edge contour extraction results before and after the improvement for the tire data source at the number of iterations n = 150, 250, 350, 450 and 550. The visual analysis and observation of the first four groups in Fig 12 show that there is no significant difference in the inner edge profile extraction of tires between the before and after model. When the number of iterations is n = 550, the inner lower right corner edge of the tire is not completely extracted by the improved model; the improved model obtains the real edge extraction results closer to the inner side of the tire.

Table 6 quantifies the edge contour extraction results of the improved before and after model in four dimensions: noise reduction, edge extraction, total time, and peak signal-to-noise ratio of the selected region. In the three dimensions of noise reduction, total time, and peak signal-to-noise ratio of selected region, the improved model is higher than the pre-model by 1.082s, 0.697s, and 0.1398, respectively; the time spent in the edge extraction stage is higher than that of the post-model by 0.385s. Combined with Fig 12 and Table 6, the effectiveness of the algorithm of the improved model is verified. Graphical visual representation of Table 6 is showed in Fig 13.

thumbnail
Table 6. Quantitative indicators of the weightless initialization model before and after improvement of the tire data source.

https://doi.org/10.1371/journal.pone.0282909.t006

The experimental simulation results show that the improved weightless initialized level set model algorithm proposed in this paper effectively improves the ambiguity of the traditional weightless initialized level set model for the original target image object edges and the overall noise reduction, and from the perspective that the time spent on the extraction efficiency of the original target image object edge contours is less than that of the traditional weightless initialized level set model before the improvement, the accuracy and effectiveness of the improved weightless initialized level set model algorithm proposed in this paper are confirmed.

5. Conclusion

Aiming at the current situation that the traditional weightless initialized level set model is not ideal for extracting edge contours in a given original target image object, this paper proposes an improved algorithm of weightless initialized level set model based on bilateral filters, taking the classical weightless initialized level set as the entry point of the study. The improved weightless initialized level set is obtained by replacing the Gaussian filter in the image smoothing and noise reduction stage. The improved weightless initialized level set model effectively considers the pixel values between the contour points of the object edges of the original target image in the noise reduction processing stage of the original target image, so that the information of the spatial proximity weight domain and the pixel gray value weight domain values of the current evolving points are considered comprehensively. In this paper, the original target image object edge contours are effectively extracted by the introduction of bilateral filters in combination with the traditional weightless initialized level set model algorithm proposed by Li model et al. In addition, a comparison of the runtime of the traditional unweighted initialized level set model and the improved unweighted initialized level set model is carried out in stages of experimental simulation. Comparing the experimental results of image data sources of the improved model before and after the improvement, we can see that the improved model obtains clearer target images after smoothing and noise reduction of the original target images; at the same time, the improved model extracts the selected object edge contours more closely to the real edges of the objects.

Through the objective quantitative evaluation of the object edge contour target images before and after the improvement, it is easy to find that the improved model still needs further optimization and improvement. The time duration of the smoothing and noise reduction stage of the no-weight initialization level set model before and after the improvement is higher than that of the no-weight initialization level set model before the improvement, and it is necessary to further explore how to improve the smoothing and noise reduction time of the improved model without affecting the smoothing and noise reduction effect of the original target image in the subsequent research.

Acknowledgments

The authors would like to thank the basic research program (natural science) project supported by department of science and technology of Guizhou province (Contract no: QianKeHe foundation-ZK [2023] general 031). The authors would like to thank the project supported by Science and Technology Program of the Guizhou Provincial Science and Technology Agency (Contract number:QianKeHeBasic[2020]1Y156). The authors would like to thank Guizhou Key Laboratory of Big Data Statistical Analysis (No.[2019]5103). The funders had active role in study design, data collection and analysis, decision to publish, and preparation of the manuscript.

References

  1. 1. Cai Qing. Research on image segmentation and target tracking algorithm based on level set theory[D]. xi’an: Northwestern Polytechnic University, 2019.
  2. 2. Ma Chao. Research on 3D segmentation of medical magnetic resonance image body data [D]. Harbin: Harbin Institute of Technology, 2019.
  3. 3. Wu Di. Research on typical target detection methods for optical remote sensing images [D]. Harbin: Harbin Institute of Technology, 2019.
  4. 4. Zhao X., Li Y., Zhao Q. Mahalanobis distance based on fuzzy clustering algorithm for image segmentation[J]. Digital Signal Processing, 2015, 43(1): 8–16.
  5. 5. Yanwen Sun. Research on medical image segmentation method based on active contour model [D]. Weihai: Shandong University, 2018.
  6. 6. Tang Wei, He Fazhi, Liu Yu. YDTR: Infrared and Visible Image Fusion via Y-shape Dynamic Transformer[J]. IEEE Transactions on Multimedia, 2022, 1–16.
  7. 7. Wei Tang; Fazhi He; Yu Liu, et al. MATR: Multimodal Medical Image Fusion via Multiscale Adaptive Transformer[J]. IEEE Transactions on Image Processing,2022, 31: 5134–5149. pmid:35901003
  8. 8. Michal Bembenek, Teodor Mandziy, Iryna Ivasenko, et al. Multiclass Level-Set Segmentation of Rust and Coating Damages in Images of Metal Structures[J]. SENSORS, 2022, 22(19). pmid:36236705
  9. 9. Abdelkader Birane, Latifa Hamami. A fast level set image segmentation driven by a new region descriptor[J]. IET Image Processing, 2021,15(3):615–623.
  10. 10. Shamsi Koshki Asma, Ahmadzadeh M.R., Zekri M. A level-set method for inhomogeneous image segmentation with application to breast thermography images[J]. IET Image Processing, 2021, 15(7): 1439–1458.
  11. 11. Guirong Weng, Bin Dong, Yu Lei. A level set method based on additive bias correction for image segmentation [J]. Expert Systems with Applications, 2021,185.
  12. 12. Jyoti Arora, Meena Tushir. Intuitionistic level set segmentation for medical image segmentation[J]. Recent Advances in Computer Science and Communications, 2020,13(5):1039–1046.
  13. 13. Noor Badshah, Ali Ahmad, Fazli Rehman. Variational level set image segmentation model coupled with kernel distance function[J]. Journal of Algorithms and Computational Technology, 2020, 14.
  14. 14. Chen H, Yu X. S., Wu C. D., Sun P. Fast image segmentation algorithm for parametric level set active contour model [J]. Journal of Northeastern University (Natural Science Edition). 2019, 40 (01):6–10.
  15. 15. Hsieh Chi-Wen, Chen Chih-Yen. An adaptive level set method for improving image segmentation[J].Multimedia Tools and Applications, 2018, 77(15): 20087–20102.
  16. 16. Fitsum Mesadi, Mujdat Cetin, Tolga Tasdizen. Disjunctive Normal Parametric Level Setwith Application to Image Segmentation[J]. IEEE Transactions on Image Processing,2017,26(6): 2618–2631. pmid:28320665
  17. 17. Jiang Xiaoliang. Research on image segmentation based on fuzzy clustering and active contour model [D]. Chengdu: PhD thesis, Southwest Jiaotong University, 2016.
  18. 18. Osher S, Sethian J A. Fronts propagating with curvature dependent speed: algorithmsbased on hamilton-jacobi formulations[J]. Journal of Computational Physics, 1988, 79(2): 12–49.
  19. 19. Lu Meng. Research on the key technology of medical image segmentation based on active contour model [D]. Shenyang: Northeastern University, 2010.
  20. 20. Reza Aghayan. Numerical joint invariant level set formulation with unique image segmentation result [J]. Machine Vision and Applications, 2021,32 (1).
  21. 21. Liu Yang. Research on variational and discrete variational level set image segmentation models [D]. Chongqing: Chongqing University, 2018.
  22. 22. Gu YL, Yi XM. A weighted adaptive image segmentation model based on wavelet transform [J]. Journal of Graphology. 2020, 41 (05):733–739.
  23. 23. Tang L. M., Wang H. k., Chen Z. F., Huang D. R. Image fuzzy clustering segmentationbased on variational level sets [J]. Journal of Software. 2014, 25 (07):1570–1582.
  24. 24. Huang Guopeng. Research and application of level set-based image segmentation algorithm [D]. Xi’an: Xi’an University of Electronic Science and Technology, 2019.
  25. 25. Li C M, Xu C Y, Gui C, et al. Level set evolution without re-initialization: a new variational formulation[C]. Proceedings of IEEE Conference on Computer Vision and Pattern Recognition. San Diego, 2005:430–436.