Extracting Skeleton Lines from Building Footprints by Integration of Vector and Raster Data
<p>CDT. (<b>a</b>) Before encryption; (<b>b</b>) after encryption.</p> "> Figure 2
<p>Triangle classification. (<b>a</b>) Type one; (<b>b</b>) type two; (<b>c</b>) type three.</p> "> Figure 3
<p>Skeleton line extraction based on CDT.</p> "> Figure 4
<p>Skeleton line extraction results. (<b>a</b>) CDT; (<b>b</b>) Rosenfeld; (<b>c</b>) Overlap of CDT and Rosenfeld results.</p> "> Figure 5
<p>Process flow of building skeleton line extraction.</p> "> Figure 6
<p>Extraction of the triangle in which the skeleton line was located.</p> "> Figure 7
<p>Corner detection results. (<b>a</b>) L-shaped building; (<b>b</b>) C-shaped building; (<b>c</b>) I-shaped building; (<b>d</b>) T-shaped building.</p> "> Figure 8
<p>Detection of endpoints and crosspoints. (<b>a</b>) Rosenfeld skeleton line; (<b>b</b>) Crosspoint; (<b>c</b>) Endpoint.</p> "> Figure 9
<p>Three type three triangles without endpoints, corners, or intersections. (<b>a</b>) Delaunay triangles classification results; (<b>b</b>) Overlay of Rosenfeld and CDT results; (<b>c</b>) Overlay of Rosenfeld, CDT and VRDI results.</p> "> Figure 10
<p>Traditional CDT method for type three triangle connections with a crosspoint. (<b>a</b>) Building with crosspoint; (<b>b</b>) Result of traditional CDT method.</p> "> Figure 11
<p>VRDI extraction results. (<b>a</b>) The MBR of building; (<b>b</b>) Result of VRDI method for crosspoint.</p> "> Figure 12
<p>Type three with corner points. (<b>a</b>) C-shaped building with corner point; (<b>b</b>) Result of VRDI method for corner point.</p> "> Figure 13
<p>Triangle with endpoints. (<b>a</b>) C-shaped building with endpoint; (<b>b</b>) Result of VRDI method for endpoint.</p> "> Figure 14
<p>Skeleton line segmentation. (<b>a</b>) L-shaped building with one corner point; (<b>b</b>) C-shaped building with two corner points; (<b>c</b>) T-shaped building with one crosspoint.</p> "> Figure 15
<p>Skeleton line segment DP simplification results with different threshod; (<b>a</b>) L-shaped building with a threshold of 1 m; (<b>b</b>) L-shaped building with a threshold of 3 m; (<b>c</b>) C-shaped building with a threshold of 1 m; (<b>d</b>) C-shaped building with a threshold of 3 m.</p> "> Figure 16
<p>(<b>a</b>) High-resolution remote sensing images. The highlighted red box area in (<b>a</b>) corresponds to (<b>b</b>,<b>c</b>); (<b>b</b>) Initially extracted vector buildings; (<b>c</b>) Skeleton line extraction results based on the proposed VRDI approach as shown by the red solid line.</p> "> Figure 17
<p>Skeleton line extraction results for T-shaped and F-shaped buildings. (<b>a</b>) High-resolution remote sensing images. The highlighted red box area in (<b>a</b>) corresponds to (<b>b</b>,<b>c</b>); (<b>b</b>) initially extracted vector buildings; (<b>c</b>) skeleton line extraction results based on the proposed VRDI approach as shown by the red solid line; (<b>d</b>) High-resolution remote sensing images. The highlighted red box area in (<b>d</b>) corresponds to (<b>e</b>,<b>f</b>); (<b>e</b>) initially extracted vector buildings; (<b>f</b>) skeleton line extraction results based on the proposed VRDI approach as shown by the red solid line.</p> "> Figure 18
<p>Building skeleton lines without crosspoints.</p> "> Figure 19
<p>Building skeleton lines with crosspoints.</p> "> Figure 20
<p>MBR for buildings and skeleton lines.</p> ">
Abstract
:1. Introduction
2. Existing Skeleton Line Extraction Methods
2.1. Vector Data Skeleton Line Extraction Based on CDT
- A type one triangle only has one adjacent triangle, and the two sides are located on the boundary of the building. The triangle marks the end point of the branch of the extracted skeleton line. The midpoint of the adjacent triangle edge and corresponding vertex is connected to obtain the triangular skeleton lines, as indicated by the red line in Figure 2a.
- A type two triangle has two adjacent triangles, one of which is located on the boundary of the polygon, which represents the extension direction of the skeleton line. The midpoint connecting the two adjacent triangle sides is the skeleton line of this type of triangle, as indicated by the red line in Figure 2b.
- A type three triangle has three adjacent triangles, and none of the sides lie on the boundary of the polygon. The skeleton line represents a branch and is formed by connecting the midpoints of the three sides and the center point of the triangle, as indicated by the red line in Figure 2c.
2.2. Extracting Skeleton Lines from Raster Data Based on the Rosenfeld Algorithm
2.3. Problem Analysis and Research Countermeasures
3. Proposed Method of Extracting Building Skeleton Line Based on VRDI
3.1. Extraction of the Triangle in Which the Skeleton Line Is Located
- Vectorize the grid skeleton line extracted by the Rosenfeld method and record the line feature as ;
- Traverse all the triangles in the CDT of each building to determine whether the current triangle intersects with in step one. If so, keep the current triangle; otherwise, delete it.
3.2. Corner Detection Based on Shi–Tomasi Algorithm
3.3. Extraction of Building Skeleton Line Based on Vector–Raster Data Integration
- Examine whether the three types of triangles contain endpoints, intersections, and corners. If not, four scenarios can be considered.
- If the type three triangles have a crosspoint, as shown in Figure 10a, the skeleton line inevitably branches at a type three triangle. The CDT-based type three triangle connection method changes the original right-angle feature of the building and influences the description of the skeleton line regarding the building shape. However, this method can theoretically prove that the result of the skeleton line extraction is in the center of the vector building and can be used to evaluate the centrality of the skeleton line extraction result, as shown in Figure 10.
- The skeleton line must pass through the three midpoints of the triangle to maintain the connectivity of the skeleton line extraction results.
- The orientation of the building at the corner must be nearly parallel or perpendicular to the orientation of the building’s minimum bounding rectangle (MBR). Calculate the direction formed by any two midpoints of the three bars and the direction of the MBR; connect two midpoints that are nearly parallel or perpendicular to the direction of the building’s MBR; then, find the projection point of the other midpoint of the triangle on the line. This projection point is the new crosspoint of the skeleton line extracted by the VRDI method, as shown in Figure 11b:
- 4.
- Type three triangles with corners: For a vector building with obvious right-angle features, the CDT will have two near-vertical lines. To enhance the generality of the algorithm, the building’s MBR should be used to identify the direction of the building. The black solid line in Figure 12 shows the MBR direction of the building. Let the direction vector of the building be , the center point of the three types of triangles be , and the midpoints of the three sides be , , and respectively. Calculate the absolute value of the cosine of the angle between the vector and vectors , , and . According to the cosine function curve, the absolute value of the cosine of two vectors that are nearly parallel or perpendicular corresponds to the maximum or minimum, and the two edges are connected as a result of the skeleton line extraction.
- 5.
- Triangle with endpoints: For a type two triangle, follow the CDT connection method. For a type three triangle, to ensure that the extracted skeleton line is smooth and consistent with the visual characteristics of the human eye, compare the connection method of the previous triangle skeleton line. As shown in Figure 13a, AB is the skeleton line closest to the triangle containing the endpoint, and the skeleton line connection of this triangle must pass through point B to maintain connectivity. There are three possible connection methods: BC, BO, and BD. Calculate the angle between vector and vectors , , and ; then, connect the points corresponding to the direction vector with the smallest angle. The final connection result is shown in Figure 13b.
3.4. Building Skeleton Line Simplification
- The overall shape and connectivity of the original building must not be changed.
- The corner points in skeleton lines cannot be deleted as they are key features of buildings.
- The right-angled feature corners must be maintained.
- If the skeleton line does not contain crosspoints, the corner points should be extracted and used as the split point to segment the skeleton line, as shown in Figure 14a,b. If there are crosspoints in the skeleton line, they should be used as the split points to segment the skeleton line, as shown in Figure 14c.
- For each skeleton line, execute the DP algorithm separately.
- Merge the segmentation results to obtain the vector skeleton line of the building.
4. Experimental Results and Analysis
4.1. Experimental Results
4.2. Skeleton Line Centrality Evaluation Based on the Distance
4.3. Evaluation of Skeleton Line Direction Based on the MBR
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Lu, T.; Ming, D.; Lin, X.; Hong, Z.; Bai, X.; Fang, J. Detecting building edges from high spatial resolution remote sensing imagery using richer convolution features network. Remote Sens. 2018, 19, 1496. [Google Scholar] [CrossRef]
- Ai, T.; Liu, Y. Aggregation and amalgamation in land-use data generalization. Geomat. Inf. Sci. Wuhan Univ. 2002, 27, 486–492. [Google Scholar]
- Cai, Y.; Ming, C.; Qin, Y. Skeleton extraction based on the topology and Snakes model. Results Phys. 2017, 7, 373–378. [Google Scholar] [CrossRef]
- Ai, T.; Yang, F.; Li, J. Land-use data generalization for the database construction of the second land resource survey. Geomat. Inf. Sci. Wuhan Univ. 2010, 35, 887–891. [Google Scholar]
- Qian, H.Z.; Wu, F.; Ge, L.; Wang, J.Y. Quality assessment of city-building geometry-generalization with reducing-dimension technique. J. Image Graph. 2007, 5, 927–934. [Google Scholar]
- Ai, T.; Zhang, X.; Zhou, Q.; Yang, M. A vector field model to handle the displacement of multiple conflicts in building generali-zation. Int. J. Geogr. Inf. Sci. 2015, 29, 1310–1331. [Google Scholar] [CrossRef]
- Bertasius, G.; Shi, J.; Torresani, L. High-for-Low and Low-for-High: Efficient Boundary Detection from Deep Object Features and Its Applications to High-Level Vision. In Proceedings of the 2015 IEEE International Conference on Computer Vision (ICCV), Santiago, Chile, 7–13 December 2015. [Google Scholar] [CrossRef]
- Shen, W.; Wang, X.; Wang, Y.; Bai, X.; Zhang, Z. Deepcontour: A deep convolutional feature learned by positive-sharing loss for contour detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Boston, MA, USA, 7–12 June 2015; pp. 3982–3991. [Google Scholar]
- Wang, Y.; Zhao, X.; Li, Y.; Huang, K. Deep Crisp Boundaries: From Boundaries to Higher-Level Tasks. IEEE Trans. Image Process. 2018, 28, 1285–1298. [Google Scholar] [CrossRef]
- Widyaningrum, E.; Gorte, B.; Lindenbergh, R.C. Automatic Building Outline Extraction from ALS Point Clouds by Ordered Points Aided Hough Transform. Remote Sens. 2019, 11, 1727. [Google Scholar] [CrossRef]
- DeLucia, A.A.; Black, R.T. A comprehensive approach to automatic feature generalization. In Proceedings of the 13th Con-ference of the International Cartographic Association, Morelia, Mexico, 12–21 October 1987; pp. 173–191. [Google Scholar]
- Morrison, P.; Zou, J.J. Triangle refinement in a constrained Delaunay triangulation skeleton. Pattern Recognit. 2007, 40, 2754–2765. [Google Scholar] [CrossRef]
- Jones, C.B.; Bundy, G.L.; Ware, M.J. Map generalization with a triangulated data structure. Cartogr. Geogr. Inf. Syst. 1995, 22, 317–331. [Google Scholar]
- McAllister, M.; Snoeyink, J. Medial Axis Generalization of River Networks. Cartogr. Geogr. Inf. Sci. 2000, 27, 129–138. [Google Scholar] [CrossRef]
- Regnauld, N.; Mackaness, W.A. Creating a hydrographic network from its cartographic representation: A case study using Ordnance Survey MasterMap data. Int. J. Geogr. Inf. Sci. 2006, 20, 611–631. [Google Scholar] [CrossRef]
- Wang, Z.H.; Yan, H.W. Design and implementation of an algorithm for extracting the main skeleton lines of polygons. Geogr. Geoinf. Sci. 2011, 27, 42–44. [Google Scholar]
- Shen, L.H.; Wu, B.G.; Yang, N. Areal feature main skeleton extraction algorithm. Geomat. Inf. Sci. Wuhan Univ. 2014, 39, 767–771. [Google Scholar] [CrossRef]
- Li, C.; Yin, Y.; Wu, P.; Wu, W. Skeleton Line Extraction Method in Areas with Dense Junctions Considering Stroke Features. ISPRS Int. J. Geo-Inf. 2019, 8, 303. [Google Scholar] [CrossRef]
- Wang, Z.H.; Yan, H.W. An algorithm for extracting main skeleton lines of polygons based on main extension directions. In Proceedings of the 2011 International Conference on Electronics, Communications and Control (ICECC), Ningbo, China, 9–11 September 2011; pp. 125–127. [Google Scholar]
- Zhang, T.Y.; Suen, C.Y. A fast parallel algorithm for thinning digital patterns. Commun. ACM 1984, 27, 236–239. [Google Scholar] [CrossRef]
- Pavlidis, T. Algorithms for Graphics and Image Processing, 1st ed.; Springer: Berlin/Heidelberg, Germany; New York, NY, USA, 1982; p. 438. [Google Scholar]
- Rosefeld, A.; Kak, A. Digital Picture Processing; Academic Press: New York, NY, USA, 1982. [Google Scholar]
- Holt, C.M.; Stewart, A.; Clint, M.; Perrott, R.H. An improved parallel thinning algorithm. Commun. ACM 1987, 30, 156–160. [Google Scholar] [CrossRef]
- Chen, W.; Sui, L.; Xu, Z.; Lang, Y. Improved Zhang-Suen thinning algorithm in binary line drawing applications. In Proceedings of the 2012 International Conference on Systems and Informatics, Yantai, China, 19–20 May 2012; pp. 1947–1950. [Google Scholar] [CrossRef]
- Ben Boudaoud, L.; Solaiman, B.; Tari, A. A modified ZS thinning algorithm by a hybrid approach. Vis. Comput. 2017, 34, 689–706. [Google Scholar] [CrossRef]
- Jagna, A. An Efficient Image Independent Thinning Algorithm. IJARCCE 2014, 3, 8309–8311. [Google Scholar] [CrossRef]
- Tarabek, P. A robust parallel thinning algorithm for pattern recognition. In Proceedings of the 2012 7th IEEE International Symposium on Applied Computational Intelligence and Informatics (SACI), Timisoara, Romania, 24–26 May 2012; pp. 75–79. [Google Scholar] [CrossRef]
- Blum, H. A transformation for extracting new descriptors of shape. Model. Preception Speech Vis. 1967, 19, 362–380. [Google Scholar]
- Widyaningrum, E.; Peters, R.Y.; Lindenbergh, R.C. Building outline extraction from ALS point clouds using medial axis transform descriptors. Pattern Recognit. 2020, 106, 107447. [Google Scholar] [CrossRef]
- Ben Boudaoud, L.; Sider, A.; Tari, A. A new thinning algorithm for binary images. In Proceedings of the 2015 3rd International Conference on Control, Engineering & Information Technology (CEIT), Tlemcen, Algeria, 25–27 May 2015. [Google Scholar] [CrossRef]
- Klein, R. Voronoi Diagrams and Delaunay Triangulations; World Scientific: Singapore, 2013. [Google Scholar]
- Shen, Y.; Ai, T. A Hierarchical Approach for Measuring the Consistency of Water Areas between Multiple Representations of Tile Maps with Different Scales. ISPRS Int. J. Geo-Inf. 2017, 6, 240. [Google Scholar] [CrossRef] [Green Version]
- Kocharyan, D. An Efficient Fingerprint Image Thinning Algorithm. Am. J. Softw. Eng. Appl. 2013, 2, 1–6. [Google Scholar] [CrossRef]
- Shen, Y.; Ai, T.; Yang, M. Extracting Centerlines from Dual-Line Roads Using Superpixel Segmentation. IEEE Access 2019, 7, 15967–15979. [Google Scholar] [CrossRef]
- Yan, X.F.; Ai, T.H.; Yang, M. A simplification of residential feature by the shape cognition and template matching method. Acta Geo. Cartogr. Sin. 2016, 45, 874–882. [Google Scholar]
- Jia, T.M.; Xun, Y.; Bao, G.J.; Done, M.; Yang, Q.H. Skeleton extraction algorithm on grapevine based on machine vision. J. Mech. Electr. Eng. 2013, 30, 501–504. [Google Scholar]
- Zhang, R.; Wang, S.Y.; Liu, S.L.; Shi, S.Q.; Zhou, J. Automatic extraction for geographic national conditions water elements. Geomat. Spat. Inf. Technol. 2015, 38, 59–61. [Google Scholar]
- Shi, J.; Tomasi, C. Good Features to Track. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 21–23 June 1994; pp. 593–600. [Google Scholar]
- Chang, J.; Wang, S.; Yang, Y.; Gao, X. Hierarchical optimization method of building contour in high-resolution remote sensing image. Chin. J. Lasers 2020, 47, 249–262. [Google Scholar]
- Bai, X.; Latecki, L.J.; Liu, W.Y. Skeleton Pruning by Contour Partitioning with Discrete Curve Evolution. IEEE Trans. Pattern Anal. Mach. Intell. 2007, 29, 449–462. [Google Scholar] [CrossRef]
- Fréchet, M.M. Sur quelques points du calcul fonctionnel. Rend. Circ. Matem. Palermo 1906, 22, 1–72. [Google Scholar] [CrossRef]
- Luo, G.W.; Zhang, X.C.; Qi, L.X.; Guo, T.S. The fast Positioning and Optimal Combination Matching Method of Change Vector Object. Acta Geod. Cartogr. Sin. 2014, 43, 1285–1292. [Google Scholar]
- Duchêne, C.; Bard, S.; Barillot, X.; Ruas, A.; Trevisan, J.; Holzapfel, F. Quantitative and qualitative description of building orientation. In Proceedings of the 5th Workshop on Progress in Automated Map Generalization, ICA, Commission on Map Generalization, Paris, France, 28–30 April 2003. [Google Scholar]
- Wang, X.; Burghardt, D. A typification method for linear building groups based on stroke simplification. Geocarto Int. 2019, 36, 1732–1751. [Google Scholar] [CrossRef]
- Shen, Y.; Ai, T.; Li, C. A simplification of urban buildings to preserve geometric properties using superpixel segmentation. Int. J. Appl. Earth Obs. Geoinf. 2019, 79, 162–174. [Google Scholar] [CrossRef]
- Hu, M.K. Visual pattern recognition by moment invariants. IRE Trans. Inf. Theory 1962, 8, 179–187. [Google Scholar]
Types | Fréchet Distance | |||
---|---|---|---|---|
ZS | Rosenfeld | MAT | VRDI | |
“I” | 0.000280 | 0.000374 | 0.000563 | 0.000245 |
“L” | 0.000247 | 0.000248 | 0.000381 | 0.000166 |
“C” | 0.000303 | 0.000295 | 0.000468 | 0.000135 |
“T” | 0.000319 | 0.000319 | 0.000397 | 0.000316 |
“F” | 0.000278 | 0.000278 | 0.000323 | 0.000139 |
Types | MBR Angle between the Building and Skeleton Line | |||
---|---|---|---|---|
ZS | Rosenfeld | MAT | VRDI | |
“I” | 1.13 | 1.13 | 5.84 | 1.23 |
“L” | 0 | 28.61 | 2.82 | 0.99 |
“C” | 1.19 | 1.21 | 5.51 | 1.15 |
“T” | 71.86 | 112.69 | 68.19 | 2.3 |
“F” | 0.86 | 0.43 | 4.53 | 1.31 |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Chen, G.; Qian, H. Extracting Skeleton Lines from Building Footprints by Integration of Vector and Raster Data. ISPRS Int. J. Geo-Inf. 2022, 11, 480. https://doi.org/10.3390/ijgi11090480
Chen G, Qian H. Extracting Skeleton Lines from Building Footprints by Integration of Vector and Raster Data. ISPRS International Journal of Geo-Information. 2022; 11(9):480. https://doi.org/10.3390/ijgi11090480
Chicago/Turabian StyleChen, Guoqing, and Haizhong Qian. 2022. "Extracting Skeleton Lines from Building Footprints by Integration of Vector and Raster Data" ISPRS International Journal of Geo-Information 11, no. 9: 480. https://doi.org/10.3390/ijgi11090480
APA StyleChen, G., & Qian, H. (2022). Extracting Skeleton Lines from Building Footprints by Integration of Vector and Raster Data. ISPRS International Journal of Geo-Information, 11(9), 480. https://doi.org/10.3390/ijgi11090480