Você está na página 1de 6

An Extended Fuzzy Logic Method for

Watershed
Ling Zhang1, Ming Zhang2 ,H.D. Cheng2

1
School of Mathematics and System Sciences, Shandong University, Jinan, Shandong
250100
2
Department of Computer Science, Utah State University, Logan, UT 84322

Abstract more we don’t know. In fuzzy Logic, it


describes the degree of uncertain for the
Fuzzy Logic was intruded by Lotfi A. known conditions or factors. But the
Zadeh in 1965. It is for solving world is full of indeterminacy.
uncertainty and ambiguity problems. In this paper, an extended fuzzy logic
Fuzzy logic is a multivalued logic defined method will be defined. A new parameter
in [0,1] . However, there are a lot of I is introduced into fuzzy logic, which
paradoxes, as proposition, can not be stands for indeterminate factors. This
described in Fuzzy Logic. In this paper, extension is closer to the human mind
we will define an extended fuzzy logic reasoning and it is more powerful. Then
and applied it on watershed segmentation the extended fuzzy logic method is
method in image processing. applied to watershed segmentation.
Keywords: Extended Fuzzy Logic,
Segmentation, Watershed, Image 2. Proposed Method
Processing
2.1 Extended fuzzy set
Let T , I and F be real sub-set
1. Introduction of [0,1] . T is True, I is
Fuzzy logic[1] is a successful method Indeterminate, F is False. T , I
in modeling vagueness and uncertainty and F may be continuous or discrete.
problems for about 40 years. It is widely They are set-valued vector
used in engineering. However, fuzzy functions/operators depending on
logic can only modeling part of many parameters. They may overlap
vagueness problems. There are more or converted from one to the other[2].
problems which cannot be solved by In our problem, when an image is
fuzzy logic. For example, the weather transformed into fuzzy domain, three
forecast suggests that there is 40% chance subsets T , I , and F will be used to
of rain tomorrow according past year’s represent True, Indeterminate and
weather and 50% chance of no rain False. A pixel can be represent as
according today’s weather. There are a lot
of factors may affect tomorrow’s weather, {t , i, f } , that means the pixel is
such as altitude, humidity, etc. We only t % true, i % indeterminacy and
know part of them and there are some f % false. In classic Fuzzy Logic,
conditions that we don’t know or
indeterminate. The more we know, the

Proceedings of the 11th Joint Conference on Information Sciences (2008)


Published by Atlantis Press
© the authors
1
i = 0 ; 0 ≤ t , f ≤ 1 ; t = f = 1 − t ,. 2.3 Segmentation by using I
The value of I (i, j ) is used as the
In Extended Fuzzy Logic, t ≠ f .
indeterminate degree of pixel P (i, j ) .
2.2 Extended Fuzzy domain High I value represents high
The goal of image segmentation is uncertainty of a pixel.
to extract object from image. In traditional Fuzzy Logic,
Watershed segmentation method is P(i, j ) will belong to T domain
good for nearly uniformed when the value of T (i, j ) is bigger
background and objects with blurred
than a threshold. In Extended Fuzzy
edges. We will take objects as T and domain we need consider both
background as F . Because the T (i, j ) and I (i, j ) . If I (i, j ) is
blurred edges are gradually changed
from objects to background; it is hard high, the indeterminate degree of
to separate from objects and P(i, j ) is high and it may not
background. The indeterminate belong to T . The new definition of
values of edges are high. T and F on Extended Fuzzy domain
Given an image, each pixel
consider I inference.
P(i, j ) in the image needs to be
TE (i, j ) = T (i, j ) I (i, j )
transformed to Extended Fuzzy
domain: FE (i, j ) = (1 − F (i, j )) I (i, j )
PE (i, j ) = {T (i, j ), I (i, j ), F (i, j )} A threshold t is calculated to
. Where T (i, j ) , I (i, j ) , and determine P (i, j ) is in T domain or
F (i, j ) are defined as[3, 4]: F domain.
T (i, j ) =
g (i, j ) − g min ⎧⎪T TE ≥ t
g max − g min T (i, j ) = ⎨
⎧0 0 ≤ gij ≤ a ⎪⎩T TE < t

⎪ ( gij − a )
2

⎪ a ≤ g ij ≤ b ⎧⎪ F FE ≥ t
⎪ ( b − a )( c − a ) F (i, j ) = ⎨
I ( i, j ) = S ( gij , a, b, c ) = ⎨
( gij − c ) ⎪⎩ F FE < t
2

⎪ 1− b ≤ gij ≤ c
⎪ ( c − b )( c − a ) Because the edges are gradually
⎪1 g ij ≥ c
⎩ change from objects to background,
it is neither objects nor background.
F (i, j ) = 1 − T (i, j )
Edge = T ∩ F
Where gij is the gray value of The threshold t and Edge can be
calculated by the following heuristic
pixel P (i, j ) . a, b and c can be method.
determined by using method in[5]. a. Let
⎧T (i, j ) g (i, j ) < 123
Indeterminate domain is enhanced U (i, j ) = ⎨
for further processing after the image ⎩ F (i, j ) g (i, j ) ≥ 123
project to Extended Fuzzy domain[6]:
I ( μ x ( g ij )) = 2 μ x2 ( g ij ) 0 ≤ μ x ( gij ) ≤ 0.5 b. Select an initial estimate
I ( μ x ( g ij )) = 1 − 2(1 − μ x ) 2 0.5 ≤ μ x ( g ij ) ≤ 1 threshold t0 .

Proceedings of the 11th Joint Conference on Information Sciences (2008)


Published by Atlantis Press
© the authors
2
c. Separate U by using t0 , and (a)
produces two groups of
pixels: G1 (domain T + F )
and G2 (domain T + F ).
d. Calculate the average gray (b)
level values μ1 and μ 2 for
regions G1 and G2 .
e. Compute the new threshold
value:
μ1 + μ2
t= (c)
2 Figure 1: (a) Two object/background
f. Repeat steps 2 through 4 regions (b) Dilation of two components (c)
until the difference in T is Dam construction
smaller than ε in the two
successive iterations. We
choose ε =0.001 in our
experiments.
g. Binary the image. For all the 3. Experiment Results
pixels with the U (i, j ) < t ,
In figure 2 and 3, the Extended
set 0 as their value. Set 1 for Fuzzy Logic method is compared
the rest of pixels. with other segmentation algorithms:
Sobel, Canny, and non-fuzzy
2.4 Watershed segmentation watershed edge detector.
algorithm Figure 2(a) is a blurred cell image.
Because the watershed method is The edge is ambiguous. (b) is the
good for finding optimal result by applying Sobel operator,
segmentation, the following the edges are not well detected. It is
watershed method is applied to the under-segmented (c) is using Canny
binary image from 2.3. operator, the edges are over-
a. Find object or background segmented. And the detection edges
region R1 , R2 ,..., Rm . do not connect very well. (d) is using
b. Use a 3x3 structure element non-fuzzy watershed method in
to do dilation on these regions. Matlab, the result show much over-
c. Build a dam at the place segmentation. (e) is the result by
where two components get using proposed method. The edges
merged. give good boundary for cells and
d. Repeat step c until all they are smooth and connected.
components merge together. The Extended Fuzzy Logic
method is also noise tolerant. Figure
3(a) is coin image with Gaussian
noise. The mean is 0 and the
standard variance is 2.55. The Sobel
operator in (b) can remove most of
noise, but the edges are over-

Proceedings of the 11th Joint Conference on Information Sciences (2008)


Published by Atlantis Press
© the authors
3
segmented and the noise is not
totally removed. The Canny operator
in (c) and non-fuzzy watershed in (e)
is noise sensitive. Both of them have
over-segmented result. The extended
fuzzy watershed method in (f) gives
a clear and connected boundary.
The extended fuzzy watershed
method also can be used on clear
boundary image. See figure 4(a), it
is a tablet image. The tablets are
clear different with background. (b) (c)
is using non-fuzzy watershed
method. The result is over-
segmented. (c) is result by using the
proposed method, it gets a good
segmentation.

(d)

(a)

(e)
Figure 2: (a) The original cell image. (b)
Sobel operator. (c) Canny operator. (d)
Non-fuzzy watershed method. (e) Fuzzy
watershed method number of bins is 10
(b)

Proceedings of the 11th Joint Conference on Information Sciences (2008)


Published by Atlantis Press
© the authors
4
(a) (e)
Figure 3: (a) The original pears image. (b)
Sobel operator. (c) Canny operator. (d)
Non-fuzzy watershed method. (e) Fuzzy
watershed method, number of bins is 20

(b)

(a)

(b)
(c)

(c)
Figure 4: (a) Tablet image. (b) Watershed
operator. (c) Extended Fuzzy Logic
operator
(d)

Proceedings of the 11th Joint Conference on Information Sciences (2008)


Published by Atlantis Press
© the authors
5
4. Conclusion
[1] L.A.Zadeh, "Fuzzy sets," Information
Fuzzy logic is successfully used in and Control, vol. 8(3), pp. 383-353, 1965.
many fields. But there are a lot of [2] F. Smarandache, A Unifying Field in
problems cannot be solved by fuzzy Logics Neutrosophic Logic. Neutrosophy,
logic. In this paper, we extended Neutrosophic Set, Neutrosophic
fuzzy logic into 3 domains: True, Probability 3rd ed: American Research
False and indeterminate. Because press, 2003.
there are existing unknown [3] H. D. Cheng and J. G. Li, "Fuzzy
conditions and factors in many Homogeneity and Scale Space Approach
problems. And the indeterminate to Color Image Segmentation," Pattern
domain is the important part in some Recognition, vol. 35, pp. 373-393, 2002.
problems. We apply the extended [4] Zadeh, e. al, and Eds, Fuzzy Sets and
fuzzy logic in watershed Their Application to Cognitive and
segmentation problems. The results Decision Processes. London: Academic
show that it much better than non- Press, 1975.
fuzzy method on solving blurred [5] H. D. Cheng, J. L. Wang, and X. J.
boundary images and it is also Shi, "Microcalcification Detection using
workable on clear boundary image. Fuzzy Logic and Scale Space
Another advantage of using extended Approaches," Pattern Recognition, vol.
fuzzy logic is noise tolerant than the 37, pp. 363-375, 2004.
original watershed method. [6] R. C. Gonzalez and R. E. Woods,
Digital Image Processing, 2 ed: Prentice
Hall, 2002.
5. Reference

Proceedings of the 11th Joint Conference on Information Sciences (2008)


Published by Atlantis Press
© the authors
6

Você também pode gostar