• CN: 11-2187/TH
  • ISSN: 0577-6686

›› 2006, Vol. 42 ›› Issue (3): 130-135.

• Article • Previous Articles     Next Articles

METHOD FOR DETERMINING WHETHER A CERTAIN POINT IS INSIDE A POLYGON IN PLANE

XIA Renbo;LIU Weijun;WANG Yuechao   

  1. Shenyang Institute of Automation, Chinese Academy of Sciences Graduate School, Chinese Academy of Sciences
  • Published:2006-03-15

Abstract: A very natural problem in many research fields is to determine whether a certain point is located inside a given arbitrary polygon. First, some well-known algorithms are analyzed to answer this question. Then, based on the rasterization of polygon by boundary algebra tracing technique, designing the Flooding operation which is similar to the ideas of seed fill, and combining the contour erosion algorithm, a new algorithm is proposed to decide whether a point is in a simple polygon, a self-intersected polygon and a ring. Experimental results demonstrate that the new algorithm is robust and is valid for any kind polygon without need of peculiar cases processing.

Key words: Flooding operation, Contour erosion, Point in-out test, Polygon, Rasterization

CLC Number: