Next Article in Journal
Degenerate Near-Planar 3D Reconstruction from Two Overlapped Images for Road Defects Detection
Next Article in Special Issue
High-Efficiency Wavelet Compressive Fusion for Improving MEMS Array Performance
Previous Article in Journal
Racquet Sports Recognition Using a Hybrid Clustering Model Learned from Integrated Wearable Sensor
Previous Article in Special Issue
Research on an Infrared Multi-Target Saliency Detection Algorithm under Sky Background Conditions
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Line Matching Method Based on Multiple Intensity Ordering with Uniformly Spaced Sampling

Key Laboratory of Precision Opto-Mechatronics Technology, Ministry of Education, School of Instrumentation and Optoelectronic Engineering, Beihang University, Beijing 100191, China
*
Author to whom correspondence should be addressed.
Sensors 2020, 20(6), 1639; https://doi.org/10.3390/s20061639
Submission received: 6 February 2020 / Revised: 5 March 2020 / Accepted: 12 March 2020 / Published: 15 March 2020
(This article belongs to the Special Issue Data, Signal and Image Processing and Applications in Sensors)

Abstract

:
This paper presents a line matching method based on multiple intensity ordering with uniformly spaced sampling. Line segments are extracted from the image pyramid, with the aim of adapting scale changes and addressing fragmentation problem. The neighborhood of line segments was divided into sub-regions adaptively according to intensity order to overcome the difficulty brought by various line lengths. An intensity-based local feature descriptor was introduced by constructing multiple concentric ring-shaped structures. The dimension of the descriptor was reduced significantly by uniformly spaced sampling and dividing sample points into several point sets while improving the discriminability. The performance of the proposed method was tested on public datasets which cover various scenarios and compared with another two well-known line matching algorithms. The experimental results show that our method achieves superior performance dealing with various image deformations, especially scale changes and large illumination changes, and provides much more reliable correspondences.

1. Introduction

Feature matching has remained an essential engineering task in image processing and has been widely applied in computer vision, including image registration [1], image-based 3D modelling [2], object recognition [3] and pose estimation [4].
Typical feature matching algorithms usually consist of three steps: feature extraction, feature description and feature correspondence. In the first step, salient and stable features are extracted efficiently. Then the descriptors are constructed to encode the appearance of the neighborhood. In the matching stage, the similarity between the descriptors are measured to evaluate the correspondence. Among the various features used in computer vision, point features have been widely studied [5,6,7,8]. However, point features are likely to fail in low-texture scenes, such as industrial environments and indoor scenes. Because the establishment of the description for point features mainly relies on texture information, the number of the extracted point features may also fall drastically. On the contrary, line features are usually abundant in these man-made scenes, which also provide more geometric and structural information.
Compared with point feature matching algorithms, line matching methods have their own difficulties. The line segments extracted by line detection methods are far from being practical and physical. In some cases, a line segment in the real world may be divided into several fragments by the existing line segment detector [9,10]. Although some merging strategies are adopted, it is still quite hard to obtain unbroken line segments perfectly. Moreover, the location of line endpoints might not be precisely determined. These characteristics lead to multiple-to-multiple correspondences between two actual line segments from the reference image and test image respectively, which make it more challenging to match than point features. Furthermore, the issue of line feature matching is more complicated than point feature matching when constructing feature descriptors because line segments usually have a variety of lengths. In order to obtain the feature description vector with a fixed dimension, the structure of the feature descriptor must be specially designed.
Although more researchers have contributed on point features, effective and reliable correspondence between lines has also been studied extensively in recent years. The state-of-the-art line matching algorithms can be roughly classified into two groups: the methods that match individual line segments based on local appearance, and the approaches that match line segments in a group by using geometric and topologic information. Nevertheless, there are some methods consider both local appearance and geometric attributes.
In 2005, Bay et al. introduced a wide-baseline stereo line matching method [11], considering color profiles, topological structures and epipolar geometry. More line segment matches were added iteratively by applying sidedness constraint. Wang et al. [12] proposed a robust descriptor named the mean–standard deviation line descriptor (MSLD) for line matching based on the mean and standard deviation of intensity gradients from neighborhood appearance. The method used a gradient based method proposed by scale-invariant feature transform(SIFT) [5] to build the description matrix. However, there is no special design to handle scale changes. The description is independent of line length so that the dimension of the description matrix can be fixed. Wang et al. [13] designed a line signature by clustering adjacent line segments into groups based on spatial distances between lines. However, texture information was not employed in the method, and the computation cost was fairly large. Fan et al. [14] introduced planar line–point invariants (LPI) to match line segments. The situation under the conditions of affine transformation and projective transformation was discussed. The algorithm was highly dependent on existing point matching methods to construct reliable invariants between coplanar points and lines. Therefore, constrained by point matching methods, LPI failed to handle poorly textured scenes. In 2013, Zhang and Koch [15] developed their previous work, the line band descriptor (LBD) [16], which also considered the mean and standard deviation of the pixel gradients. The rotation angle between the reference image and the test image was estimated by aggregating the direction of the line segments and several geometric attributes were artificially designed to help generate the candidate matching pairs. The final match is obtained by utilizing the spectral technique. Park and Yoon [17] presented a real-time stereo matching method with line segments. Texture information was expressed by encoding binary streams using nonparametric transformation to obtain real-time performance. However, the algorithm relied on the repeatability of the line segment extraction method to ensure the spatial relations between the lines. López et al. [18] proposed a method to merge the segments which may be the fragments of a single line, and conduct matching in an iterative way by considering structural information from line neighborhoods. However, the structure of the line neighborhood was sensitive to the inaccurate location of line endpoints. Jia et al. [19] proposed a coplanar line–points projective invariant named the characteristic number [20] to undertake the matching. Two line segments were assumed to be coplanar, if the intersection of the two lines was close to one of the endpoints. Then, the intersections of the coplanar line segments are used to build the invariant. Short lines less than 20 pixels were considered in their developed version [21]. Li et al. [22,23] presented a hierarchical method to match lines in groups by establishing the structures, named Line–Junction–Line (LJL), from the Gaussian image pyramids. The unique structure was formed by two adjacent line segments and their intersections, which are assumed to be coplanar in 3D space. A gradient orientation histogram was built to describe the structure, also in a SIFT-like way. They developed their work [24], referred to as a V-junction, aiming at raising the efficiency of the algorithm and introducing a 3D line segment reconstruction method. However, the running time increased sharply if the line segments were crowded in the images.
Our previous work [25] demonstrated the effectiveness of matching line segments in the scale space, and dividing the neighborhood of the line segments into sub-regions based on intensity order to fix the dimension of the line descriptor. The descriptors are constructed by examining the gradient information of the pixels, and the pair-wise geometric attributes of neighboring line segments are considered to generate the final results. This paper extends our previous work, aiming to further improve the robustness of illumination changes and scale changes with the following aspects: 1) the local intensity order is examined to build the local feature description rather than gradient information; 2) uniformly spaced sampling is conducted in a multiple concentric ring shaped structure to reduce the dimension of the descriptor and improve the discriminative ability; 3) the approximate scale between the reference and the test image is estimated; 4) outliers are removed by estimating the fundamental matrix of the image pair from the intersections of the candidate line, matching pairs with the random sample consensus (RANSAC) strategy.

2. Methodology

An overview of our line matching method is presented in Figure 1, which consists of the following four main parts: multi-scale line segment detection, intensity-based local descriptor construction, descriptor matching in an image pyramid and fundamental matrix estimation by intersections. More details for each part are discussed in the following sections.

2.1. Line Segment Detection from Image Pyramid

In order to acquire the scale robustness in the matching process and overcome the fragmentation problem, the line segments are extracted by line detectors in a multi-scale way, which is based on Gaussian scale-space theory.
The original reference and test images are down-sampled and Gaussian blurred. For convenience, only one layer is built between two contiguous octaves. Then, a line segment detection algorithm is applied to each octave of the image pyramid to generate line segments. The corresponding lines located in each octave image are matched by inspecting several geometric characteristics. First, we check the parallelism of the line segments located in the same region in the octave images. If the angle between two lines is less than 10 degrees, they are considered as parallel. Then the distances between the endpoints are estimated. The scale factor is applied to the endpoints of the lines in each octave images, in order to evaluate the distances under original scale. Lines are considered corresponding only if the endpoints are close enough. After exploring all the line segments in the image pyramid, the corresponding line segments are assigned to an identical group, as shown in Figure 2.
In the following line matching process, corresponding line segments in the same group are regarded as the identical line segments matching with other line groups. It is worth mentioning that not every line segment in the original image has its corresponding line in other octave images. A group with only one line segment from the original image could potentially exist.
For the line segment detection algorithm, a real-time line segment detector with edge drawing (EDLines) [9] is used in this paper. It is widely used in computer vision applications in recent years [26,27,28]. EDLines generates line segments very fast with no need for parameter tuning. The Helmholtz principle [29] is used in the detector to make validation with few false positives. As mentioned above, EDLines is applied to the octave images to detect line segments.

2.2. Intensity-Based Local Feature Descriptor

2.2.1. Support Region with Local Coordinate System

For a line segment detected from the octave image, the local appearance is evaluated by picking and partitioning its local neighborhood, which is the first consideration when creating a feature descriptor. All the subsequent computation is conducted in this local region. A line support region is established to undertake the computation and a local orientation system is built to obtain rotation invariance.
The support region is designed to be rectangular and centered on the line segment. As Figure 3 shows, the width of the region is set to be equal to the length L of the center line l, and the height is denoted by h. The local coordinate system is built by investigating the average gradient direction of pixels on the line segment, which is defined as d , and the anticlockwise orthogonal direction of d is defined as d L . Attributed to the definition of the local orientation system based on gradient direction, the rotation invariance is achieved when constructing a multiple concentric ring-shaped structure. The details are explained in the following section.

2.2.2. Sub-Region Division Based on Intensity Order

In this section, the line support region is further divided into several sub-regions. The division process is quite essential, because line segments with different lengths should be unified to the description vector with a fixed dimension, in other words, the descriptor should be independent of the line length, which relies on a particular design. It can be observed that some of the previous line descriptors choose to carry out the division based on spatial information, such as banded structure [12,15], which is parallel to the line segment, in order to overcome this problem. After this, the statistic approaches are applied to each bands to compute the descriptors. However, such geometrical division strategies may not take full advantage of spatial or intensity information. Inspired by the local intensity order pattern [30], we divide the support region into several irregular sub-regions based on intensity order to improve the distinctiveness of the descriptor.
To start, we introduce some basic symbol definition. P = { p 1 , p 2 , , p n } is the set of n pixels in a support region, and their intensity is denoted by I = { I ( p 1 ) , I ( p 2 ) , , I ( p n ) } . Firstly, those n pixels are sorted in ascending order by their intensity value, and then a new array is formed, which is given by P ^ = { p f ( 1 ) , p f ( 2 ) , , p f ( n ) } . The new intensity order set is described as,
I ^ = { I ( p f ( k ) ) : I ( p f ( 1 ) ) I ( p f ( 2 ) ) I ( p f ( n ) ) , k [ 1 , n ] } ,
where f ( 1 ) , f ( 2 ) , f ( n ) is one of the permutations of 1 , 2 , , n . Then those sorted pixels are divided into m groups uniformly of the same sizes. In particular, the threshold of each group of sorted pixels is given by
T = { I ( p f ( k ) ) : f ( k ) = k n / m , k [ 1 , m ) } .
Thus a pixel p ( x ) in the support region can be assigned to a particular sub-region S ( x ; T ) based on the threshold. It is described as,
S ( x ; T ) = { k , I ( p f ( k 1 ) ) I ( p ( x ) ) < I ( p f ( k ) ) , k = 1 , 2 , , m 1 m , I ( p ( x ) ) > I ( p f ( m 1 ) )
As Figure 4b shows, each color represents a specific group of pixels. A support region is adaptively divided into several parts based on intensity order, rather than an artificially designed banded or circular structure. According to the construction principle, it is robust to monotonic illumination changes.

2.2.3. Multiple Local Intensity Order Representation

In this section, multiple local intensity ordering is applied to describe the local neighborhood. Sample points distributed on a circle centered on a pixel are used to derive the description. In this work, a multiple concentric ring-shaped structure is established to improve the discrimination of the local feature description rather than a single circle. In addition, sample points are picked at regular intervals and assigned to different point sets to reduce the dimension of the descriptor to further improve the computational efficiency and improve the discriminative ability at the same time.
Firstly, a pixel x in a partitioned sub-region in the local coordinate system is considered. A number of neighborhood points are evenly distributed over a series of concentric circles of radius R = { R j : j [ 1 , r ] } centered at x. As Figure 5 shows, there are N sample points on each circle with the same uniform distribution. The ith neighborhood point on the circle of radius R j is denoted as x j i , where i [ 1 , N ] , j [ 1 , r ] . The first point x j 1 on the circle of radius R j is located along the d L direction of the local coordinates from the center point x. Then the remaining neighborhood points are sampled and distributed on the circle in an anticlockwise direction, as shown in Figure 5, and the rotation invariance is obtained. The intensity value of those neighborhood points is obtained by bilinear interpolation, which is denoted by { I ( x j i ) : i [ 1 , N ] , j [ 1 , r ] } . After this, the local feature description on each circle is calculated by sorting the intensity value of the N sample points in an ascending order to obtain a permutation, which is formed by their superscripts. Mathematically, an N-dimensional vector is mapped to a permutation of { i : i [ 1 , N ] } based on the order of { I ( x i ) : i [ 1 , N ] } . To be more specific, the new local intensity order set is described as
I ˜ = { I ( x f ( q ) ) : I ( x f ( 1 ) ) I ( x f ( 2 ) ) I ( x f ( N ) ) , q [ 1 , N ] } ,
where f ( 1 ) , f ( 2 ) , f ( N ) is one of the permutations of the superscripts 1 , 2 , , N . Thus, each local intensity value sorting corresponds to an exclusive permutation.
It is quite clear that the total number of the permutations is N! for a single circle. In order to facilitate the constructing descriptors, a one-to-one lookup table was established to match the local intensity ordering I ˜ with the corresponding permutation. Accordingly, the local intensity ordering I ˜ can be mapped directly to the corresponding integer index value η . The lookup table covers all the possible permutations of length N!.
Then, a histogram H is created to compute the local feature descriptor, which is described as
H = { B η : B 1 , B 2 , B N ! , η [ 1 , N ! ] } .
Each bin B η in the histogram corresponds to an integer index value of the lookup table. Obviously, the size of the lookup table depends on the number of neighborhood points N, and the dimension of the local feature descriptor, which is computed based on the lookup table, also increases dramatically as N increases. Therefore, we picked N sample points at regular intervals in different point sets to avoid dimension disaster. As mentioned above, N neighborhood points are uniformly distributed on each circle. Those points are then uniformly space sampled and divided into v sets with u sample points in each point set, as shown in Figure 6a, which means N = u v . As Figure 6b shows separately, multiple point sets are established on the circles of radius R = { R j : j [ 1 , r ] } . They are represented as
{ { x 1 1 , x 1 v + 1 , x 1 2 v + 1 , , x 1 N v + 2 } { x 1 2 , x 1 v + 2 , x 1 2 v + 2 , , x 1 N v + 1 } { x r 1 , x r v + 1 , x r 2 v + 1 , , x r N v + 2 } { x r 2 , x r v + 2 , x r 2 v + 2 , , x r N v + 1 } .
In this way, the dimension of the local feature descriptor depends on v u ! , which is much lower than N!. Subsequent experiment sections show that the dimension of the local feature descriptor is reduced while the discrimination and the robustness is maintained.

2.2.4. The Construction of the Local Feature Descriptor

As stated above, the histogram technique is applied to build the descriptor. In order to further increase the robustness of the descriptor and emphasize the importance of the pixels close to the line segment, a Gaussian weight g d is applied rather than simple voting. It is defined as
g d = exp ( d 2 σ 2 ) ,
where d is the distance of the current pixel x to the line segment l and σ = h . In particular, for u sample points in point set v on the rth circle centered at pixel x in the sub-region S, g d is added to the bin B η based on their intensity value sorting results and the histogram is denoted by H S ( r , ν ) . Then the whole local feature descriptor D is constructed simply by concatenating the histograms together and normalization. It is represented as
{ H 1 = [ H 1 ( 1 , 1 ) , , H 1 ( 1 , ν ) , , H 1 ( r , 1 ) , , H 1 ( r , ν ) ] H S = [ H S ( 1 , 1 ) , , H S ( 1 , ν ) , , H S ( r , 1 ) , , H S ( r , ν ) ] ,
D = [ H 1 , H 2 , , H S ] .

2.3. Descriptor Matching in Image Pyramid

In this section, the similarity between feature descriptors is evaluated and the approximate scale between the image pairs is estimated. To address the scaling and the fragmentation problem, we extract line segments in a multi-scale scheme in the previous section and the local feature descriptors are constructed. In Zhang’s work [15], the rotation angle between the image pairs are estimated by drawing a direction histogram of the line segments. Inspired by this, we also compute a minimum distance histogram to estimate the scale between the image pairs.
The feature descriptors in the image pyramid with the closest scale return the most similar results. From the above consideration, the similarities between all the local feature descriptors in the image pyramid are calculated. A common way to do this is through the calculation of the Euclidean distances of the feature description vectors. To be specific, for a group of identical line segments in the reference image pyramid and a group of identical line segments in the test image pyramid, the descriptors are denoted as D r e f = { D r e f s 0 , D r e f s 1 , , D r e f s γ } and D t e s t = { D t e s t s 0 , D t e s t s 1 , , D t e s t s γ } , where s 0 , s 1 , , s γ are the corresponding scale factors. The Euclidean distances between D r e f and D t e s t are calculated, which are defined as,
d i s t ( D r e f , D t e s t ) = { d i s t ( D r e f s i , D t e s t s j ) : i [ 0 , γ ] , j [ 0 , γ ] }
Then the minimum values of the distances are computed and accumulated to each bin corresponding to each pair of octave images to construct the distance histogram. Not all the minimum values are taken into account, due to the consideration of the influence of some random factors. We only choose to add up the top λ percent of the total number of the line segments from the octave image with the lowest number of line segments. Accordingly, the scale factor corresponding to the bins with the minimum value is considered to be the approximate scale between the original image pairs. An example is demonstrated in the following experimental section.
After estimating the scale factor, the nearest neighbor distance ratio (NNDR) matching criterion is applied to further select candidate matching pairs from the corresponding octave image pairs. It is defined as the distance from the nearest match divided by the distance from the second nearest match. If the distance ratio is within a certain threshold, it is considered to be a candidate match.

2.4. Fundamental Matrix Estimation by Intersections

Inevitably, false matches exist after evaluating local feature descriptor with the NNDR criterion. To be specific, candidate matching pairs obtained by a higher NNDR ratio may provide more correct matches but also more outliers. Therefore, we use the RANSAC strategy to remove outliers by estimating a fundamental matrix between the reference image and test image from candidate matching pairs.
An eight-point algorithm is used to compute the fundamental matrix [31]. Hence, intersections of every two line segments from candidate matching pairs are calculated. Among them, the intersections located out of the image are discarded. For example, ( l r e f i , l t e s t i ) and ( l r e f j , l t e s t j ) are two pairs of candidate matches, and q r e f i j is where the two lines ( l r e f i , l r e f j ) intersect. Similarly, q t e s t i j is the intersection of ( l t e s t i , l t e s t j ) . Then ( q r e f i j , q t e s t i j ) is considered to be a pair of candidate intersections spontaneously. If both q r e f i j and q t e s t i j are located in the image range, they are sent to estimate the fundamental matrix. After carrying out RANSAC, inlier intersection pairs are obtained, and the corresponding line segments that form those intersections are regarded as the final result.

3. Experiments and Discussion

In this section, image matching experiments are conducted to evaluate the performance of the proposed line matching method. Two well-known line matching algorithms are also tested in the same scheme to compare the discriminative ability and the robustness of the methods. They are MSLD, the line segment appearance description method with SIFT-like strategy; and LPI, the algorithm based on line-point invariants. All the line segments in the experiments are extracted by the EDLines detector. The point matches required in LPI are obtained by SIFT from the OpenCV library.
The test image pairs used in this paper are shown in Figure 7 and Figure 8, which cover different kinds of scenarios from a natural scene. All the image pairs are from the public datasets downloaded from the internet and used in literature [14,15,30,32]. Common image transformations are collected as follows: rotation (Figure 7a,b), illumination changes (Figure 7c,d and 8), view point changes (Figure 7e) and scale changes (Figure 7g,h). Occlusion (Figure 7f) and low-texture scenes (Figure 7i,j) are also included.

3.1. Parameters Evaluation

In order for the line matching method to exhibit better performance, several relevant parameters should be carefully selected. They are the number of sub-regions m, the number of concentric circles r, the radius of the circles R = { R j : j [ 1 , r ] } , the number of sample point sets v, the number of sample points in each point set u and the height h of the support region. To evaluate the performance of the proposed method under different parameter settings, various image matching experiments are conducted with all the tested parameters listed in Table 1. When discussing a parameter, all other parameters are set to the same fixed values. The matching precision and recall are used as the evaluation criterion. However, in order to consider matching precision and recall comprehensively, the F1-Measure is also taken into account. They are defined as follows
p r e c i s i o n = t h e   n u m b e r   o f   c o r r e c t   m a t c h e s t o t a l   m a t c h e s ,
r e c a l l = t h e   n u m b e r   o f   c o r r e c t   m a t c h e s t h e   g r o u n d t r u t h   m a t c h e s ,
F 1 M e a s u r e = 2 p r e c i s i o n r e c a l l p r e c i s i o n + r e c a l l .
The average performance of the method under different parameter settings are shown in Figure 9 by the recall vs 1-precision curves and the curves of the total number of correct matches. The selected parameter values are also displayed in Table 1.
For the height of the line support regions, Figure 9a demonstrates that the result is not monotonically increasing with the parameter. The number of correct matches increases rapidly in the beginning, then the performance trends toward a steady and slow decline.
Figure 9b shows that as the number of sub-regions increases, the number of correct matches rises to a peak and then falls. As shown in the recall vs 1-precision curves, m = 6 is slightly superior to m = 4, although it achieves the maximum number of correct matches when m = 4.
As can be seen in Figure 9c, more correct matches are obtained when three or four points are sampled in each point set. It is observed that v = 3, u = 3 outperforms the other cases from the recall vs 1-precision curves.
Figure 9d indicates that multiple concentric circles have a big advantage over the single ring-shaped structure. To strike a balance between the discriminative ability and the dimension of the local feature descriptor, two circles with radius R1 = 12, R2 = 15 are selected.

3.2. The Descriptor Dimension

The dimension of the local feature descriptor and the effective measure to reduce the dimension is discussed in this section.
Suppose that the line support region is divided into m sub-regions, and r concentric circles are constructed with v point set on each circle, each containing u sample points. The dimension of the proposed local feature descriptor D can then be calculated as dim ( D ) = m r ( v u ! ) . The dimension of the local feature descriptor D with only one point set on each concentric circle with the same number of sample points is dim ( D ) = m r ( v u ) ! by contrast. As can be seen in Figure 10, the dimension of the local feature descriptor is reduced dramatically by dividing the same number of sample points into multiple point sets rather than using those sample points directly. Nevertheless, it is also important to note that the performance might decrease when the sample points are divided, to a certain extent. As shown in Figure 9d, six sample points are divided into two and three point sets, respectively. Obviously, when each point set contains only two sample points, it becomes a binary pattern, which might reduce the discriminative ability of the method.

3.3. The Scale Estimation

As described earlier, the scale factor between the original image pairs is estimated by constructing a minimum distance histogram from the image pyramid. Figure 11 and Figure 12 gives an example of a minimum distance histogram of the image pair shown in Figure 7g. The ground truth scale between the image pair is 3.3 and the estimated approximate scale is 2 2 2.83 .
Figure 11a illustrates the image pyramid of the reference image and the scale factor between each adjacent octave image is 2 . In this case, the octave image in scale four has the least number of line segments, with 49 line segments. So the sum of the top λ percent of 49 minimum Euclidean distances are computed and drawn in Figure 12. As can be observed, the summation in scale 2 2 is the smallest over all the presented values of λ . Hence, it is selected as the approximate scale between the image pairs. As for parameter λ , we select λ = 80 in the following experiments.

3.4. Experimental Results and Discussion

In this section, we present the details of the line matching experimental results to evaluate the proposed method compared with MSLD and LPI. The same criterion described above is followed and the precision, recall and F1-measure values are used to evaluate the methods.

3.4.1. Natural Scene Image Pairs

The experiments are conducted on 10 pairs of natural scene images shown in Figure 7. The bar graphs in Figure 13 shows the performance of the methods and Figure 14 illustrates the matching results of our method.
As can be seen from Figure 13, the proposed method performs better than other two algorithms for image pairs with rotation changes (Figure 14a,b). This is because all the calculations are based on the local coordinate system built by examining the average gradient on either side of the line segment, so that the local feature descriptors are less affected by the rotation changes. In addition, the sampling strategy when constructing descriptors achieves more robustness against rotation changes than dominant orientation estimation system in point features, compared with LPI based on SIFT descriptor.
For image pairs with drastic illumination changes in Figure 14c,d, the proposed method demonstrates the best performance, mainly due to the design of intensity value sorting. The results indicate that the intensity order-based method is more robust against large illumination changes than dominant orientation estimation technique.
Image pairs with viewpoint change and occlusion are displayed in Figure 14e,f, and the matching results show that the proposed method obtains high scores in both accuracy and recall.
In the case of scale changes, illustrated in Figure 14g,h, our method outperforms the other two algorithms significantly. It is observed that the multi-scale line segment detection and matching strategy help to overcome the scale change problem effectively. The SIFT descriptor used in LPI also employs the scale-space theory to handle scale changes. In contrast, as shown in Figure 13, MSLD fails in this scenario because of its lack of special design for scale variation.
Figure 14i,j shows low-texture scene, which are quite common in indoor scenes. Our method ranks the top of three methods in terms of both precision and recall and obtains fairly high scores. In contrast, LPI with SIFT fails in this situation, because the local appearance described by SIFT descriptor is largely depended on texture information. It is quite difficult to manage such a poorly textured scene with a lack of gradient information.

3.4.2. The Illumination Dataset

The illumination dataset contains three sets of image sequences with increasing illumination changes, as shown in Figure 8. The performance of the methods is shown in Table 2.
As can be seen from Table 2, the proposed method produces a much greater number of correct matches with the highest precision in all the image sequences. The number of correct matches obtained by our method is twice the amount of MSLD. The proposed method still provides 121 correct matches with high precision under the large illumination changes in Figure 8a(1–5), while the performance of both MSLD and LPI decreases rapidly.
The running time is also evaluated in this experiment. The experiments are conducted on a 1.8 GHz Intel Core i7-8565U processor with 16 GB of RAM. The average running time for each line segment is given in Table 2. The processing time of our method depends on the number of the extracted line segments, the dimension of the local feature descriptor and the area of the line support region.

4. Conclusions

We proposed a line matching method based on multiple intensity ordering with uniformly spaced sampling, which demonstrated good performance under a variety of scenarios. The main contributions are as follows: 1) uniformly spaced sampling is introduced at multiple concentric ring shaped structures to improve the discriminability; 2) the dimension of the local feature descriptor is also reduced by extracting sample points at regular intervals; 3) the approximate scale between the image pairs is estimated to handle scale change problems; 4) outliers are removed by computing fundamental matrix estimated by the intersections of line segments from candidate matching pairs.
The relevant parameter settings were analyzed in this paper and the dimension of the local feature descriptor was also discussed. The proposed method was compared with another two well-known line matching algorithms under the same test conditions. The experimental results confirm that our method is robust to rotation, scale changes and large illumination changes. The proposed method tends to reach higher precision and recall values in comparison, and a greater number of correct matches were obtained.
The running time of the proposed method was relatively high. Future work will focus on improving the processing efficiency while maintaining the robustness and the discriminative ability.

Author Contributions

Conceptualization, J.X.; methodology, J.X.; software, J.X.; formal analysis, J.X.; data curation, J.X.; Supervision, Z.W. and G.Z.; writing—original draft preparation, J.X.; writing—review and editing, J.X., Z.W., and G.Z.; funding acquisition, Z.W. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Science Fund for Distinguished Young Scholars of China under Grant 51625501.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Zitová, B.; Flusser, J. Image registration methods: A survey. Image Vis. Comput. 2003, 21, 977–1000. [Google Scholar] [CrossRef] [Green Version]
  2. Remondino, F.; El-Hakim, S. Image-based 3D Modelling: A Review. Photogramm. Rec. 2006, 21, 269–291. [Google Scholar] [CrossRef]
  3. Guo, Y.; Bennamoun, M.; Sohel, F.; Lu, M.; Wan, J. 3D Object Recognition in Cluttered Scenes with Local Surface Features: A Survey. Ieee Trans. Pattern Anal. Mach. Intell. 2014, 36, 2270–2287. [Google Scholar] [CrossRef]
  4. Piasco, N.; Sidibé, D.; Demonceaux, C.; Gouet-Brunet, V. A survey on Visual-Based Localization: On the benefit of heterogeneous data. Pattern Recognit. 2018, 74, 90–109. [Google Scholar] [CrossRef] [Green Version]
  5. Lowe, D.G. Distinctive Image Features from Scale-Invariant Keypoints. Int. J. Comput. Vis. 2004, 60, 91–110. [Google Scholar] [CrossRef]
  6. Bay, H.; Tuytelaars, T.; Gool, L.V. SURF: Speeded up robust features. In Proceedings of the 9th European Conference on Computer Vision—Volume Part I, Graz, Austria, 7–13 May 2006; pp. 404–417. [Google Scholar]
  7. Leutenegger, S.; Chli, M.; Siegwart, R.Y. BRISK: Binary Robust invariant scalable keypoints. In Proceedings of the 2011 International Conference on Computer Vision, Barcelona, Spain, 6–13 November 2011; pp. 2548–2555. [Google Scholar]
  8. Bellavia, F.; Tegolo, D.; Valenti, C. Keypoint descriptor matching with context-based orientation estimation. Image Vis. Comput. 2014, 32, 559–567. [Google Scholar] [CrossRef]
  9. Cuneyt Akinlar, C.T. EDLines: A real-time line segment detector with a false detection control. Pattern Recognit. Lett. 2011, 32, 1633–1642. [Google Scholar] [CrossRef]
  10. Gioi, R.G.V.; Jakubowicz, J.; Morel, J.; Randall, G. LSD: A Fast Line Segment Detector with a False Detection Control. IEEE Trans. Pattern Anal. Mach. Intell. 2010, 32, 722–732. [Google Scholar] [CrossRef]
  11. Bay, H.; Ferraris, V.; Van Gool, L. Wide-baseline stereo matching with line segments. In Proceedings of the 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, San Diego, CA, USA, 20–25 June 2005; pp. 329–336. [Google Scholar]
  12. Wang, Z.; Wu, F.; Hu, Z. MSLD: A Robust Descriptor for Line Matching. Pattern Recognit. 2009, 42, 941–953. [Google Scholar] [CrossRef]
  13. Wang, L.; Neumann, U.; You, S. Wide-baseline image matching using Line Signatures. In Proceedings of the 2009 IEEE 12th International Conference on Computer Vision, Kyoto, Japan, 29 September–2 October 2009; pp. 1311–1318. [Google Scholar]
  14. Bin Fan, F.; Hu, Z. Robust Line Matching through Line-point Invariants. Pattern Recognit. 2012, 45, 794–805. [Google Scholar] [CrossRef]
  15. Zhang, L.; Koch, R. An efficient and robust line segment matching approach based on LBD descriptor and pairwise geometric consistency. J. Vis. Commun. Image Represent. 2013, 24, 794–805. [Google Scholar] [CrossRef]
  16. Zhang, L.; Koch, R. Line Matching Using Appearance Similarities and Geometric Constraints. In Joint DAGM (German Association for Pattern Recognition) and OAGM Symposium; Springer: Berlin/Heidelberg, Germany, 2012; pp. 236–245. [Google Scholar]
  17. Park, J.; Yoon, K.-J. Real-time line matching from stereo images using a nonparametric transform of spatial relations and texture information. Opt. Eng. 2015, 54, 023106. [Google Scholar] [CrossRef]
  18. López, J.; Santos, R.; Fdez-Vidal, X.R.; Pardo, X.M. Two-view line matching algorithm based on context and appearance in low-textured images. Pattern Recognit. 2015, 48, 2164–2184. [Google Scholar] [CrossRef]
  19. Jia, Q.; Gao, X.; Fan, X.; Luo, Z.; Li, H.; Chen, Z. Novel Coplanar Line-Points Invariants for Robust Line Matching Across Views. In Proceedings of the Computer Vision—ECCV 2016 14th European Conference, Amsterdam, The Netherlands, 11–14 October 2016; Leibe, B., Matas, J., Sebe, N., Welling, M., Eds.; Springer International Publishing: Cham, Switzerland, 2016; pp. 599–611. [Google Scholar]
  20. Fan, X.; Luo, Z.; Zhang, J.; Zhou, X.; Jia, Q.; Luo, D. Characteristic Number: Theory and Its Application to Shape Analysis. Axioms 2014, 3, 202–221. [Google Scholar] [CrossRef] [Green Version]
  21. Jia, Q.; Fan, X.; Gao, X.; Yu, M.; Li, H.; Luo, Z. Line matching based on line-points invariant and local homography. Pattern Recognit. 2018, 81, 471–483. [Google Scholar] [CrossRef]
  22. Li, K.; Yao, J.; Xia, M.; Li, L. Joint point and line segment matching on wide-baseline stereo images. In Proceedings of the 2016 IEEE Winter Conference on Applications of Computer Vision (WACV), Lake Placid, NY, USA, 7–10 March 2016; pp. 1–9. [Google Scholar]
  23. Li, K.; Yao, J.; Lu, X.; Li, L.; Zhang, Z. Hierarchical line matching based on Line-Junction-Line structure descriptor and local homography estimation. Neurocomputing 2016, 184, 207–220. [Google Scholar] [CrossRef]
  24. Li, K.; Yao, J. Line segment matching and reconstruction via exploiting coplanar cues. ISPRS J. Photogramm. Remote Sens. 2017, 125, 33–49. [Google Scholar] [CrossRef]
  25. Xing, J.; Wei, Z.; Zhang, G. A Robust Line Matching Method Based on Local Appearance Descriptor and Neighboring Geometric Attributes; SPIE: Bellingham, WA, USA, 2016; Volume 10157, p. 8. [Google Scholar]
  26. Liu, Y.; Mejias, L.; Li, Z. Fast Power Line Detection And Localization Using Steerable Filter For Active Uav Guidance. Int. Arch. Photogramm. Remote Sens. Spat. Inf. Sci. 2012, XXXIX-B3, 491–496. [Google Scholar] [CrossRef] [Green Version]
  27. Lin, S.; Garratt, M.A.; Lambert, A.J. Monocular vision-based real-time target recognition and tracking for autonomously landing an UAV in a cluttered shipboard environment. Auton. Robot. 2017, 41, 881–901. [Google Scholar] [CrossRef]
  28. Shi, X.; Jiang, J. Automatic Registration Method for Optical Remote Sensing Images with Large Background Variations Using Line Segments. Remote Sens. 2016, 8, 426. [Google Scholar] [CrossRef] [Green Version]
  29. Desolneux, A.; Moisan, L.; Morel, J.-M. From Gestalt Theory to Image Analysis: A Probabilistic Approach; Springer: Berlin/Heidelberg, Germany, 2007. [Google Scholar] [CrossRef] [Green Version]
  30. Zhenhua, W.; Fan, B.; Wu, F. Local Intensity Order Pattern for feature description. In Proceedings of the 2011 International Conference on Computer Vision, Barcelona, Spain, 6–13 November 2011; pp. 603–610. [Google Scholar]
  31. Andrew Alex, M. Multiple View Geometry in Computer Vision. Kybernetes 2001, 30, 1333–1341. [Google Scholar] [CrossRef]
  32. Mikolajczyk, K.; Tuytelaars, T.; Schmid, C.; Zisserman, A.; Matas, J.; Schaffalitzky, F.; Kadir, T.; Gool, L.V. A Comparison of Affine Region Detectors. Int. J. Comput. Vis. 2005, 65, 43–72. [Google Scholar] [CrossRef] [Green Version]
Figure 1. The flowchart of the proposed method.
Figure 1. The flowchart of the proposed method.
Sensors 20 01639 g001
Figure 2. Illustration of the corresponding line segments in the identical group from image pyramid.
Figure 2. Illustration of the corresponding line segments in the identical group from image pyramid.
Sensors 20 01639 g002
Figure 3. Illustration of the support region with local coordinate system of line segment l. The line length is denoted by L and the height of the support region is h. The direction dL is defined as the average gradient direction of pixels on the line segment, and its anticlockwise orthogonal direction is denoted by d .
Figure 3. Illustration of the support region with local coordinate system of line segment l. The line length is denoted by L and the height of the support region is h. The direction dL is defined as the average gradient direction of pixels on the line segment, and its anticlockwise orthogonal direction is denoted by d .
Sensors 20 01639 g003
Figure 4. Illustration of adaptively divided support region into multiple sub-regions. (a) Local zoom on a pair of corresponding line segments with support region from image pair. The line segments are highlighted in red and the support regions are marked in blue boxes. (b) Irregular-shaped sub-regions labeled by different colors.
Figure 4. Illustration of adaptively divided support region into multiple sub-regions. (a) Local zoom on a pair of corresponding line segments with support region from image pair. The line segments are highlighted in red and the support regions are marked in blue boxes. (b) Irregular-shaped sub-regions labeled by different colors.
Sensors 20 01639 g004
Figure 5. Illustration of the multiple concentric ring-shaped structure based on the local coordinate system with sample points uniformly distributed on the circles centered at pixel x.
Figure 5. Illustration of the multiple concentric ring-shaped structure based on the local coordinate system with sample points uniformly distributed on the circles centered at pixel x.
Sensors 20 01639 g005
Figure 6. Illustration of the division of the neighborhood points. (a) All the neighborhood points of pixel x and the calculations are made in the local coordinates; (b) N neighborhood points are uniformly spaced divided into v sets with u=N/v sample points in each point set, which corresponds to expression (6).
Figure 6. Illustration of the division of the neighborhood points. (a) All the neighborhood points of pixel x and the calculations are made in the local coordinates; (b) N neighborhood points are uniformly spaced divided into v sets with u=N/v sample points in each point set, which corresponds to expression (6).
Sensors 20 01639 g006
Figure 7. The test image pairs from public datasets of a natural scene.
Figure 7. The test image pairs from public datasets of a natural scene.
Sensors 20 01639 g007
Figure 8. The illumination dataset.
Figure 8. The illumination dataset.
Sensors 20 01639 g008
Figure 9. The average performance in terms of recall vs 1-precision curves and the curves of the total number of correct matches under different parameter settings.
Figure 9. The average performance in terms of recall vs 1-precision curves and the curves of the total number of correct matches under different parameter settings.
Sensors 20 01639 g009aSensors 20 01639 g009b
Figure 10. The comparison of descriptor dimensions under different number of point sets.
Figure 10. The comparison of descriptor dimensions under different number of point sets.
Sensors 20 01639 g010
Figure 11. The image pair with scale change. The corresponding scale factors are marked below the images. (a) The image pyramid of the reference image with five octave images. (b) The original test image.
Figure 11. The image pair with scale change. The corresponding scale factors are marked below the images. (a) The image pyramid of the reference image with five octave images. (b) The original test image.
Sensors 20 01639 g011
Figure 12. The minimum distance histogram in five scales accumulated by different quantities of minimum Euclidean distances.
Figure 12. The minimum distance histogram in five scales accumulated by different quantities of minimum Euclidean distances.
Sensors 20 01639 g012
Figure 13. The performance of the mean–standard deviation line descriptor (MSLD), line–point invariants (LPI), and the proposed method. (a) precision; (b) recall; (c) F1-Measure.
Figure 13. The performance of the mean–standard deviation line descriptor (MSLD), line–point invariants (LPI), and the proposed method. (a) precision; (b) recall; (c) F1-Measure.
Sensors 20 01639 g013aSensors 20 01639 g013b
Figure 14. The matching results of the proposed method on different image pairs. Each pair of matched lines is represented by the same color and marked with the same number at the center of the lines.
Figure 14. The matching results of the proposed method on different image pairs. Each pair of matched lines is represented by the same color and marked with the same number at the center of the lines.
Sensors 20 01639 g014aSensors 20 01639 g014bSensors 20 01639 g014c
Table 1. Parameter settings determined by experiments.
Table 1. Parameter settings determined by experiments.
SymbolsTested ValuesSelected ValuesDescription
m2, 3, 4, 5, 6, 7, 8, 9, 106the number of sub-regions
r1, 2,32the number of concentric circles
R9, 12, 15, 18, 21, 24, 27, 3012, 15the radius of the circles
v1, 2, 33the number of sample point sets
u2, 3, 4, 5, 63the number of sample points in each point set
h15, 25, 35, 45, 55, 65, 75,
85, 95, 105, 115, 125, 135
45the height of the line support region
Table 2. Line matching results of the proposed method, MSLD and LPI on illumination datasets.
Table 2. Line matching results of the proposed method, MSLD and LPI on illumination datasets.
Img PairsThe Number of Img PairsMethodCorrect MatchesTotal MatchesPrecision (%)Average Time (ms)
corridor1–2proposed76377598.58.0
MSLD37639595.22.3
LPI12846527.519.1
1–3proposed45346697.27.6
MSLD20221992.22.4
LPI6925027.69.2
1–4proposed24325794.67.7
MSLD9611980.72.6
LPI3216319.67.3
1–5proposed12112795.37.4
MSLD295453.72.9
LPI71258.36.0
desktop1–2proposed29930797.48.2
MSLD17918696.23.8
LPI465288.56.7
1–3proposed50951598.88.1
MSLD30231097.42.4
LPI21423093.08.3
1–4proposed49149599.28.0
MSLD28128797.92.4
LPI21422794.37.6
1–5proposed37137598.98.1
MSLD23924498.02.2
LPI5317630.16.0
desktop_syn1–2proposed41141499.38.2
MSLD27628397.52.2
LPI17520884.16.9
1–3proposed36136598.98.1
MSLD18118995.82.2
LPI2112616.75.2

Share and Cite

MDPI and ACS Style

Xing, J.; Wei, Z.; Zhang, G. A Line Matching Method Based on Multiple Intensity Ordering with Uniformly Spaced Sampling. Sensors 2020, 20, 1639. https://doi.org/10.3390/s20061639

AMA Style

Xing J, Wei Z, Zhang G. A Line Matching Method Based on Multiple Intensity Ordering with Uniformly Spaced Sampling. Sensors. 2020; 20(6):1639. https://doi.org/10.3390/s20061639

Chicago/Turabian Style

Xing, Jing, Zhenzhong Wei, and Guangjun Zhang. 2020. "A Line Matching Method Based on Multiple Intensity Ordering with Uniformly Spaced Sampling" Sensors 20, no. 6: 1639. https://doi.org/10.3390/s20061639

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop