计算机应用 ›› 2010, Vol. 30 ›› Issue (10): 2788-2789.

• 图形图像处理 • 上一篇    下一篇

基于概率论和数学形态学的平行线绘制算法

曹闻1,李润生2,朱述龙3,彭煊4   

  1. 1. 解放军信息工程大学测绘学院
    2. 解放军信息工程大学测绘学院六系一队
    3. 信息工程大学测绘学院
    4. 信息工程大学 测绘学院
  • 收稿日期:2010-03-26 修回日期:2010-05-21 发布日期:2010-09-21 出版日期:2010-10-01
  • 通讯作者: 李润生
  • 基金资助:
    国家863计划项目

Parallel line drawing algorithm based on probability theory and mathematical morphology

  • Received:2010-03-26 Revised:2010-05-21 Online:2010-09-21 Published:2010-10-01

摘要: 平行线的绘制在地理信息系统(GIS)开发中经常遇到,传统的绘制算法在折线夹角很小时,容易出现平行线节点在折线相反方向或者在折线很远处的情况。针对这两种情况,提出了基于概率论的纠正方法;同时为了美观,还利用数学形态学对纠正结果进行再纠正,将很尖锐的角变得圆滑。实验结果表明该算法对于平行线纠正是有效的。

关键词: 平行线, 数学形态学, 地理信息系统

Abstract: Parallel lines drawing frequently happens in the Geographic Information System (GIS) development. In the traditional drawing algorithms, nodes of parallel lines are in the opposite direction or far away from the polyline when the angle is very small. To solve these two cases, a correction method based on probability theory was proposed. At the same time, mathematical morphology was adopted to correct the results, which made it aesthetic, and made the very sharp angle smooth. The experimental results show that the proposed algorithm is effective.

Key words: parallel line, mathematical morphology, Geographic Information System (GIS)

中图分类号: