Professional Documents
Culture Documents
A New Approach For Merging Edge Line Segments
A New Approach For Merging Edge Line Segments
A New Approach For Merging Edge Line Segments
net/publication/37649765
CITATIONS READS
11 504
2 authors:
Some of the authors of this publication are also working on these related projects:
Novel Computational Methodologies for Detailed Analysis and Simulation of Human Motion from Image Sequences View project
All content following this page was uploaded by Joao Manuel R. S. Tavares on 29 May 2014.
a
I - INTRODUCTION
Fig. 1 - Principle of the Liu and Huang method. The resulting
In many areas of computer vision it is often
segment (length lr) connects the most distant ends of the
required to link or to merge line segments given segments (lengths li and lj).
belonging to the same line. This may be required
to reduce the number of entities having common There are three main drawbacks in the
characteristics in an image, thus building new method:
entities with stronger characteristics (e.g., length, • when the segments are totally overlapping,
orientation). the result is the largest of them, thus
The method herein proposed is quite versatile, cancelling the influence of the smaller one
being appropriate either for linking non- (see Fig. 2);
overlapping segments, or for merging line • when the segments are partially overlapping
segments partially or fully overlapping. The main or non-overlapping, the resulting line can
advantage of the method derives from the have a poor placement (see Fig. 3);
consideration of the lengths of each segment as • the orientation and placement of the merged
explicit weights for the definition of the line is not influenced by the relative lengths
orientation and placement of the resulting line. of the given segments.
II - OVERVIEW d
Several methods have been proposed to merge lj
two segments which are close of each other and
b
have similar directions. We shall briefly describe
two methods, both analysed in [1]. c li ≡ lr
The first method is due to Liu and Huang. The
a
principle of the method consists in defining the
resulting segment as the one that connects the
Fig. 2 - Merging of two totally overlapping segments by the
ends of the given segments which are farther Liu and Huang method.
apart, as shown in Fig. 1.
lj
lr
c
b
lj
lr c
If θi - θj ≤ π then
li
a
2
X
l θ +l θ
θr = i i j j, else Fig. 7 - Merging of two non-overlapping segments by the
li + lj proposed method.
θj d
li θi + lj θj - π YG
θj Y
θr = . c
lj
XG
θr
li + lj lr
where ( δXG , δYG ) are the coordinates of the Fig. 9 - Merging of two totally overlapping segments by the
point δ in frame (XG , YG ). proposed method.
5) The two orthogonal projections over the axis As shown in the previous figures, the method
XG of the four endpoints a, b, c and d, which gives good results both for non-overlapping and
are farther apart, define the endpoints of the for overlapping segments. The method also
merged line. allows the simple integration of criteria for
deciding the merging of segments based on their
The results of the proposed method are shown proximity and relative position. By analysing the
in Figs. 7, 8 and 9, as applied to non-overlapping, projections of the four endpoints in frame
partially overlapping and totally overlapping (XG , YG ), it is straightforward to determine how
segments, respectively. close the two segments are and what their relative
position is. It suffices to compare the length lr of
the resulting line with the lengths of the segments
defined by the projections of the endpoints a, b, c
and d on the frame (XG , YG ). Three cases have to
be considered:
Case 1: Figs. 12 and 13 show the original image and the
result of polygonal approximation.
If lr ≥ aX bX + cXG dXG ,
G G
(Eq. 4)
then there is no overlap of the segments. The
criterion of proximity to test the condition for
merging is:
l - a b
cX dX ≤ dMAX
r XG XG +
G G XG
and δY κY ≤ dMAX ,
G G YG
Fig. 12 - Original image “cameraman”.
(Eqs. 5a and 5b)
where dMAX is the maximum distance, on the
XG
Case 2:
If lr = aX bX or lr = cX dX
G G G G
Fig. 13 - Image obtained by edge extraction and polygonal
(Eq. 6) approximation.
then the segments are totally overlapping. The In order to simplify the illustration of the
proximity criterion is given again by Eq. 5b. method, only the segments longer than 20 pixels
are retained for merging. The simplified image is
Case 3:
shown in Fig. 14.
If lr < aX bX + cX dX
G G G G
(Eq. 7)
and both Eqs. 6a and 6b are not verified, then
the segments are partially overlapping. The
proximity criterion is given again by Eq. 5b.
The following experimental results were obtained Fig. 15 shows three images resulting from the
for the well-known image "cameraman", where merging of segments present in Fig. 14, using
the segments for merging were extracted using a different criteria. For comparison, Fig. 16
method combining edge tracking and polygonal displays the results in Fig. 15c) superimposed on
approximation using a dynamic strip algorithm1. the input image.
dMAX ´ = 4, dMAX ´´ = 2, n = 20. dMAX ´ = 8, dMAX ´´ = 2, n = 20. dMAX ´ = 25, dMAX ´´ = 2, n = 20.
YG YG YG YG YG YG
Legend:
• ∆θ is the maximum allowed directional difference of the two segments;
• dMAX is the maximum allowed distance over the XG axis of the two non-overlapping segments;
XG
• dMAX is the maximum allowed distance over the YG axis of the two non-overlapping segments;
YG
• dMAX ´ is the maximum allowed distance over the YG axis of the two partially overlapping segments;
YG
• dMAX ´´ is the maximum allowed distance over the YG axis of the two totally overlapping segments;
YG
APPENDIX
POLYGONAL APPROXIMATION USING
DYNAMIC STRIPS
d e
c
o a
b
d e
c
o a
b
ACKNOWLEDGEMENT
The work described in this paper was done as
partial fulfilment for the MSc. degree of the first
author, who acknowledges the grant BM/3258/92-
RM awarded by JNICT - Junta Nacional de
Investigação Científica e Tecnológica.
REFERENCES
[1] B. Hussien, B. Sridhar, "A Robust Line
Extraction and Matching Algorithm", SPIE