Next Article in Journal
Voxel-Based 3D Object Reconstruction from Single 2D Image Using Variational Autoencoders
Next Article in Special Issue
Enlargement of the Field of View Based on Image Region Prediction Using Thermal Videos
Previous Article in Journal
Multiple-Solution Tasks in Pre-Service Teachers Course on Combinatorics
Previous Article in Special Issue
Style Transformation Method of Stage Background Images by Emotion Words of Lyrics
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Alternative Thresholding Technique for Image Segmentation Based on Cuckoo Search and Generalized Gaussians

by
Jorge Munoz-Minjares
1,
Osbaldo Vite-Chavez
2,
Jorge Flores-Troncoso
2 and
Jorge M. Cruz-Duarte
3,*
1
Department of Electrical Engineering, Universidad Autónoma de Zacatecas “Campus Jalpa”, Libramiento Jalpa Km. 156+380, Zacatecas 99601, Mexico
2
Department of Electrical Engineering, Universidad Autónoma de Zacatecas, Av. Ramón López Velarde 801, Zacatecas 98000, Mexico
3
Tecnologico de Monterrey, School of Engineering and Sciences, Av. Eugenio Garza Sada 2501 Sur, Monterrey 64849, Mexico
*
Author to whom correspondence should be addressed.
Mathematics 2021, 9(18), 2287; https://doi.org/10.3390/math9182287
Submission received: 16 June 2021 / Revised: 12 August 2021 / Accepted: 14 August 2021 / Published: 17 September 2021

Abstract

:
Object segmentation is a widely studied topic in digital image processing, as to it can be used for countless applications in several fields. This process is traditionally achieved by computing an optimal threshold from the image intensity histogram. Several algorithms have been proposed to find this threshold based on different statistical principles. However, the results generated via these algorithms contradict one another due to the many variables that can disturb an image. An accepted strategy to achieve the optimal histogram threshold, to distinguish between the object and the background, is to estimate two data distributions and find their intersection. This work proposes a strategy based on the Cuckoo Search Algorithm (CSA) and the Generalized Gaussian (GG) distribution to assess the optimal threshold. To test this methodology, we carried out several experiments in synthetic and practical scenarios and compared our results against other well-known algorithms from the literature. These practical cases comprise a medical image database and our own generated database. The results in a simulated environment show an evident advantage of the proposed strategy against other algorithms. In a real environment, this ranks among the best algorithms, making it a reliable alternative.

1. Introduction

Despite considerable advances in computer vision, object detection is still an active topic of study [1,2,3,4]. This process is used in many fields, such as biomedical imaging, biometry, video surveillance, vehicle navigation, visual inspection, robot navigation, and remote sensing [1,2,3,4,5], to mention a few. Object identification has been considered an essential task and one of the biggest challenges in image processing [1,2,3,6,7,8]. Several object recognition problems are solved utilizing digital image processing techniques, where segmentation methods are essential procedures [9,10,11,12,13,14]. Hence, optimal image segmentation is a crucial step in image preconditioning for further analysis because it precedes processing stages such as object extraction, parameter measurement, and object recognition [9,15]. Specifically, the thresholding methods are the most widely utilized in image segmentation due to their simplicity and effectiveness [9,11,15,16,17]. In layman’s terms, these methods aim to separate the image foreground from its background by finding a limit or threshold in the image histogram. The challenge is, therefore, finding such a limit.
Many works in the literature have proposed a colorful palette of procedures and metrics to tackle such a challenge [9,10,18,19]. One of the most relevant, which is also considered a traditional technique, is the Otsu algorithm that aims to maximize the difference between the pixels belonging to the left and right sides of the threshold [20]. Other strategies that are worth mentioning are the Minimum Error method [21] and the Maximum Entropy algorithm [22,23,24]. As usual, in the healthy development of computer science procedures, these techniques have disadvantages, so improved versions have appeared. For example, those that enhance the Otsu algorithm performance include e.g., the Valley Emphasis [17,25], Fan-Lei [26] and Xing-Yang methods [27]. These algorithms are suitable when the gray level histogram exhibits an evident bimodal behavior, and the optimal threshold is located at the valley bottom [28]. However, in several image processing works, the thresholds given by different algorithms are considered inaccurate. This is mostly due to the histogram distributions, which represent the background and object, and are not normal or seem to be quasi-unimodal functions [17,25,26,27,29,30].
To solve this inconvenience, an accepted methodology to discriminate the background and object is to estimate the data distributions and compute their intersection [31,32,33,34]. These works present a parametric image histogram threshold method based on an approximation f the statistical parameters of the object and background classes via estimation methods, such as Expectation-Maximization (EM), Particle Swarm Optimization (PSO), and Maximize Likelihood (ML). Even some improvements in these methods were proposed as in [35]. However, these algorithms have some disadvantages, such as slow or premature convergence and high sensibility in terms of the initial conditions. Additionally, these works omitted the near-unimodal histogram testing, which is a challenging task.
This work proposes a threshold algorithm based on a mixture of General Gaussian Distribution (GGD) functions to fit the image histogram. To do this, we implement the Cuckoo Search Algorithm (CSA) as a solver to assess the distribution parameters’ optimal configuration. We carried out several experiments to prove the benefits of using the proposed methodology, and compared the results with those obtained with other thresholding methods from the literature. Furthermore, we implemented the methodology in two practical segmentation problems in a publicly available medical images database and our collection of organic and inorganic products.
The rest of this manuscript is organized as follows. We begin with a brief description of image segmentation and an introduction to the basic concepts employed in this work in Section 2. Section 3 describes the proposed methodology based on the GG function and the metaheuristic solver CSA. The experimental details are explained in Section 4. Subsequently, Section 5 presents and discusses the experiment and the obtained results. Then, Section 6 highlights the most relevant conclusions obtained from the experiments and comments on future work.

2. Theoretical Foundations

This section starts by describing the image segmentation process; then, it overviews the most common thresholding methods, such as the Otsu, Maximum Entropy, and Kittler–Illingworth.

2.1. Image Segmentation

Image segmentation is the process of partitioning a digital image into multiple parts, which are pixel sets, known as image objects [11]. The goal is to represent an image as something more meaningful and straightforward to analyze [9]. For that reason, many researchers define image segmentation as the process of labeling every image pixel according to certain characteristics [9,16]. Several general-purpose image segmentation methods have been developed; the simplest ones are the thresholding strategies [9,11,15,16]. The histogram techniques are incredibly efficient compared to other image segmentation methods because they typically require only one sweep over the image pixels. In these routines, a histogram is computed, employing the intensity values from all pixels, and its landscape (peaks and valleys) serves to locate the possible clusters [17,25].

2.2. Thresholding Methods

These techniques are based on a threshold value to transform a gray-scale image I g Z G M × N into a binary image I B Z 2 M × N . The gray-scale image I g is defined with elements (pixels) I x , y , such as I g I x , y { 0 , , G 1 } , where G is the number of distinct intensities of gray ( 256 ) , and M × N is the size, given by the number of rows times the number of columns. Some standard thresholding methods are described below.

2.2.1. Otsu Method

The Otsu method, proposed by Nobuyuki Otsu in 1979, is one of the best known and most applied for image segmentation. This automatically selects the optimal threshold by maximizing the between-class variance in the segmented image [20]. Consider the gray-scale image I g and the occurrence probability p ( g ) : Z G [ 0 , 1 ] for a specific gray level g in the image is determined as
p ( g ) = n g n = 1 N M x = 1 M y = 1 N δ g , I x , y ,
where δ { } , { } is the well-known Kronecker delta, n g is the number of pixels with the same gray level, and n is the total number of pixels in the image. These pixels are divided into two classes, D 0 and D 1 , based on a threshold t. Therefore, D 0 and D 1 consist of pixels with levels between [ 0 , t ] and [ t + 1 , G 1 ] , respectively. The cumulative probabilities P 0 ( t ) and P 1 ( t ) of D 0 and D 1 , respectively, can be defined as follows,
P 0 ( t ) = Pr ( D 0 ) = g = 0 t p ( g ) ,
P 1 ( t ) = Pr ( D 1 ) = g = t + 1 G 1 p ( g ) = 1 P 0 ( t ) .
In the same way, the mean levels μ 0 ( t ) and μ 1 ( t ) can be computed as
μ 0 ( t ) = g = 0 t g · p ( g ) P 0 ( t ) ,
μ 1 ( t ) = g = t + 1 G 1 g · p ( g ) P 1 ( t ) .
For both classes, minimizing the within-class variance is equivalent to maximizing the between-class variance [18,20]. Accordingly, the between-class variance maximization criterion is used, and is obtained with the following equation:
σ b 2 ( t ) = P 0 ( t ) P 1 ( t ) μ 1 ( t ) μ 0 ( t ) 2 .
According to the Otsu method, this expression serves as a metric for evaluation of a given threshold. Therefore, the optimal threshold t guarantees the greatest distinction between the two classes D 0 and D 1 , t maximizes σ b 2 ( t ) , as shown,
t = arg max 0 < t < G 1 σ b 2 ( t ) .
In the simplest scenario, when a single threshold is required, the Otsu method has an astonishing performance, with histograms of a bimodal distribution [17,18]. This is chiefly because the method assumes that the object and background’s gray level presents a Gaussian distribution with equal variances [17]. However, the threshold achieved with this method is inaccurate when the histogram distribution shows unimodal or quasi-unimodal distribution characteristics [11,17,18].
To implement the Otsu method, it is only necessary to sweep the different gray levels and pick one that satisfies (7). Note that no optimization method is needed. Naturally, one must take several additional conditions into account for practical cases, so the “brute-force” strategy may not be the best alternative. However, the Otsu method is incorporated in almost all digital image processing software. One of the most popular methods is the Matlab’s function, called graythresh, based on the Otsu method [20] used in this work. Nonetheless, this function can use the histogram data or the image as input, with the latter being the most used.

2.2.2. Maximum Entropy Method

The Maximum Entropy (MxE) method is a different and novel criterion function, used to select an appropriate threshold. This alternative to searching an optimal threshold was proposed using the Shannon’s entropy definition in [22,23,24]. According to their idea, the histogram and the Probability Mass Function (PMF) of a gray-scale image I g can be represented by h ( g ) and p ( g ) , respectively, for g from 0 to G 1 . In several particular applications, it is possible to define g between a narrower range, given by g m i n g g m a x . However, if these extrema are not explicitly indicated, it is assumed that 0 g G 1 . Thence, the cumulative probability function is defined as
P ( g ) = g = 0 G 1 p ( g ) ,
Assuming that p ( g ) is calculated from the histogram of the image h ( g ) , normalizing it by the total number of samples. In the context of image segmentation, Z f M × N I g t and Z b M × N I g > t , where f could represent the foreground and b the background or vice-versa. Therefore, when an object appears to be brighter than the background, the set of pixels with gray intensities greater than t would be defined as the foreground. P f ( g ) and P b ( g ) are the probabilities of two distribution classes ( D 0 and D 1 ), separated by a threshold t, in the image histogram. Therefore, P f ( g ) represents the foreground and P b ( g ) the background for the ranges 0 < g t and t + 1 g G 1 , respectively. Foreground and background area probabilities are calculated as follows:
P f ( t ) = g = 1 t p f ( g ) , and P b ( t ) = g = t + 1 G 1 p b ( g ) .
Now, it is possible to calculate t based on the entropy for both the foreground and background, such that:
H f ( t ) = g = 1 t p f ( g ) log p f ( g ) , and H b ( t ) = g = t + 1 G 1 p b ( g ) log p b ( g ) .
The total entropy H ( t ) for the image distribution p ( g ) is obtained by
H ( t ) = H f ( t ) + H b ( t ) .
The maximum H then corresponds to the optimal threshold value for the separation between background and foreground, i.e.,
t = arg max 0 < t < G 1 H ( t ) .
With this reference threshold and the histogram of the image h ( g ) , the binarization can be carried out to separate the object from the background.

2.2.3. Kittler-Illingworth Method

The Kittler–Illingworth method, founded on the mixture of distributions, corresponds to a more realistic approach to practical image segmentation implementations. This is the main reason that we selected it as the foundation of our proposed algorithm. The mixture comprises two Normal distributions with different means and variances, N ( μ 1 , σ 1 2 ) and N ( μ 2 , σ 2 2 ) , and the proportions q 1 and q 2   [21]. Therefore, the mixture distribution f ( g ) : Z G [ 0 , 1 ] described in the histogram takes the form
f ( g ) = q 1 2 π σ 1 exp ( g μ 1 ) 2 2 σ 1 2 + q 2 2 π σ 2 exp ( g μ 2 ) 2 2 σ 2 2
Consider a trial threshold t is given by a brightness level; then, two pixel populations are modeled, such as p 1 ( g ) and p 2 ( g ) . Similarly to the methods described above, the brightness level g in p 1 ( g ) is less than or equal to the threshold t, whilst in p 2 ( g ) , g is greater than or equal to the threshold t. These two populations are modeled by the Normal distributions N ( μ 1 ( t ) , σ 1 2 ( t ) ) and N ( μ 2 ( t ) , σ 2 2 ( t ) ) . For the general case, when the image has a brightness level of up to g, it is successively tested with different threshold values. Therefore, by considering the histogram frequencies P ( 0 ) , P ( 1 ) , , P ( G 1 ) for the observed brightness values 0 , 1 , , G 1 , a fitting criterion J ( t ) can be determined for each value t, such as:
J ( t ) = 1 + 2 p 1 ( t ) log σ 1 ( t ) p 1 ( t ) + p 2 ( t ) log σ 2 ( t ) p 2 ( t ) ,
since
p 1 ( t ) = g = 0 t P ( g ) and p 2 ( t ) = g = t + 1 G 1 P ( g ) .
It is worth noting that the better the models fit the data, the smaller the criterion J ( t ) . Therefore, the optimal threshold value t value minimizes the criterion function J ( t ) as
t = arg min 0 < t < G 1 { J ( t ) } .
Therefore, solving the problem in (16), one can estimate the optimal threshold without requiring additional solution methods.

3. Proposed Method

The proposed methodology employs two main procedures. The first one comprises the fitting problem of a metamodel f m ( z ; g ) based on the Generalized Gaussian (GG) function and the histogram data ( g e , f e ) from a gray image. This minimization problem is given by
z = argmin z Z D f e f m ( z ; g e ) 2 2 ,
since z stands the metamodel parameters. A metaheuristic solver such as the Cuckoo Search Algorithm (CSA) is implemented to deal with such a problem. The second procedure then utilizes the information from the optimal parameters z and the histogram data to identify the threshold. Figure 1 illustrates the aforementioned proposed methodology. The remainder of this section details the metamodel, the optimization algorithm, and the threshold identification.

3.1. Generalized Gaussian Function

The sum of Generalized Gaussian Distributions (GGDs) is proposed as a metamodel according to [36]. The major feature of a GGD is its ability to approach several statistical distributions by only varying a parameter α , such as the Impulsive ( α 0 ), sub-Laplacian ( α < 1 ), Laplacian ( α = 1 ), Gaussian ( α = 2 ), and uniform ( α ) ones. Given this flexibility, we considered that GGDs are excellent candidates to describe the statistical characteristics presented in an image histogram as a meta-distribution.
We assumed that the histogram for the background and object shows two principal lobes (bimodal histogram); based on (13), it is proposed f m ( g ) : Z G [ 0 , 1 ] to approximate two probability density functions, such as
f m ( z ; g ) = f 1 ( z ; g ) + f 2 ( z ; g ) .
In this distribution model, f k ( z ; g ) : Z G [ 0 , 1 ] is given by
f k ( g ) = G k exp g μ k σ k α k , k { 1 , 2 } ,
where g Z G , μ k R , σ k R + , and α k R + are the intensity of the gray level, its mean, scale, and shape, respectively. Moreover, z is the parameter vector and G k R + is the normalizing constant defined by
G k = α k 2 σ k Γ ( 1 / α k ) , k { 1 , 2 } .
We consider G 1 and G 2 as two global constants to avoid the use of the Γ ( · ) function and thus to reduce the computational complexity; i.e., they are specified in parameter vector z = ( G 1 , μ 1 , σ 1 , α 1 , G 2 , μ 2 , σ 2 , α 2 ) . Furthermore, we set a simple constraint to this model to facilitate its analysis, such as μ 1 < μ 2 .

3.2. Cuckoo Search Algorithm

Cuckoo Search Algorithm (CSA) is a metaheuristic optimization method based on a population, and Lévy flights [37]. CSA mimics the brood parasitism behavior of certain cuckoo species, which hide their eggs inside alien nests. The general scientific community has widely accepted this method in numerous variants and applications [38,39,40]. CSA can be implemented to tackle a given minimization problem, such as
z = argmin z Z D f obj ( z ) ,
where z is the optimal solution and f obj ( z ) is the objective function. For maximization problems, such as those mentioned in Section 2.2, this objective function is just the negated threshold metric.
In CSA, the population is defined as Z t = { z 1 ( t ) , , z N ( t ) } Z , since i is the time step, N is the number of agents, and D implies the dimensionality of the problem. Thus, z n ( t ) Z ( t ) is the n-th agent’s position in the feasible domain Z R D at the step i. For most problems, such a domain Z is defined as shown,
Z = z R D : l , u R D l z u
since l and u are the lower and upper boundary vectors, respectively.
As first step, the population is initialized at random within the problem domain, i.e., Z 0 z n 0 z d , n U ( l d , u d ) l d l , u d u , and the fitness value for each agent is evaluated such that f n 0 = f obj ( z n 0 ) , z n 0 Z 0 . Then, the initial best position z 0 , and its fitness value f 0 , are found, z 0 , = arg min { f ( Z 0 ) } , and the iteration counter is increased as i i + 1 . CSA employs the Lévy flight and local random walk as its primary two search mechanisms, which are applied iteratively until a convergence criterion, which was defined previously, is met. Some examples of the criteria are the maximum number of steps i i max and the best-fitness change tolerance f i , f i 1 , ε .
Thence, the Lévy flight for the n-th agent ( z n i Z i ) is given by
z n i = z n i + ζ η ( z n i 1 z i 1 , ) ,
where ζ > 0 is the spatial step size, η is a vector of i.i.d. random numbers obtained from the Mantegna–Stanley’s algorithm [41] using the symmetric Lévy stable distribution, and ⊙ is the Hadamard–Schur’s product.
Likewise, the second procedure, namely, local random walk, is defined as
z n i = z n i + r H ( r p ) ( z q 1 i z q 2 i ) ,
where r is a vector of i.i.d. random variables with U ( 0 , 1 ) , p [ 0 , 1 ] is the probability of change, and H : R D Z 2 D is the element-wise Heaviside step function with H ( 0 ) = 1 . Indices q 1 and q 2 are mutually exclusive integers randomly selected from the population range [ 1 , N ] .
After applying each of these search mechanisms, all agents are evaluated in the objective function, and only the new positions z n i better than the previous ones z n i 1 are preserved, i.e., z n i = z n i 1 if f n i > f n i 1 , n { 1 , , N } . Furthermore, once the local random walk is performed and the population is updated, the best position z i , and its fitness value f i , are found as they were before with the initial population. Thus, the convergence criteria are checked. If any are satisfied, the iterative procedure concludes. Otherwise, the step counter is increased i = i + 1 , and the search mechanisms are applied again.

3.3. Threshold Identification

The threshold identification procedure is somewhat similar to those described in Section 2. The main differences are that instead of using the histogram data ( g e , f e ), we evaluate a subset of gray-scale levels T G over the fitted GGD model f m ( z ; t ) . We stress that we do not employ the direct histogram data but the fitted curves. Thus, his subset T is obtained as follows
T = g g e : μ 1 + σ 1 / 2 < g < μ 2 σ 2 / 2 μ 1 + σ 1 / 2 < μ 2 σ 2 / 2 ,
where μ 1 , σ 1 , μ 2 , and σ 2 are from the optimal parameter values z achieved in the optimization procedure. The rounding operators · and · stand the floor and ceil, respectively. This subset will be nonempty, at least in the context of the segmentation problem tackled in this work. Hence, the optimal threshold value using the proposed method is found as shown
t = arg min t T f m ( z ; t ) .

4. Methodology

We carried out a three-fold experiment procedure to study the proposed method ThCSA and also to compare it against those methods described in Section 2.2. These methods are Otsu, Matlab’s Otsu implementation (GrayThresh), Maximum Entropy (MxE), Kittler–Illingworth (KI), and ThCSA. The graythresh method is omitted for simulated comparison because it requires an image as input. We tested the methods using simulated distributions in the preliminary experiment, which correspond to bimodal histograms with the optimal threshold t r 1 as a reference. The optimal threshold is obtained with the intersection of two well-known distributions. In this work, the sum of distributions was designated as a global histogram. For this experiment, the synthetic histogram was considered as the sum of two distributions, not a histogram in the strict sense. Synthetic histograms have constant parameters to simulate two distributions. Table 1 describes the five cases that comprise this experiment. In the first experiment, we simulated a bimodal histogram corresponding to an image with one object and a well-defined background with two known thresholds.
The remainder experiments were performed following the procedure depicted in Figure 2. First, the original image is read as an RGB image I Z G M × N × 3 and then transformed to gray-scale I g Z G M × N . The gray-scale image serves to obtain the histogram f ( g ) , as commented in Section 2, except for the GrayThresh method, which utilizes the image I g directly. Therefore, the thresholding methods are applied to achieve the binary image I b 1 Z 2 M × N . Lastly, the object perimeter P I is detected by locating the isolines of the processed I b 1 image. The general methodology is summarized in Pseudocode 1.
The second set of experiments consisted of segmenting samples of melanoma images collected from the PH2 Dermoscopic Image Database [42]. We selected this particular image database mainly because the reference images of the melanoma area are provided and supported by expert dermatologists. In addition, these images present histograms with diversity in their statistical parameters and the distances and amplitudes of the histogram’s main lobes. It is worth mentioning that these samples required a special consideration to compute the perimeter of skin lesion; this fact is detailed in the next section. The final experiments comprised the segmentation of organic and inorganic products with a non-uniform background. To do this, we implemented the procedure mentioned above with three images acquired for this work.
Pseudocode 1 Proposed procedure for image segmentation and contour computing
Input: Original image I and thresholding method ThresholdingMethod
Output: Processed binary image I b 1 and perimeter P I
1: I g G r a y S c a l e ( I ) ▹ Transform from RGB to gray-scale
2: t T h r e s h o l d i n g M e t h o d ( I g ) ▹ Threshold t computed with a given method
3: I b 1 B i n a r i z e ( I g , t ) ▹ Binarization according to t
4: P I C o n t o u r ( I b 1 ) ▹ Draws a contour of I b 1
The methodology described in Figure 2 was designed to apply a traditional thresholding procedure and the basic image form (a binary image) to identify the object perimeter. The object perimeter for the second and third experiments is determined for different reasons. The melanoma perimeter helps to provide a view of the morphological structure of skin lesions, which can be used to support a clinic diagnosis [42]. Meanwhile, the methodology proposed for the second experiment can be employed to distinguish between organic and inorganic objects. This is due to the number of centroids of the identified object perimeters.
Moreover, all the experiments were run on a machine with an Intel Core i5 @ 1.6 GHz CPU, 4.00 GB @ 1600 MHz RAM, using the numerical platforms Matlab R2018a and R v4.0.3. We implemented Cuckoo Search Algorithm (CSA) with a population size N of 200, a step size ζ of 1.0, a probability change p of 0.5, a best-fitness change tolerance ε of 10 15 , and a maximum number of stagnating iterations of 2000. These values were obtained after performing a preliminary study, which is out of this work’s scope but can be consulted in [43].

5. Results and Discussion

The first experiment consists of implementing the proposed method and the others from the literature (ThCSA, Otsu, MxE, and KI) on synthetic histograms (cf. Section 4). Table 2 presents the resulting thresholds from this simulation comparison, where the symbols ↓ and ↑ indicate the worst and the best thresholds, respectively. This is based on the optimal threshold. In the first simulation s 01 , Otsu yields the closest values to the optimal threshold. Meanwhile, ThCSA achieved a threshold value with a difference of four gray intensity values from the optimal reference. Finally, the worst result was attained by MxE. From the results achieved in simulation s 02 , it is easy to notice that Otsu, KI and ThCSA had the same performance, closely followed by MxE. In s 02 , it is worth noticing that Otsu, KI and ThCSA computed a threshold near to the optimal threshold with a difference of two gray intensity levels, respectively. Moreover, the thresholds attained for the simulation s 03 are diverse. For this simulation, MxE outperforms the other methods according to the optimal reference. It is noticeable that Kittler and ThCSA share the the same threshold, with a difference of two gray intensity values from t r 1 . The worst algorithm to assess the reference threshold was found to be Otsu, with a minimal difference of three gray levels. Now, based on the results shown in Table 2 for simulation s 04 , we observe that MxE exhibits an advantage over other algorithms for the optimal threshold. Here, Otsu and ThCSA obtained the same level and reached second place with a difference of six gray intensity levels. The last simulation, s 05 , yields interesting results. In this scenario, ThCSA render the best threshold concerning the optimal threshold. Meanwhile, MxE and Kittler rank at an intermediate level according to the reference threshold. In this simulation, the algorithm Otsu obtained the lowest performance.
Figure 3 illustrates the cases of those simulated distributions, the optimal threshold and estimated histograms obtained by using ThCSA. In these plots, the fitted histograms (in black solid lines) evidence an outstanding description of the global histogram, especially regarding the reference threshold (in red dashed line). Nevertheless, we observe two issues in these resulting histograms: In the first one in Figure 3a, the right-hand side distribution is lower than the simulated data. Plus, in the second one in Figure 3b, an unsatisfactory fitting of the right and left hand side peaks is evident. In Figure 3c the right-hand and left-hand side distributions are narrower and lower than simulated histogram, respectively.
Subsequently, Table 3 shows the thresholds comparison obtained with the algorithms implemented for segmenting four dermoscopic images, i.e., IMD002, IMD004, IMD015, IMD021, and IMD041. As we mentioned in Section 4, we chose these figures to illustrate histograms with different patterns. The optimal variables achieved by CSA for the GG distributions are also presented. Recall that the α 1 and α 2 values describe abnormal distributions when α k 2 k { 1 , 2 } . It is worth noting that the thresholds estimated by ThCSA and Otsu for the IMD002 sample are close. Hence, the histogram of IMD002 is enveloped with a sum of non-Gaussian distribution because α 1 = 3 and α 2 = 3 . In the second test, using IMD004, ThCSA estimates a classification edge with an average variation of ca. 29 intensities w.r.t. the other algorithms. The distributions computed have the shape parameters α 1 = 1.6 and α 2 = 0.6 , which correspond to sub-Gaussian and sub-Laplacian distributions, respectively. For IMD015 and IMD021, ThCSA and GrayThresh achieve similar thresholds. It can also be observed in Table 3 that the shape parameters to this sample are located at 1 α 1 , α 2 < 2 , i.e., between Laplacian and Gaussian distributions. For this experiment, the estimated characteristics can be described with the following ranges 0.1 G 1 , G 2 0.98 , 74 μ 1 , μ 2 192 , 10.34 < σ 1 , σ 2 < 25.69 , and 1 < α 1 , α 2 < 2 . Finally, the proposed algorithm and GrayThresh obtained the same threshold for IMD041. These results can corroborate the flexibility of the proposed algorithm to estimate several parameters at the same time on a different scale.
Complementing the information achieved in this experiment, as described in Figure 2, we determine the contours P I for the medical images IMD002, IMD004, IMD015, and IMD021. The segmentation of medical samples generates extra white corners following the procedure depicted in Figure 2 and Pseudocode 1. For this particular case, it is required to remove the contour located in the corner of each image. Figure 4a,c,e,g show the resulting contours P I in RGB images, which is computed with the isolines of processed I b 1 image and depicted with a solid line. Therefore, the contour P I helps to determine the dark area of melanoma samples.
Figure 4b,d,f,h illustrate the image histogram (gray patch), fitted histogram (black solid line), and estimated threshold (red dashed line) with ThCSA. In these images, one can observe two principal lobes and a valley between them, where the threshold achieved with ThCSA is located. It is also possible to appreciate the estimated distributions with several shape parameters, which are denoted with α 1 and α 2 to the first and second lobes, respectively. Additionally, we can notice some discrepancies between the estimated distributions and the histograms in Figure 4b,d,f,h. However, the parameters estimated using ThCSA are able to determine a threshold that achieves the segmentation of the melanoma area.
To complement the previous results, we focus on the visual and numeric comparison of the segmentation outcomes for the medical samples. The segmentation results of IMD004 and IMD015 using the studied algorithms in the are shown in Figure 5. Here, the Otsu methods in Figure 5b, GrayThresh in Figure 5c, Kittler in Figure 5d, MxE in Figure 5e, and ThCSA in Figure 5f obtained similar results for the sample IMD004 in Figure 5a. These images display white corners in the background, i.e., additional white pixels as a component of the skin lesion, which could be removed with additional processing. Some additional white pixels in the segmented background can also be observed using the Kittler, Figure 5d, and MxE, Figure 5e, methods. Based on the same algorithms, the sample IMD015, shown in Figure 5g, is segmented. By using this sample, the algorithms obtained an equivalent segmentation. This can be corroborated for Otsu, GrayThresh, Kittler, MxE, and ThCSA in Figure 5h–l, respectively. Here, the segmented skin lesion is more uniform, without extra white pixels in the background, independent of the corner area. For this sample, all segmentations illustrated in Figure 5h–l, recognize a line of black pixels in the bottom as background components. This error is caused by extra white pixels immersed in the original RGB image.
Naturally, the visual comparison is insufficient to determine the best algorithm. For this reason, the reference images of melanomas or ground-truth images are required. Such images are provided by an expert dermatologist in [42], which are represented as I b r Z 2 M × N . I b r Z 2 M × N . Table 4 shows the Jaccard index and the False Negative (FN) pixels for all the methods. The Jaccard index is used to evaluate the image segmentation because it measures the intersection of an obtained binary image ( I b 1 or I b 2 ) and the reference image ( I b r ) divided by the union of both images [44]. The FN points are the unmatched pixels of the segmented image and the area labeled as object I O r in the reference image, where I O r I B r . Employing the FN metric, it is possible to identify which method locates fewer wrong pixels in the object. In Table 4, the FN values are divided by the total number of pixels of I O r to avoid large numbers. These metrics are obtained for different melanoma images IMD002, IMD004, IMD015, IMD021, and IMD041. Table 4 displays the best Jaccard index in bold font. According to the Jaccard index, we can appreciate that, for IMD002, the best algorithm is MxE. This generates fewer inaccuracies regarding the FN values. Additionally, ThCSA ranks second according to the Jaccard index. For IMD004, the GrayThresh method is the best one. The ThCSA showed the maximal number in the FN column, but this method is in third place. Moreover, we notice that ThCSA is better for the sample IMD015 according to the Jaccard index, although the proposed algorithm obtained the worst values in FN measurements. For the sample IMD021, ThCSA was better than the other algorithms. However, the proposed algorithm obtained a low performance for FN values. The last sample analyzed was the image IMD041. Here, the algorithms GrayThresh and ThCSA were the best options, with the same Jaccard index and FN measures.
It is worth noting that the Jaccard indices are quite low, in the range of 0.6–0.8. This poor performance is due to the extra white pixels located in the corners of the images. However, the Jaccard index is adequate to rank the proposed algorithm. Furthermore, Table 5 shows the computing time comparison between the implemented algorithms. From these data, we can recognize the high computing time as a drawback of the proposed algorithm. Nevertheless, we suggest that this comparison is unfair because all the algorithms studied in this work were employed on different numerical platforms.
Furthermore, we extend the scope of application of the proposed algorithm by studying other kinds of images. To do this, we considered those with a background covering a greater area than the object. Sometimes the objects share pixels with the background in the gray-scale image. Figure 6 depicts three examples of this problem: one organic product and two inorganic products. The organic one is illustrated in Figure 6a, and its histogram is plotted in Figure 6b. The image in gray-scale, see Figure 6a, illustrates a background with different shades of gray and a darker area, representing the organic object. The histogram in Figure 6b shows two no uniform lobes that corroborate the color variability of the object and background. These lobes are approximately G = 90 to G = 130 for the object, and from G = 140 to G = 175 for the foreground. Despite fluctuations in the histogram, depicted in Figure 6b, the algorithm ThCSA computed a good threshold to segment the organic object, which is bounded with a white line in Figure 6a.
Moreover, the two inorganic, which possess transparent areas, are shown in Figure 6c,e, and their histograms in Figure 6d,f, respectively. In Figure 6c, a white line delineates partially incomplete area of an inorganic product. This is because some object pixels are mixed with the background; i.e., they have the same intensity level. Figure 6d shows the threshold achieved by the ThCSA-based methodology. This threshold helps to delimit a large part of the object, although the object’s outline is incomplete. Finally, in Figure 6e,f, we observe the most challenging example of this proposed work. To this inorganic object, the bottom, the label, and the screw cap are identified. The histograms (see Figure 6f) evidence where there is little information about the object. However, the proposed methodology can compute the corresponding thresholds to identify parts of this object.

6. Conclusions

In this work, we proposed ThCSA, a thresholding technique based on the Generalized Gaussian (GG) distributions and Cuckoo Search Algorithm. We implemented this methodology to tackle several image segmentation cases with different conditions and compared its results with some well-known algorithms. We showed that ThCSA, Otsu, and MxE obtain acceptable results when estimating the optimal threshold in simulated histograms. However, Otsu and MxE achieved the worst mark in at least one simulation, and GrayThresh was the worst at estimating the reference threshold. According to the comparison, the proposed algorithm obtained good performances by computing thresholds with a minimal difference and values very close to the optimal reference in most cases. These results are closely followed by the Kittler–Illingworth (KI).
ThCSA achieved the GG function variables in real medical image-processing to determine a threshold that segments the melanoma samples. The skin lesions were bounded with a certain precision based on the proposed methodology. Compared with the manual segmentation (ground-truth), evaluated by an expert dermatologist, the best segmentations were rendered by ThCSA, closely followed by GrayThresh. We corroborated this affirmation through the Jaccard indices, which can be improved with additional processing to avoid the corners induced by the capture instrument.
Furthermore, we noticed a remarkable potential when applying ThCSA to identify objects with no-uniform backgrounds and shared pixels. However, we found some issues while delimiting the complete object by the proposed method, especially when the background and object pixels have the same gray levels. Notwithstanding, ThCSA can detect strategic points to locate parts of the object. This issue should be analyzed and solved with an additional processing step. The principal disadvantage of the proposed methodology is that it requires more processing time than the other methods. Nevertheless, naturally, this work addressed the prototyping of an algorithm that could be enhanced and optimized in future implementations. Therefore, considering the advantages and disadvantages mentioned above, we finally conclude that the proposed methodology is an excellent option to compute optimal thresholds and segment objects from its quasi-uniform environment. This work presented an alternative thresholding tool, based on a global optimization algorithm, to help practitioners in diverse applications, e.g., dermatologic ones. Moreover, we plan to compare ThCSA with different image databases and employ several metrics to measure the segmentation quality for future work. We will also optimize the ThCSA implementation in a particular numerical platform to provide a competitive alternative to thresholding in any practical application.

Author Contributions

Conceptualization, J.F.-T., O.V.-C. and J.M.-M.; methodology, J.F.-T., O.V.-C., J.M.-M. and J.M.C.-D.; software, J.M.-M. and J.M.C.-D.; validation, J.F.-T., O.V.-C., J.M.-M. and J.M.C.-D.; formal analysis, J.M.-M. and J.M.C.-D.; investigation, J.M.-M. and J.M.C.-D.; resources, J.M.-M. and J.M.C.-D.; data curation, J.M.-M. and J.M.C.-D.; writing—original draft preparation, J.F.-T., O.V.-C. and J.M.-M.; writing—review and editing, J.F.-T., O.V.-C., J.M.-M. and J.M.C.-D.; visualization, J.M.-M. and J.M.C.-D.; supervision, J.M.-M. and J.M.C.-D.; project administration, J.M.-M.; funding acquisition, J.M.C.-D. All authors have read and agreed to the published version of the manuscript.

Funding

The research was supported by the Tecnológico de Monterrey (México), under the Program “FAC: Fondo para el financiamiento para la publicación de Artículos Científicos 2020–2021,” Grant FAP-1157.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Lu, S.; Wang, B.; Wang, H.; Chen, L.; Linjian, M.; Zhang, X. A real-time object detection algorithm for video. Comput. Electr. Eng. 2019, 77, 398–408. [Google Scholar] [CrossRef]
  2. Balaji, S.; Karthikeyan, S.; Manikandan, R. Object detection using Metaheuristic algorithm for volley ball sports application. J. Ambient. Intell. Humaniz. Comput. 2020, 12, 375–385. [Google Scholar] [CrossRef]
  3. Sharma, V.; Mir, R. Saliency guided faster-RCNN (SGFr-RCNN) model for object detection and recognition. J. King Saud Univ. Comput. Inf. Sci. 2019. [Google Scholar] [CrossRef]
  4. Gollapudi, S. Object Detection and Recognition. In Learn Computer Vision Using OpenCV; Apress: New York, NY, USA, 2019; pp. 97–117. [Google Scholar]
  5. Jiang, B.; Li, X.; Yin, L.; Yue, W.; Wang, S. Object Recognition in Remote Sensing Images Using Combined Deep Features. In Proceedings of the 2019 IEEE 3rd Information Technology, Networking, Electronic and Automation Control Conference (ITNEC), Chengdu, China, 15–17 March 2019; pp. 606–610. [Google Scholar]
  6. Khryashchev, V.; Ostrovskaya, A.; Pavlov, V.; Semenov, A. Optimization of convolutional neural network for object recognition on satellite images. In Proceedings of the Systems of Signal Synchronization, Generating and Processing in Telecommunications (SYNCHROINFO), Minsk, Belarus, 4–5 July 2018; pp. 1–5. [Google Scholar]
  7. Wang, L.; Shi, J.; Song, G.; Shen, I.F. Object detection combining recognition and segmentation. In Proceedings of the Asian Conference on Computer Vision, Tokyo, Japan, 18–22 November 2007; pp. 189–199. [Google Scholar]
  8. Kumar, S.; Balyan, A.; Chawla, M. Object Detection and Recognition in Images. Int. J. Eng. Dev. Res. 2017, 5, 1029–1034. [Google Scholar]
  9. Goh, T.Y.; Basah, S.N.; Yazid, H.; Safar, M.J.A.; Saad, F.S.A. Performance analysis of image thresholding: Otsu technique. Measurement 2018, 114, 298–307. [Google Scholar] [CrossRef]
  10. Liang, J.; Xue, Y.; Wang, J. Genetic programming based feature construction methods for foreground object segmentation. Eng. Appl. Artif. Intell. 2020, 89, 103334. [Google Scholar] [CrossRef]
  11. Song, S.B.; Liu, J.F.; Ni, H.Y.; Cao, X.L.; Pu, H.; Huang, B.X. A new automatic thresholding algorithm for unimodal gray-level distribution images by using the gray gradient information. J. Pet. Sci. Eng. 2020, 190, 107074. [Google Scholar] [CrossRef]
  12. Golpardaz, M.; Helfroush, M.S.; Danyali, H. Nonsubsampled contourlet transform-based conditional random field for SAR images segmentation. Signal Process. 2020, 174, 107623. [Google Scholar] [CrossRef]
  13. Li, Q.; Ma, Y.; Smarandache, F.; Zhu, S. Single-valued neutrosophic clustering algorithm based on Tsallis entropy maximization. Axioms 2018, 7, 57. [Google Scholar] [CrossRef] [Green Version]
  14. Chan, K.C.; Chan, R.H.; Nikolova, M. A convex model for edge-histogram specification with applications to edge-preserving smoothing. Axioms 2018, 7, 53. [Google Scholar] [CrossRef] [Green Version]
  15. Resma, K.B.; Nair, M.S. Multilevel thresholding for image segmentation using Krill Herd Optimization algorithm. J. King Saud Univ. Comput. Inf. Sci. 2018. [Google Scholar] [CrossRef]
  16. Lei, B.; Fan, J. Image thresholding segmentation method based on minimum square rough entropy. Appl. Soft Comput. 2019, 84, 105687. [Google Scholar] [CrossRef]
  17. Ng, H.F.; Jargalsaikhan, D.; Tsai, H.C.; Lin, C.Y. An improved method for image thresholding based on the valley-emphasis method. In Proceedings of the 2013 Asia-Pacific Signal and Information Processing Association Annual Summit and Conference, Kaohsiung, Taiwan, 29 October–1 November 2013; pp. 1–4. [Google Scholar]
  18. Yuan, X.C.; Wu, L.S.; Peng, Q. An improved Otsu method using the weighted object variance for defect detection. Appl. Surf. Sci. 2015, 349, 472–484. [Google Scholar] [CrossRef] [Green Version]
  19. Li, J.; Tang, W.; Wang, J.; Zhang, X. Multilevel thresholding selection based on variational mode decomposition for image segmentation. Signal Process. 2018, 147, 80–91. [Google Scholar] [CrossRef]
  20. Otsu, N. A Threshold Selection Method from Gray-Level Histograms. IEEE Trans. Syst. Man Cybern. 1979, 9, 62–66. [Google Scholar] [CrossRef] [Green Version]
  21. Kittler, J.; Illingworth, J. Minimum error thresholding. Pattern Recognit. 1986, 19, 41–47. [Google Scholar] [CrossRef]
  22. Kapur, J.N.; Sahoo, P.K.; Wong, A.K. A new method for gray-level picture thresholding using the entropy of the histogram. Comput. Vis. Graph. Image Process. 1985, 29, 273–285. [Google Scholar] [CrossRef]
  23. Pun, T. A new method for grey-level picture thresholding using the entropy of the histogram. Signal Process. 1980, 2, 223–237. [Google Scholar] [CrossRef]
  24. Pun, T. Entropic thresholding, a new approach. Comput. Graph. Image Process. 1981, 16, 210–239. [Google Scholar] [CrossRef] [Green Version]
  25. Ng, H.F. Automatic Thresholding for Defect Detection. Pattern Recogn. Lett. 2006, 27, 1644–1649. [Google Scholar] [CrossRef]
  26. Fan, J.L.; Lei, B. A modified valley-emphasis method for automatic thresholding. Pattern Recognit. Lett. 2012, 33, 703–708. [Google Scholar] [CrossRef]
  27. Xing, J.; Yang, P.; Qingge, L. Automatic thresholding using a modified valley emphasis. IET Image Process. 2020, 14, 536–544. [Google Scholar] [CrossRef]
  28. Belkasim, S.; Ghazal, A.; Basir, O.A. Phase-based optimal image thresholding. Digit. Signal Process. 2003, 13, 636–655. [Google Scholar] [CrossRef]
  29. Truong, M.T.N.; Kim, S. Automatic image thresholding using Otsu’s method and entropy weighting scheme for surface defect detection. Soft Comput. 2018, 22, 4197–4203. [Google Scholar] [CrossRef]
  30. Xu, X.; Xu, S.; Jin, L.; Song, E. Characteristic analysis of Otsu threshold and its applications. Pattern Recognit. Lett. 2011, 32, 956–961. [Google Scholar] [CrossRef]
  31. Bazi, Y.; Bruzzone, L.; Melgani, F. Image thresholding based on the EM algorithm and the generalized Gaussian distribution. Pattern Recognit. 2007, 40, 619–634. [Google Scholar] [CrossRef]
  32. Boulmerka, A.; Allili, M.S.; Ait-Aoudia, S. A generalized multiclass histogram thresholding approach based on mixture modelling. Pattern Recognit. 2014, 47, 1330–1348. [Google Scholar] [CrossRef]
  33. Fan, S.K.S.; Lin, Y.; Wu, C.C. Image thresholding using a novel estimation method in generalized Gaussian distribution mixture modeling. Neurocomputing 2008, 72, 500–512. [Google Scholar] [CrossRef]
  34. Fan, S.K.S.; Lin, Y. A fast estimation method for the generalized Gaussian mixture distribution on complex images. Comput. Vis. Image Underst. 2009, 113, 839–853. [Google Scholar] [CrossRef]
  35. Yanxia, C.; Yanyan, X.; Tierui, Z.; Dandan, L. Threshold image target segmentation technology based on intelligent algorithms. Comput. Opt. 2020, 44, 137–141. [Google Scholar]
  36. Nadarajah, S. A generalized normal distribution. J. Appl. Stat. 2005, 32, 685–694. [Google Scholar] [CrossRef]
  37. Yang, X.S.; Deb, S. Cuckoo search via Lévy flights. In Proceedings of the 2009 World Congress on Nature & Biologically Inspired Computing (NaBIC), Coimbatore, India, 9–11 December 2009; pp. 210–214. [Google Scholar]
  38. Cruz-Duarte, J.M.; Guía-Calderón, M.; Rosales-García, J.J.; Correa, R. Determination of a physically correct fractional-order model for electrolytic computer-grade capacitors. Math. Methods Appl. Sci. 2020, 44, 4366–4380. [Google Scholar] [CrossRef]
  39. Shehab, M. Cuckoo Search Algorithm. In Artificial Intelligence in Diffusion MRI; Springer Nature Switzerland AG: Cham, Switzerland, 2020; pp. 31–59. [Google Scholar]
  40. Shehab, M.; Khader, A.T.; Al-Betar, M.A. A survey on applications and variants of the cuckoo search algorithm. Appl. Soft Comput. J. 2017, 61, 1041–1059. [Google Scholar] [CrossRef]
  41. Mantegna, R.N.; Stanley, H.E. Stochastic process with ultraslow convergence to a Gaussian: The truncated Lévy flight. Phys. Rev. Lett. 1994, 73, 2946. [Google Scholar] [CrossRef]
  42. Mendonça, T.; Ferreira, P.M.; Marques, J.S.; Marcal, A.R.S.; Rozeira, J. PH2—A dermoscopic image database for research and benchmarking. In Proceedings of the 2013 35th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), Osaka, Japan, 3–7 July 2013; pp. 5437–5440. [Google Scholar]
  43. Cruz-Duarte, J.M.; Garcia-Perez, A.; Amaya-Contreras, I.M.; Correa-Cely, C.R.; Romero-Troncoso, R.J.; Avina-Cervantes, J.G. Design of Microelectronic Cooling Systems Using a Thermodynamic Optimization Strategy Based on Cuckoo Search. IEEE Trans. Components Packag. Manuf. Technol. 2017, 7, 1804–1812. [Google Scholar] [CrossRef]
  44. Jaccard, P. The distribution of the flora in the alpine zone. 1. New Phytol. 1912, 11, 37–50. [Google Scholar] [CrossRef]
Figure 1. Proposed method based on the Generalized Gaussian function as the metamodel and the Cuckoo Search Algorithm as the optimizer.
Figure 1. Proposed method based on the Generalized Gaussian function as the metamodel and the Cuckoo Search Algorithm as the optimizer.
Mathematics 09 02287 g001
Figure 2. General diagram of image segmentation based on background and object.
Figure 2. General diagram of image segmentation based on background and object.
Mathematics 09 02287 g002
Figure 3. Cases of fitted histograms utilizing the thresholding method based on Cuckoo Search Algorithm. The reference distribution is depicted with a red dashed line.
Figure 3. Cases of fitted histograms utilizing the thresholding method based on Cuckoo Search Algorithm. The reference distribution is depicted with a red dashed line.
Mathematics 09 02287 g003
Figure 4. Contours and histograms estimated using the ThCSA algorithm. In the first column, the contour P I is represented with a solid white line. In the second column, the image histogram, fitted histogram, and optimal threshold are displayed with a gray patch, a black solid line, and a red dashed line.
Figure 4. Contours and histograms estimated using the ThCSA algorithm. In the first column, the contour P I is represented with a solid white line. In the second column, the image histogram, fitted histogram, and optimal threshold are displayed with a gray patch, a black solid line, and a red dashed line.
Mathematics 09 02287 g004
Figure 5. Gray-scale and processed images for IMD004 and IMD015 using the thresholding methods Otsu, GrayThresh, Kittler, MxE, and ThCSA, respectively.
Figure 5. Gray-scale and processed images for IMD004 and IMD015 using the thresholding methods Otsu, GrayThresh, Kittler, MxE, and ThCSA, respectively.
Mathematics 09 02287 g005
Figure 6. Illustrative example of the proposed algorithm implemented on three images, with quasi-modal histograms, containing either organic or inorganic products. Left column: gray-scale images and achieved detected outlines. Right column: image and fitted histograms and detected threshold.
Figure 6. Illustrative example of the proposed algorithm implemented on three images, with quasi-modal histograms, containing either organic or inorganic products. Left column: gray-scale images and achieved detected outlines. Right column: image and fitted histograms and detected threshold.
Mathematics 09 02287 g006
Table 1. Simulated histograms utilized as study cases for the preliminary experiment. Parameters α k , σ k , and μ k , k = { 1 , 2 } , correspond to the distribution model in (19).
Table 1. Simulated histograms utilized as study cases for the preliminary experiment. Parameters α k , σ k , and μ k , k = { 1 , 2 } , correspond to the distribution model in (19).
Simulation α 1 α 2 σ 1 σ 2 μ 1 μ 2
s 01 11.6230.6143.6058183
s 02 21.4240.6233.0678163
s 03 21.7146.1748.1256187
s 04 11.3842.0538.8564195
s 05 20.9732.5833.8168175
Table 2. Comparison of threshold values obtained by different methods in a simulated environment. Based on the optimal threshold t r 1 , the symbols ↓ and ↑ indicate the worst and the best threshold respectively.
Table 2. Comparison of threshold values obtained by different methods in a simulated environment. Based on the optimal threshold t r 1 , the symbols ↓ and ↑ indicate the worst and the best threshold respectively.
Simulation t r 1 OtsuMxEKIThCSA
s 01 120121 128 113116
s 02 122120 119 120 120
s 03 119122 118 121121
s 04 135129140 127 129
s 05 114125 119119118
Table 3. Thresholds detected in medical Images with different methods and variables identified by Cuckoo Search Algorithm.
Table 3. Thresholds detected in medical Images with different methods and variables identified by Cuckoo Search Algorithm.
ImageThresholds of Medical ImagesOptimal Variables Identified via CSA
OtsuGrayThreshKIMxEThCSA G 1 G 2 μ 1 μ 2 σ 1 σ 2 α 1 α 2
IMD0021361271321461380.230.929618031.4626.713.03.0
IMD0041621271771691390.101.059122935.7317.841.60.6
IMD0151431271431591250.690.989319210.3425.691.41.5
IMD0211201191231331120.10.847415824.2911.851.61.0
IMD0411571561581691560.360.99721530.7131.511.12.3
Table 4. Jaccard index and False Negative (FN) values obtained via different methods for medical samples. The best Jaccard index is in bold font. Symbols ↑ and ↓ represent the worst and best values, respectively.
Table 4. Jaccard index and False Negative (FN) values obtained via different methods for medical samples. The best Jaccard index is in bold font. Symbols ↑ and ↓ represent the worst and best values, respectively.
MethodIMD002IMD004IMD015IMD021IMD041
JaccardFNJaccardFNJaccardFNJaccardFNJaccardFN
Otsu0.68890.12960.66450.04210.71170.00700.61490.02060.68180.0746
GrayThresh0.68680.13620.66640.04470.71570.00800.61760.02420.68220.0779 ↑
Kittler0.67800.1577↑0.61670.0143↓0.71170.00700.60620.01400.68160.0707
MxE0.69390.0786↓0.64710.02630.62440.0007↓0.55550.0036↓0.66690.0362 ↓
ThCSA0.69170.11890.66010.1428↑0.75510.0496 ↑0.62560.0558↑0.68220.0779↑
Table 5. Computing time required to find the threshold for medical images with different methods.
Table 5. Computing time required to find the threshold for medical images with different methods.
MethodComputing Time [s]
IMD002IMD004IMD015IMD021IMD041
Otsu0.030.040.020.030.4
GrayThresh0.020.020.020.030.2
Kittler0.010.020.010.020.2
MxE0.040.040.030.040.04
ThCSA1.51.21.31.41.1
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Munoz-Minjares, J.; Vite-Chavez, O.; Flores-Troncoso, J.; Cruz-Duarte, J.M. Alternative Thresholding Technique for Image Segmentation Based on Cuckoo Search and Generalized Gaussians. Mathematics 2021, 9, 2287. https://doi.org/10.3390/math9182287

AMA Style

Munoz-Minjares J, Vite-Chavez O, Flores-Troncoso J, Cruz-Duarte JM. Alternative Thresholding Technique for Image Segmentation Based on Cuckoo Search and Generalized Gaussians. Mathematics. 2021; 9(18):2287. https://doi.org/10.3390/math9182287

Chicago/Turabian Style

Munoz-Minjares, Jorge, Osbaldo Vite-Chavez, Jorge Flores-Troncoso, and Jorge M. Cruz-Duarte. 2021. "Alternative Thresholding Technique for Image Segmentation Based on Cuckoo Search and Generalized Gaussians" Mathematics 9, no. 18: 2287. https://doi.org/10.3390/math9182287

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop