You are on page 1of 4

2011 4th International Congress on Image and Signal Processing1

Watershed Image Segmentation Based on


Nonlinear Combination Morphology Filter

XIA Ping1、2,TANG Tinglong2


(1. Institute of Intelligent Vision and Image Information, Three Gorges University , YiChang 443002,China )
(2. College of Electronic Engineering, Three Gorges University, YiChang 443002,China )

to the visual areas, but faster than traditional hierarchical


Abstract—Traditional watershed algorithm’ ability to inhibit clustering algorithm [2]. Reference[7] proposes a multiscale
noise is not that strong, so causing regional minima and leading to morphology fusion watershed segmentation algorithm for
over-segmentation. So a watershed image segmentation algorithm wavelet scale decomposition, obtaining different regions to
based on the nonlinear combination morphology filter has been
select different fusion rules with good segmentation results. In
put forward. First of all, we define the nonlinear combination
morphology filter with opening–closing operators and this paper, we propose a watershed algorithm based on
closing–opening operators for image filtering; Secondly, we nonlinear combination morphology filtering, which can reduce
design a new morphology watershed algorithm with inner and the boundary problem of positioning’s inaccuracy, determine
external marks, and also define the regional minima to inner the regional boundary more quickly and improve the efficiency
marks from the low frequency components of the gradients and and accuracy of image segmentation.
external marks between the region, the inner and external marks
changes along with the image information, thus has realized the
adaptive image segmentation. Simulation results show that the
new algorithm can reduce over-segmentation arising from false II. NONLINEAR COMBINATION MORPHOLOGY FILTER
local minima in a gradient image which is caused by the noise, Morphology filter is a new type of nonlinear filter, image
which could accurately realize the image segmentation.
noise particle caused by noise is quite different from
Index Terms—Image Segmentation; Morphology Filter;
morphology structure elements, using pre-defined structure
Watershed Algorithm; Gradient elements for matching or partial image correction, image filter
based on morphology extract the signal and suppress noise.
Morphology opening operations is a nonlinear low-pass filter,
I. INTRODUCTION different with traditional low-pass filter, in the large size
structure of spatial frequency domain, opening operation
I MAGE segmentation is the premise of image recognition and
image understanding, whose purpose is to decompose an
image into a number of mutual non-overlapping areas with
allows only large structure pass so as to filter the small
structure. Thus, the opening operation can remove the isolated
same or similar nature. Segmentation’s quality effects point or peak pulse(i.e. noise point);similarly, the closing
subsequent image processing, thus image segmentation is one operation’ function on dark features equals to the opening
of hot points in image processing area. The image segmentation operation on light features, it can remove the structures which
algorithm based on morphology watershed [1~5] is most with dark background and whose size is smaller than structure
frequently discussed.Traditional morphology watershed element.
algorithm is sensitive to noise, causing two main issues on Theorem: two-dimensioned digital information of finite
over-segmentation and computation time consuming, plane f ( x, y ) , ( x, y ∈ Z ) ,the output of morphology
pre-processing and region merging often are used to reduce opening-closing or closing–opening filter on the signal is the
over-segmentation. Reference [2] proposes a fast watershed median filter’ root signal, namely:
segmentation algorithm which overcomes the heavy burden on OC[ f ( x, y )] = med ∞ {OC[ f ( x, y )];W } (1)
computation and time consuming, but can’t solve the problem ∞
CO[ f ( x, y )] = med {CO[ f ( x, y )];W } (2)
of over-segmentation. Reference [3] puts emphasis on region
Where, W denotes the window function of the median filter.
merging to alleviate over-segmentation. However, due to a
OC[ f ( x, y )]def [ f D B • B]( x, y )
large number of regions after watershed transform and heavy
computation during merging process, segmentation efficiency CO[ f ( x, y )]def [ f • B D B]( x, y )
is decreased while alleviating partial over-segmentation. B denotes the structure element, in this paper is selected as:
Reference [6] proposes a watershed algorithm and hierarchical
clustering segmentation algorithm based on MRF. The
B = {(−1,−1), (−1,0), (−1,1), (0,−1), (0,0), (0,1), (1,−1), (1,0), (1,1)}
algorithm merges the region in a consistent manner according
Reference [8] has shown that morphology opening-closing,

978-1-4244-9306-7/11/$26.00 ©2011 IEEE 2026


Authorized licensed use limited to: Ming Chi University of Technology. Downloaded on July 27,2021 at 15:48:51 UTC from IEEE Xplore. Restrictions apply.
2

closing-opening and traditional median filter can all effectively define the internal mark as: (1)areas surrounded by larger pixel
suppress pepper and salt noise in the image, preserving the values; (2)the points of region has formed a connected
details of the image features. component; (3)all points of this connected component has the
same gray value. Using watershed algorithm on the smoothed
Definition: using theorem (1)~(2) to define a combination images, and limiting these internal markers only be to local
morphology filter h[ f ( x, y )] : minima, obtaining watershed as an external marker. External
h[ f ( x, y )] = T {OC[ f ( x, y )], CO[ f ( x, y )]} (3) markers segment images into different regions, each region
contains a unique internal mark and partial background.
Where h[ f ( x, y )] denotes the unit impulse response of the
combination morphology filter, L[⋅,⋅] denotes a linear C. Improved watershed segmentation algorithm
transformation operator, this article selects L[⋅,⋅] as: 1 Using nonlinear combination morphology filter for image

T {OC[ f ( x, y )], CO[ f ( x, y )]} = a ⋅ OC[ f ( x, y )] + b ⋅ CO[ f ( x, y )] denoising;
and selects a = 310 ; b = 7 10 . 2 Calculate the denoising image histogram to determine the

local extreme point as a mark within the region;
In this paper, selecting the combination morphology filter
3 Determine the Euclidean distance of the pixel in ○
○ 2 which
defined in (3) to filter the processing images.
is the nearest adjacent and non-zero, applying the distance
function to calculate the pixel distance;
III. IMPROVED WATERSHED SEGMENTATION ○4 Calculate the external constraints of the whole image,
and mark the external constraints;
A. Watershed algorithm 5 Apply the inside and outside constraints of the results to

Watershed algorithm views an image as a topology terrain reconstruct the gradient map, then segment the image.
map, which image gray values f ( x, y ) correspond to terrain
height values. Define N1 , N 2 , " , N R as the coordinates
IV. EXPERIMENTAL RESULTS AND DISCUSSION
collection of local minima in image f ( x, y ) ; C ( N i ) as the
Experiment with rice image, the results shown in figure 1,
coordinates collection of a point, these points are located in the figure 2 and table 1.
local minima N i associated with the catchment
basin. T (n) denotes the collection of coordinate ( s, t ) ,in A. Filtering performance
which f ( s, t ) < n ,namely: Filtering performance and image restoration to be measured
with Mean Square Error (MSE) and Peak Signal to Noise Ratio
{ }
T ( n) = ( s , t ) f ( s , t ) < n ( 4)
(PSNR):
Where T (n) denotes the midpoint of the set of coordinate 1 M −1N −1

f ( x, y ) , (4)shows that the midpoints of the set are located MSE =


MN
∑ ∑[( f ′( x, y ) − f ( x, y)) 2 ] ( 6)
x = 0 y =0
below the plane f ( x, y ) = n .
255 2
As the water level increasing from n = f min + 1 to n = f man + 1 , PSNR = 10 lg M −1N −1
(7 )
1
the water will overflow the terrain. MN
∑∑ [( f ′( x, y) − f ( x, y)) 2
]
x =0 y =0
Define C n ( N i ) as the coordinate set of the midpoint of the
catchment basin, then:
Where, f ′( x, y ) denotes the filtered output image, the results
C n ( N i ) = C ( N i ) ∩ T ( n) (5)
shown in figure 1 and figure 2. Table 1 shows the performance
comparison of the three kinds of filtering algorithm.
If ( x, y ) ∈ C ( N i ) and ( x, y ) ∈ T (n) ,then C n ( N i ) = 1 located
( x, y ) ,else C n ( N i ) = 0 .That is, we only need to use “AND”
operator to separate the image in T (n) during the stage n of
water overflowing.

B. Mark
The key of based on marking method is to find a set of seeds
associated with the region of the image, the article finds the
local minima as marker associated with the each region from
the low-frequency components of original gradient image, the (a) Original image (b) Noise image(α=0.2)
approach is to seek the histogram of the image which noise has
been removed first, then determine local extreme point as seed
point on the probability of histogram’s gray level. Meanwhile,

2027
Authorized licensed use limited to: Ming Chi University of Technology. Downloaded on July 27,2021 at 15:48:51 UTC from IEEE Xplore. Restrictions apply.
3

(c) Mark within constraints (d) Gradient image reconstruction

(e) Two-dimensional median filtering (f) This filtering algorithm


(e) This algorithm
Fig. 1 This filtering algorithm is compared with other denoising algorithms Fig.2 This algorithm is compared watershed segmentation algorithm

Table1. The filtering performance comparison of filtering algorithm Comparing figure 2(b) with figure 2(e), the external markers
segment the image into different regions effectively, each
region contains a unique internal mark and partial
Performance MSE PSNR(dB) background, so each region actually takes the unique
Comparison α=0.05 α=0.1 α=0.2 α=0.05 α=0.1 α=0.2
Opening-Closing 29.6619 42.4907 63.4969 35.1973 32.8900 30.1272
object and background into account. During the
Closing-Opening 29.6037 42.1422 62.1822 38.5718 36.5403 34.8109 watershed segmentation process, the gradient
Median filtering 28.8421 41.7137 60.0318 39.2113 37.9791 35.7619 information effects the segmentation results directly, the
This algorithm 28.4086 41.6226 59.7121 39.5037 38.0843 35.9459 impact of noise of the original image cause many false
Figure 1(b), image with pepper and salt noise, density α=0.2; local minima in the gradient image, resulting in
Figure 1(c), Figure 1(d), Figure 1(e) are opening-closing over-segmentation phenomenon; in this article, calculate the
operation filtering, closing-opening operation filtering and 3*3 gradient of image after composite morphology filtering, then
median filtering results comparison with the algorithm restraint method only processes the watershed which marks
proposed in this article shown in Figure 1(f), respectively. contained specific areas, segmentation algorithm proposed in
Table 1 shows the results of quantitative comparison. From the this article achieves a better performance compared to
results of filtering, the median filter closes to the algorithm traditional watershed algorithm.
proposed in this article, but image appears blurred after median
filtering, mainly due to loss of partial contour information, the V. CONCLUSIONS
loss of edge information is not conductive for image
This algorithm can effectively overcome noise and false
segmentation.
gradient information aroused by other conditions, so avoiding
over-segmentation, locating the boundaries of different regions
B. Segmentation performance of the image accurately, the effect of segmenting image is
Figure 2 shows the comparison of the segmentation better.
algorithm proposed in this article with traditional watershed
segmentation algorithm.
REFERENCES
[1] Vincent L, Soille P, Watersheds in digital spaces: an efficient algorithm
based on immersion simulations. IEEE Transactions on PAMI,
1991,13(6): 583-598.
[2] J.B.KIM,H.J.KIM, A Wavelet-based Watershed Image Segmentation for
VOP Generation. IEEE International Conference on Pattern Recognition
,2002,2(1):505-508.
[3] Hill P.R., Canagarajah C.N., Bull D.R, Image Segmentation Using a
Texture Gradient Based Watershed Transform . IEEE Transactions on
Image Processing, 2003,12(12): 1618-1633.
[4] O’Callaghan R. J., Bull D.R, Combined Morphological Spectral
(a) Watershed Image (b) Watershed segmentation Unsupervised Image Segmentation. IEEE Trans. on Image Processing,
2005,14(1):49-62.
[5] CHIEN Shao-yi, HUANG Yu-wen; CHEN Liang-ge, Predictive
watershed: a fast watershed algorithm for video segmentation . IEEE

2028
Authorized licensed use limited to: Ming Chi University of Technology. Downloaded on July 27,2021 at 15:48:51 UTC from IEEE Xplore. Restrictions apply.
4

Transactions on Circuits and Systems for Video Technology,


2003,13(5):453 – 461.
[6] ZHANG Kun, WANG Shi-ton, Combined unsupervised image
segmentation using watershed and hierarchical clustering with
MRF.Computer Applications, 2007, 27(3):673—676. (in Chinese)
[7] WANG Peng-wei, WU Xiu-qing, ZHAN Ming-cheng, Watershed
Segmentation Based on Multiscale Morpholo- gical Fusion. Journal of
Data Acquisition & Processing, 2006,21(4):398—402. (in Chinese)
[8] ZHAO Chun-hui, SUN Sheng-he, An Adaptive Weighted Combination
Filter Based on Morphological Opening and Closing Operators. Acta
Electronica Sinica, 1997,25(6): 109—111.(in Chinese)

2029
Authorized licensed use limited to: Ming Chi University of Technology. Downloaded on July 27,2021 at 15:48:51 UTC from IEEE Xplore. Restrictions apply.

You might also like