杜世宏, 杜道生, 樊红, 万幼川. 基于栅格数据提取主骨架线的新算法[J]. 武汉大学学报 ( 信息科学版), 2000, 25(5): 432-436.
引用本文: 杜世宏, 杜道生, 樊红, 万幼川. 基于栅格数据提取主骨架线的新算法[J]. 武汉大学学报 ( 信息科学版), 2000, 25(5): 432-436.
DU Shihong, DU Daosheng, FAN Hong, WAN Youchuan. A New Raster-based Algorithm for Extracting Main Skeleton Line of Polygon[J]. Geomatics and Information Science of Wuhan University, 2000, 25(5): 432-436.
Citation: DU Shihong, DU Daosheng, FAN Hong, WAN Youchuan. A New Raster-based Algorithm for Extracting Main Skeleton Line of Polygon[J]. Geomatics and Information Science of Wuhan University, 2000, 25(5): 432-436.

基于栅格数据提取主骨架线的新算法

A New Raster-based Algorithm for Extracting Main Skeleton Line of Polygon

  • 摘要: 详细介绍了基于栅格数据的面状地物主骨架线的提取算法。该算法具有较快的处理速度和较强的适应性及内存需求少的优点,同时用该算法所提取的主骨架线为最优(最长)骨架线,可用于面状地物注记的自动配置。

     

    Abstract: This paper discusses the algorithm of extracting the main skeleton line of polygon.Through the mathematical morphology thinning operation on the grid cell of polygon, we can get the skeleton of the polygon including many short lines.Before extracting the longest skeleton, the short lines must be removed.This paper explores the way of vectorization based on node point of grid data and the way of extracting main skeleton line of polygon based on end point of grid data.The main skeleton line using the extracting algorithm is an optimum one.The above two ways are easily implemented by a recursive program. There are three main steps in the algorithm:①Rasterizing the polygon and then using the thinning operation on the grid data.Through this step, we get the grid skeleton lines.②Vectorizing the grid skeleton lines and building the topological relation of lines.③Extracting main skeleton line from the vector skeleton lines. Step ② and step ③ are the paper's kernel. FK(W14。40ZQ It should be pointed out that the efficiency of mathematical morphology thinning operation directly depends on grid data volume.If the size of grid cell is small, data volume is large, it increases the time of computation.If the size is big, it is not propitious to extract accurately the skeleton line of small polygon.The dynamic grid data structure can solve this problem.The structure stores the start row and start column, the total rows and total columns, the grid cell size, and original point of polygon.Before rasterizing, the total rows and columns are fixed firstly such as 100.Secondly, the size of grid is calculated.Finally, the polygon is rasterized.Because the rows and columns are fixed, for large polygons, the data volume of grid cell becomes less, but for small polygons, the data volume of grid cell is increased.It is obvious that the dynamic raster structure has better adaptability. The result of the experiment shows that the algorithm of extracting skeleton line based on dynamic raster data structure is effective.The algorithm has many advantages such as taking less time and less memory.

     

/

返回文章
返回