Automatic lane marking extraction from point cloud into polygon map layer
Abstract
This paper concentrates on the road inventory process. The key part of road marking detection and reconstruction is based on spanning tree usage. The spanning trees are obtained from alpha shapes of the detected road markings.The final reconstruction is in vector form so it is suitable for geographical information systems.
Full text
Full Terms & Conditions of access and use can be found at http://www.tandfonline.com/action/journalInformation?journalCode=tejr20 European Journal of Remote Sensing ISSN: (Print) 2279-7254 (Online) Journal homepage: http://www.tandfonline.com/loi/tejr20 Automatic lane marking extraction from point cloud into polygon map layer David Prochazka, Jana Prochazkova & Jaromir Landa To cite this article: David Prochazka, Jana Prochazkova & Jaromir Landa (2018): Automatic lane marking extraction from point cloud into polygon map layer, European Journal of Remote Sensing, DOI: 10.1080/22797254.2018.1535837 To link to this article: https://doi.org/10.1080/22797254.2018.1535837 © 2018 The Author(s). Published by Informa UK Limited, trading as Taylor & Francis Group. Published online: 29 Oct 2018. Submit your article to this journal Article views: 122 View Crossmark data
Automatic lane marking extraction from point cloud into polygon map layer David Prochazka a , Jana Prochazkova b and Jaromir Landa a a Department of Informatics, Mendel University in Brno, Brno, Czech Republic; b Institute of Mathematics, Faculty of Mechanical Engineering, Brno University of Technology, Brno, Czech Republic ABSTRACT Optimization of road networks is a common concern worldwide, primarily for safety purposes. Because the extent of these networks is substantial, automation of their inventory is highly desirable. This paper concentrates on the road inventory process that is necessary for regular maintenance. The key part of our road marking detection and reconstruction is based on spanning tree usage. The spanning trees are obtained from alpha shapes of the detected road markings. The spanning trees application enables the reliable identification of the road markings and precise reconstruction of their contours even with noisy data. Our method processes the point cloud data obtained from LiDAR measurements, and provides a common vector layer with road lane polygons. Such a vector layer is stored in a common file format supported by the majority of geographical information systems, thus producing an output that can be conveniently used for decision-making based on the road inventory process. ARTICLE HISTORY Received 3 November 2017 Revised 5 October 2018 Accepted 10 October 2018 KEYWORDS LiDAR; mobile laser scanning; point cloud; road surface marking detection; shape reconstruction; road inventory Introduction Remote sensing and mobile mapping provide spatial data items that are the basis for the decision-making process in various applications. Particularly, detection of objects on the roads and in their vicinity, is one of the important areas in the last years. We can see a general effort to optimize the road network, especially the effort to make it safer. The European Union initiatives can be taken as an example. The communication Towards a European Road Safety Area (COM, 2010) moved the target date for halving the number of fatal road accidents forward to 2020 and set the year 2050 as the target date for moving close to having zero fatalities. Concerning road safety, there are two key elements: cars and the road itself. The improvement of the cars is focused especially on various real-time security systems: lane guidance, collision warning, etc. The Intelligent Transport Systems theme and the related eSafety initiative 1 are focused on this issue. It is possible to see a substantially rising amount and quality of these systems in contemporary cars. On the other hand, there is an improvement in the road infrastructure. Intelligent Roads, Sustainable Surface Transport and similar EU projects are focused on the road capacity increase, improvement of road maintenance and safety. For the implementation of the proposed improvements, we must have state-of-art information about the roads. It is crucial to be familiar with the state of traffic signs, road surface markings, zebra crossings (Arias, Riveiro, Soilán, Díaz-Vilarino, & Martínez-Sánchez, 2015) and even objects along the roads, for example poles or trees (Elhinney, Kumar, Cahalane, & McCarthy, 2010; Gonzalez-Jorge, Puente, Riveiro, Martinez-Sanchez, & Arias, 2013;Pu, Rutzinger, Vosselman, & Elberink, 2011). This process of road inventory comprises a substantial amount of manual work. The human operators measure objects in the field, process large amounts of, for example aerial images or LiDAR point clouds and prepare vector representation of required objects. This process is time consuming and therefore slow and expensive. There can be found many projects aimed at automatic identification of objects related to roads (e.g. above-mentioned traffic signs or road markings). Their review is provided below. A substantial number of them are optimized for real-time car safety systems. Our project is focused on the inventory process issue. The goal is to provide an exact vector representation stored in a format that can be processed in common geographical information systems (e.g. ESRI ShapeFile map layer). The proposed method is not suitable for real-time applications such as car safety systems mentioned. It can produce map layers that can be effortlessly used for different spatial analyses. We proposed a three phased application that automatically process point cloud data. Firstly, we make the ground point detection using our published algorithm in Landa, Prochazka and Stastny (2013). The algorithm is based on a dynamic bounding box principle. The second step is the lane marking identification that consists of the CONTACT Jana Prochazkova [email protected] Brno University of Technology, Technicka 2, 616 69 Brno, Czech Republic 1 http://ec.europa.eu/transport/road_safety/index_en.htm. EUROPEAN JOURNAL OF REMOTE SENSING https://doi.org/10.1080/22797254.2018.1535837 © 2018 The Author(s). Published by Informa UK Limited, trading as Taylor & Francis Group. This is an Open Access article distributed under the terms of the Creative Commons Attribution-NonCommercial License (http://creativecommons.org/licenses/by-nc/4.0/), which permits unrestricted non-commercial use, distribution, and reproduction in any medium, provided the original work is properly cited.
successive application of the alpha shape method and spanning tree. In the last step, we present a novel geometric method that is able to reconstruct arbitrary shape of the lane marking in vector form. It can process the input k-ary spanning tree, where k¼1;2;3;4. Inthispaperwecovertheissueofautomaticroadline detection, identification of its kind, reconstruction of its correct shape and export to theESRIShapeFilemaplayer. Literature overview Our method, as well as methods used in similar projects, is based on the processing of point clouds provided by aerial or ground vehicles equipped with LiDAR. Airborne laser scanning is frequently used for large areas. The airborne laser scanning data is used for digital elevation models (Sithole & Vosselman, 2005; Susaki, 2012) and applications such as monitoring of atmospheric aerosols in ecology (Badarinath, Kharol, & Sharma, 2009), structural mapping in geology (Grebby, Cunningham, Naden, & Tansey, 2012. On the other hand, the mobile laser scanning (MLS) is used for urban areas mapping (Graham, 2010) because it usually provides better results due to a higher point cloud density. Within the urban areas, a very common goal is detection of different street objects (buildings, road surface markings, street lights etc.). These detected objects are then represented as 3D models (Lafarge & Mallet, 2011) or map layers that are used for spatial analyses (Landa & Ondrousek, 2016). The authors (Yang, Dong, et al. 2017) presents a robust method for road facilities recognition based on multiple aggregation levels computation and designing a series of contextual features to improve the recognition performance. Our article is focused particularly on detection of the road surface markings; therefore, we present primarily papers focused on this problem. The process of detection of common street objects from LiDAR data usually starts with the classification of the terrain points (Chen et al., 2009). The classification of terrain points is used either for the isolation of objects on the ground, or for the elimination of points that are not necessary for the computations. If the target of the detection is an object with high reflectance property, then the points with high reflectance are isolated (Yang, Fang, Li, & Li, 2012). Subsequent operations are the road marking position detection and identification of its kind, for example full or broken line (Chen et al., 2009; Yang et al., 2012). The last part of the process can be the reconstruction of road marking shape. However, this part is usually not used in methods similar to the one presented in this paper. The process commonly ends with the identification of the marking type. Terrain point classification Terrain point classification methods can be divided into two groups. The first possibility is to detect directly the terrain points (e.g. the road points), the other is to detect the adjacent road curbs. This second approach has an obvious limitation. It is not suitable for roads that are not surrounded by detectable borders. A naive direct detection approach takes a given percentage of lowest points in the point cloud and classifies them as the ground points (Babahajiani et al. 2014). The disadvantage of this method is again clearly visible – only road segments with negligible elevation difference can be processed. Nonetheless, more complex methods are used in the practically oriented projects. In the article by Belton and Bae (2010), road points are defined as the lowest horizontal points on a smooth surface. The approach described by Yang and Dong (2013)usesa shape-based segmentation method. The segments of the point cloud are then classified using Support Vector Machines. The algorithm can detect lines or planar and spherical patches; therefore, it can be easily used for ground point detection. Another innovative method presents the application of Hough transformation on Millimetre Wave Radar data to obtain road edges (K.Y. Guo, Hoare, Jasteh, Sheng, & Gashinova, 2015). As mentioned, the other possibility how to detect a road is to extract its road curbs. The road curbs create a boundary of the road because of their higher elevation above the road surface. For example, the method of (Yang, Fang, & Li, 2013) describes road cross-sections with window operators that filter out non-ground points. The window operators work with three criteria: elevation jump, point density and slope change. Guan et al. (2014) also uses the same criteria but for a preprocessing of the raw point cloud. The cloud is partitioned into a set of horizontal segments (so-called profiles) according to the vehicle trajectory. Road lane marking detection and identification from point clouds Traffic sign detection, as well as road surface marking detection, works with the high reflectance intensity (higher retroreflective property) of the special sign paint. A transformation of the point cloud into 2D images is commonly used. In the article (Chen et al., 2009), the authors filter the point cloud on the basis of the point reflectance. Consequently, they generate a 2D binary image. The value of each pixel is one if it corresponds to a surface marking and zero otherwise. The Hough transform is then applied to detect the lines on the road surface. Finally, they identify the road lanes using a bounding box and RANSAC. 2 2 Random Sample Consensus. 2D. PROCHAZKA ET AL.
Another use of 2D images can be seen in Guan et al. (2014). The authors generate 2D georeferenced intensity images using an extended inverse-distance- weighted (IDW) approach. Further, they segment these images into road marking candidates with a point density-dependent method. Furthermore, the authors in Yang et al. (2012) use 2D images to detect road markings. They generate a georeferenced image of the point cloud. This image is filtered on the basis of point reflectance and height. The final step is labelling of the road marking regions according to their shape and arrangement. The method incorporates related semantic knowledge (e.g. shape, pattern) of the road marking. A similar example of the road marking detection using 2D images can be found in Thuy and Leon (2010). Another possibility is to process the LiDAR intensity and range attributes as used in Kumar, Elhinney, Lexis, and McCarthy (2014). The described algorithm generates 2D intensity raster surfaces from the LiDAR data. According to the authors, the algorithm can detect 88% of road marking points. Naturally, the point cloud data can be also combined with common RGB images to detect lane markings. Examples can be found in Huang et al. (2013), Li, Chen, Li, Shaw and Nuchter (2014). Road lane marking shape reconstruction The road lane marking shape (envelope) is frequently required during the lane identification process. One of the most frequently used representations is a common bounding box. However, such representation has two major limitations: (a) It can be used solely for the straight lanes. (b) It can be used only in situations where the lane markings do not touch or cross each other (e.g. not on road intersections). Another frequently used representation is the concave or convex hull (Moreira & Santos, 2007). The hull quality directly depends on the amount of noise and complexity of the shape. A solution proposed by Schindler, Maier and Janda (2012) uses circular arc splines. Nevertheless, this approach is not suitable for line intersections (see Figure 1). The road lane marking is firstly represented by a bounding box in Chen et al. (2009). Further there is applied the RANSAC curve fitting algorithm published in Fischler and Bolles (1981) to localize each lane marking accurately. Finally, a point is selected every 10 cm along a fitted curve. The final coordinate of the point is an average of points within a 10 by 10 cm rectangular box surrounding the given selected point. The authors, however, do not reconstruct the representation to obtain the marking envelope shape, they are focused only on its detection. The shape representations described above can have insufficient quality. Therefore, we focus on a method that allows to reliably detect and correctly reconstruct the lane marking shape in this article. Implementation This section describes our approach towards lane marking detection, identification and reconstruction. Primarily, we focus on the identification of full and broken road lane markings. A key issue is to find a precise polygon representation of each detected marking and store this representation into a common polygon map layer. The detection process is the application of our method proposed in Landa et al. (2013). The following phase is the classic segmentation of the standard well-known method. We proposed a new two-step identification phase that consists of the alpha shape and spanning tree. The reconstruction also presents a novel geometric method how to compute the accurate shape of the lane markings. The entire process is briefly outlined in Figure 2. Ground point classification and lane marking detection Road marking detection methods are closely connected with the point reflectance as described in the previous section. Our method is based on such a common approach where the points with the reflectance higher than a given threshold are chosen. In this set of points with high reflectance values, the ground points are then classified. The ground point classification is performed solely on this set of points with high reflectance to minimize the computation needs. The reflectance value depends on the type of the scanning device and it is set experimentally. For ground point detection, we use the algorithm proposed in Landa et al. (2013). The algorithm is Figure 1. Examples of possible road lane marking combinations. Left: solid and dashed lane. Right: examples of road lane crossings. EUROPEAN JOURNAL OF REMOTE SENSING 3
based on a dynamic bounding box principle. The input point cloud is divided into separate columns and in each column the lowest points are extracted. The extracted ground points are further segmented on the basis of the Euclidean distance. The points satisfying empirically the determined limit of maximal distance between two points are considered as belonging into a single segment Figure 3. The result of the Euclidean-based segmentation contains also a substantial amount of noise segments, for example building parts, curbs etc. The elimination of these false-positive segments is based on multi-thresh- old criteria. We determined these conditions: ●the minimal number of points in the segment ●the maximal number of points in the segment ●the maximal size of envelope rectangle in xor y direction, ●the minimal percentage of planar points using RANSAC algorithm (usual value is 95 %). The above-mentioned criteria create the result visible in Figure 3. Lane marking identification The result of the ground point extraction and segmentation described in the previous section is a segmented point cloud where each segment represents a possible road marking. However, it is important to mention that in spite of the previous elimination of false positive results, it still contains some segments that do not represent road markings (e.g. pavement). In this part, we describe the identification of a particular line type (full, broken). The identification process consists of four steps: (1) The 3D point cloud is transformed into a 2D point cloud. (2) The alpha shapes of represented objects are computed. (3) Their spanning trees are determined. (4) The road lane marking segments are identified. The first step is the point cloud transformation from a geospatial coordinate system to a local coordinate system. This step simplifies the computations. Subsequently, the concave hull is frequently computed as a shape representation in some works. Nonetheless, such a concave hull is ambiguous (see Figure 4); therefore, we compute the alpha shape which is unambiguous. The alpha shape computation algorithm is described in Edelsbrunner, Kirkpatrick and Seidel (1983). The alpha shape is a generalization of a convex hull. The general definition in Edelsbrunner, Kirkpatrick and Seidel (1983) says that alpha-hull of set Sis the intersection of all closed discs with radius 1=α(αis a sufficiently small but otherwise arbitrary positive real number) that contain all the points of S.Inourcase,theDelaunay triangulation is used to construct a TIN (Triangulated Figure 2. Overview of the proposed road lane marking detection, identification and reconstruction process. This process is able to create a common polygon map layer from a given point cloud. Figure 3. Left: Input point cloud. Right: Result of segmentation based on multi-threshold criteria: segments identified as possible lane markings (positive) are labelled in black, the other segments (negative) are labelled in red. 4D. PROCHAZKA ET AL.
Irregular Network) and the alpha shape is then created on the basis of Criterion 1. Criterion 1: The length of the triangle is at least two times smaller than the median of the length of all inner triangles. This allows us to obtain a hull that is unambiguous in contrast to the concave hull. The result of the alpha shape computation is a vector polygon representing the rough shape of the lane marking (Figure 5). However, this shape cannot be used as a road lane representation. It represents the envelope of the road lane point cloud. The actual shape of the lane marking is different. For this reason, the spanning tree of the graph that is based on the alpha shape is constructed. This process of a spanning tree construction is composed of (1) thinning of the alpha shape, (2) extraction of the spanning tree, (3) smoothing and filtration of the spanning tree segments. The thinning produces the simplified representation of the image which is topologically identical with the original alpha shape image. The Guo-Hall thinning algorithm which was published in the article (Guo & Hall, 1989) is chosen. To perform thinning, the alpha shape is transformed to a 2D image. The thinning algorithm produces an image with a set of pixels that later creates a spanning tree. A tree is a connected acyclic simple graph and the spanning tree is a spanning subgraph that is also the tree. Let k-ary tree be a rooted tree in which each internal vertex has no more than kchildren. A 1-ary tree is just a path. A 2-ary tree is also called a binary tree. The examples of different k-ary spanning trees are in Figure 6. The subsequent extraction of the spanning tree from the image is provided by the well-known recursive region growing algorithm (Gonzalez & Woods, 2001). The algorithm searches in the neighbourhood of a start pixel (first white pixel) for non-processed pixels. If one non-processed pixel is detected, it is added to the result structure and this point is labelled as processed. If two or more non-processed pixels are detected, each pixel is labelled as the start pixel of a new part of the lane marking segment. In the case that the algorithm does not detect any non-processed point, the search is finished and the spanning tree of the graph is taken as a result. The smoothing and filtration of segments is performed by the Ramer- Douglas-Peucker algorithm (Douglas & Peucker, 1973; Ramer, 1972). Finally, the points of the spanning tree are transformed from the local coordinate system back to the original geospatial coordinate system. All three Figure 4. Different types of correct concave hulls on a set of points. These two examples present the ambiguity of a concave hull. Figure 5. Concave hull determined by the alpha shape criterion. Left: Examples of point clouds that represent lines after segmentation. Right: alpha shape result. Figure 6. Possible variants of spanning trees that can be constructed from the point cloud: k-ary spanning tree (from left to right: k= 1,2,3,4). EUROPEAN JOURNAL OF REMOTE SENSING 5
described steps are presented in Figure 7. The results projected on an aerial map are in Figure 8. The result of this process is a set of spanning trees which represent objects on a road or in its vicinity. We focus primarily on the identification of full and broken lane markings. Our identification process is used to identify full and broken lanes and the segments they are composed of. We proposed a modification of the region growing algorithm (Figure 9) for this purpose. Any spanning tree that contains at least one node with the multiplicity higher than 3 is eliminated as too complex. Such spanning trees represent neither broken nor full lane. The spanning trees are then divided into two categories according to their lengths (possible broken and full lane marking segments). This division is done to simplify the computations and to ensure that the spanning trees representing different road lane markings are not connected incorrectly. Inside each category, the first spanning tree is selected and its end vertices are connected to all end vertices of all unprocessed spanning trees (see Figure 9(a)). The best possible spanning tree (with the lowest distance and angle) is chosen to be connected to the original tree (Figure 9(b)). The result is a new spanning tree which connects both the original and the selected spanning tree (Figure 9(c)). This process continues until all possible spanning trees that create a set of lane markings are connected (Figure 9(d)). The process ends when all spanning trees are processed. Lane marking representation We focus on the mathematical construction of the vector road lane marking representation from the spanning tree in this section. As mentioned, the goal is to obtain a common vector map layer such as ESRI ShapeFile. Such a representation is suitable for any further analytic process in frequently used geographical information systems. We choose the solution with regard to the input k-ary spanning tree, where k¼1;2;3;4. Let Hi fg label the input vertices and Ti fg be a set of the computed points, dthe given distance of the envelope points. 1-Ary tree Let Hi¼hi 1;hi 2 be the vertex with multiplicity one (see Figure 10). Then the result points Ti 1,Ti 2can be simply expressed as: x¼hi 1d u jj u1 y¼hi 2d u jj u2 (1) where the vector u¼u1;u2 ðÞis the normal vector of the edge Hi;Hiþ1and dthe given distance. 2-Ary tree Let Hibe a vertex with multiplicity two and Hi1, Hiþ1vertices on the adjacent edges (see Figure 11). The computed points Ti 1satisfies: d¼Ti 1Q¼ jj Ti 1P and Ti 1P?Hiþ1Hi;Ti 1Q?Hi1Hi!ΔHiTi 1PffiΔHiTi 1Q We can derive: HiP¼ jj HiQ jj ¼d tan ffHi1HiHiþ1 jj 2 (2) Figure 7. The creation of the spanning tree. Left: alpha shape; Centre: alpha shape after thinning; Right: result spanning tree (blue line). Figure 8. The spanning tree of the graphs projected on the orthophoto. The green colour represents detected possible lane segments. The yellow colour represents the noise in data. 6D. PROCHAZKA ET AL.
Hence, the coordinates of the points P,Qcan be expressed using Equation (1). The result point Ti 1 can be written as the intersection of two lines p;q perpendicular to the edges Hi1Hi,Hiþ1Hiin points P¼p1;p2 ½,Q¼q1;q2 ½: p:nP 1xþnP 2yp1nP 1p2nP 2¼0 (3) q:nQ 1xþnQ 2yq1nQ 1q2nQ 2¼0 (4) where nP,nQare normal vectors of lines p;q. Furthermore, the symmetry point Ti 2can be simply derived by central inversion with the centre Hi. 3,4-Ary tree Suppose that the vertex Hiis connected with the vertices Hiþ1,Hiþ2,Hiþ3(and Hiþ4for multiplicity four). First, the order of edges has to be determined. Without loss of generality, assume that HiHiþ1is the Figure 10. The derivation of the points for 1-ary tree. Figure 9. The process of lane type identification: (a) first spanning tree is selected and connected to all others, (b) spanning tree with the lowest angle and distance to first one is found, (c) two spanning trees from the previous step are connected and the process continues, (d) all related spanning trees are connected. EUROPEAN JOURNAL OF REMOTE SENSING 7
initial edge. The angle ∢H i H i+1 H k can be computed by: cos αðÞ¼ u;vðÞ u jj :v jj (5) cos αk ðÞ¼ HiHiþ1;HiHk ðÞ HiHiþ1 jj HiHk jj ;k ¼iþ2;iþ3;resp:iþ4:(6) Because of the cosine function properties, edges can be ordered in dependence on the size and the sign of results in Equation (6). Three different situations can be distinguished (see Figure 12). Thus, the problem is transformed to the evaluation of three (or four) couples of edges as in the case of a 2-ary tree (see Equations (2, 3, 4)). In the final step, the points are ordered and stored in a common file format. The result map layer presented above aerial imagery is in Figure 13. Map layers’creation Two map layers are created after the shape envelope reconstruction. The first layer (polyline type) contains all identified road lane markings where each line provides information about its type (full or broken). This polyline file is suitable especially for analytical purposes. It provides information about the type and position of themarkings;therefore,itcanbeused,forexampefor road safety analysis. The second created layer contains polygons of all reconstructed lane markings. This polygon file is useful mainly for the mentioned inventory process. For instance, it allows to calculate an approximate amount of paint required for the road marking maintenance and other related tasks. We have chosen the ESRI ShapeFile for polygon and polyline storage; however, any polygon or polyline format can be used. Both files are created using the Shape C Library. 3 Results The evaluation is based on three different accuracy metrics: precision, recall and quality (Boyko & Funkhouser, 2011). The ground truth data pieces for the matrices are obtained with visual control of images taken during the process of point cloud capturing. The matrices are defined: Precision: p¼TP TP þFP Recall: r¼TP TP þFN Quality: q¼TP TP þFN þFP where TP is the number of true positives; FP is the number of false positives and FN is the number of false negative results. Figure 11. The derivation of the points for 2-ary tree. 3 http://shapelib.maptools.org. 8D. PROCHAZKA ET AL.