Acta Geodaetica et Cartographica Sinica ›› 2019, Vol. 48 ›› Issue (3): 393-399.doi: 10.11947/j.AGCS.2019.20180088

Previous Articles     Next Articles

A raster Voronoi diagram generation algorithm based on horizontal-longitudinal scanning

LIU Qingping1, ZHAO Xuesheng1, WANG Lei2, SUN Wenbin1   

  1. 1. College of Geoscience and Surveying Engineering, China University of Mining and Technology(Beijing), Beijing 100083, China;
    2. School of Surveying and Land Information Engineering Henan Polytechnic University, Jiaozuo 454000, China
  • Received:2018-03-08 Revised:2019-01-01 Online:2019-03-20 Published:2019-04-10
  • Supported by:
    The National Key Research and Development Program of China (No. 2018YFB0505301);The National Natural Science Foundation of China (Nos. 41671394;41801318;41671383)

Abstract: The Voronoi diagram is an important data structure in computational geometry and has a wide range of applications in many fields. The scan algorithm of raster is an optimization of the Euclidean distance algorithm, which is in line with the discrete features of computers. It is one of the optimal algorithms for the generation of raster Voronoi diagram. However, due to the difference between the grid distance and the Euclidean distance, the ownership of some grids in the scanning process inevitably has some errors, so that the application of the raster Voronoi diagram is limited. In this paper, according to the characteristics of error existing in traditional scanning algorithms, an improved algorithm for the generation of raster Voronoi diagram based on horizontal-longitudinal scanning is proposed. First of all, the causes and the regional distribution characteristics of defects of the traditional scanning algorithm are analyzed in depth. Then, using the 3×3 neighborhood as a template, a vertical scan is added after a horizontal scan. That is to say, the Voronoi diagram can be generated accurately by horizontal and vertical scanning. Finally, different raster data are used to carry out experimental comparison. The results show that the improved algorithm not only has the advantage of efficiency of scanning algorithm, but also solves the error of the original algorithm. It keeps the efficiency while limiting the error to a grid.

Key words: Voronoi diagram, raster scan, raster distance

CLC Number: