期刊文献+

基于法线方向的点包容检测 被引量:8

Point in polygon testing based on normal direction
在线阅读 下载PDF
导出
摘要 提出了基于法线方向的点包容检测算法。过待定点作一射线,此射线可能与多边形的某几条边有交点,从待定点向这条边的两端点作两个向量,求这两向量的法线方向。对法线方向进行计数,若法线方向为正向,将计数器加1;若法线方向为反向,将计数器减1。当法线方向的正反次数相同时,待定点在多边形外,否则在多边形内。此算法避免了某些算法的错误,计算量小,复杂度为O(n),简单易行。通过软件实验验证可知,算法简单有效、稳定可靠,对简单多边形、自相交多边形及带孔多边形等多类情况同样适用。 An algorithm of point in polygon testing based on normal direction is presented. A ray having several crossing points with the edges of polygon is drawn through a fixed point, two vectors are given from undetermined point to the endpoints of edge, then their normal directions is calculated. By using the normal direction as a reference for point in polygon test, the sum of normal directions of points and those edges is calculated. If the numbers of positive normals and negative normals are the same, the point is outside the polygon, otherwise, the point is inside the polygon. In the testing, the presented method can decrease computing time and can aviod some mistakes of other algorithm, its complexity is o(n). Experimental result show this algorithm is suitable for some other cases including self-intersection polygon.
出处 《光学精密工程》 EI CAS CSCD 北大核心 2008年第6期1122-1126,共5页 Optics and Precision Engineering
基金 国家自然科学基金资助项目(No.69775022) 湖北省教育厅科研基金资助项目(No.G200514001)
关键词 计算机应用 点包容检测 多边形 法线方向 computer application point in polygon testing polygon normal direction
  • 相关文献

参考文献9

二级参考文献42

  • 1张宁宁,张树有,谭建荣.映射相关边概念的多边形内外点判别算法[J].计算机辅助设计与图形学学报,2004,16(7):935-938. 被引量:20
  • 2孙家广.计算机图形学[M].北京:清华大学出版社,2000..
  • 3Feito F,Torres J C.Inclusion test for general polyhedra[J].Computers & Graphics,1997,21(41):23-30.
  • 4Saalfield,A.It doesn't make me nearly as CROSS.Some advantages of the point vector representation of line segments in automated cartography[J].International Journal of Geographical Information Systems,1987,1(4):379-386.
  • 5Taylor,G.E.Point in polygon test[J].Survey Review,1994,32(254):479-484.
  • 6Hormann,K.and Agathos,A.The point in polygon problem for arbitrary polygons[J].Computational Geometry,2001,(20):131-144.
  • 7[1] Preparata, F.P., Shamos, S. Computational Geometry an Introduction. Berlin: Springer-Verlag, 1985.
  • 8[2] Kalay, Y.E. Determining the spatial containment of a point in general polyhedra. Computer Graphics and Image Processing, 1982,19(4):303~334.
  • 9[3] Horn, W., Taylor, D.L. A theorem to determine the spatial containment of a point in a planar polyhedron. Computer Vision, Graphics and Image Processing, 1989,45(1):106~116.
  • 10[4] Feito, F.R., Torres, J.C. Inclusion test for general polyhedra. Computers & Graphics, 1997,21(1):23~30.

共引文献79

同被引文献42

  • 1施化吉,周新法,李星毅,丁秋林.同步数字音频盲水印[J].吉林大学学报(信息科学版),2006,24(1):56-61. 被引量:3
  • 2夏仁波,刘伟军,王越超.点在平面多边形内外的判断方法[J].机械工程学报,2006,42(3):130-135. 被引量:16
  • 3杜学武,杨永建,李铭明.对等式约束非线性规划问题的Hestenes-Powell增广拉格朗日函数的进一步研究(英文)[J].运筹学学报,2006,10(1):38-46. 被引量:4
  • 4赵军,张桂梅,曲仕茹.利用极点顺序的多边形顶点凹凸性判别算法[J].工程图学学报,2007,28(1):55-59. 被引量:18
  • 5SARAJU P MOHANTY, BHARAT K BHARGAVA. Invisible Watermarking Based on Creation and Robust Insertion-Extraction of Image Adaptive Watermarks [ J]. ACM Transactions on Multimedia Computing, Communications, and Applications (TOMCCAP), 2008, 5 (2): 1-24.
  • 6ADIL HAOUZIA, RITA NOUMEIR. Methods for Image Authentication: A Survey [ J ]. Multimedia Tools and Applications, 2008, 39 (1): 1-46.
  • 7BRANDON DYBALA, BRIAN JENNINGS, DAVID LETSCHER. Detecting Filtered Cloning in Digital Images [ C ] //International Multimedia Conference. New York, USA : ACM, 2007 : 43-50.
  • 8JOHNSON M K, FARID H. Exposing Digital Forgeries by Detecting Inconsistencies in Lighting [ C ] //Proc ACM Multimedia and Security Workshop. New York, USA : ACM, 2005 : 1-10.
  • 9ELIAS JARLEBRING, TOBIAS DAMM. Technical Communique : The Lambert Wfunction and the Spectrum of Some Multidimensional Time-Delay Systems [J]. Automatica (Journal of IFAC), 2007, 43 (12) : 2124-2128.
  • 10NILLIUS P, EKLUNDH J O. Automatic Estimation of the Projected Light Source Direction [ C ] //Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition. [ S. l. ] : IEEE, 2001 : 1076-1083.

引证文献8

二级引证文献35

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部