Académique Documents
Professionnel Documents
Culture Documents
AbstractThe distance between a straight line and a straight noise even when lines are fragmented and masked by complex
line segment in the image space is proposed in this paper. Based backgrounds [3].
on this distance, the neighborhood of a straight line segment is de- The main idea of the HT is to map feature points in the
fined and mapped into the parameter space to obtain the param-
eter space neighborhood of the straight line segment. The neigh- image space to the parameter space using
borhood mapping between the image space and parameter space
is a one to one reversible map. The mapped region in the param- (1)
eter space is analytically derived and it is proved that it can be effi-
ciently approximated by a quadrangle. The proposed straight line
segment neighborhood technique for the HT outperforms conven- where is the perpendicular distance of the line to the origin,
tional straight line neighborhood methods currently used with ex- and is the angle between a normal to the line and the positive
isting HT variations. In contrast to the straight line neighborhoods axis. The HT maps each point in the discrete space to
used in existing HT variations, the proposed straight line segment points in the parameter space corresponding to all possible
neighborhood has several advantages including: 1) the detection
error of the proposed neighborhood is not affected by the length of lines through the point. Duda and Hart [2] derived several inter-
the straight line segments; 2) a precision requirement in the image esting properties for the point-to-curve transform. From (1), one
space described using the proposed distance can be explicitly re- can find each point in the image space will be mapped to a sinu-
solved using the proposed formulation; 3) the proposed neighbor- soidal curve in the parameter space. Usually the parameter space
hood has the ability to distinguish between segments belonging to is partitioned into adjoining rectangular cells using a predefined
the same straight line. A variety of experiments are executed to
demonstrate that the proposed neighborhood has a variety of in- resolution in both the and dimensions. The straight line lying
teresting properties of high practical value. on the center point of the rectangular cell in the parameter space
represents all straight lines in this cell. An accumulator is as-
Index TermsHough transform (HT), image space, neighbor-
hood mapping, parameter space, straight line detection. signed to each cell to count the number of sinusoidal curves
through the cell. The image points corresponding to these sine
curves are considered belonging to the representing straight line.
I. INTRODUCTION During the mapping process all the discretized values of are
enumerated and the corresponding values are calculated using
(1). An accumulator, corresponding to the center point of a rect-
HE detection of shapes in images is fundamental to many
T image understanding applications. The Hough Transform
(HT) [1] is one of the most widely used techniques for locating
angular cell in the parameter space, is incremented if any
point in the rectangular cell is associated with a corresponding
straight line in the image space. After voting, the location of the
straight lines, circles and eclipses in images. A large number
peaks in the parameter space represent straight lines appearing
of HT-based object recognition methods have been proposed in
in the image space.
the literature [2][9]. The HT is a robust tool for straight line
The accuracy of the HT received much attention due to er-
detection because it maps lines in the image space to a parameter
rors resulting from discretization and voting in the parameter
space in such a way that the straight line detection problem is
space [5], [6], [10][14], [17][20]. Determining the optimal
converted into a peak seeking problem. This property enables
resolution for the parameter space, therefore, received
the HT to detect straight lines in low quality images degraded by
much attention [4], [10], [12], [13], [18][20]. The standard
Hough transform (SHT) offers a very painful tradeoff: finer
quantization (i.e., higher precision) results in decreased ro-
Manuscript received May 12, 2009; revised October 12, 2009. First published
November 20, 2009; current version published February 18, 2010. The associate bustness [5]. Zhang [14] determined , the resolution in -di-
editor coordinating the review of this manuscript and approving it for publica- rection, by considering the digitization of the spatial domain,
tion was Dr. Arun Abraham Ross.
and then calculated based on the length of the straight line
S. Du is with the Department of Electrical and Mining Engineering, School
of Engineering, College of Science Engineering and Technology, University of and . The nonlinear relation between and was also
South Africa, Pretoria 0003, South Africa (e-mail: dushengzhi@gmail.com). investigated and a nonuniform quantization in the -direction
B. J. van Wyk and C. Tu are with the FSATIE, Tshwane University of
was proposed in [4], where was determined based on the
Technology, Pretoria 0001, South Africa (e-mail: vanwykb@tut.ac.za, tclchun-
ling@gmail.com). value of . The nonlinear properties of the SHT were also com-
X. Zhang is with the Tianjin University of Technology and Education, Tianjin pensated for by weighted voting and peak seeking schemes [6],
300222, China (e-mail: xhzhng@tute.edu.cn). [13], [18]. Because of the existence of image bounds, the pa-
Color versions of one or more of the figures in this paper are available online
at http://ieeexplore.ieee.org. rameter space is never fully populated. Davies [16] reduced
Digital Object Identifier 10.1109/TIP.2009.2036714 the parameter space by considering image bounds and ignoring
1057-7149/$26.00 2010 IEEE
Authorized licensd use limted to: IE Xplore. Downlade on May 13,20 at 1:475 UTC from IE Xplore. Restricon aply.
574 IEEE TRANSACTIONS ON IMAGE PROCESSING, VOL. 19, NO. 3, MARCH 2010
Authorized licensd use limted to: IE Xplore. Downlade on May 13,20 at 1:475 UTC from IE Xplore. Restricon aply.
DU et al.: IMPROVED HOUGH TRANSFORM NEIGHBORHOOD MAP 575
(2)
(3)
(4)
Fig. 2. Perpendicular belt B of straight line segment S . does not hold since Definition 2 implies that if is a straight
line then must be a straight line segment, and if is the
distance between a straight line segment and straight line ,
i.e., the image domain detection error depends on the lengths of then is the distance between two straight line segments
the straight lines. and which is not defined.
2) Problem 2: A predefined precision requirement in the Definition 3 (Neighborhood of a Straight Line Segment in the
image domain, for example the value of for a specified Image Space): Given a straight line segment in the image
variation in , cannot be explicitly supported by the voting and space and a non-negative real , the set of straight lines having
verification processes of the HT in the parameter space. Refer is the neighborhood of with radius , denoted as
to Fig. 1 for clarity. , where is the distance between the straight line
3) Problem 3: In Fig. 1, the straight line can be reasonably and straight line segment as defined in Definition 2.
considered to be lying very near to the straight line segment . Definition 4 (Neighborhood of a Straight Line Segment in the
Considering the existence of noise or uncertainties in the image, Parameter Space): Given a straight line segment in the image
is usually considered to be a part of . For another segment space and a non-negative real , the point set corresponding to
, lying on the same straight line as , it is unacceptable to all straight lines in the parameter space, is the
say is near to , even when considering noise and uncer- parameter space neighborhood of with radius , denoted as
tainties. However, and belong to the same straight line , where is the distance between the straight line
and, hence, are mapped to the butterfly shape sets sharing and straight line segment , given by Definition 2.
the same center point (i.e., the mapped image of ) in the pa- Note that the neighborhoods of a straight line segment in the
rameter space. When considering a straight line in the param- image space and in the parameter space are in agreement and,
eter space, a rectangle with width and height around the hence, the problems shown in Fig. 1 can be solved. This will be
mapped point of is taken to represent in the image space demonstrated in Section IV. To our knowledge, we are the first
without any ability to distinguish between and . to define distances and neighborhoods in this way.
In the sequel, the neighborhood of a straight line segment is For the sake of the clarity during further analysis, the fol-
defined in such a way that there is agreement between the image lowing definition is necessary:
space and the parameter space. Definition 5 (The Concomitant Rectangle of ): The
Definition 1: (Perpendicular Belt of a Straight Line Segment): concomitant rectangle of refers to the point set in the
Given a straight line segment in the image space, the perpen- image space which consists of intersections of straight lines in
dicular belt of refers to the narrowest parallel belt that with the perpendicular belt . The concomitant rec-
completely contains and whose midline is perpendicular to tangle of the neighborhood of with radius , is denoted as
. .
Definition 2: (Distance Between a Straight Line and a Remark 2: The neighborhood of a straight line segment is a
Straight Line Segment): Given a straight line segment and set of straight lines and not a pixel region in the image space.
straight line in the image space, the distance between The concomitant rectangle of this neighborhood is a pixel region
and , denoted as or , refers to the biggest in the image space.
Euclidian distance between and any point in the intersection Fig. 3 demonstrates Definitions 3 and 5. The darkly shaded
of and , where is the perpendicular belt of given by rectangular region is the concomitant rectangle of
Definition 1. , i.e., , which is a subset of .
Fig. 2 demonstrates Definitions 1 and 2. In Fig. 2, is the contains the given straight line segment and whose midline
given straight line segment and the shaded region is the is that belongs to. The width of the rectangle is
perpendicular belt of . has two intersection points with the . All straight lines crossing this region, constituting ,
edges of , i.e., and in Fig. 2. is a straight line having intersect edges and of (one intersection on
intersection points and with the edges of . As shown in and one on ).
Fig. 2, point has the biggest Euclidian distance to , denoted It should be noted that the neighborhood of is not the rectan-
by . Given the intersection, the distance between and is gular region but the set of straight lines running across
, denoted by . and .
Authorized licensd use limted to: IE Xplore. Downlade on May 13,20 at 1:475 UTC from IE Xplore. Restricon aply.
576 IEEE TRANSACTIONS ON IMAGE PROCESSING, VOL. 19, NO. 3, MARCH 2010
Fig. 3. Image space neighborhood of straight line segment S and its concomi- Fig. 4. Demonstration of the method used to calculate the in (12).
tant rectangle.
A. Vertexes of (11)
As shown in Fig. 3, the straight lines and are the edges can be determined from Fig. 4 by
of the rectangular region . Straight lines and run-
ning diagonally through the vertices of the rectangle (12)
have the maximum and minimum in , respectively. It
is important to note that when and are mapped to the pa- where , then
rameter space they are at the rightmost and leftmost points of
. In Section III-B, we will prove that , , and (13)
are the vertices of .
According to Fig. 3, belongs to the straight line with
parameters . is the center of . One can get the Similarly, one can obtain
parameters of , , and as follows:
: (14)
:
B. Edges of
(9) After locating the vertices of , we can find the edges.
Authorized licensd use limted to: IE Xplore. Downlade on May 13,20 at 1:475 UTC from IE Xplore. Restricon aply.
DU et al.: IMPROVED HOUGH TRANSFORM NEIGHBORHOOD MAP 577
(16)
As proved in theorem 1, the mapped images of and must
and
lie on the edges of and of as shown in
if Fig. 5. Denoting the acute angle between the straight lines
(17) and as , one can get the polar coordinates
if .
of as
From (16) and (17), one can obtain the mapped image of in
the parameter space, lying on the vertical line connecting the (18)
mapped points of and . By changing the direction of (19)
the mapped points of and draw out two
curves. All mapped points corresponding to straight lines having where and are the coordinates of the vertex of
in lie between these two curves and, in the image space.
therefore, these curves are the edges of . Now connect and using a straight line (dashed line
By selecting an appropriate slope, can reach the case of ) in Fig. 5. The point with lies on the dashed
and running through the vertexes and , respectively, i.e., line. The distance between and is the error of approxi-
. mating the curved edge by the dashed straight line .
It is clear that the straight lines running through two vertexes Since straight lines , and run through vertex of
of are mapped to the joining points of two edges, i.e., , their polar coordinates can be written as follows:
the vertices of . This proved that the mapped points of :
, are the vertexes of .
Corresponding to all possible straight lines in , the
mapped images of and constitute the edges of in (20)
the parameter space with the mapped images of all other straight :
lines in , i.e., all other points in , lying in the
region surrounded by edges , , , as shown
in Fig. 5. This is the end of proof.
(21)
C. Region of :
The edges connecting the vertices of , i.e., ,
, , in Fig. 5 are not necessarily straight lines.
We will now try to discover what these edges look like and (22)
whether they can be approximated by straight lines since the From (21), one can get
latter will be much more practical in image processing applica-
tions.
Theorem 2: The region of can be approximated by
the quadrangular region generated by connecting the vertices of
with straight lines. The approximation error is a higher
order infinitesimal of , where , and is the
length of .
Proof of Theorem 2: Without loss of generality, arbitrarily
(23)
pick a straight line in such as the thick line shown in
Fig. 6. We can construct two lines in , say and , The coordinates of point can be derived as follows:
marked by the dashed lines in Fig. 6, that are parallel to .
and run through vertices and of , respectively. (24)
Authorized licensd use limted to: IE Xplore. Downlade on May 13,20 at 1:475 UTC from IE Xplore. Restricon aply.
578 IEEE TRANSACTIONS ON IMAGE PROCESSING, VOL. 19, NO. 3, MARCH 2010
(32) (33)
(26)
(27)
(28)
Authorized licensd use limted to: IE Xplore. Downlade on May 13,20 at 1:475 UTC from IE Xplore. Restricon aply.
DU et al.: IMPROVED HOUGH TRANSFORM NEIGHBORHOOD MAP 579
Authorized licensd use limted to: IE Xplore. Downlade on May 13,20 at 1:475 UTC from IE Xplore. Restricon aply.
580 IEEE TRANSACTIONS ON IMAGE PROCESSING, VOL. 19, NO. 3, MARCH 2010
Fig. 10. Evolvement of N (S; r) when S rotating around (x ; y ). Fig. 12. Evolvement of N (S; r) when changing the radius of N (S; r).
Fig. 11. Evolvement of N (S; r) when changing the length of S . Fig. 13. Evolvement of N (S; r) keeping the ratio r=l.
Authorized licensd use limted to: IE Xplore. Downlade on May 13,20 at 1:475 UTC from IE Xplore. Restricon aply.
DU et al.: IMPROVED HOUGH TRANSFORM NEIGHBORHOOD MAP 581
Fig. 15. Maximum approximation error versus the center point location. Fig. 17. Maximum approximation error versus the length of segments.
hints at the possibility of exactly detecting the parameter space space neighborhood as demonstrated in Section IV-A4. This ex-
neighborhood of segments by selecting an appropriate coordi- periment investigates the approximation errors for various seg-
nate system. In fact, if the origin of the coordinates system lies ment lengths.
on the normal passing through the segment center point then the Fig. 17 shows the maximum error distribution versus the seg-
approximation error will be zero. ment length. It is very clear that longer segments have smaller
3) Approximation Errors When the Segment is Rotating approximation errors. When the length of the segment is very
Around its Center Point: Section IV-A3 investigated the case small, i.e., near to the neighborhood radius, the approximation
when the segment rotated around the center point. This ex- error is large. This is because when the length is very small,
periment will investigate the approximation errors during the in (11) is not small enough to make the approximation in
rotation. (28), (30), and (31) small enough. This is the drawback of ap-
Fig. 16 shows the maximum approximation errors when the proximating the parameter space neighborhood by a quadran-
segment rotates. It is clear that when the segment happened to gular region. Since the approximation error is caused by the
be perpendicular to the straight line passing through both the being not small enough, as hinted by (11), one can select a small
origin and the segment center point, the approximation error is neighborhood radius to alleviate the error.
zero. This verifies the conclusion of the previous experiment.
Fig. 16 also shows additional information: When the straight C. Application to Images
line containing the segment happened to pass the origin the ap- After discussing the properties of , two image appli-
proximation error will be the largest. This also hints at the pos- cations are designed to demonstrate how the proposed method
sibility to avoid large approximation errors. In fact if the coor- works to overcome the problems mentioned at the beginning of
dinate system is selected to avoid the origin to lie on the straight Section II.
line then the approximation error will be smaller. 1) Ability to Distinguish Between Segments of a Straight
4) Approximation Error Distribution Versus the Length of the Line: This sub-section deals with the third problem mentioned
Segment: The length of the segment also affects the parameter in Section II, i.e., the ability of to distinguish between straight
Authorized licensd use limted to: IE Xplore. Downlade on May 13,20 at 1:475 UTC from IE Xplore. Restricon aply.
582 IEEE TRANSACTIONS ON IMAGE PROCESSING, VOL. 19, NO. 3, MARCH 2010
Fig. 20. Replacing the straight line segment by a longer one in image
application.
Fig. 18. Straight line having different distances to the straight line segments.
Fig. 21. Proposed approach has higher distinction ability for lines lying very
near to each other.
Fig. 19. Distances from L to S and S in the parameter space.
Authorized licensd use limted to: IE Xplore. Downlade on May 13,20 at 1:475 UTC from IE Xplore. Restricon aply.
DU et al.: IMPROVED HOUGH TRANSFORM NEIGHBORHOOD MAP 583
Authorized licensd use limted to: IE Xplore. Downlade on May 13,20 at 1:475 UTC from IE Xplore. Restricon aply.
584 IEEE TRANSACTIONS ON IMAGE PROCESSING, VOL. 19, NO. 3, MARCH 2010
REFERENCES
[1] P. V. C. Hough, Method and Means for Recognizing Complex Pat-
terns, U.S. Patent 3069654, Dec. 18, 1962.
[2] R. O. Duda and P. E. Hart, Use of the Hough transfromation to detect
lines and curves in pictures, Comm. ACM, vol. 15, no. 1, pp. 1115,
1972.
[3] J. Song and M. R. Lyu, A Hough transform based line recognition
method utilizing both parameter space and image space, Pattern
Recognit,, vol. 38, pp. 539552, 2005.
Fig. 25. Locating the macro-segments using the intersection among the neigh- [4] H. Duan, X. Liu, and H. Liu, A nonuniform quantization of Hough
borhoods of the segments composing the macro-segments. space for the detection of straight line segments, in Proc. Int. Conf.
Pervasive Computing and Applications, 2007, pp. 216220.
[5] V. Shapiro, Accuracy of the straight line Hough transform: The non-
voting approach, Comput. Vis. Image Understand., vol. 103, pp. 121,
2006.
V. CONCLUSION [6] D. Walsh and A. E. Raftery, Accurate and effcient curve detection
in images: The importance sampling Hough transform, Pattern
Three problems arising from the disagreement between Recognit., vol. 35, pp. 14211431, 2002.
straight line definitions in the image space and the parameter [7] Y. T. Ching, Detecting line segments in an imagea new imple-
space when using the traditional HT were discussed in this mentation for Hough transform, Pattern Recognt. Lett., vol. 22, pp.
421429, 2001.
paper. To solve these problems, the neighborhoods of straight [8] J. Cha, R. H. Cofer, and S. P. Kozaitis, Extended Hough transform
line segments in both these two spaces are proposed, based for linear feature detection, Pattern Recognit., vol. 39, pp. 10341043,
on the definition of the distance between a straight line and 2006.
[9] L. A. F. Fernandes and M. M. Oliveira, Real-time line detection
a straight line segment. Through these definitions and subse- through an improved Hough transform voting scheme, Pattern
quent analysis, this paper showed that the straight line segment Recognit., vol. 41, pp. 299314, 2008.
neighborhood in the image space can be made consistent with [10] T. M. van Veen and F. C. A. Groen, Discretization errors in the Hough-
transform, Pattern Recognit., vol. 14, pp. 137145, 1981.
the straight line segment neighborhood in the parameter space. [11] N. Kiryati and A. M. Bruckstein, Antialiasing the Hough transform,
Clearly the proposed methodology removed these disagree- CVGIP: Graph. Models Image Process., vol. 53, no. 3, pp. 213222,
ments. 1991.
[12] I. D. Svalbe, Natural representations for straight lines and the hough
The region of the parameter space neighborhood of a straight transform on discrete arrays, IEEE Trans. Pattern Anal. Mach. Intell.,
line segment was analytically derived and shown to be effi- vol. 11, no. 9, pp. 941950, Sep. 1989.
ciently approximated by a quadrangle, making it suitable for [13] W. Niblack and D. Petkovic, On improving the accuracy of the
Hough transform: Theory, simulations, and experiments, in Proc.
practical image processing applications. The approximation er- Computer Society Conf. Computer Vision and Pattern Recognition,
rors were demonstrated in the experiments, and guidance for 1988, pp. 574579.
minimizing the error was given. The drawback of the proposed [14] M. Zhang, On the discretization of parameter domain in Hough trans-
form, Proceedings of IEEE (ICPR96), pp. 527531, 1996.
approach is also demonstrated in the experiments, i.e., for very
[15] J. A. Heather and X. D. Yang, Spatial decomposition of the Hough
short segments the parameter space neighborhood approxima- transform, in Proc. 2nd. Canad. Conf. Computer and Robot Vision,
tion errors might not be ignored. This drawback can be allevi- 2005, pp. 476482.
[16] E. R. Davies, Truncating the Hough transform parameter space can be
ated by selecting a small neighborhood radius.
beneficial, Pattern Recognit. Lett., vol. 24, pp. 129135, 2003.
Several experiments and applications showed that the pro- [17] E. Magli and G. Olmo, On high resolution positioning of straight pat-
posed method has solved many of the problems associated with terns via multiscal matched filtering of the Hough transform, Pattern
Recognit. Lett., vol. 22, pp. 705713, 2001.
the traditional HT. The proposed neighborhood of a straight
[18] Q. Ji and R. M. Haralick, Error propagation for the Hough transform,
line segment has the ability to distinguish between segments be- Pattern Recognit. Lett., vol. 22, pp. 813823, 2001.
longing to the same straight line. [19] T. T. Nguyen, X. D. Pham, and J. Jeon, An improvement of the Stan-
The method represents the image space resolution explicitly dard Hough Transform to detect line segments, in Proc. IEEE Int.
Conf. Industrial Technology, 2008, pp. 16.
when verifying straight lines in the parameter space. This prop- [20] J. ORourke, Dynamically quantized spaces for focusing the Hough
erty causes the proposed method to outperform the SHT, which transform, in Proc. 7th Int. Joint Conf. Artificial Intelligence, 1981,
puts more emphasis on parameter domain resolutions. pp. 737739.
[21] M. Atiquzzaman and M. W. Akhtar, A robust Hough transform tech-
Outperforming the traditional HT, the proposed approach also nique for complete line segment description, Real-Time Imag., vol. 1,
has the ability to detect macro straight line segments. no. 6, pp. 419426, 1995.
Authorized licensd use limted to: IE Xplore. Downlade on May 13,20 at 1:475 UTC from IE Xplore. Restricon aply.
DU et al.: IMPROVED HOUGH TRANSFORM NEIGHBORHOOD MAP 585
Shengzhi Du (M08) received the M.S. degree in Chunling Tu received the B.S. degree in computer
control theory and control engineering from Tianjin science from Tianjin University of Technology and
Poly Technology University, Tianjin, China, in 2001, Education, Tianjin, China, in 2002. She is currently
and the Ph.D. degree in control theory and control pursuing the M.S. degree in electrical engineering
engineering from Nankai University, Tianjin, in at the Tshwane University of Technology, Pretoria,
2005. South Africa.
He was a postdoctoral fellow at FSATIE and then Her current research interests include AI, indus-
a Senior Lecturer in the faculty of ICT, Tshwane Uni- trial control, and pattern recognition.
versity of Technology, in 2008 and 2009. Now he is
a permanent Associate Professor at the College of
Science Engineering and Technology, University of
South Africa, Pretoria. His current research interests include AI, neural net-
works, and statistic pattern recognition.
Xinghui Zhang received the M.S. degree from the
Harbin Shipping Engineering College in 1991 and the
doctor degree from Nankai University in 2002.
Barend Jacobus van Wyk (M04) received He is a Professor and Principal at the Tianjin Uni-
the Ph.D. degree from the University of the versity of Technology and Education, Tianjin, China.
Witwatersrand. His main research interests are intelligent control and
He is a Professor at the Tshwane University pattern recognition.
of Technology, Pretoria, South Africa. He has
more than 12 years of industrial experience in
telecommunications and aerospace engineering and
is an NRF (SA) rated researcher who published
more than 80 peer reviewed conference/journal
papers since 1998. His research interests are signal
processing, machine intelligence and control,
image processing, and pattern recognition.
Authorized licensd use limted to: IE Xplore. Downlade on May 13,20 at 1:475 UTC from IE Xplore. Restricon aply.