Roberto Rodríguez1. 1. Digital Signal Processing Group, Institute of Cybernetics, Mathematics and Physics (ICIMAF), La Habana, Cuba.
Abstract
Binarization is often recognized to be one of the most important steps in most high-level image analysis systems, particularly for object recognition. Its precise functioning highly determines the performance of the entire system. According to many researchers, segmentation finishes when the observer's goal is satisfied. Experience has shown that the most effective methods continue to be the iterative ones. However, a problem with these algorithms is the stopping criterion. In this work, entropy is used as the stopping criterion when segmenting an image by recursively applying mean shift filtering. Of this way, a new algorithm is introduced for the binarization of medical images, where the binarization is carried out after the segmented image was obtained. The good performance of the proposed method; that is, the good quality of the binarization, is illustrated with several experimental results. In this paper a comparison was carried out among the obtained results with this new algorithm with respect to another developed by the author and collaborators previously and also with Otsu's method.
Binarization is often recognized to be one of the most important steps in most high-level image analysis systems, particularly for object recognition. Its precise functioning highly determines the performance of the entire system. According to many researchers, segmentation finishes when the observer's goal is satisfied. Experience has shown that the most effective methods continue to be the iterative ones. However, a problem with these algorithms is the stopping criterion. In this work, entropy is used as the stopping criterion when segmenting an image by recursively applying mean shift filtering. Of this way, a new algorithm is introduced for the binarization of medical images, where the binarization is carried out after the segmented image was obtained. The good performance of the proposed method; that is, the good quality of the binarization, is illustrated with several experimental results. In this paper a comparison was carried out among the obtained results with this new algorithm with respect to another developed by the author and collaborators previously and also with Otsu's method.
Entities:
Keywords:
Otsu’s method; algorithm; entropy; image segmentation; mean shift
Nowadays, medical image breaking technologies have an enormous potential to contribute to the improvement of healthcare and medicine. Images have come to include not only diagnostic methods but also treatments by using image-guided methods. Healthcare is increasingly dependent not only upon the primary diagnostic technologies based on typical image visualization and analysis, but also on information, science, networking, image archiving and distribution, instrumentation, and treatment using physical energies.A full understanding of image information is very important and image segmentation, particularly binarization, plays an important role. Segmented images are now used routinely in a multitude of different applications, such as, diagnosis, treatment planning, localization of pathology, study of anatomical structure, and computer-integrated surgery. However, image segmentation, especially binarization, remains a difficult task due to both the variability of object shapes and the variation in image quality. Particularly, medical images are often corrupted by noise and sampling artifacts, which can cause considerable difficulties when applying rigid methods.Many segmentation methods have been proposed for medical-image data (Wu et al 1995; Sijbers et al 1997; Chin-Hsing et al 1998; Shareef et al 1999; Schmid 1999; Koss et al 1999). Unfortunately, binarization using traditional low-level image processing techniques, such as thresholding, region growing, and other classical operations require a considerable amount of interactive guidance in order to attain satisfactory results. Automating these model-free approaches is difficult because of complexity, shadows, and variability within and across individual objects. Furthermore, noise and other image artifacts can cause incorrect regions or boundary discontinuities in objects recovered from these methods.Today the most robust segmentation algorithms are the iterative methods, which cover a variety of techniques, ranging from the mathematical morphology, deformable models until the thresholding methods. However, one of the problems of these iterative techniques is the stopping criterion, where many methods have been proposed (Vincent and Soille 1991; Cheriet et al 1998; Chenyang et al 2000).Mean shift is a nonparametric and versatile tool for feature analysis and can provide reliable solutions for many vision tasks (Comaniciu 2000; Comaniciu and Meer 2002). The mean shift was proposed by Fukunaga and Hostetler (1975) and largely forgotten until Cheng’s paper (1995) restored interest on it. Segmentation by means of the mean shift method carries out a smoothing filter as a first step before segmentation is performed (Comaniciu 2000).The term ‘entropy’ is not a new concept in the information theory field. Entropy has been used in image restoration, edge detection, and recently as an objective evaluation method for image segmentation (Zhang et al 2003).In this work, a new binarization strategy based on the computation of the mean shift is proposed. The proposal makes use of entropy as stopping criterion; of this way, binarization is easily obtained; that is, the binarization is carried out after the segmented image is attained. This is the main feature of the proposed algorithm; that is, to arrive to the segmented image directly from the filtering process and to carry out the binarization later.The obtained results with this algorithm are compared with others developed by the author and collaborators and also with Otsu’s method (Rodríguez et al 2002a, 2003, 2005). In other words, our interest in this research is to determine which algorithm is the most suitable and robust for binarization of medical images; in this case, blood vessels. In this work, the important information to be extracted from images is just the number of blood vessels present.The remainder of the paper is organized as follows: In Theoretical aspects, we provide the more significant theoretical aspects of the mean shift. In Entropy, we briefly introduce the entropy concept. In Algorithms, we describe our binarization algorithm based on the mean shift by taking entropy as the stopping criterion. The experimental results, comparisons and discussion are presented. In this section a quantitative verification of the obtained results is also carried out. Finally, the conclusions are exposed.
Theoretical aspects : The mean shift
The iterative procedure to compute the mean shift is introduced as a normalized density estimate of the gradient. By employing a differentiable kernel, an estimate of the density gradient can be defined as the gradient of the kernel density estimate; that is,The kernel function K(x) is now a function, defined for d-dimensional , satisfyingOther conditions on the kernel K(x) and the window radio h are derived (Fukunaga and Hostetler 1975) to guarantee asymptotic unbiasedness, mean-square consistency, and uniform consistency of the estimate in expression (1). For example, for Epanechnikov kernel:where c is the volume of the unit d-dimensional sphere (Comaniciu 2000). The density gradient estimate becomes,where the region S(x) is a hypersphere of radius h having volume hc, centered at x, and containing n data points, that is, the uniform kernel. In addition, in this case d = 3, for being the vector of three dimensions, two for the spatial domain and one for the range domain (gray levels). The last term in expression (4) is called the sample mean shift.The quantity n/n (hc) is the kernel density estimate f̂ (x) (where U means the uniform kernel ) computed with the hypersphere S(x), and thus we can write expression (4) as:which yields,Expression (7) shows that an estimate of the normalized gradient can be obtained by computing the sample mean shift in a uniform kernel centered on . In addition, the mean shift has the direction of the gradient of the density estimate at when this estimate is obtained with the Epanechnikov kernel. Since the mean shift vector always points towards the direction of the maximum increase in the density, it can define a path leading to a local density maximum; that is, to a mode of the density (see Figure 1).
Figure 1
Gradient mode clustering.
In addition, expression (7) shows that the mean is shifted towards the region in which the majority of the points reside. Since the mean shift is proportional to the local gradient estimate, it can define a path leading to a stationary point of the estimated density, where these stationary points are the modes. Moreover, as it was pointed out the normalized gradient in expression (7) introduces a desirable adaptive behavior, since the mean shift step is large for low density regions corresponding to valleys, and decreases as approaches a mode.Mathematically speaking, this is justified since
. Thus the corresponding step size for the same gradient will be greater than that nearer mode. This will allow observations far from the mode or near a local minimum to move towards the mode faster than using ∇̂f (x) alone.Comaniciu and Meer (2002) proved that the mean shift procedure was obtained by successively:computing the mean shift vector M (x)translating the window S (x) by M (x), which guarantees convergence.Therefore, if the individual mean shift procedure is guaranteed to converge, a recursive procedure of the mean shift also converges. In other words, if one considers the recursive procedure to be like the individual sum of many procedures of the mean shift and each individual procedure converges, then the recursive procedure also converges. This claim was already proved by Grenier and colleagues (2006). The unanswered question is when to stop the recursive procedure. The answer is in the use of entropy as it will be shown in the next section.A digital image can be represented as a two-dimensional array of p-dimensional vectors (pixels), where p = 1 in the gray level case, p = 3 for color images, and p > 3 in the multispectral case.As was pointed out by Comaniciu and Meer (2002), when the location and range vectors are concatenated in the joint spatial-range domain of dimension d = p + 2, their different natures have to be compensated by proper normalization of parameters h and h. Thus, the multivariable kernel is defined as the product of two radially symmetric kernels and the Euclidean metric allows a single bandwidth for each domain, that is:where x is the spatial part, x is the range part of a feature vector, k(x) the common profile used in both domains, h and h the employed kernel bandwidths, and C the corresponding normalization constant.In this work all the segmentation experiments were performed by using a uniform kernel. In order for the comparison of the obtained results with both algorithms to be effective, the same parameters (h and h) were used. In this case, in all binarized images, h = 12 and h = 15, the uniform kernel was used. The value of h is related to the spatial resolution of the analysis while the value hr defines the range resolution. It is necessary to note that the spatial resolution h has a different effect on the output image when compared to the gray level resolution (h, spatial range). Only features with large spatial support are represented in the binarized image with our algorithm when h is increased. On the other hand, only features with high contrast survive when h is large. Therefore, the quality of segmentation and consequently binarization is controlled by the spatial value h and the range (gray level) h, resolution parameters defining the radii of the (3D/2D) windows in the respective domains.
Entropy
From the point of view of digital image processing the entropy of an image is defined as:where B is the total quantity of bits of the digitized image and by agreement log2(0) = 0; p(x) is the probability of occurrence of a gray-level value. Within a totally uniform region, entropy reaches the minimum value. Theoretically speaking, the probability of occurrence of the gray-level value, within a uniform region is always one. In practice, when one works with real images the entropy value does not reach, in general, the zero value. This is due to existing noise in the image. Therefore, if we consider entropy as a measure of the disorder within a system, it could be used as a good stopping criterion for an iterative process, by using mean shift filtering. The entropy within each region diminishes in the measure that the regions become more homogeneous and at the same time in the whole image, until reaching a stable value. When convergence is reached, a totally segmented image is obtained, because the mean shift filtering is not idempotent, as it does not happen in mathematical morphology with some types of filters (for example, the opening filter is idempotent). In addition, as Comaniciu and Meer (2002) pointed out, the mean shift-based image segmentation procedure is a straightforward extension of the discontinuity preserving smoothing algorithm and the segmentation step does not add a significant overhead to the filtering process.The choice of entropy as a measure of goodness deserves several observations. First, it is known that the addition of two independent random variables (for example, a signal and additive noise) increases entropy (Zhang et al 2003). Entropy reduction reduces the randomness in corrupted probability density function and tries to counteract noise. Then, by following this analysis, as the segmented image is a simplified version of the original image, the entropy of the segmented image should be smaller. Recently, it was empirically found that the entropy of the noise diminishes faster than that of the signal (Zhang et al 2003). Therefore, an effective criterion to stop would be when the relative rate of change of the entropy; from one iteration to the next, falls below a given threshold. This is the essential part of this work.
Algorithms
In this section two algorithms, one related with the filtering of the signal and the other related to the segmentation step are given.
Algorithm No. 1: Filtering algorithm by using the mean shift
Let X and Z, i = 1,..,n, be the input and filtered images in the joint spatial-range domain. For each pixel p ε X, p= (x,y,z) εℜ3, where (x, y) εℜ2 and z ε [0,2−1], β being the quantity of bits/pixel in the image. The filtering algorithm comprises the following steps (Comaniciu 2000):Initialize j = 1 and y = p.Compute through the mean shift (see expression (3), y), the mode where the pixel converges; that is, the calculation of the mean shift is carried out until convergence, y = y.Store at Z the component of the gray level of calculated value: Z = (x, y), where x is the spatial component and y is the range component.
Algorithm No. 2: Binarization algorithm by recursively applying the mean shift filtering
Let be the initial value of the entropy of the first iteration. Let be the second value of the entropy after the first iteration. Let be the absolute value of the difference of entropy between the first one and the second iteration. Let be the parameter to carry out parametric logarithm. Let be the threshold to stop the iterations; that is, this is threshold to stop when the relative rate of change of the entropy; from one iteration to the next, falls below this threshold. Then, the segmentation algorithm comprises the following steps:Initialize .While , then2.1. Filter the image according to the steps of the previous algorithm; store in the filtered image.2.2. Calculate the entropy from the filtered image according to expression (6); store in .2.3. Calculate the absolute difference with the entropy value obtained in the previous step; .2.4. Update the value of the parameter; .To carry out a parametric logarithm ().Binarization: to assign to the background the white color and to the objects the black color.It is possible to observe that, in this case, the proposed segmentation algorithm is a direct extension of the filtering algorithm, which finishes when the entropy reaches the stability. Note the simplification of this algorithm compared with the one proposed by Rodriguez and colleagues (2005) (see Algorithm steps in next section). Some comments on this algorithm follow. In (Christoudias et al 2002), it was stated that the recursive application of the mean shift property yields a simple mode detection procedure. The modes are the local maxima of the density. Therefore, with the new segmentation algorithm, by recursively applying mean shift, convergence is guaranteed. Indeed, the proposed algorithm is a straightforward extension of the filtering process. Comaniciu (2000) proved that the mean shift procedure converges. In other words, one can consider the new segmentation algorithm as a concatenated application of individual mean shift-filtering operations. Therefore, if we consider the whole event as linear, the recursive algorithm converges. Binarization is carried out after the segmented image is obtained.
Algorithm steps
The steps of the developed previously binarization algorithm are the following:Run the mean shift-filtering procedure according to former steps, obtaining at the filtered image.Define the regions, which are found in the spatial domain (hs) and that its intensities are smaller or equal than hr/2.For each region, which was defined in the step 2, one looks for all the pixels belonging to the patient and the mean of the intensity values are assigned at .Build the region graph through an adjacent list of the following way: for each region, one looks for all adjacent regions that are on the right hand side and below the patient.While there exists nodes in the graph, which have been not visited, to run a variant of the depth-first search (DFS), which concatenates adjacent regions, where we gave as parameter a node, which has been not visited. This according to steps following:5.1 Mark the mentioned node as visited.5.2 While children exist without visitingchildren = current childif |Z − Z|<= hr, then,The region of the child is fused with the region of the father where the same label is assigned and it is marked as visited.To the parent is assigned the visited child from the first position and the children which have been not visited remain.5.3 To look for the following child and come back to the step 2 while the stability has not yet been obtained (ie, no more pixel value modifications).Eliminate spatial regions containing less than M pixels, since those regions are considered irrelevant.(Binary): To all the pixels belonging to background, one assigns the white color and the black color to objects.
Experimental results : Analysis and discussion
Evaluation method
Manual segmentation generally gives the best and most reliable results when identifying structures for a particular clinical task. Up to now and due to the lack of ground truth, the quantitative evaluation of a binarization method is difficult to achieve. An alternative is to use manual-binarization results as the ground truth.In order to evaluate the performance of both techniques, we calculated the percentage of false negatives (FN; objects that are not found by the strategy) and the false positives (FP; noise, which is classified as objects). These were defined according to the following expressions,where Vp is the actual number quantity of objects identified by the physician, f being the quantity of objects, which were not marked by the strategy and f being the number of spurious regions, which were marked as objects.
Experimental results
Image segmentation; that is, the decomposition of the gray-level values into homogeneous areas is one of the most important steps in any image analysis system. Homogeneity, in general, is defined as similarity among the pixel values, where a piecewise constant model is enforced over the image. In this work, after the segmented image was obtained based on the recursively application of mean shift filtering, a binarization procedure was carried out according to algorithm No. 2.Some details on the original images are given next. Studied images are biopsies, which represent an angiogenesis process in malignant tumors. These were included in paraffin by using the inmunohistoquimic technique with the complex method of avidina biotina. Finally, monoclonal CD34 was contrasted with green methyl to accentuate formation of new blood vessels. These biopsies were obtained from soft parts of human bodies. This analysis was carried out for more than 80 patients. These images were captured via MADIP system with a resolution of 512 × 512 × 8 bit/pixels (Rodríguez et al 2001).There are several notable characteristics of these images, which are common to typical images that we encounter in the tissues of biopsies:The intensity is slightly darker within the blood vessel than in the local surrounding background. It is emphasized that this observation holds only within the local surroundings.High local variation of intensity is observed both within the blood vessel and the background. However, the local variation of intensity is higher within the blood vessel than in background regions.The variability of blood vessels both, in size and shape can be observed.A first segmentation example carried out with both algorithms is shown in Figure 1. Although Otsu’s method was already applied in a previous work (Rodríguez et al 2002b), one can observe the obtained result by using this technique.We note in Figure 1 that the binarized image using the new algorithm was cleaner and it didn’t accentuate the spurious information that appears in the original image (see arrows in Figure 1a). According to criterion of pathologists these objects (spurious, with little contrast) were originated by a problem in the preparation of the samples. The obtained result by using Otsu’s method is evident. One can observe the spurious information. This best result with the new binarization algorithm is because the same one is a direct extension of the filtering process and therefore this algorithm did not make mistakes. The parameter used to carry out the parametric logarithm was similar to 70 and this value was the same for all the binarized images. In the experimentation was proven that the final result is not very sensitive to this parameter, because a variation in the range from 40 to 70 led to the same result. The obtained results can be observed with the new algorithm and those attained by Rodríguez and colleagues (2002b, 2003). We see in Figure 2 that entropy diminishes in iteration by iteration until reaching a stable value, that is, until convergence.
Figure 1a
Original image. (b) Binarized image by using the new algorithm. (c) Binarized image according to the algorithm from the Algorithm steps section (a), (d) Binarized image via Otsu’s method.
Figure 2
Decrease of the entropy in each one of the iterations.
After the convergence was reached, a binarization procedure was carried out (see Algorithm No. 2). Another segmentation example carried out with both algorithms is shown in Figure 3.
Figure 3
(a) Original image. (b) Binarized image by using the new algorithm. (c) Binarized image by using graph (see Algorithm steps). (d) Binarized image via Otsu’s method.
It is evident to observe that the binarized image by using the new algorithm has a better appearance than the obtained image by using graph. Note, in this case, that the binarization algorithm by using graph made a mistake (see arrow in Figure 3c). In practice, it has been proven that this behavior did not always happen with all images and in the corners of the images this was manifested fundamentally. This was what motivated us to look for a more efficient algorithm, which this paper proposes. We see that the structures binarized with the new algorithm (see Figure 3b) are more similar to the original (see interior part of the blood vessels). On the other hand, the binarized image using Otsu’s method was better than in Figure 1d, but the image was still very noisy. This result is not good according to the physicians’ criterion, since these images will be subject to a further morphometrical analysis in order to diagnose and prognosticate malign tumors automatically.In many occasions, given the application, binarization imposes certain conditions (elimination of regions, pruning or integration of certain maxima, etc). This can originate a biased image with regards to the initial image. With the new algorithm the resolution is only imposed on the segmentation process; that is, to parameters h and h. For this reason, the new algorithm did not make mistakes; that is, a binarized image very different to the original was never obtained. This is one of the most important experimental results obtained with the new algorithm. Observe the obtained results with the new algorithm and those attained by Rodríguez and colleagues (2002b, 2003).From Figure 4, we observe that, iteration by iteration, the convergence was reached. After this step, binarization was carried out.
Figure 4
Decrease of the entropy in each one of the iterations. It is interesting to observe that in the iteration 4 an increase of the entropy is noticed, but starting from this iteration the entropy falls quickly.
In Figure 5, another example of segmentation carried out with both algorithms is shown.
Figure 5
(a) Original image. (b) Binarized image by using the new algorithm. (c) Binarized image by using graph. (d) Binarized image via Otsu’s method.
The difference among the three results is observed. Although, apparently, the result of the new algorithm is noisier, according to criterion of the physicians’ criterion, the result of Figure 5b is correct. In the case of the obtained result with the algorithm by using graph, some objects (blood vessels) were eliminated, which lost important information (see arrows in original image). This behavior is due to parameter M, which has as a goal to eliminate the areas or irrelevant objects. It is not necessary to use this parameter with the new algorithm (see Algorithms). The result obtained with Otsu’s method is very noisy. In our previous research (Rodriguez et al 2002b), we proposed a variant in order to work with Otsu’s method. If one carries out a morphological filter (for example, an opening) after the obtained result by using Otsu’s method, many objects (blood vessels) can be eliminated. This happened even when one selected the most appropriate structure element. We confirmed this in a previous work (Rodríguez et al 2003).As a last example, the behavior of the entropy until the algorithm reaches convergence can be appreciated (Figure 6). Other examples appear in Figures 7, 8, and 9.
Figure 6
Behavior of the entropy until the algorithm reaches the convergence.
Figure 7
(a) Original image. (b) Binarized image by using the new algorithm. (c) Binarized image by using graph. (d) Binarized image via Otsu’s method.
Figure 8
(a) Original image. (b) Binarized image by using the new algorithm. (c) Binarized image by using graph. (d) Binarized image via Otsu’s method.
Figure 9
(a) Original image. (b) Binarized image by using the new algorithm. (c) Binarized image by using graph. (d) Binarized image via Otsu’s method.
In the last examples, the most significant differences in the obtained results with both algorithms can be observed in the images of Figures 7 and 9 with arrows shown. The differences in both algorithms with respect to Otsu’s method are evident. Otsu’s method originated a lot of noise in all cases. It was proven that even when the images were filtered with Gauss, the results obtained with Otsu’s method were not good. The best result obtained by using the mean shift algorithm is because the mean shift is a good low pass filter. On the other hand, the obtained result in Figure 7 with the algorithm that uses graph, at least, an object was eliminated (see circle in Figure 7c). This issue, as in previous images was explained as caused by the parameter, M. Please note that this did not happen to the binarized image obtained with the new algorithm (see Figure 7b). In Figure 9, the obtained result with the new algorithm is verified as being more robust. Observe that, on one hand, the binarized objects are more contrasted (see vertical left arrows in Figures 9b, 9c), and that on the other hand, with the algorithm that uses graph, at least, a blood vessel was eliminated (see circle in Figure 9c).As it was pointed out earlier, the important information to be extracted from images in this work is just the number of blood vessels present. These images will be subject to a morphometrical analysis in order to diagnose automatically and predict malignant tumors based on the numbers of blood vessels in a certain area. In this case the size of blood vessels is not important.
Quantitative comparison among all algorithms
Since much of the motivation for biomedical image binarization is to automate all or part of the binarization process, it is perhaps more important to compare the results obtained by automatic binarization against those obtained by manual binarization. In Figure 10, three examples of the calculated XOR among the manual binarization and binarization by using both graph and new algorithm and also Otsu’s method are shown. In this validation only three of the analyzed images were presented; nevertheless, this comparison was carried out with all images.
Figure 10
(a) Manual binarization images. (b) XOR with the binarized images by recursively applying the mean shift filtering. (c) XOR with the binarized images by using graph. (d) XOR with the binarized images via Otsu’s method (see Figures 1, 7, and 9).
Results reported in this investigation have been confirmed by qualitative and quantitative comparisons by pathologists because they know the objects that they want to isolate. Therefore, in order to evaluate the performance of all algorithms, the percentage of false positives and false negatives was calculated among the result from the binarization and from the manual binarization. Numerical results of the comparison, by using the expression (10), were summarized in Table 1 (binarization obtained by recursively applying the mean shift filtering), Table 2 (binarization obtained by using graph), and Table 3 (binarization obtained via Otsu’s method).
Table 1
Numerical results of comparison between manual and automatic binarization (by recursively applying the mean shift filtering)
Images
Vp
fp
fn
FN
FP
Figures 10a and 10b (upper)
20
1
0
0.0%
5.0%
Figures 10a and 10b (middle)
17
0
0
0.0%
0.0%
Figures 10a and 10b (lower)
21
2
0
0.0%
9.1%
Table 2
Numerical results of comparison between manual and automatic binarization (by using graph)
Images
Vp
fp
fn
FN
FP
Figures 10a and 10c (upper)
20
19
3
15.0%
0.0%
Figures 10a and 10c (middle)
17
2
0
0.0%
11.7%
Figures 10a and 10c (lower)
21
0
4
19.0%
0.0%
Table 3
Numerical results of comparison between manual and automatic binarization (by using Otsu’s method)
Images
Vp
fp
fn
FN
FP
Figures 10a and 10d (upper)
20
25
0
0.0%
55.5%
Figures 10a and 10d (middle)
17
35
0
0.0%
67.3%
Figures 10a and 10d (lower)
21
20
0
0.0%
48.7%
In Table 1, the case of recursively applying the mean shift filtering showed that the percent error for false negatives were equal to 0%; that is, all regions belonging to blood vessels were detected. This denoted the correct performance of the new algorithm. This behavior was the same for the 80 binarized images. However, in Table 2, it is possible to note that with the algorithm that appears in the Algorithm steps section (by using graph), in two occasions the FN was different of cero; that is, the algorithm was not able to detect all the blood vessels. This issue happened with other binarized images. This is due to the aggressiveness of the parameter M in the algorithm of the Algorithm steps section. Therefore, this parameter (M) should be set to a small value for this application type; otherwise the diagnosis can be erroneous. In Table 3, one can see that Otsu’s method did not originate FN; that is, all objects (blood vessels) were detected. However, Otsu’s method originated a lot of FP, which was related with the noise it created. This proves the advantage of the new algorithm with regard to the previous one because, besides being simpler, this doesn’t use the parameter, M. Nevertheless, the algorithms that used the mean shift were superior, in this application, to Otsu’s method.In Figures 10b and 10c it can be noted that the binarization process was not completely correct. It can be seen, according to the judgment of physicians, which some false positives arose. However, in all the cases for both algorithms, the FP was less than 15%. The obtained results (FP) by using Otsu’s method were previously explained and these were not good.The false positives may arise due to transition of illumination or a change of contrast in the preparation of the samples. In practice, these problems are very difficult to eliminate completely in real images. Then, the result from the full automatic binarization steps was presented to the physicians. With a few mouse clicks on the final result, the false positives were completely eliminated.
Conclusions
We propose a new algorithm that applies recursively the mean shift filtering and uses entropy as the stopping criterion. With this new algorithm the binarization was carried out after the image was segmented. Starting from the obtained results, working with real images, we demonstrated that the new binarization algorithm through recursive application of the mean shift was more effective and more robust than the algorithm using graph. Also, it was shown that the binarized images with the new algorithm were always the correct ones; that is, this algorithm did not made a mistake. It was proven that, in all cases, the new algorithm was superior to Otsu’s method. This new algorithm can be applied to other types of images and it can be extended to other tasks of analysis of images where robust methods of binarization are required.