You are on page 1of 10

Pattern Recognition Letters 21 (2000) 2130

www.elsevier.nl/locate/patrec

A method for recognizing particles in overlapped particle


images
Liping Shen a,*, Xiangqun Song a, Manabu Iguchi b, Fujio Yamamoto a
a
Department of Mechanical Engineering, Fukui University, 3-9-1 Bunkyo, Fukui 910-8507, Japan
b
Division of Materials Science and Engineering, Graduate School of Engineering, Hokkaido University, Kita 13 Nishi 8, Kita-ku,
Sapporo 060-8628, Japan
Received 8 June 1998; received in revised form 6 September 1999

Abstract

This paper describes a new method to divide a planar curve into circular arcs in order to recognize the overlapped
particles in an image. The segmentation is based on a new breakpoint detection method. An area correlation coecient
for two arcs is introduced to identify and cluster the arcs belonging to the same circle. The Least-Squares Method is
applied to estimate the center of a circle and its radius. The present method is evaluated using a computer-generated
sample image and real coal-ash images with heavily overlapped particles taken by an electron microscope. All the
results showed that the present method is eective in recognizing the overlapped circles with high accuracy. 2000
Elsevier Science B.V. All rights reserved.

Keywords: Circular arc detection; Segmentation of planar curve; Recognition of overlapped circles; Breakpoint detection.

1. Introduction which can be considered the best one because the


task is not a generic one, but depends on the
Problems concerning the detection of circular purpose of the segmentation. Thus, many algo-
arcs from a planar curve have attracted much at- rithms for arc extraction have been developed in
tention in the elds of pattern recognition and the past. Among these methods, the most con-
computer vision for many years, because a seg- ventional method was the circular arc detection
mented arc can provide us with a meaningful and based on the Hough transformation (Duda and
compact form with which we can analyze many Hart, 1972; Kierkegaard, 1992; Pei and Horng,
round objects. However, as reported by Melen and 1995). However, the accuracy of the Hough
Ozanian (1993), curve segmentation is the task of transformation depends on the computational
grouping elements of a curve according to some complexity. Moreover, in practice, a number of
criteria and there will not be a unique algorithm points have to be accumulated in the parameter
space in order to construct peaks and well-dened
peaks are often hard to obtain. The Hough
*
Corresponding author. Tel.: +81-776-27-8755; fax: +81-
transformation also suers from the storage
776-27-8534. problem (Yuen and Feng, 1996). Besides Hough
E-mail address: sheng@fv.mech.fukui-u.ac.jp (L. Shen). transformation, the other methods are based on

0167-8655/00/$ - see front matter 2000 Elsevier Science B.V. All rights reserved.
PII: S 0 1 6 7 - 8 6 5 5 ( 9 9 ) 0 0 1 3 0 - 0
22 L. Shen et al. / Pattern Recognition Letters 21 (2000) 2130

the detection of breakpoint. Most breakpoint de- mentioned is the iterative method, such as those
tection methods are based on the identication of reported by Rosin and West (1995), Sakaue (1982)
curvature extrema (Pla, 1996; Lim et al., 1995). and Sakaue and Takagi (1983). Although the it-
But all these methods have the disadvantages of erative method has many advantages, such as non-
sensitivity to noise and their dependence on pa- parametric, invariant to transformations, simple
rameters that are chosen empirically. In image and generic, the curve will inevitably be divided
processing the contours of round objects are not into too many segments and which will increase
smooth curves but a digital form of them. There- the diculty of clustering and thus increase the
fore the curvature of a curve cannot be calculated computational time.
accurately. In order to calculate the approximate This paper presents a new method to recognize
curvature, the curve rst has to be smoothed. overlapped round particles in images. The method
Unfortunately, although the smoothing process includes the following three steps:
makes it possible to calculate curvature of a curve, 1. detecting the edge of overlapped particles,
it cannot assure the accuracy of the result, espe- 2. dividing the edge into circular arcs,
cially near the breakpoints. Furthermore, some 3. grouping the circular arcs belonging to the
important information will be lost during same circle.
smoothing process. For example, the smoothing The present paper focuses on the second and
process will make the corners on the curve blunt the third steps of the method. A new method,
and more dicult to detect. In our previous work which is based on the detection of breakpoint, is
(Yamamoto et al., 1997), we adopted the method introduced to divide a digital curve into circular
reported by Pla (1996), but the results were not arcs at rst. The identication of breakpoints de-
satisfactory. One of our earlier results is shown in pends on the probabilities of pixels on a curve as
Fig. 1. In some method of this class, the curvature extremum points during a rotational transforma-
is not calculated based on the contour directly but tion which will be explained in detailed in Section
the chain-coded contour. In the method reported 2.1. The pixels with high probability are consid-
by Teh and Chin (1989), not only the curvatures of ered as breakpoints. The area correlation method
points but also the region of support of them are is introduced to cluster the circular arcs belonging
taken into accounted. In the paper reported by to the same circle. Canny's method (Canny, 1986)
Sanchize et al. (1998), the classical operations were was adopted to detect the edge of overlapped
substituted by a neural network and the dominant particles in the paper.
points were detected by the outputs of the net- The paper is organized as follows. In Section 2,
work. Another kind of method worthy of being we introduce our method of circle recognition
from an overlapped particle image. The section
includes three parts, i.e. curve segmentation, arc
clustering and parameter estimation. An examina-
tion of this method on a computer-generated im-
age and its application on coal-ash image are given
in Section 3.

2. Method of separation

2.1. Breakpoint detection by rotating curve

After applying Canny's method to an over-


lapped particle image, the edges of particles in the
image can be obtained. Linking these edge pixels,
Fig. 1. One of the results in our previous work. we can obtain the curves of particles' contours.
L. Shen et al. / Pattern Recognition Letters 21 (2000) 2130 23

Each such curve may include several arcs which points are joint pixels among these extremum
belong to dierent circles if it is the contour of points, i.e., point D and point G. Therefore, the
some overlapped circles. An example is shown in breakpoints cannot be identied by only nding
Fig. 2, such a curve should be divided into several the local extremum points. Fortunately, these local
circular arcs. extremum points will have dierent properties
A key to segmenting a planar digital curve into when the curve is rotated by a small angle.
circular arcs is to determine the breakpoints, As shown in Fig. 4, the curve is rotated by a
namely joint pixels of dierent arcs on the curve. small angle centered on the point A (the dotted
An example of such curves is shown in Fig. 3. Here curve is its original position). After rotating, we
we can nd that the joint pixels are all located on can nd that some of the local extremum points on
sharp corners of the curve, i.e., on local extremum the original curve are no longer local extremum
points. Suppose we describe the curve with a series points on the rotated curve, such as points B, C, E
of pixels, and the coordinates of these pixels are and F. However, the joint pixels, point D and G,
designated by (x1 , y1 ), (x2 , y2 ), . . . , (xN , yN ). A joint still satisfy Eq. (1). In other words, they keep the
pixel (xi , yi ) satises the following conditions: status of local extremum points after the rotation
process. If we rotate the curve continuously and
xi1 6 xi P xi1 _ xi1 P xi 6 xi1
record the local extremum points at every step, the
_ yi1 6 yi P yi1 _ yi1 P yi 6 yi1 : 1 joint point will have a high probability of being an
extremum point during the whole rotation process.
Here, 2 6 i 6 N 1, and N is the number of pixels This dierent properties between joint pixels and
on the curve. other pixels during rotation is the key point in our
A pixel (xi , yi ) is called a local extremum point if new method.
it satises the above conditions. It is obvious that In the present method the curve is rotated by a
all joint pixels are local extremum points. But not small angle step continuously from 0 to 360.
all local extremum points are joint pixels. For ex- During the rotation process, a true joint pixel on
ample, on the curve in Fig. 3, there are six local the curve will appear as a local extremum point
extremum points, i.e. point BG, but only two with a very high probability. According to our
numerical experiments for a joint pixel, its prob-
ability of being a local extremum point is about
four to ve times of the average probability. The
situation will be shown later (in Figs. 9 and 10).
The whole detection process of joint points is
represented by a ow chart shown in Fig. 5. The
procedure of this method contains the following
three steps:
Fig. 2. The contour of two overlapped particles.

Fig. 3. Schematic diagram for the extremum points. Fig. 4. Schematic diagram for the extremum points.
24 L. Shen et al. / Pattern Recognition Letters 21 (2000) 2130

Fig. 6. The contours of two overlapped particles.

Fig. 6 shows three possible cases of the contour


of two overlapped circles. In case (a) circle A
overlaps circle B and in case (b) circle B overlaps
circle A. These two cases appear when circles A
and B have dierent brightness. Case (c) appears
when two circles have the same or very similar
brightness. From these cases, we see that there are
only two basic congurations of joint of two arcs
after T-junctions are deleted. A T-junction is
something like that shown in Fig. 7 and deleting of
a T-junction means breaking the contour at the
point of intersection. The congurations are
Fig. 5. Overview of the joint points detection. shown in Fig. 8.
Cases 1 and 2 are two basic congurations for a
joint of two dierent arcs in the contours of two
Step 1. Initialize a counter for every pixel and overlapped circles. A smooth connection appears
rotation angel h. when two circles are tangent to each other. The
Step 2. Rotate the curve by the rotation angle h smooth connection is a special example of case 1
according to the following expression: or case 2, but it is a rare case in overlapped particle
xti xi cos h yi sin h;
2
yti xi sin h yi cos h:

Then identify all the extremum points on the ro-


tated curve. If a pixel is found to be an extremum
point, its corresponding counter is increased by 1.
Step 3. Repeat step 2 by rotating the curve from
0 to 360 with step Dh, the angle interval Dh is 2
in the present investigation, and the number of
times all pixels occur as extremum points in the
transformation are recorded in their correspond- Fig. 7. An example of T-junctions.
ing counters. The probability of a pixel as an
extremum point during rotation is dened as the
ratio of the counted number of the extremum
point to the total number of rotations.
In order to show the identication capability of
breakpoints by this method, numerical experi-
ments were performed on two basic congurations
of a joint of two dierent arcs appears on the
contour of two overlapped circles. Fig. 8. The congurations of the joint of two arcs.
L. Shen et al. / Pattern Recognition Letters 21 (2000) 2130 25

images. Accordingly, only cases 1 and 2 shown in average probability of all other pixels is 0.143, the
Fig. 8 are taken into account. ratio between them is about 4.92. The method is
For cases 1 and 2 in Fig. 8, the distributions of however unable to detect smooth connection of
the probabilities of pixels along the arcs in the two arcs. Fortunately, the smooth connection of
rotation transformation are shown in Figs. 9 and two arcs is seldom found in the present investiga-
10, respectively. From the two gures, we can nd tion as mentioned above.
that the breakpoints are peaks with much higher
probability values than those of other pixels. In
Fig. 9, the probability of the breakpoint is 0.793 2.2. Clustering arcs by area correlation method
and the average probability of all other pixels is
0.138. In other words, the peak value is more than The contour of a circle may be divided into
ve times of the average value (5.75). In Fig. 10, several parts after segmentation. In order to cal-
the probability of the breakpoint is 0.704 and the culate the location of its center and its radius, all
circular arcs belonging to the same circle must be
clustered. In the previous method of particle rec-
ognition reported by Yamamoto et al. (1997),
whether two arcs belong to the same circle is de-
termined by the distance between two centers and
the dierence between two radii, i.e. if two arcs
satisfy the following inequalities, they will be re-
garded as belonging to the same circle.
q 
2 2
xci xcj yci ycj < c
3
^ jRi Rj j < r ;

where xc ; yc are the coordinates of the circle center,


R is the radius, and c and c are the selected tol-
erances and the subscripts i and j associate to two
dierent arcs. The main idea of the method is that
Fig. 9. The probability along the curve of case 1 in Fig. 8. two arcs can be regarded as belonging to the same
circle if they are very close to each other and their
radii are very similar, i.e. both the distance be-
tween their centers and the dierence between their
radii are very small. However, the selection of the
values of c and r is very dicult in this method
because they depend on the size of the clustered
arcs. Obviously a xed tolerance is not suitable for
clustering all arcs whose radii vary a lot. In fact,
this method is applicable only for clustering the
arcs with similar radii. If the variation of the radii
is wide, this algorithm is not proper for our clus-
tering purpose. The disadvantage of this method is
that it considers the distance between the centers
of two arcs and the dierence between their radii in
separately. In fact, whether two arcs belong to the
same circle or not depends on both properties and
Fig. 10. The probability along the curve of case 2 in Fig. 8. their relationship.
26 L. Shen et al. / Pattern Recognition Letters 21 (2000) 2130

In this paper a new algorithm based on the At the same time, another advantage is that this
cross-correlation method is proposed and a new method needs only one dimensionless parameter
concept of area correlation coecient is dened. and this parameter is scale invariant. The over-
Thus whether two circular arcs belong to the same lapped area of two circles can be calculated very
circle or not is judged by the value of their area conveniently by their radii and the distance be-
correlation coecient. The denition of the area tween their centers. By the area cross-correlation
correlation coecient of the two arcs is explained method, we can cluster arcs even for a wide range
as follows. of radius variation.
Suppose two arcs are given, say arcs AB and
CD, we can estimate two circles, C1 and C2 to
2.3. Parameter estimation by the Least-Squares
which the two arcs belong, respectively, as shown
Method
in Fig. 11. Their centers and radii are estimated by
a curve tting method based on the least-squares
Parameter estimation of a digital arc is the op-
method.
timal estimation of the center and radius. Several
The hatched area is the overlapped part of the
such methods have been reported. Generally
two circles in Fig. 11 and its size can be calculated
speaking, these methods can be classied into two
from the distance between the two centers and the
categories, namely Hough transformation and
sizes of their radii. The area correlation coecient
curve tting methods. In this paper, a curve tting
Cs of the two dierent arcs is dened as follows:
method based on the Least-Squares Method is
So used because it is an accurate and simple algo-
Cs p ; 4
S 1  S2 rithm.
Given a set of coordinates (x1 , y1 ), (x2 , y2 ), . . . ,
where S1 and S2 are the areas of C1 and C2 , re- (xN , yN ), a circle with center (xc , yc ) and radius R is
spectively. So is their overlapped area. dened to t these pixels. An evaluation function J
We consider that two arcs belong to the same is dened as
circle if their area correlation coecient is over a N  2
X
given threshold (0.85 in this paper). The threshold J R; xc ; yc
2 2
R2 xi xc yi yc :
value is determined by the recognition limit for i1
two overlapped particles. This method overcomes 5
the disadvantage of the previous arc clustering
methods mentioned before. Based on the idea of The function J is minimized with respect to R, xc
the area correlation, the two properties, the center and yc , i.e.,
and the radius, can be taken into account together.
oJ oJ oJ
0; 0; 0: 6
oR oxc oyc

Solving Eq. (6), xc , yc and R are given by the fol-


lowing expressions:
c1 b2 c2 b1
xc ;
a 1 b 2 a2 b 1
a1 c2 a2 c1
yc ;
a 1 b 2 a2 b 1
X X X
R2 x2i 2xc xi Nx2c yi2
X 
2yc yi Nyc2 =N : 7
Fig. 11. The area correlation of two circles.
L. Shen et al. / Pattern Recognition Letters 21 (2000) 2130 27

Here, The new proposed method was applied to ex-


 X  X  tract the circles from the sample image. The ex-
2
a1 2 xi N x2i ; tracted result is shown in Fig. 13. There are 72
X X X  large circles and 72 small circles, respectively. All
a2 b1 2 xi yi N xi yi ; the particles' center locations and radii were rec-
 X  X  ognized with high accuracy in the sample image.
2
b2 2 yi N yi2 ; Table 1 lists the recognition errors of this
X X X X X X method. In the table, Dr stands for the radius
c1 x2i xi N x3i xi yi2 N xi yi2 ;
X X X X X X dierence between the original circle and the cor-
c2 x2i yi N yi3 yi yi2 N x2i yi : responding extracted circle, Ddc denotes the center
P dierence, and r is the standard variance of radius.
denotes the sum for i from 1 to N. An over bar denotes the average value. Two rows
list the values for the large circles and the small
circles, respectively. The rst two columns list the
3. Results average dierences of the radius and center loca-
tion in pixel, and the last two list the non-dimen-
3.1. The processing of computer-generated image sional averaged values. Both the absolute errors of
the radius and center dierences for either large
In order to test the recognition performance of circles or small circles are within 0:5 pixel and the
our recognition method, or referred to as the rec- relative errors of large circles are less than 1%.
ognition accuracy, a computer-generated sample Even for the small circles, the relative error of
image was processed. Two kinds of circles were center dierence is less than 3%. From the simu-
drawn in the image, as shown in Fig. 12. The ra- lation, we can conclude that (1) the rate of correct
dius of the large circles is 32 pixels and that of the extraction is fairly high and (2) the accuracy of the
small circles is 14 pixels. In the image, particles extracted circle is very high.
with the same diameter are arranged in a compact
hexagonal pacing, and the large particles and the 3.2. Particle recognition of coal-ash image
small particles are overlapped densely. Every large
particle is tangent to all its neighboring large The images of coal-ash (name: Blair Athol) ta-
particles and is overlapped by three small particles. ken by an electron microscope were investigated
The gray-levels of these two kinds of circles are 64 using the present method. Fig. 14 is an original
for the large circles and 192 for the small circles. coal-ash image of 701  507 pixels with a 256-
The only purpose of this examination is to evalu- gray-level. A total of 20 images were processed in
ate the present method with a known image. the present investigation.

Fig. 12. Sample image. Fig. 13. Recognition result of sample image.
28 L. Shen et al. / Pattern Recognition Letters 21 (2000) 2130

Table 1
Errors of the recognition
jDrj (pixel) Ddc (pixel) jDrj=r Ddc =r r
Large circles 0.278 0.289 0.0090 0.0087 0.2982
Small circles 0.129 0.359 0.0092 0.0258 0.0927

Fig. 14. Original image of coal-ash, image size: 701  507, 256- Fig. 15. The contours found from the image shown in Fig. 13
gray-level (1 lm 13:74 pixel). and the break points detected by the proposed approach.

In the images, both the sizes and gray-levels of


particles varied widely. The diameters of some
`larger particles' are more than 60 pixels, while
some `smaller particles' are less than 5 pixels. The
gray-levels of particles showed a similar situation
where the dierence between the `brightest' parti-
cle and the `darkest' particles exceeds 100. For
such images, the conventional approaches of circle
recognition cannot provide us with a satisfactory
result.
Fig. 15 shows contours extracted from the
original image of Fig. 14 and the breakpoints de-
tected by the present method are marked on the
contours. From Fig. 16, which is generated by Fig. 16. Extraction result and original image (the extracted
superposing the extracted result on the original circles are drawn on their original image).
image, we can nd that the recognition result is
satisfactory. We can observe that most of the though the present examples are much more
particles were recognized correctly. They are re- complicated, the accuracy of the present method is
covered in the real boundaries of the particles in much higher, and the computation time of the
the image. We can see that only few particles failed present method is less because it is not necessary to
to be detected. These undetected particles are smooth the curves or to calculate the curvature on
usually either too small or too dark. Another ex- curves. Pn
ample of recognition results is given in Fig. 17. The mean
P value dm i1 di =n, the vari-
n 2
Comparing with the result shown in Fig. 1, al- ance r2 i1 di dm =n and the skewness S
L. Shen et al. / Pattern Recognition Letters 21 (2000) 2130 29

clustering. The main merits of this method are (1)


no smoothing process is needed and (2) the iden-
tication of breakpoint is depended on the geo-
metric congurations of the contours instead of
the derivatives of them. These two properties as-
sure that it is a robust method. Thirdly, the
method is general in corner detection, it can be
extended to divide planar curves into circular arcs
and straight lines segments.

References

Fig. 17. Another example of recognition results. Canny, J., 1986. A computational approach to edge detection.
Transaction on Pattern Analysis and Machine Intelligence
PAMI-8 (6), 679698.
Duda, R.O., Hart, P.E., 1972. Use of the Hough transforma-
Table 2 tion to detect lines and curves in pictures. Communications
Statistical data of recognition of ACM 15 (1), 1115.
Number dm dm r2 S Kierkegaard, P., 1992. A method for detection of circular arcs
based on the Hough transform. Machine Version and
10834 1.95 2.10 1.668 1.926 Applications 5, 249263.
Lim, K., Xin, K., Hong, G., 1995. Detection and estimation
of circular segments. Pattern Recognition Letters 16, 627
Pn 3 636.
dm =n  r3 of the diameters of particles
i1 di Melen, T., Ozanian, T., 1993. A fast algorithm for dominant
are very important in analyzing the structures of point detection on chain-coded contours. In: Fifth Interna-
coal-ash, where n is the total number of particles. tional Conference on Computer Analysis of Images and
These values are shown in Table 2. In this paper, Patterns, LNCS 719, Springer, Berlin, pp. 245253.
Miyashita, Y., Fuji, K., Furuie, D., Kosaka, T., Hanaoka, N.,
20 images were processed in all and the number of
1996. The evaluation of powder with the image analysis
particles exceeded 10; 000. The mean diameters of device FPIA-1000. In: Proceedings of the Japanese Socity of
coal-ash agreed favorably with their respective Powder Engineering, pp. 5862 (in Japanese).
values (dm ) obtained by the plane sheath ow Pei, S., Horng, J., 1995. Circular arc detection based on the
method (Miyashita et al., 1996, 1998). In the Hough transform. Pattern Recognition Letters 16, 615625.
Pla, F., 1996. Recognition of partial circular shapes from
method of the plane sheath ow, the image of
segmented contours. Computer Vision and Image Under-
particles was taken using a sheath ow technique standing 63 (2), 334343.
in order to avoid overlapping of particles. There- Rosin, P.L., West, G.A.W., 1995. Nonparametric segmentation
fore, the number of particles in an image is not as of curves into various representations. IEEE Transactions
many as those found in the present method. Since on Pattern Analysis and Machine Intelligence 17 (12), 1140
1153.
there are no data available concerning the mea-
Sakaue, K., 1982. The application of iterative method on the
surement of particles by image processing, the re- image processing. Jouhou Syori Gakkai Ronbunsyuu 23 (7),
sults obtained by the plane sheath ow method are 641650 (in Japanese).
used as the reference data. Sakaue, K., Takagi, M., 1983. Separation of images of
overlapped particles by iterative method. Jouhou Syori
Gakkai Ronbunsyuu 24 (5), 561567 (in Japanese).
Sanchize, J.M., Pla, F., Inesta, J.M., 1998. Using neural
4. Conclusions networks to detect dominant points in chain-coded con-
tours. Int. J. Pattern Recognition and Articial Intelligence
12 (5), 661675.
An integrate method of overlapping circle rec- Song, X., Yamamoto, F., Iguchi, M., Shen, L., Ruan, X., 1998.
ognition is described in this paper and new meth- A method for measuring particle size in overlapped particle
ods are introduced for arc segmentation and arc images. ISIJ International 38 (9), 971976.
30 L. Shen et al. / Pattern Recognition Letters 21 (2000) 2130

Teh, C., Chin, R.T., 1989. On the detection of dominant points images. Journal of the Visualization society of Japan 17 (2),
on digital curves. IEEE Transactions on Pattern Analysis 107110.
and Machine Intelligence 11 (8), 859872. Yuen, P.C., Feng, G.C., 1996. A novel method for parameter
Yamamoto, F., Ruan, X., Song, X., Iguchi, M., 1997. A estimation of digital arc. Pattern Recognition Letters 17,
method for counting particle number in overlapped particle 929938.

You might also like