Documente Academic
Documente Profesional
Documente Cultură
org
Published in IET Computer Vision
Received on 29th June 2010
Revised on 29th July 2011
doi: 10.1049/iet-cvi.2010.0226
ISSN 1751-9632
Abstract: Circle detection over digital images has received considerable attention from the computer vision community over the
last few years devoting a tremendous amount of research seeking for an optimal detector. This article presents an algorithm for the
automatic detection of circular shapes from complicated and noisy images with no consideration of conventional Hough
transform (HT) principles. The proposed algorithm is based on Learning Automata (LA) which is a probabilistic optimisation
method that explores an unknown random environment by progressively improving the performance via a reinforcement
signal (objective function). The approach uses the encoding of three non-collinear points as a candidate circle over the edge
image. A reinforcement signal (matching function) indicates if such candidate circles are actually present in the edge map.
Guided by the values of such reinforcement signal, the probability set of the encoded candidate circles is modied through
the LA algorithm so that they can t to the actual circles on the edge map. Experimental results over several complex
synthetic and natural images have validated the efciency of the proposed technique regarding accuracy, speed and robustness.
Introduction
www.ietdl.org
systems [20] and computer vision [21]. Other interesting
applications for multimodal complex function optimisation
based on the LA have been proposed in [19, 22 24], yet
showing that their performance is comparable to (GA) [23].
This paper presents an algorithm for the automatic
detection of circular shapes from complicated and noisy
images with no consideration of conventional HT
principles. The proposed algorithm LA requires the
probability of three encoded non-collinear edge points as
candidate circles (actions). A reinforcement signal indicates
whether such candidate circles are actually present in the
edge-only image. Guided by the values of such
performance evaluation function, the probability set of the
encoded candidate circles is modied using the LA
algorithm so that they can t into the actual circles (optimal
action) in the edge map. The approach generates a sub-pixel
circle detector which can effectively identify circles in real
images despite circular objects exhibiting a signicant
occluded portion. Experimental evidence shows its
effectiveness for detecting circles under different conditions.
A comparison to other state-of-the-art methods such as the
GA algorithm [12] and the IRHT approach [7] on multiple
images has demonstrated the improved performance of the
proposed method.
The paper is organised as follows: Section 2 provides a
brief outline of LA theory whereas Section 3 presents the
LA-based circle detector. Section 4 shows the results of
applying the LA algorithm for circle recognition under
several image conditions and Section 5 presents a
performance comparison between the proposed method and
other relevant techniques reported in the literature. Finally,
Section 6 discusses some relevant conclusions.
Learning automata
(1)
ph (k + 1) . z
(2)
h=1
www.ietdl.org
In order to solve multidimensional problems, the LA can
also become connected to a parallel set-up (see Fig. 1b).
Each automaton operates with a simple parameter, whereas
its concatenation allows working within a multidimensional
space. There is no inter-automata communication as
the only joining path is through the environment. In [13],
it is shown how discrete stochastic LA can be used
to determine the global optimum for problems with
multimodal surfaces.
2(yi1 yi1 )
2(yi3 yi1 )
(5)
3
3.1
Data pre-processing
Action representation
(3)
det(A)
4((xi2 xi1 )(yi3 yi1 ) (xi3 xi )(yi2 yi1 ))
y0 =
det(B)
4((xi2 xi )(yi3 yi1 ) (xi3 xi1 )(yi2 yi1 ))
(4)
(6)
where d [ {i1 , i2 , i3}, and (xd , yd) are the coordinates of any
of the three selected points which dene the action Ci . Fig. 2
illustrates main parameters dened by (3) (6).
The shaping parameters for the circle [x0 , y0 , r] can be
represented as a transformation T of the edge vector indexes
i1 , i2 and i3 .
[x0 , y0 , r] = T (i1 , i2 , i3 )
(7)
(x0 xd )2 + (y0 yd )2
www.ietdl.org
considering only the rst octant over the circle equation
x 2 + y 2 r 2. It draws a curve starting at point (r, 0) and
proceeds upwards-left by using integer additions and
subtractions. The MCA aims to calculate the required points
Si in order to represent a circle candidate. Although the
algorithm is considered as the quickest providing a subpixel precision, it is important to assure that points lying
outside the image plane must not be considered in Si .
The reinforcement signal b(Ci) represents the matching
error produced between the pixels Si of the circle candidate
Ci (action) and the pixels that actually exist in the edgeonly image, yielding
N
b(Ci ) =
s
Sh=1
E(sh )
Ns
(8)
3.4
LA implementation
Experimental results
Circle localisation.
Shape discrimination.
Multiple circle localisation.
Circular approximation.
Occluded circles and arc detection.
Complex cases.
www.ietdl.org
Table 1
kmax
nc/2
0.003
4.1
Circle localisation
Fig. 4 Circle detection and the evolution of the probability density parameters
a Original image
b Detected circle is shown as an overlay
c Parameter evolution yielding the probability density
IET Comput. Vis., 2012, Vol. 6, Iss. 2, pp. 121 132
doi: 10.1049/iet-cvi.2010.0226
125
www.ietdl.org
Circular approximation
www.ietdl.org
127
www.ietdl.org
shows the circular approximation of a partial circular
shape and Fig. 9d presents the circular approximation
for an ellipse. For both cases, three circles are used
to approximate the original shape. Additionally, Fig. 10
shows the circular approximation considering a real-life image.
4.5
Complex cases
Fig. 12 Circle detection over images with added shapes (distracters) and noise
a Original image with nine shapes
b Detection of four circles (overlaid)
128
& The Institution of Engineering and Technology 2012
www.ietdl.org
Fig. 14 Synthetic images and their detected circles for GA-based algorithm, the IRHT method and the proposed LA algorithm
a Detection with localised noise
b Figure discrimination
c Detection with Gaussian noise
IET Comput. Vis., 2012, Vol. 6, Iss. 2, pp. 121 132
doi: 10.1049/iet-cvi.2010.0226
129
www.ietdl.org
(down-right in the image) is an occluded circle. The last circular
form has been hand drawn at the top-right area. Fig. 13b shows
the image after the circle detection process has been applied.
Performance comparison
Parametric set-up
(10)
where (xc , yc), r and Ns represent the circle centre, radius and
the desired test-point number, respectively.
Fig. 15 Real-life images and their detected circles for GA-based algorithm, the IRHT method and the proposed LA algorithm
a Circle detection in a real image
b Detection considering occlusion
c Circle assignment
130
& The Institution of Engineering and Technology 2012
www.ietdl.org
Table 2
Averaged execution-time, the SR and the averaged Es for the GA-based algorithm, the IRHT method and the proposed LA
algorithm, considering six test images shown by Figs. 14 and 15
Image
Synthetic images
(a)
2.23 + (0.41)
(b)
3.15 + (0.39)
(c)
3.02 + (0.63)
Natural images
(a)
2.02 + (0.32)
(b)
2.11 + (0.31)
(c)
2.50 + (0.39)
Success rate, %
IRHT
LA
GA
IRHT
LA
GA
IRHT
LA
1.71 + (0.51)
2.80 + (0.65)
4.11 + (0.71)
0.21 + (0.22)
0.36 + (0.24)
0.64 + (0.19)
94
81
93
100
95
78
100
98
100
0.41 + (0.044)
0.51 + (0.038)
0.71 + (0.036)
0.33 + (0.052)
0.37 + (0.032)
0.77 + (0.044)
0.22 + (0.033)
0.26 + (0.041)
0.42 + (0.011)
3.11 + (0.41)
3.04 + (0.29)
2.80 + (0.17)
0.31 + (0.12)
0.57 + (0.13)
0.51 + (0.11)
100
100
91
100
92
80
100
100
97
0.45 + (0.051)
0.87 + (0.071)
0.67 + (0.081)
0.41 + (0.029)
0.71 + (0.051)
0.61 + (0.048)
0.25 + (0.037)
0.54 + (0.071)
0.31 + (0.015)
(11)
The rst term represents the shift of the centre of the detected
circle as it is compared with the benchmark circle. The second
term accounts for the difference between their radii. h and m
are two weights that are chosen to agree the required accuracy
as h 0.05 and m 0.1. Such choice ensures that the radii
difference would be strongly weighted in comparison with
the difference of central circular positions between the
manually detected and the machine-detected circles.
In case Es is less than 1, the algorithm obtain a success;
otherwise it has failed on detecting the edge circle. Note
that for h 0.05 and m 0.1, it yields Es , 1 which
accounts for a maximal tolerated difference on radius length
of 10 pixels, whereas the maximum mismatch for the centre
location can be up to 20 pixels. In general, the success rate
(SR) can thus be dened as the percentage of reaching
success after a certain number of trials.
Fig. 14 shows three synthetic images and the results
obtained by the GA-based algorithm [12], the IRHT [7]
and the proposed approach. Fig. 15 presents the same
IET Comput. Vis., 2012, Vol. 6, Iss. 2, pp. 121 132
doi: 10.1049/iet-cvi.2010.0226
Conclusions
www.ietdl.org
effectively serve as an attractive method to successfully
extract multiple circular shapes.
References
1 da Fontoura Costa, L., Marcondes Cesar Jr. R.: Shape analysis and
classication (CRC Press, Boca Raton, FL, 2001)
2 Muammar, H., Nixon, M.: Approaches to extending the Hough
transform. Proc. Int. Conf. on Acoustics, Speech and Signal
Processing ICASSP, 1989, vol. 3, pp. 1556 1559
3 Atherton, T.J., Kerbyson, D.J.: Using phase to represent radius in the
coherent circle Hough transform. Proc. IEE Colloquium on the
Hough Transform, 1993
4 Shaked, D., Yaron, O., Kiryati, N.: Deriving stopping rules for the
probabilistic Hough transform by sequential analysis, Comput. Vis.
Image Underst., 1996, 63, pp. 512526
5 Xu, L., Oja, E., Kultanen, P.: A new curve detection method:
randomized Hough transform (RHT), Pattern Recognit. Lett., 1990,
11, (5), pp. 331338
6 Han, J.H., Koczy, L.T., Poston, T.: Fuzzy Hough transform. Proc.
Second Int. Conf. on Fuzzy Systems, 1993, vol. 2, pp. 803808
7 Lu, W., Tan, J.L.: Detection of incomplete ellipse in images with strong
noise by iterative randomized Hough transform (IRHT), Pattern
Recognit., 2008, 41, (4), pp. 1268 1279
8 Roth, G., Levine, M.D.: Geometric primitive extraction using a genetic
algorithm, IEEE Trans. Pattern Anal. Mach. Intell., 1994, 16, (9),
pp. 901905
9 Lutton, E., Martinez, P.: A genetic algorithm for the detection 2-D
geometric primitives on images. Proc. 12th Int. Conf. on Pattern
Recognition, 1994, vol. 1, pp. 526528
10 Yao, J., Kharma, N., Grogono, P.: Fast robust GA-based ellipse
detection. Proc. 17th Int. Conf. on Pattern Recognition ICPR-04,
Cambridge, UK, 2004, pp. 859 862
11 Yuen, S., Ma, C.: Genetic algorithm with competitive image labelling
and least square, Pattern Recognit., 2000, 33, pp. 1949 1966
12 Ayala-Ramirez, V., Garcia-Capulin, C.H., Perez-Garcia, A., SanchezYanez, R.E.: Circle detection on images using genetic algorithms,
Pattern Recognit. Lett., 2006, 27, pp. 652 657
132
Copyright of IET Computer Vision is the property of Institution of Engineering & Technology and its content
may not be copied or emailed to multiple sites or posted to a listserv without the copyright holder's express
written permission. However, users may print, download, or email articles for individual use.