作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2006, Vol. 32 ›› Issue (9): 47-50.

• 博士论文 • 上一篇    下一篇

一种多边形方向识别的新算法

丁 健 1,2,3,江南 1,芮挺 3   

  1. 1. 中国科学院南京地理与湖泊研究所,南京 210008;2. 中国科学院研究生院,北京 100039;3. 解放军理工大学工程兵工程学院,南京 210007
  • 出版日期:2006-05-05 发布日期:2006-05-05

A New Algorithm for Identifying Polygons' Orientation

DING Jian1,2,3, JIANG Nan1, RUI Ting3   

  1. 1. Nanjing Institute of Geography and Limnology, Chinese Academy of Sciences, Nanjing 210008; 2. Graduate School, Chinese Academy ofSciences, Beijing 100039; 3. Engineering Institute of Engineering Corps, PLA University of Science & Technology, Nanjing 210007
  • Online:2006-05-05 Published:2006-05-05

摘要: 针对传统经典叉积法在识别任意简单多边形方向时不能解决奇异情形的问题,提出了多边形方向识别的特征点比较法,用列举法作了几何证明。算法中的运算主要是整数之间的大小比较,因而速度较快,并且有效地解决了奇异情形下的方向识别问题。分析表明,该算法能对所有简单多边形作出正确的方向判断,具有较好的通用性和鲁棒性,可以发展成为独立的方向判断算法。实验表明,该算法比叉积法具有更高的执行效率。

关键词: 简单多边形;多边形方向;特征点比较法

Abstract: Cross product algorithm is the classical and traditional algorithm for identifying polygons' orientation, it faces the difficulty in cases when the included angle between two neighboring edges near 0 or 180 degrees, the value of cross product is close to 0, and this may lead to wrong result. A new algorithm for identifying polygons' orientation based on comparing feature points is presented; the geometric proof for the algorithm is given. The main computation in the new algorithm is integers' comparison, this makes it execute faster. Analyses show that the new algorithm is robust. Experimental results show an improved performance on the identification of orientation in comparison with the cross product algorithm is achieved.

Key words: Simple polygon; Polygon's orientation; Feature point’s comparison