University of Southampton - Electronics and Computer Science

1995/6 Research Journal
Image, Speech and Intelligent Systems

A New Hough Transform Mapping for Ellipse Detection

A. S. Aguado and M. S. Nixon

Introduction

Detecting geometric primitives in images is one of the basic tasks of computer vision. The Hough transform (HT) and its extensions constitute a popular method for extracting geometric shapes. Primitives on the HT are represented by parametric curves with a number of free parameters. The principal concept of the HT is to define a mapping between an image space and a parameter space. Each edge point in an image is transformed by the mapping to determine cells in the parameter space whose associated parameters are such that the defined primitive passes through the data point. The chosen cells are accumulated and after all the points in an image have been considered, local maxima in the accumulator correspond to the parameters of the specified shape.

Because a curve with n parameters requires an n-dimensional parameter space, many applications of the HT concern line and circle detection. In order to overcome the excessive time and space requirements for ellipse extraction, proposed techniques (Yip et al.[1], Pao et al.[2], Yoo and Sethi[3], Wu and Wang[4], Ho and Chen[5]) decompose the five dimensional parameter space into several sub spaces of fewer dimensions. The decomposition is achieved by using geometric features which define constraints in the organization of edge data. These constraints include distance and angular relationships which define relative positions between a set of edge points. Hence, the parameters are computed after labelling the points which satisfy the constraints in a computational intensive approach.

Here, we show how it is possible to decompose the parameter space, based on the polar definition of an ellipse. Angular information, defined from the variation of a position function, represents local change in the curvature of border points. This information is used to formulate expressions which define an ellipse by including local shape properties. We show that in order to achieve a parameter decomposition (due to the ellipse anisotropy) it is necessary to consider the angular change of the second derivative (tangent angle of the second directional derivative). We compute angular information by taking a pair of points and their gradient direction. This avoids the constraints which define relative position, as required by other approaches.

Including gradient direction

Gradient direction information has been used to reduce the computational requirements of the HT (Ballard[6], Davis[7], Conker[8]). Here we use gradient information for ellipse extraction by relating local geometric features of a parametric representation to the local features in an image (Aguado et al.[10]). We represent an ellipse by the locus defined by the differentiable vector-valued function tex2html_wrap_inline325 for tex2html_wrap_inline329 , tex2html_wrap_inline331 and

  equation23

In this expression there are five free parameters defined by the two centre parameters tex2html_wrap_inline333 and only three of the axis parameters tex2html_wrap_inline335 , tex2html_wrap_inline335 is a position index. The remaining axis parameter can be computed by the orthonormality relationship defined by: tex2html_wrap_inline339 . In order to define a relationship between adjacent points in an ellipse we consider the local angular change on the position function. The tangent of the angle of the first and second order derivatives of the position vector tex2html_wrap_inline339 are

  equation45

  equation52

where tex2html_wrap_inline343 and tex2html_wrap_inline345 are the first and second derivatives with respect to tex2html_wrap_inline345 . By combining Equations (1) and (3) we obtain a mapping which relates the ellipse centre parameters and angular information

  equation61

   figure68
Figure 1: Geometry of two points on an elipse

   figure73
Figure 2: Geometry of two points on an elipse

A map which relates the axis parameters and angular information is formulated by considering the property of orthonormality of the ellipse axes

  equation86

where

displaymath89

Therefore, by defining Equations (4) and (5) as mappings between an image and a parameter space it is possible to compute four ellipse parameters represented by ( tex2html_wrap_inline357 , tex2html_wrap_inline359) and the ratios of axes tex2html_wrap_inline417 .

In order to obtain the axes after computing the ratio values, it is necessary to carry out a histogram accumulation process which obtains tex2html_wrap_inline355 . An expression for the axis component tex2html_wrap_inline355 given an edge point and the values of tex2html_wrap_inline357 , tex2html_wrap_inline359 , K and N is

  equation104

for tex2html_wrap_inline365 defined by

  equation114

  equation121

Consequently, by using Equations (4), (5) and (6) it is possible to decompose the parameter space for ellipse extraction into two independent accumulators and a histogram accumulator. This decomposition is based on the local change of a curve defined by the angle of the tangent vector functions tex2html_wrap_inline365 and tex2html_wrap_inline367 .

In order to obtain the angle of the first and second order directional derivatives on an edge point P, we consider the positional and directional information of two arbitrary points tex2html_wrap_inline373 and tex2html_wrap_inline375 , by following the ellipse geometry presented in Yuen et al.[9]. Figure 1 shows the geometry of two ellipse points and the relationship defined by their derivatives. The point P can be obtained by computing the intersection of the line MT with the ellipse. If tex2html_wrap_inline379 and tex2html_wrap_inline381 define the positions of the points tex2html_wrap_inline385 and tex2html_wrap_inline387 , then the value of tex2html_wrap_inline387 which specifies the point P is the mean of tex2html_wrap_inline391 and tex2html_wrap_inline393 . By considering of the relationship in Equation (1) when tex2html_wrap_inline397 , we obtain the angle of the first and second directional derivatives for the point P

  equation135

  equation142

for

displaymath149

and where tex2html_wrap_inline401 and tex2html_wrap_inline403 are the tangents of the angle of inclination of a tangent line to the points tex2html_wrap_inline385 and tex2html_wrap_inline387 respectively. This information can be obtained by the change of gradient on an image by using a local edge operator.

Results

By combining Equations (4) and (5) with Equations (9) and (10) we derive an algorithm which accumulates evidence by taking pairs of points from an image. Although Equations (9) and (10) define the angular relationship for arbitrary points, to compute accurate values it is necessary to provide pairs of points for which Equations (9) and (10) do not suffer bias due to discretisation. The error due to discretisation increases when M and T are close. Consequently, we avoid pairing points spaced by less than 25 pixels as well as points whose tangent is similar.

If the centre of the ellipse is within the image, the accumulator tex2html_wrap_inline333 and the histogram tex2html_wrap_inline355 are congruent to the image space. In order to accumulate evidence of the axis relationship tex2html_wrap_inline417 in a finite range of values, tex2html_wrap_inline419 and tex2html_wrap_inline421 are stored in the second accumulator. Experimental results have been assessed both on synthetic and real images. Figure 2(a) shows a 256x256x8-bit real image. Figure 2(b) shows the results of applying the Canny edge detector operator and Figure 2(c) shows the detected ellipse.

Conclusions

A mapping for ellipse extraction has been developed which includes edge tangent information. This mapping combines local information computed from pairs of edge points in order to decompose the space required for the HT and retains the original advantages of the HT. Since we include edge direction information, the proposed method only involves pairs of points without any geometric constraints. An important point in the implementation consists of defining pairs of points which produce accurate information.

References

1
Yip R.K.K., Tam P.K.S., Leung D.N.K., 1992, "Modification of the Hough transform for circles an ellipses detection using a 2-dimensional Array", Pattern Recognition, 25, 1007-1022.
2
Pao D., Li H.F., Jayakumar R., 1993, " A decomposable parameter space for the detection of ellipses", Pattern Recognition Letters, 14, 951-958.
3
Yoo J.H., Sethi I.K., 1993, "An ellipse detection method from the polar and pole definition of conics", Pattern Recognition, 26, 307-315.
4
Wu W., Wang M.J., 1993, "Elliptical object detection by using its geometrical properties", Pattern Recognition, 26, 1499-1509.
5
Ho C., Chan L., 1995, "A fast ellipse/circle detector using geometric symmetry", Pattern Recognition, 28, 117- 124.
6
Ballard D.H., 1981, "Generalizing the Hough transform to detect arbitrary shapes", Pattern Recognition, 13, 111-122.
7
Davies E.R., 1986, "Image space transform for detecting straight edges in industrial images", Pattern Recognition Letters, 4, 185-192.
8
Conker R.S., 1988, "A dual-plane variation of the Hough transform for detecting non-concentric circles of different radii", Computer Graphics and Image Processing, 43, 115-132.
9
Yuen H. K., Illingworth J., Kittler J., 1989, "Detecting partially occluded ellipses using the Hough transform", Image and Vision Computing, 7, 31-37.
10
Aguado A.S., Montiel, M.E., and Nixon M.S., 1995, "Ellipse Detection via gradient direction in the Hough transform", Proc. IEE International Conference on Image Processing and its Applications, July, pp 375-378


Click here to download a PostScript (.ps) copy of the paper.

Click here to download an Acrobat (.pdf) version of the paper.

Click here to request a copy of the Research Journal on CD-ROM.


For further information on any of the papers in this Research Journal or any work being carried out at the Department please contact: rjournal@ecs.soton.ac.uk.

Copyright (c) 1996 University of Southampton, June 1996.