 Research Article
 Open Access
 Published:
Image Segmentation Method Using Thresholds Automatically Determined from Picture Contents
EURASIP Journal on Image and Video Processing volume 2009, Article number: 140492 (2009)
Abstract
Image segmentation has become an indispensable task in many image and video applications. This work develops an image segmentation method based on the modified edgefollowing scheme where different thresholds are automatically determined according to areas with varied contents in a picture, thus yielding suitable segmentation results in different areas. First, the iterative threshold selection technique is modified to calculate the initialpoint threshold of the whole image or a particular block. Second, the quadtree decomposition that starts from the whole image employs graylevel gradient characteristics of the currentlyprocessed block to decide further decomposition or not. After the quadtree decomposition, the initialpoint threshold in each decomposed block is adopted to determine initial points. Additionally, the contour threshold is determined based on the histogram of gradients in each decomposed block. Particularly, contour thresholds could eliminate inappropriate contours to increase the accuracy of the search and minimize the required searching time. Finally, the edgefollowing method is modified and then conducted based on initial points and contour thresholds to find contours precisely and rapidly. By using the Berkeley segmentation data set with realistic images, the proposed method is demonstrated to take the least computational time for achieving fairly good segmentation performance in various image types.
1. Introduction
Image segmentation is an important signal processing tool that is widely employed in many applications including object detection [1], objectbased coding [2–4], object tracking [5], image retrieval [6], and clinical organ or tissue identification [7]. To accomplish segmentations in these applications, the methods can be generally classified as regionbased and edgebased techniques. The regionbased segmentation techniques such as semisupervised statistical region refinement [8], watershed [9], region growing [10], and Markovrandomfield parameter estimation [11] focus on grouping pixels to become regions which have uniform properties like grayscale, texture, and so forth. The edgebased segmentation techniques such as Canny edge detector [12], active contour [13], and edge following [14–16] emphasize on detecting significant graylevel changes near object boundaries. Regarding to the abovementioned methods, the segmenting mechanisms associated with users can be further categorized as either supervised segmentation or unsupervised segmentation.
The advantage of the regionbased segmentation is that the segmented results can have coherent regions, linking edges, no gaps from missing edge pixels, and so on. However, its drawback is that decisions about region memberships are often more difficult than those about edge detections. In the literature, the Semisupervised Statistical Region Refinement (SSRR) method developed by Nock and Nielsen is to segment an image with userdefined biases which indicate regions with distinctive subparts [8]. SSRR is fairly accurate because the supervised segmentation is not easily influenced by noise, but is highly timeconsuming. The unsupervised DISCovering Objects in Video (DISCOV) technique developed by Liu and Chen could discover the major object of interest by an appearance model and a motion model [1]. The watershed method that is applicable to nonspecific image type is also unsupervised [9, 17]. The implementation manners of the watershed method can be classified into rain falling and water immersion [18]. Some recent watershed methods use the prior informationbased difference function instead of the morefrequentlyused gradient function to improve the segmented results [19] and employ the marker images as probes to explore a gradient space of an unknown image and thus to determine the bestmatched object [20]. The advantage of the watershed method is that it can segment multiple objects in a single threshold setting. The disadvantage of the watershed method is that the different types of images need different thresholds. If the thresholds are not set correctly, then the objects are undersegmented or oversegmented. Additionally, slight changes in the threshold can significantly alter the segmentation results. In [21, 22], the systematic approach was demonstrated to analyze nature images by using a Binary Partition Tree (BPT) for the purposes of archiving and segmentation. BPTs are generated based on a region merging process which is uniquely specified by a region model, a merging order, and a merging criterion. By studying the evolution of region statistics, this unsupervised method highlights nodes which represent the boundary between salient details and provide a set of tree levels from which segmentations can be derived.
The edgebased segmentation can simplify the analysis by drastically minimizing the amount of pixels from an image to be processed, while still preserving adequate object structures. The drawback of the edgebased segmentation is that the noise may result in an erroneous edge. In the literature, the Canny edge detector employed the hysteresis threshold that adapts to the amount of noise in an image, to eliminate streaking of edge contours where the detector is optimized by three criteria of detection, localization, and single response [12]. The standard deviation of the Gaussian function associated with the detector is adequately determined by users. The Live Wire On the Fly (LWOF) method proposed by Falcao et al. helps the user to obtain an optimized route between two initial points [23]. The user can follow the object contour and select many adequate initial points to accomplish that an enclosed contour is found. The benefit of LWOF is that it is adaptive to any type of images. Even with very complex backgrounds, LWOF can enlist human assistance in determining the contour. However, LWOF is limited in that if a picture has multiple objects, each object needs to be segmented individually and the supervised operation significantly increases the operating time. The other frequently adopted edgebased segmentation is the snake method first presented by Kass et al. [24]. In this method, after an initial contour is established, partial local energy minima are calculated to derive the correct contour. The flaw of the snake method is that it must choose an initial contour manually. The operating time rises with the number of objects segmented. Moreover, if the object is located within another object, then the initial contours are also difficult to select. On the other hand, Yu proposed a supervised multiscale segmentation method in which every pixel becomes a node, and the likelihood of two nodes belonging together is interpreted by a weight attached to the edge linking these two pixel nodes [25]. Such approach allows that image segmentation becomes a weighted graph partitioning problem that is solved by average cuts of normalized affinity. The abovementioned supervised segmentation methods are suitable for conducting detailed processing to objects of segmentation under user's assistance. In the unsupervised snake method also named as the active contour scheme, the geodesic active contours and level sets were proposed to detect and track multiple moving objects in video sequences [26, 27]. However, the active contour scheme is generally applied when segmenting standalone objects within an image. For instance, an object located within the complicated background may not be easily segmented. Additionally, contours that are close together cannot be precisely segmented. Relevant study, the ExtendedGradient Vector Flow (EGVF) snake method proposed by Chuang and Lie has improved upon the conventional snake method [28]. The EGVF snake method can automatically derive a set of seeds from the local gradient information surrounding each point, and thus can achieve unsupervised segmentation without manually specifying the initial contour. The noncontrastbased edge descriptor and mathematical morphology method were developed by Kim and Park and Gao et al., respectively, for unsupervised segmentation to assist objectbased video coding [29, 30].
The conventional edgefollowing method is another edgebased segmentation approach that can be applied to nonspecific image type [14, 31]. The fundamental step of the edgefollowing method attempts to find the initial points of an object. With these initial points, the method then follows on contours of an object until it finds all points matching the criteria, or it hits the boundary of a picture. The advantage of the conventional edgefollowing method is its simplicity, since it only has to compute the gradients of the eight points surrounding a contour point to obtain the next contour point. The search time for the next contour point is significantly reduced because many points within an object are never used. However, the limitation of the conventional edgefollowing method is that it is easily influenced by noise, causing it to fall into the wrong edge. This wrong edge can form a wrong route to result in an invalid segmented area. Moreover, the fact that initial points are manually selected by users may affect accuracy of segmentation results due to inconsistence in different times for selection. To improve on these drawbacks, the initialpoint threshold calculated from the histogram of gradients in an entire image is adopted to locate positions of initial points automatically [15]. Additionally, the contour thresholds are employed to eliminate inappropriate contours to increase the accuracy of the search and to minimize the required searching time. However, this method is limited in that the initialpoint threshold and contour threshold remain unchanged throughout the whole image. Hence, optimized segmentations cannot always be attained in areas with complicated and smooth gradients. If the same initialpoint threshold is employed throughout an image with areas having different characteristics, for example, a half of the image is smooth, and the other half has major changes in gradients, then the adequately segmented results can clearly only be obtained from one side of the image, while the objects from the other side are not accurately segmented.
This work proposes a robust segmentation method that is suitable for nonspecific image type. Based on the hierarchical segmentation under a quadtree decomposition [32, 33], an image is adequately decomposed into many blocks and subblocks according to the image contents. The initialpoint threshold in each block is determined by the modified iterative threshold selection technique and the initialpoint threshold of its parent block. Additionally, the contour threshold is calculated based on the histogram of gradients in each block. Using these two thresholds, the modified edgefollowing scheme is developed to automatically and rapidly attain fairly good segmentation results. Segmentations on various types of images are performed during simulations to obtain the accuracy of segmentations using methods such as the proposed, watershed, active contour, and others. To do fair comparison, the data set and benchmarks from the Computer Vision Group, University of California at Berkeley were used [34]. Simulation results demonstrate that the proposed method is superior to the conventional methods to some extent. Owing to avoiding human interferences and reducing operating time, the proposed method is more robust and suitable to various image and video applications than the conventional segmentation methods.
2. Proposed Robust Image Segmentation Method
This work develops a robust image segmentation method based on the modified edgefollowing technique, where different thresholds are automatically generated according to the characteristics of local areas. Taking the "garden" image in Figure 1(a) as an example, Figure 1(b) divides this image into 16 bocks and calculates the average value of gradients between the currently processed point and its neighboring points in eight compass directions to plot a histogram of the average values from all points in each block. Looking at these histograms, the complicated part circled in the diagram represents the area of extreme changes in gradients. With a larger variation of gradients, the threshold for this area must also be larger than that adopted in the smooth area to prevent oversegmentation. To adapt to variations of gradients in each area, the quadtree decomposition is adopted to divide an image into four blocks at an equal size and would continue to divide further depending on complexities of the blocks. If the criteria for further decomposition are satisfied, then the block or subblock is divided into four subblocks or smaller subblocks; otherwise, it would stop here. The proposed decomposition would continue until all blocks and subblocks are completely obtained, as shown in Figure 2. During the quadtree decomposition process, different threshold values can be determined for each decomposed block, according to variations in the gradients of each decomposed block, to attain accurate segmentation results. The major differences between the proposed robust image segmentation method and our previous work [15] are quadtree decomposition, adaptive thresholds in each decomposed blocks, and direction judgment in the edge following. To clearly illustrate the proposed method, four stages are introduced. First, the iterative threshold selection technique is modified to calculate the initialpoint threshold of the whole image or a particular block from the quadtree decomposition. Second, the quadtree decomposition is applied to establish decomposed blocks, where graylevel gradient characteristics in each block are computed for deciding further decomposition or not. After the quadtree decomposition, the contour threshold of each decomposed block is calculated in the third stage. Initialpoint thresholds are used to determine the initial points while contour thresholds can eliminate inappropriate contours to increase the accuracy of search and minimize the required searching time. Finally, the modified edgefollowing method is used to discover complete contours of objects. Details of each stage are described below.
2.1. Stage of Applying the Modified Iterative Threshold Selection Technique
In this stage, the gradient between the currently processed point and its neighboring point in one of eight compass directions is first determined by using the following equation:
where neighbors to in direction , and and denote the graylevel values at locations and , respectively. Here, is a value denoting one of the eight compass directions as shown in Figure 3. For , the remainder of divided by 8 is taken. When , is added by a multiple of 8 to become a positive value smaller than 8. Hence, "1", "9", and "7" denote the same directions. This will be useful in Section 2.4.
is defined to take a mean of in eight directions for the point in the following equation:
The iterative threshold selection technique that was proposed by Ridler and Calvard to segment the foreground and background is modified to calculate the initialpoint threshold of the whole image or a particular block from the quadtree decomposition, for identifying initial points [35]. The modified iterative threshold selection technique is illustrated as follows.

(1)
Let where MAX is a function to select the maximum value.

(2)
is adopted to classify all points in a decomposed block into initial and noninitial points. A point with is an initial point, while a point with is a noninitial point. The groups of initial and noninitial points are denoted by and , respectively. In these two groups, the averaged is computed by
(3)where and denote the numbers of initial and noninitial points, respectively,

(3)
(4)
where round rounds off the value of to the nearest integer number. and , ranging from 0 to 1, denote the weighting values of initial and noninitial groups, respectively. Additionally,

(4)
If then and go to Step 2, else
Notably, is limited to the range between 0 and 255, and rounded off into a specific integer in the iterative procedure so that the abovementioned iteration always converges. Usually, and are set to 0.5 to allow locating in the middle of two groups. To avoid missing some initial points in lowcontrast areas of an image with complicated contents, can be increased to lower . However, with an increasing decomposition level in the quadtree decomposition process, can be lowered for a small decomposed block that has a consistent contrast. Taking the "alumgrns" image in Figure 4 as an example, the initialpoint threshold of the entire image calculated by the modified iterative threshold selection is 16 under The rough contour formed by initial points can be found as depicted in Figure 4(b), but the contour is not intact. Hence, the quadtree decomposition in the following stage would take this as the basis to compute the initialpoint threshold value of each decomposed block depending on the complexity of each area.
2.2. Stage of the QuadTree Decomposition Process
In this stage, the whole image is partitioned into many blocks by using quadtree decomposition. The quadtree decomposition process starts with the initialpoint threshold, mean and standard deviations derived from the entire image on the top level. At each block, the process determines the initialpoint threshold and whether this block should be further decomposed. For the whole image or each block, Figure 5 shows the flow chart of the quadtree decomposition to determine whether the currently processed block is further decomposed and to calculate the initialpoint threshold of this block. Assume that the block with a mean and a standard deviation of graylevel gradients is currently processed. The parent block of is represented by in which initialpoint threshold, mean and standard deviations are denoted by , and , respectively. While of each point in the block is smaller than , the block does not contain any initial point and thus its initialpoint threshold is set to in order to avoid the initialpoint generation. Under such a situation, there is no further decomposition in the block . On the other hand, when of any point of the block is larger than , the block is further decomposed into four subblocks. Additionally, is temporarily given by the value computed by the modified iterative threshold selection technique in the block . If and , then the block would contain a smoother area than the block . Let to prevent the reduction of the initialpoint threshold from yielding the undesired initial points. If and , the complexity of the block is increased. In this situation, the block may contain contour points, but may also include many undesired noises or complicated image contents. Hence, raising the initialpoint threshold by to allow that can eliminate the noises and reduce the oversegmentation result in the block . Otherwise, the initial point threshold of the block that may contain objects is remained as the value from the modified iterative threshold selection technique conducted in the block .
During the quadtree decomposition process, can be set by a value smaller than 0.5 at the first decomposition level to lower for capably attaining initial points from lowcontrast areas. Additionally, is increased with a decomposition level. For the smallest decomposed block in the last decomposition level, can be a value larger than or equal to 0.5 for increasing to avoid the undesired initial points. Notably, the initialpoint thresholds of blocks with drastic graylevel changes would rise, whereas the initialpoint thresholds of blocks with smooth graylevel changes would fall. This approach of determining initialpoint threshold can obtain adequate initial points based on the complexity of image contents.
After the quadtree decomposition is finished, the positions and moving directions of initial points in each block are recorded accordingly.

(1)
is a point from a decomposed block .

(2)
If then is labeled as the initial point and is recorded where

(3)
Repeat step 2 for all points in the block .
2.3. Stage of Determining the Contour Threshold Tc
At the end of the quadtree decomposition process, the gradients of each decomposed block are computed to determine the contour threshold . According to (1), the largest value of in the eight directions is , where is a specific value of for yielding the maximum . The histogram of from all points of the decomposed block is calculated. Here, is assumed to be the number of the absolute graylevel difference being . If a decomposed block comprises many onepixel lines that are all black and white in an interlaced manner, then this decomposed block contains the maximum number of contour points, which is half the number of points in the decomposed block. Restated, the first half of the histogram results from noncontour points at least. Accordingly, the contour threshold can be the index value, indicating that denotes half the number of points in a decomposed block, as indicated in Figure 6. This threshold does not miss any contour points. When the search is conducted for contour points, is used to determine whether to stop the search procedure in the modified edgefollowing scheme. If the differences between the predicted contour point and its left and right neighboring points are less than , then the search has taken the wrong path, and should stop immediately. This approach not only prevents searching in the wrong path, but also saves on the search time. Additionally, of each decomposed block is independently determined to adapt to the characteristics of each area.
2.4. Stage of Applying the Modified EdgeFollowing Method
The initialpoint threshold , contour threshold , and initial points are obtained in the previous stages. In this stage, the searching procedure is started from each initial point until the closedloop contour is found. The position and direction of the th searched contour point are represented by and , respectively. The modified edgefollowing method is given as follows.

(1)
Select an initial point and its . This initial point is represented by and set where the edgefollowing direction is perpendicular to the maximumgradient direction . Here, is a value denoting one of the eight compass directions as shown in Figure 3.

(2)
Let , where is the contourpoint index. The searching procedure begins from the initial point and the direction .

(3)
First, to reduce computational time, the search is restricted to only three directions by setting , where denotes the number of directions needed. The direction of the next point thus has three possible values: and . For instance, if , then the next contour point could appear at the predicted contour point , or , as shown in Figure 7(a). With the leftsided point and rightsided point of the predicted contour point , the line formed by and points is perpendicular to the line between and , where indicates the direction deviation, as revealed in Figure 7(b) under and . Additionally, and can be represented as
(5)
respectively, where ranges from to , round rounds off the value of to the nearest integer number.

(4)
The graylevel average values and of the previous contour points are calculated as
(6)

(5)
and that interpret the relationships among the predicted point, its leftsided and rightsided points, and and , are used to obtain the next probable contour point:
(7)(8)Equations (7) and (8) are used to determine the th contour point. The first term represents the gradient between the predicted point and its leftsided or rightsided point. The second term may prevent (7) or (8) from finding the wrong contours due to the noise interference. If the difference in the second term is too large, then the wrong contour point may be found.

(6)
Select the largest value by using or If , then the correct direction has been found, and go to step 8. Here, comes from the decomposed block which the predicted contour point belongs to.

(7)
If , then the previously searched direction may have deviated from the correct path and set to obtain the seven neighboring points for direction searching, going to step 5. Otherwise, stop the search procedure, and go to step 10.

(8)
From , the correct direction and position of the th contour point are calculated as follows:
(9)

(9)
The searching procedure is finished when the th contour point is in the same position as any of the previous searched contour points or has gone beyond the four boundaries of the image. If neither condition is true, then set , and return to step 3 to discover the next contour point.

(10)
If set and go to step 2 to search for the contour points in the opposite direction to .

(11)
Go to step 1 for another initial point that is not searched. When all initial points are conducted, the procedure of the modified edgefollowing method is ended.
During the searching process, taking in the left and right neighboring points of the next predicted contour point in computation would significantly reduce the tendency of the edgefollowing method to deviate from the correct edge due to noise interferences. Only three directions are first searched in the searching process. If the values of these three directions are all below , then the search proceeds to the seven directions. The searching time is thus significantly decreased, since most searches only need the computation of the gradients in three directions. Figure 8 depicts the flow chart of the proposed modified edgefollowing scheme that searches from an initial point.
3. Computational Analyses
In the following experiment, the LWOF, EGVF snake, watershed and proposed methods are adopted and compared in processing time and segmentation accuracy. Among these methods, LWOF is a supervised segmentation method, with small circles indicating the positions selected by the user for segmentation. The user can adequately select some points close to an object to obtain a segmentation result that is closest to that observed with naked eyes. However, LWOF requires a very long computational time, and is dependent on the user. Consequently, the processing time of LWOF must include the manual operational time. The segmentation function adopted by the watershed method is gradient [9]. Additionally, the merging operation is based on the region mean where the threshold indicates the criterion of region merging. Here, two quantities, precision and recall, are employed to evaluate the segmented results from each segmentation method [34, 36]. Precision, , is the probability that a detected pixel is a true one. Recall, , is the probability that a true pixel is detected:
Additionally, the Fmeasure, , with considering and is adopted and defined as
where α is set to 0.5 in our simulations.
Figure 9(a) shows a 256 × 256pixel "bacteria" image, which includes about 20 bacteria objects that do not overlap with each other. The shot was taken out of focus, causing the image edges to be blurry, thus affecting some of the segmented results. Figure 9(b) displays the result from LWOF. LWOF takes a long time because it must perform about 20 object selection operations. Figure 9(c) depicts the result from the EGVF snake method. Some groups of connected neighboring bacteria objects are mistaken for single objects. Figures 9(d) and 9(e) show the results from utilizing the watershed method with thresholds of 20 and 40, respectively. Many erroneous borders are found when the threshold is 20, with some single objects being segmented into multiple smaller parts. While fewer erroneous contours are found when the threshold is 40, some objects are still missing. The number of missing objects increases with the threshold. Contrasts in this picture are significantly reduced owing to the unfocused image, making the threshold hard to adjust. An excessively large threshold causes missing objects, but a very small threshold would cause the background to blur with the bacteria, which make it even more difficult to segment. To do fair comparison, the watershed method is iteratively conducted under different thresholds to yield the best segmented results in the following analyses. Figure 9(f) displays the results from the proposed method, which is not affected by the outoffocus image due to adequate initial points attained, and thus can segment every bacteria object.
Figure 10(a) shows the 540 × 420pixel "chessboard" image, which is a 3D manmade image including a chessboard and cylinders. The light effect is added in the picture, reflecting shadows of the cylinders on the chessboard. Figure 10(b) shows the ground truth from Figure 10(a). The result from LWOF is depicted in Figure 10(c). A fairly good result is obtained using the manual operation, but a large number of initial points required means that the computational time is very long. Figure 10(d) displays the result from the EGVF snake method, which is clearly not appropriate for an image, with objects all very close to each other. The simulation result indicates that contour of the outermost layer is segmented, but that the squares inside the chessboard cannot be detached from each other, leaving the result with only one object. Figure 10(e) shows results from using the watershed method at a threshold being 27 with the maximum Fmeasure. Figure 10(f) depicts the result from the proposed method. The proposed method not only can segment the two letters and the cylinders, it also segments the chessboard itself better than does the watershed method with the best threshold value. The segmentation of the side surface in the chessboard is also far more accurate than that generated from the watershed method. Table 1 lists the segmentation results from the LWOF, EGVF snake, watershed at a threshold with the maximum Fmeasure, and proposed methods. Objects from the picture include two areas of cylinders, 24 areas of the chessboard's top side, letters "A" and "B", and 10 areas of the chessboard's front and right sides, for a total of 36 closelooped independent areas. While the supervised LWOF method has the highest Fmeasure, it also requires a long time. Amongst the unsupervised methods, the proposed method can segment the most objects, and also has a significantly higher Fmeasure than the EGVF snake and watershed methods.
Figure 11 shows the 360 × 360pixel "square" image corrupted by the Gaussian noise, at the SignaltoNoise Ratio (SNR) of 18.87 dB. Figures 11(a) and 11(b) depict the noisy image and ground truth, respectively. The result from adopting the LWOF segmentation is displayed in Figure 11(c). Not many points are selected manually since the angles of turns are not very large. However, the contour is not smooth due to the noise. Figure 11(d) shows the result obtained by using the EGVF snake method. Some dark areas could be lost in the sharp corners. The result from using the watershed method at a threshold being 45 with the maximum Fmeasure is depicted in Figure 11(e). The proposed method can eliminate the problem and obtain the correct area as shown in Figure 11(f). Table 2 compares Fmeasures and computational time of the four segmentation methods at SNRs of 18.87 dB, 12.77 dB and 9.14 dB in which the watershed method adopts thresholds of 42, 44, and 45, respectively. By using the proposed method, the segmented area has the highest Fmeasures in each of the three SNR scenarios. The proposed method using the modified edgefollowing technique is significantly faster than LWOF when the manual operational time is considered. Additionally, the proposed method provides comparable or even better results than the LWOF. The results obtained by the watershed method at thresholds with the maximum Fmeasures take slightly lower processing time than the proposed method when the threshold selection time is not counted in the watershed method. The above experiments were conducted by using C programs running on a Pentium IV 2.4 GHz CPU under Windows XP operating system.
The above experimental results demonstrate that the proposed method performs better than the other methods. As for the blurry objects resulting from the outoffocus shot in Figure 9, the proposed method can accurately segment all objects without incurring oversegmentation and undersegmentation as does the watershed method in Figures 9(d) and 9(e), respectively. Figure 10 reveals that both the proposed and watershed methods demonstrate the capability of fully segmenting objects inside another object and overlapping objects but the EGVF snake method cannot be applied in these pictures. The proposed method can segment more objects out of the image in Figure 10, which contains many individual objects, than the watershed method. In the simulation results shown in Figure 11, by considering the graylevel changes of the left and right neighboring points during the contoursearching process, the proposed method not only reduces the noise interference, it also outperforms both the EGVF snake and watershed methods against noise interference.
To do fair comparison, the data set and benchmarks from the Computer Vision Group, University of California at Berkeley were applied in the proposed and watershed methods, where the watershed method is also iteratively performed to search for the optimized threshold. Since the EGVF snake method is not suitable for the image with objects inside another object, it is not addressed in this data set. The segmentation results of the conventional methods such as Brightness Gradient (BG), Texture Gradient (TG), and Brightness/Texture Gradients (B/TG) are referred from [34] for comparison. The precisionrecall () curve shows the inherent tradeoff between and . Figure 12 depicts the segmented results and the precisionrecall curves from Human, BG, TG, B/TG, watershed and proposed methods. In Figures 12(c), 12(d), 12(e), and 12(f), the BG, TG, B/TG and watershed methods are iteratively conducted under different thresholds to yield the best segmented results with of 0.87, 0.88, 0.88, and 0.83, respectively. In the proposed method, the threshold is automatically determined to be a specific value that only yields a converged point in Figure 12(g), where the Fmeasure of 0.93 can be achieved. Hence, the proposed method does not need the ground truth to iteratively determine the bestmatched thresholds and thereby greatly reduces the computational time demanded by the BG, TG, B/TG, and watershed methods.
The proposed method is applied to all test images, and its segmentation results are evaluated according to the ground truths. Particularly, six images from 100 test images are added by the Gaussian noise to become noisy images at the SNR of 18.87 dB. Figure 13 displays the segmented results of original and noisy images using the proposed and watershed methods, where Fmeasures and computational time are listed in Table 3. From Figure 13, the segmented results from the proposed method exhibit more apparent and complete objects than those from the watershed method at specific thresholds with the maximum Fmeasures. In Figures 13(a), 13(b), 13(c), 13(d), 13(e), and 13(f), the watershed method is conducted under thresholds of 23, 30, 7, 45, 16, and 32 to yield the best segmented results, respectively. Additionally, curves from proposed and watershed methods are depicted. Moreover, the proposed method with thresholds adapting to image contents has higher or equal Fmeasure values than the watershed methods as illustrated in Table 3. Regarding to computational time, the proposed method at most cases takes slightly longer time than the watershed method owing to additional threshold determination process required by the proposed method when the iterative process of determining the best threshold of the watershed method is not included.
The histograms of Fmeasures from 100 test images by using BG, TG, B/TG, and proposed method are shown in Figure 14. Although the proposed method yields little poor performance in few images under very low contrast, it still has above 0.6 of Fmeasure for 70 test images. The number of Fmeasures between 0.6 and 0.9 in the proposed method is 68 larger than 64 in BG and 59 in TG, and smaller than 73 in B/TG while the number of Fmeasures between 0.9 and 1.0 in the proposed method is 2 better than none in BG, TG, and B/TG. Restated, when the images have apparent contours, the proposed method can yield segmented results close to the ground truth done by humans. The proposed method can effectively determine the main foreground and is not trapped to the complex background. Hence, the values of in these cases under the proposed method can be superior to those using the conventional methods. From computational time point of view, the proposed method that uses automatically determined thresholds to perform image segmentation apparently takes the least time than the conventional methods that are iteratively conducted under different thresholds to converge their minima.
In practical applications, the ground truths are not available. The conventional methods, BG, TG, and B/TG, that need the ground truths to determine the bestmatched thresholds or parameters may not obtain good segmentation results under no ground truth. However, the proposed robust segmentation method does not need the ground truths and iterative operations to determine the segmentation results, and therefore is very suitable to various realtime image and video segmentation applications under no ground truth.
4. Conclusion
This work proposes an automatically determined threshold mechanism to perform a robust segmentation. Different initialpoint thresholds are determined and given to areas with drastic and smooth changes in graylevel values. The contour thresholds are generated by analyzing the decomposed blocks, thus preventing the search from falling into the wrong path, and saving computational time. The contour search process also considers the gradients of the left and right neighboring points of every predicted contour point, in order to lower the possibility of the method being affected by the neighboring noise interferences. Additionally, most of the searching process requires only the computation of the gradients of three directions, thus minimizing the searching time. The proposed method can perform segmentation on objects inside another object and objects that are close to each other, which the EGVF snake method cannot perform. The proposed method also solves problems encountered by the watershed method, in which the results may change significantly as the threshold values differ. The proposed method can significantly reduce noise interference, which easily affects the conventional edgefollowing method. In handling blurry objects from an outoffocus shot, the proposed method can also segment the required objects. Finally, the benchmark from Computer Vision Group, University of California at Berkeley was conducted to demonstrate that the proposed method could take the least computational time to obtain robust and good segmentation performance than the conventional ones. Therefore, the proposed method can be widely and effectively employed in various segmentation applications.
References
 1.
Liu D, Chen T: DISCOV: a framework for discovering objects in video. IEEE Transactions on Multimedia 2008,10(2):200208.
 2.
Pan J, Gu C, Sun MT: An MPEG4 virtual video conferencing system with robust video object segmentation. Proceedings of Workshop and Exhibition on MPEG4, June 2001, San Jose, Calif, USA 4548.
 3.
Yang JF, Hao SS, Chung PC, Huang CL: Color object segmentation with eigenbased fuzzy Cmeans. Proceedings of the IEEE International Symposium on Circuits and Systems (ISCAS '00), May 2000, Geneva, Switzerland 5: 2528.
 4.
Chien SY, Huang YW, Hsieh BY, Ma SY, Chen LG: Fast video segmentation algorithm with shadow cancellation, global motion compensation, and adaptive threshold techniques. IEEE Transactions on Multimedia 2004,6(5):732748. 10.1109/TMM.2004.834868
 5.
Zhou JY, Ong EP, Ko CC: Video object segmentation and tracking for contentbased video coding. Proceedings of IEEE International Conference on Multimedia and Expo (ICME '00), July 2000, New York, NY, USA 3: 15551558.
 6.
Chiang CC, Hung YP, Lee GC: A learning statespace model for image retrieval. EURASIP Journal on Advances in Signal Processing 2007, 2007:10.
 7.
Chen YB, Chen OTC, Chang HT, Chien JT: An automatic medicalassistance diagnosis system applicable on Xray images. Proceedings of the 44th IEEE Midwest Symposium on Circuits and Systems (MWSCAS '01), August 2001, Dayton, Ohio, USA 2: 910914.
 8.
Nock R, Nielsen F: Semisupervised statistical region refinement for color image segmentation. Pattern Recognition 2005,38(6):835846. 10.1016/j.patcog.2004.11.009
 9.
Vincent L, Soille P: Watersheds in digital spaces: an efficient algorithm based on immersion simulations. IEEE Transactions on Pattern Analysis and Machine Intelligence 1991,13(6):583598. 10.1109/34.87344
 10.
Adams R, Bischof L: Seeded region growing. IEEE Transactions on Pattern Analysis and Machine Intelligence 1994,16(6):641647. 10.1109/34.295913
 11.
Kim DH, Yun ID, Lee SU: New MRF parameter estimation technique for texture image segmentation using hierarchical GMRF model based on random spatial interaction and mean field theory. Proceedings of the 18th International Conference on Pattern Recognition (ICPR '06), August 2006, Hong Kong 2: 365368.
 12.
Canny J: Computational approach to edge detection. IEEE Transactions on Pattern Analysis and Machine Intelligence 1986,8(6):679698.
 13.
Bogdanova I, Bresson X, Thiran JP, Vandergheynst P: Scale space analysis and active contours for omnidirectional images. IEEE Transactions on Image Processing 2007,16(7):18881901.
 14.
Pitas I: Digital Image Processing Schemes and Application. John Wiley & Sons, New York, NY, USA; 2000.
 15.
Chen YB, Chen OTC: Robust fullyautomatic segmentation based on modified edgefollowing technique. Proceedings of IEEE International Conference on Acoustics, Speech, and Signal Processing (ICASSP '03), April 2003, Hong Kong 3: 333336.
 16.
Sonka M, Hlavac V, Boyle R: Image Processing, Analysis, and Machine Vision. 2nd edition. Brooks/Cole, New York, NY, USA; 1998.
 17.
Chien SY, Huang YW, Chen LG: Predictive watershed: a fast watershed algorithm for video segmentation. IEEE Transactions on Circuits and Systems for Video Technology 2003,13(5):453461. 10.1109/TCSVT.2003.811605
 18.
Kuo CJ, Odeh SF, Huang MC: Image segmentation with improved watershed algorithm and its FPGA implementation. Proceedings of the IEEE International Symposium on Circuits and Systems (ISCAS '01), May 2001, Sydney, Australia 2: 753756.
 19.
Grau V, Mewes AUJ, Alcañiz M, Kikinis R, Warfield SK: Improved watershed transform for medical image segmentation using prior information. IEEE Transactions on Medical Imaging 2004,23(4):447458. 10.1109/TMI.2004.824224
 20.
Hu Y, Nagao T: A matching method based on markercontrolled watershed segmentation. Proceedings of the International Conference on Image Processing (ICIP '04), October 2004, Singapore 1: 283286.
 21.
Salembier P, Garrido L: Binary partition tree as an efficient representation for image processing, segmentation, and information retrieval. IEEE Transactions on Image Processing 2000,9(4):561576. 10.1109/83.841934
 22.
Lu H, Woods JC, Ghanbari M: Binary partition tree for semantic object extraction and image segmentation. IEEE Transactions on Circuits and Systems for Video Technology 2007,17(3):378383.
 23.
Falcao AX, Udupa JK, Miyazawa FK: An ultrafast usersteered image segmentation paradigm: live wire on the fly. IEEE Transactions on Medical Imaging 2000,19(1):5562. 10.1109/42.832960
 24.
Kass M, Witkin A, Terzopoulos D: Snakes: active contour models. International Journal of Computer Vision 1988,1(4):321331. 10.1007/BF00133570
 25.
Yu SX: Segmentation using multiscale cues. Proceedings of IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR '04), JuneJuly 2004, Washington, DC, USA 1: 247254.
 26.
Paragios N, Deriche R: Geodesic active contours and level sets for the detection and tracking of moving objects. IEEE Transactions on Pattern Analysis and Machine Intelligence 2000,22(3):266280. 10.1109/34.841758
 27.
Mukherjee DP, Ray N, Acton ST: Level set analysis for leukocyte detection and tracking. IEEE Transactions on Image Processing 2004,13(4):562572. 10.1109/TIP.2003.819858
 28.
Chuang CH, Lie WN: A downstream algorithm based on extended gradient vector flow field for object segmentation. IEEE Transactions on Image Processing 2004,13(10):13791392. 10.1109/TIP.2004.834663
 29.
Kim BG, Park DJ: Novel noncontrastbased edge descriptor for image segmentation. IEEE Transactions on Circuits and Systems for Video Technology 2006,16(9):10861095.
 30.
Gao H, Siu WC, Hou CH: Improved techniques for automatic image segmentation. IEEE Transactions on Circuits and Systems for Video Technology 2001,11(12):12731280. 10.1109/76.974681
 31.
Chen YB, Chen OTC: Semiautomatic image segmentation using dynamic direction prediction. Proceedings of the IEEE International Conference on Acoustics, Speech, and Signal Processing (ICASSP '02), May 2002, Orlando, Fla, USA 4: 33693372.
 32.
Tierny J, Vandeborre JP, Daoudi M: Topology driven 3D mesh hierarchical segmentation. Proceedings IEEE International Conference on Shape Modeling and Applications (SMI '07), June 2007, Lyon, France 215220.
 33.
Smith JR, Chang SF: Quadtree segmentation for texturebased image query. Proceedings of the 2nd Annual ACM Multimedia Conference, October 1994, San Francisco, Calif, USA 279286.
 34.
Martin D, Fowlkes C, Tal D, Malik J: A database of human segmented natural images and its application to evaluating segmentation algorithms and measuring ecological statistics. Proceedings of the 8th IEEE International Conference on Computer Vision, July 2001, Vancouver, Canada 2: 416423.
 35.
Ridler TW, Calvard S: Picture thresholding using an iterative selection method. IEEE Transactions on Systems, Man, and Cybernetics 1978,8(8):630632.
 36.
van Rijsbergen C: Information Retrieval. 2nd edition. Department of Computer Science, University of Glasgow, Glasgow, UK; 1979.
Acknowledgments
Valuable discussions with Professor Tsuhan Chen, Carnegie Mellon University, Pittsburgh, USA is highly appreciated. Additionally, the authors would like to thank the National Science Council, Taiwan, for financially supporting this research under Contract nos.: NSC 952221E270015 and NSC 952221E194032. Professor W. N. Lie, National Chung Cheng University, Chiayi, Taiwan is appreciated for his valuable suggestion. Dr. C. H. Chuang, Institute of Statistical Science, Academia Sinica, Taipei, Taiwan, is thanked for kindly providing the software program of the snake and watershed methods.
Author information
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 2.0 International License (https://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
About this article
Cite this article
Chen, Y.B., Chen, O.T. Image Segmentation Method Using Thresholds Automatically Determined from Picture Contents. J Image Video Proc 2009, 140492 (2009). https://doi.org/10.1155/2009/140492
Received:
Revised:
Accepted:
Published:
Keywords
 Initial Point
 Segmentation Result
 Initial Contour
 Contour Point
 Texture Gradient