Abstract
Active contour model (ACM) is considered as one of the most frequently employed models in image segmentation due to its effectiveness and efficiency. However, the segmentation results of images with intensity non-uniformity processed by the majority of existing ACMs are possibly inaccurate or even wrong in the forms of edge leakage, long convergence time and poor robustness. In addition, they usually become unstable with the existence of different initial contours and unevenly distributed intensity. To better solve these problems and improve segmentation results, this paper puts forward an ACM approach using adaptive local pre-fitting energy (ALPF) for image segmentation with intensity non-uniformity. Firstly, the pre-fitting functions generate fitted images inside and outside contour line ahead of iteration, which significantly reduces convergence time of level set function. Next, an adaptive regularization function is designed to normalize the energy range of data-driven term, which improves robustness and stability to different initial contours and intensity non-uniformity. Lastly, an improved length constraint term is utilized to continuously smooth and shorten zero level set, which reduces the chance of edge leakage and filters out irrelevant background noise. In contrast with newly constructed ACMs, ALPF model not only improves segmentation accuracy (Intersection over union(IOU)), but also significantly reduces computation cost (CPU operating time T), while handling three types of images. Experiments also indicate that it is not only more robust to different initial contours as well as different noise, but also more competent to process images with intensity non-uniformity.
Introduction
Image segmentation technology is significantly important in different kinds of applications for example object recognition [1], medical image processing [2], etc., which separates an input image into multiple areas that never intersect with different characteristics.
Active contour models (ACMs) are most frequently used methods in image segmentation. The fundamental idea of ACM is to evolve an initial curve towards the boundary of the desired target based on energy minimization method through partial derivative, which can generate an enclosed and smooth final contour that locates the desired object position. The existing ACMs are roughly composed of edge-based models, region-based models. The idea of edge-based models such as the Geodesic active contour (GAC) model in [3] used edge indicator function to instruct the evolution curve to evolve towards the edges of targets, which can segment target edges with clear gradient information. However, it cannot handle targets with unclear or discrete boundaries. In addition, the idea of region-based models was to use specific area descriptor to locate a partition on the image region, which is capable of segmenting targets with blurry or discontinuous boundaries. Nevertheless, it is not competent to handle images with intensity non-uniformity due to the hypothesis that the image intensities are statistically uniform.
To address the problem of intensity non-uniformity, a piecewise smooth (PS) model in [4] could segment images with intensity uniformities to some degree. However, it is inefficient due to complicated calculation process and complex parameter settings. See [5] for a detailed overview of ACM. Classic level set approaches in [6, 7], the level set function must be re-initialized to control its gradient, which prevents it becoming too flat or too steep. However, this reinitialization process is too time-consuming in practice. The concept of a signed distance regularization function in distance regularized level set evolution (DRLSE) model in [8] and region-scalable fitting (RSF) model in [9] was creatively proposed to solve the problem of reinitialization during evolution process in GAC model, which is a great breakthrough for traditional level set approaches. However, DRLSE and RSF models are all sensitive to different initial contours. In addition, RSF model has complex computation procedure, which causes slow segmentation speed and huge computation cost. Similarly, DRLSE model has unsatisfactory noise resistivity and slow evolution speed.
To eliminate the drawback of slow convergence in RSF model, the local image fitting (LIF) model in [10] collected local image region attribute to process images with intensity non-uniformity, which only has two convolutions in every iteration instead of at least four convolutions required by RSF model. Therefore, this model is much more efficient regarding segmentation speed than that of RSF model. Nevertheless, the issue of being susceptible to initial contours retains unresolved, which means that an improper initial contour may cause a failed segmentation due to the truth that the energy functions of most ACMs are non-convex.
The local and global Jeffreys divergence (LGJD) principle was used in [11] to measure the gap between the fitting function and input image, and drive the zero-level set function to reach the target boundary to complete the segmentation, which further improves system robustness to different initial contours as well as segmentation efficiency. However, this model is not optimal and needs further improvements. The additive bias field correction (ABC) theory was applied in [12] to effectively segment images with non-uniformity, which has strong theoretical derivation, strong system robustness, and low computation cost. Nevertheless, this model cannot effectively process some medical images with severe intensity inhomogeneity [13]. The pre-fitting bias correction (PBC) model in [14] utilized an optimized FCM algorithm to pre-calculate bias field before iteration, which can effectively segment images with unevenly distributed intensity and greatly reduces segmentation time. However, the segmentation accuracy and efficiency may be inversely affected if the FCM algorithm has bad clustering performance.
The main motivation of this paper: the traditional ACMs are often sensitive to images with noise interference and intensity non-uniformity, and their segmentation efficiency and accuracy still have space to be further improved. To solve the issues mentioned above, the authors propose an ACM driven by ALPF energy for image segmentation with intensity non-uniformity, which not only effectively segments images with noise as well as intensity non-uniformity, but also achieves high segmentation speed and accuracy. The research gaps between traditional ACMs and proposed ALPF model: the traditional ACMs such as RSF, LIF models utilize two fitting functions to update fitted images inside and outside contour line through Gaussian convolution operations during each iteration, which results in long evolution time of level set function and slow convergence speed. The proposed ALPF model employs two pre-fitting functions to generate pre-fitted images once before iteration, which makes it independent of level set evolution and significantly levels up convergence speed. To be specific, the objectives of the proposed ALPF model: the authors formulate two pre-fitting functions that are pre-calculated before iteration to decrease computation cost and improve segmentation efficiency and accuracy. In addition, the authors construct an adaptive regularization function to normalize the optimized data-driven term to improve system’s robustness while segmenting images with various initial contours, different noise and uneven intensity. Then, an activation function is defined to regularize level set function to keep its sign property, which serves as distance regularized term. Lastly, this activation function is combined with mean filtering to smooth eventual contour and remove redundant non-edge curves, which acts as length constraint term.
The contributions of this paper are enumerated as The pre-fitting functions calculated before iteration are proposed to generate fitted images, which reduces a huge amount of operating time and improves segmentation efficiency. An adaptive regularization function and the image standard deviation constitute an improved gradient flow, which regularizes the range of data-driven term and improves segmentation precision. An activation function combined with mean filtering constructs an improved length constraint term, which smooths final zero level set and removes irrelevant curves from non-edge regions. The pre-trained YOLOv5 network can be employed as a pre-processing to automatically initialize initial contours, which eliminates manually designed initial contours.
The proposed ACM
This section introduces local pre-fitting functions, model of adaptive local pre-fitting function, normalization of level set function, and implementation process at length respectively.
Local pre-fitting functions
Let I (
Note that Ω
Note that f
med
(
To illustrate the local sub-regions and results of pre-fitting functions, a square green box centered at a pixel point

Illustration of regions Ω, Ωx, Ω
l
, and Ω
s
. In the left half of the figure, the region Ω represents the entire image area. In the right half of the figure, the region enclosed by square green box denotes Ωx with center pixel point

Illustration of eventual pre-fitted images c l and c s .
To be specific, the calculation process of the local pre-fitting functions c
l
and c
s
is concluded as follows: firstly, an image local area Ωx at center point
Based on final pre-fitted images c l and c s in Fig. 2, a local pre-fitting energy (LPFE) is constructed as
After initialization, the sign of level set function φ becomes negative if the pixel point
In Equation (4), the improved Heaviside and Dirac functions H ɛ (x) and δ ɛ (x) [15] are described as
In practice, H ɛ (x) in Equation (6) is considered as an affiliation function to differentiate the inner and outer parts of the contour line C. Specifically, H ɛ (x) represents the part outside the contour line while (1 - H ɛ (x)) represents the part inside the contour line. Note that δ ɛ (x) is the improved Dirac function, which is the derivative of H ɛ (x) and used in following gradient descent method to find out the minimum energy.
Approach of gradient descent [16] is utilized to minimize the LPFE energy in Equation (4), which obtains gradient flow equation as
Because of the variety of image genres, the image contrast varies significantly. The values of optimized data driven item e in Equation (8) may vary hugely, which possibly increases the difficulty of subsequent experiments. Meanwhile, the sensitivity of data-driven term e in the zero-crossing region has to be improved.
To solve the issues mentioned above, an adaptive function erf (
In Equation (9), the regularized data-driven term is defined as ex = erf (e/τ). Note that α · erf (e/τ) is computed before iteration, and independent of it. Therefore, ALPF model further reduces the computing cost greatly by only updating δ
ɛ (φ (
In addition, τ is the standard deviation value of the input image, which reflects the degree of dispersion of the input image; parameter α denotes a signed energy coefficient calibrating the running speed and direction of evolution curve by changing its magnitude and sign properly to eliminate issues of under-segmentation as well as over-segmentation as much as possible. For the application of double-phase images, α = -1, if the object of interest is the white part; α = 1, if the object of interest is the black part. In addition, if the input image has low contrast but complete edge, the energy ratio α shall be leveled up to accelerate the evolution speed, which prevents under-segmentation; if the input image has high contrast but incomplete edge, the energy coefficient α shall be reduced to decelerate the evolution speed, which prevents over-segmentation.
Normalization of level set function
Dislike classic ACMs, ALPF energy rules out the distance regularized part and length restraint part. However, φ (
In order to make up for those flaws, firstly, an activation function softsign (
Hence, the evolution equation of φ (
where Ak×k is mean filter function with window size k × k, and k is an positive odd number greater than one. Ak×k averages all the pixels in this template, and then the original pixel value is replaced with this average value. softsign (6 · φ (
Unless otherwise stated, the parameters are initialized: α = 2, k = 8, w = 8. At length, the quantity of α will be enlarged to accelerate iteration if intensity is low; the quantity of k will be increased properly to filter out useless pixels if images contain complicated background noise; the quantity of w will be enhanced properly to include big targets with clear edges. Additionally, constant parameters are fixed: Δt = 1, ɛ = 1. The specific implementation process of ALPF model is stated in Algorithm 1. Note that it is implemented in Matlab 2022a on an AMD Ryzen 7 6800H 3.5 GHz laptop. For the tagging of segmentation outcomes, the green contours signify initial contours, the red contours denote final results, and the cyanic contours represent the whole iteration. Note that all natural images are form well-known Berkeley segmentation dataset 500 (BSDS500), which can be downloaded from website https://www2.eecs.berkeley.edu/Research/Projects/CS/vision/bsds/. The steel plate images are referred to website https://www.kaggle.com/c/severstal-steel-defect-detection. The Magnetic Resonance Imaging (MRI) images can be downloaded from the dataset (https://www.kaggle.com/datasets/jakeshbohaju/brain-tumor).
Experimental verification
This section states experimental outcomes of several experiments of ALPF model including verification experiment, anti-noise experiment, robustness experiment, and companion with newly constructed ACMs in terms of natural, steel plate, and MRI images.
Validation experiment of ALPF model
To verify the validity of ALPF model, 2 images are processed by using reference variables to illustrate segmentation effects and iterative procedures, which are demonstrated in Fig. 3. The green curves in the 1st column are initial contours, the red curves from the 2nd to 4th columns are segmentation outcomes at specific iterations, and the bluish curves in the 5th column are the whole iterative procedures. In Fig. 3, the initial level set can be continuously smoothed to achieve eventual zero level set.

Validation of ALPF model. The 1st column states initial contours, the 2nd column represents segmentation result at iteration number N = 3, the 3rd column describes segmentation result at iteration number N = 10, the 4th column illustrates final result, and the 5th column represents the entire iterative process.
To test the anti-noise ability of ALPF model, 6 different images with manually added Gaussian noise (fixed mean m = 0, and the variance of it can be changed) are processed. Because the targets in the last two images (e-f) are bigger than that of the first four images (a-d), the authors properly increase the value of window size w to entirely cover the larger target to obtain more target details. To be specific, the authors firstly employ the default parameter setting α = 2, k = 8, w = 8 to segment the first four images (a-d) in Fig. 4, which turns out that the value of window size w is too small to cover the whole objects in images (a-d). Then, the authors slightly increase the value of parameter w from 7 to 9, which successfully segment the first four images (a-d). Lastly, it can be observed that the objects in the last two images (e-f) are larger than that of the first four images (a-d). Therefore, the authors properly increase the value of parameter w from 9 to 12 to entirely cover larger objects in the last two images (e-f) after several attempts. Therefore, the parameter setting of the first four images (a-d) are α = 2, k = 8, w = 9, and the parameter setting of the last two images (e-f) are α = 2, k = 8, w = 12. The experimental outcomes are exhibited in Fig. 4, which signifies that ALPF model is able to process images with Gaussian noise within a certain range.

Anti-noise experiment. The 1st row is the original images, and the 2nd row is results of images with Gaussian noise.
At length, the utmost Gaussian noise in percentage on images (a, c) is 2%, the utmost Gaussian noise in percentage on image (b) is 3%, the utmost Gaussian noise in percentage on image (d) is 2.5%, the utmost Gaussian noise in percentage on image (e) is 3%, and the utmost Gaussian noise in percentage on image (f) is 2.5%. In addition, if the Gaussian noise in percentage is beyond limitation, wrong segmentation may appear in the form of cracked curves.
In addition, Speckle, Salt&Pepper, Poisson noises are also added to 3 images in Fig. 5. Note that Speckle and Salt&Pepper noise variances in percentage for all 3 images in Fig. 5 are 3%, 35% respectively. In this figure, it is further proved that ALPF model is robust enough to resist different kinds of externally added noises including Gaussian, Speckle, Salt&Pepper, Poisson within limit.

Anti-noise experiment. The 1st column is the segmentation results with zero noise, and the 2nd to 4th columns are segmentation results of images with Speckle, Salt&Pepper, Poisson noises.
To further detect the robustness of ALPF model to different initial contours, 4 different images are processed, which are described in Fig. 6. From the 1st row to 3rd row in this figure, the ALPF model is able to fully segment images with excellent accuracy wherever initial contours are assigned, which indicates ALPF model has a strong robustness to different initial contours. In addition, from the 4th row in Fig. 6, it has been further confirmed that ALPF model remains insensitive to different initial contours, which can effectively process the entire multi-object image when the initial contours are placed in each sub-object with different dimensions and shapes respectively.

Robustness experiment to different initial contours. In each set of images, the left one is segmentation result with initial contour, the right one is the entire iterative process respectively.
Perform the first comparison experiment to compare segmentation outcomes between ALPF model with 4 recently constructed ACMs (LPF&FCM [17], PBC [14] LGJD [11] ABC [12]) on 12 natural images (1-12) under same initial contours respectively. The visualized segmentation outcomes are illustrated in Fig. 7. In this figure, all images segmented by the proposed ALPF model are fully segmented with high accuracy while images segmented by other 4 models are possibly under-segmentation or over-segmentation, which means that ALPF model maintains its stable evolution to obtain fair segmentation results.

Visual outcomes of the first comparison experiment on images 1-12. The 1st column signifies ground-truth images, the 2nd denotes initial contours, the 3rd to 7th columns are results of LPF&FCM, PBC, LGJD, ABC, and ALPF models respectively.
Numerical analysis of outcomes (the CPU operating time T, and IOU) of the 1st comparison experiment on images 1-12 in Fig. 7
In addition, the numerical segmentation outcomes (the CPU operating time T, intersection over union (IOU)) between above said 4 ACMs and ALPF model are concluded in Table 1, where IOU are defined as
In this table, the CPU operating time T of ALPF model is the least for images (1-7,10-12) with the highest segmentation accuracy (IOU) among all 5 models. Nevertheless, for image (8), though the CPU operating time T of the LGJD model is ranked the first, which is slightly shorter than ALPF model, but the IOU value of it are smaller than that of ALPF model. For image (9), although LPF&FCM model obtains the fastest segmentation speed, its IOU value is much smaller than that of ALPF model. Especially, for images (2,9), the final segmentation results of all other 4 ACMs are severely affected by background noise, which leads to issues of falling into false boundaries and edge leakage. Based on above analysis, ALPF model is more competent to process natural images (1-12) regarding the CPU operating time T, and IOU value than the above-said 4 recently developed ACMs on average.
Conduct the second comparison experiment to compare the segmentation outcomes between ALPF model and 4 recently constructed ACMs (LPF&FCM [17], PBC [14] LGJD [11] ABC [12]) on 12 steel plate images (13-24) under same initial contours respectively. The visualized segmentation outcomes are illustrated in Fig. 8. In this figure, ALPF model obtains clean and sound final contours at target boundaries while other 4 ACMs frequently have issues of broken and random curves, which indicates that ALPF model is more competent to detect defects on steel plates.

Visual outcomes of the second comparison experiment on images 13-24. The 1st column denotes initial contours, the 2nd states ground-truth images, the 3rd to 7th columns are results of LPF&FCM, PBC, LGJD, ABC, and ALPF models respectively.
In addition, the associated numerical segmentation outcomes (the CPU operating time T, IOU) are concluded in Table 2. In this table, the CPU operating time T, IOU of ALPF model are the best for images (13-16,18-24) among all 5 ACMs. For image (17), although the CPU operating time T of PBC model is slightly smaller than that of ALPF model, ALPF model maintains the largest IOU. Particularly, for images (13-15), LPF&FCM, PBC, and LGJD models face with severe issue of falling into false boundaries, which results in much lower IOUs. For images (15,24), ABC model undergoes issue of under-segmentation, which leads to incomplete segmentation. Based on above analysis, ALPF model can process steel plate images with uneven intensity more effectively than the above-said 4 recently developed ACMs on average.
Numerical analysis of outcomes (the CPU operating time T, and IOU) of the 2nd comparison experiment on images 13-24 in Fig. 8.

Visual outcomes of the third contrast experiment on images 25-36. The 1st column denotes initial contours, the 2nd states ground-truth images, the 3rd to 8th are results of RSF&LoG, PBFE, OLPFI, LGJD, ABC, and ALPF models respectively.
Perform the third contrast experiment to contrast the segmentation outcomes between ALPF model with 5 newly constructed ACMs (RSF&LoG [18], PBFE [19], OLPFI [20], LGJD [11], ABC [12]) on 12 Magnetic Resonance Imaging (MRI) images (25-36) under same initial contours respectively. The visualized segmentation outcomes are exhibited in Fig. 8. In this figure, ALPF model generates complete and clean eventual contours. On the contrary, other 5 ACMs have problems of over-segmentation and under-segmentation. Notably, RSF&LoG model cannot effectively process those MRI images (25-36) in the presence of random and redundant curves.
Additionally, the numerical segmentation results (the CPU operating time T, and IOU) are listed in Table 2. In this table, ALPF model achieves the best CPU operating time T and IOU for MRI images (25, 27, 29-32, 34-36). However, for MRI images (26, 28, 33), though OLPFI model remains the least CPU operating time T, its segmentation precision (IOU) is much lower than that of ALPF model respectively. Notably, RSF&LoG and LGJD models cannot effectively all MRI images (25-36) in the forms of falling into false boundaries and long convergence time, which leads to much smaller IOUs and much longer CPU operating time T. Regarding above analysis, compared with above-said 4 newly constructed ACMs, ALPF model exhibits advantages in terms of processing time and precision while segmenting MRI images (25-36) with uneven intensity on average.
This section makes a series of discussions concerning optimization of data-driven term, adaptive normalization function, comparison with different gradient flows, optimization of level set function and length term, automation of initial contours to explain the reason why ALPF model is a better choice to handle images with unevenly distributed intensity. Additionally, the application of ALPF model is introduced at last.
Optimization of data-driven term

Optimization of data-driven term. The most left sub-image is original image, the middle sub-image is segmentation results through original data-driven term e1 - e2, and the most right sub-image is segmentation results through optimized data-driven term e for each image respectively.
To discuss the optimization of data-driven term, 4 images (37-40) are processed to compare segmentation efficiency (CPU operating time T) and accuracy (IOU) between original data-driven term e1 - e2 and optimized one e. In other words, the gradient flow equation ∂φLPFE1/∂t in Equation (7) and ∂φLPFE2/∂t in Equation (8) are applied to segment these 3 images respectively, whose segmentation results are illustrated in Fig. 10. From this figure and Table 3, although the segmentation precision (IOU) of two data-driven terms are identical by segmenting images (37-38), the optimized data-driven term e has less CPU operating time T than that of original one e1 - e2.
Numerical analysis of outcomes (the CPU operating time T, and IOU) of the 3rd comparative experiment on images 25-36 in Fig. 9
Comparison between original data-driven term e1 - e2 and optimized one e in terms of CPU operating time T and IOU in Fig. 10
In addition, from Fig. 10 and Table 3, images (39-41) segmented by e1 - e2 are all under-segmentation while all images (39-41) segmented by e are all fully segmented. Based on above analysis, compared with e1 - e2, the optimized data-driven term e is capable of efficiently segment images with less CPU operating time T while maintaining a higher level of segmentation accuracy (IOU) on average.
Choose 4 images to make their second-order differential attributes, optimized data-driven term e, and regularized data-driven term ex visualized respectively in Fig. 11. In this figure, the second-order differential attributes of these images are listed in the first column. To explain the annotation in this column, the red curve denotes magnitude of optimized data-driven term e for every line, the dotted green line signify magnitude of e in that particular base line. Additionally, the datum above the baseline is positive while the datum under the baseline is negative, which means the intersections between base line and second-order differential attribute curve are the locations of boundary points.

Visualized data-driven terms. The 1st column is the second-order differential attributes, the 2nd column is 3D visualization of the optimized data-driven term e = (2I - (c s + c l )), and the 3rd column is 3D visualization of adaptive regularization function ex = erf (e/τ) for each image.
Additionally, regarding the 2nd column in Fig. 11, the amplitude of ups and downs indicates the uneven distribution of energy driven by optimized data-driven term e, which may cause different segmentation issues such as under-segmentation, slow segmentation, and unstable evolution process. Hence, the adaptive regularization function erf (
The gradient flow function ∂φLPFE2/∂t in Equation (8) contains unstable data-driven term e, which may bring about wrong segmentation results during curve evolution. Hence, an adaptive regularzaiton function erf (

Segmentation outcomes under different gradient flow functions. The 1st column signifies original image, the 2nd column represents 2-D visualization of data-driven terms e = (2I - (c s + c l )) and ex = erf (e/τ), the 3rd column illustrates 3-D mesh plots of data-driven terms e and ex, and the last column denotes final segmentation results segmented by gradient flow functions ∂φLPFE2/∂t and ∂φ ALPF /∂t respectively.
On the one hand, as shown in the 2nd and 3rd columns of Fig. 13, the level set function φ (

Optimization of level set function. The 1st column is original image with initial contour, the 2nd column denotes level set function without the activation function softsign (
On the other hand, the optimized length term φ
A
(

Optimization of length term. For each pair of images, the 1st row describes original images, the 2nd row signifies segmentation results with and without the improved length constraint term, and the 3rd row illustrates associated final level set function with and without the improved length constraint term respectively.
For classic ACMs, the coordinates of initial contours are usually manually initialized, which consumes a great amount of time and improper initial contours may cause wrong segmentation results. To deal with this issue, the You Only Look Once v5 (YOLOv5) is pre-trained to automatically initialize initial contours. To be specific, the prediction frames at the output of YOLOv5 will be utilized as coordinates of initial contours, which realizes automation of initial contours.
In practice, 4 images (42-45) are selected to demonstrate the automation process of initial contours, which is illustrated in Fig. 15. In this figure, for image (42), the subject in it is accurately identified as a person with class probability 99.59% and IOU 0.955. For image (43), the target inside is accurately recognized as an aeroplane with category probability 98.93% and IOU 0.912. For image (44), the object in it is precisely identified as a bench with class probability 98.44% and IOU 0.905. For image (45), the target inside is accurately recognized as a bear with category probability 99.46% and IOU 0.930. Therefore, the pre-trained YOLOv5 network can serve as a pre-processing tool to automatically initialize initial contours, which renders ALPF model more intelligent and accelerates subsequent parameter tuning process.

Combination of the YOLOv5 and ALPF model. The 1st column represents original images, the 2nd column denotes results of YOLOv5, and the 3rd column signifies results of ALPF model.
As above comparison experiments have proven, ALPF model can effectively process images with intensity-non-uniformity such as natural images, steel plate images, and MRI images. Especially, it can accurately identify and segment cracks on defective steel plate image in Fig. 8, which helps manufacturing plant to detect defective products and increase production yield; it can also precisely locate and extract lesions from MRI images in Fig. 9, which assists doctors to develop specific treatment plans.
Note that this model is mainly utilized to process double-phase images, which means this model cannot segment multi-phase images containing black and white targets at the same time such as images in Fig. 16. In the later work, the authors will attempt to employ poly-phase segmentation approach [21] to resolve this issue. Besides, the author will employ theory of machine learning [22] to get rid of manual adjustment of reference variables and achieve automatic optimization and adjustment of parameters.

The application limitation of ALPF model.
This paper puts forward a level set approach in the presence of uneven intensity using adaptive local pre-fitting energy with application to natural, steel plate, and MRI images, which has superiorities listed as follows: (1) Novel pre-fitting equations are designed to be calculated ahead of iteration, which computes fitted images inside and outside the contour line and substantially decreases computation expenditure. (2) An improved gradient flow function is constructed with the combination of an adaptive regularization function and the image standard deviation, which provides a stable evolution environment and improves system performance and robustness to intensity non-uniformity. (3) An improved length constraint term is proposed by combining an activation function with mean filtering, which maintains zero level set smoothed and eliminates unrelated curves. (4) The automation of initial contours is realized through the pre-trained YOLOv5 network, which can be combined with the most optimized parameters to conduct energy minimization.
Acknowledgments
This research paper was invested by National Natural Science Foundation of China under Grant 62103293, Natural Science Foundation of Jiangsu Province under Grant BK20210709, Suzhou Municipal Science and Technology Bureau under Grant SYG202138, and Entrepreneurship and Innovation Plan of Jiangsu Province under Grant JSSCBS20210641.
Footnotes
Appendix
A. Proof of Proposition. 1
The target to be segmented is assumed to be white, and the contour position corresponds to the point I (
(1) The contour line is within the white target, if the point I (
(I (
so - (|I (
so h (2I - (c
s
+ c
l
)) = -2I (
Hence, this point I (
(2) The contour line is within the background, if the point I (
(I (
so - (|I (
so h (2I - (c
s
+ c
l
)) = -2I (
Hence, this point I (
(3) The contour line is within the target transition region, if the point I (
(I (
so - (|I (
so h (2I (
So, the same expression is obtained, Equation (8) is proved to be right for the white target to be segmented.
In addition, Equation (8) also applies to the black segmented target following the same proving process mentioned above, which completes the proof.
