Detection method and system for point to polygon position relation

A detection method and detection system technology, applied in image analysis, instruments, calculations, etc., can solve the problems of engineers locating faults, errors, inconsistency between theoretical and actual calculations, etc.

Active Publication Date: 2016-08-17
广州伟裕电气设备有限公司
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the cell within the polygon cannot be identified accurately and quickly, it will affect the maintenance engineer to locate the fault or even make a wrong decision
[0003] At present, the orientation method is generally used for convex polygons, that is, each edge of the polygon forms a directed vector, and then the left and right relationship of the test point in each vector is judged; for concave polygons, the ray method is generally used, that is, the number of times the test point intersects the bo

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Detection method and system for point to polygon position relation
  • Detection method and system for point to polygon position relation
  • Detection method and system for point to polygon position relation

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0037] Embodiment 1 of the present invention provides a method for detecting orientation relationships between points and polygons. figure 1 It is a schematic diagram of the implementation flow of the detection method of the point-to-polygon azimuth relationship in Embodiment 1 of the present invention, as figure 1 As shown, the detection method of the point-to-polygon azimuth relationship in this embodiment includes:

[0038] Step S101: take the test point as the origin of the XY rectangular coordinate system, and obtain the coordinate values ​​of each end point of the polygon in the XY rectangular coordinate system;

[0039] Specifically, the XY rectangular coordinate system can be established with the test point as the origin of the XY rectangular coordinate system, and the coordinate values ​​of each endpoint of the polygon in the XY rectangular coordinate system can be obtained. For example, each endpoint of the polygon is P 0 ,P 1 ,P 2 ,...,P n , n is a positive inte...

Embodiment 2

[0089] Based on the first embodiment above, the second embodiment of the present invention provides a detection system for point-to-polygon azimuth relationship, see Figure 8 As shown, it is a schematic diagram of the composition and structure of the detection system of the point-to-polygon azimuth relationship in Embodiment 2 of the present invention; Figure 8 As shown, the detection system of the point-to-polygon orientation relationship in this embodiment includes a coordinate acquisition module 601, a detection module 602, a traversal module 603, a straight line determination module 604, a judgment module 605, and a result determination module 606, wherein:

[0090] Coordinate acquisition module 601, for taking the test point as the origin of the XY rectangular coordinate system, and obtaining the coordinate values ​​of each end point of the polygon in the XY rectangular coordinate system;

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a detection method and system for point to polygon position relation. The method comprises the steps that a test point serves as an original point of an XY rectangular coordinate system, and coordinate values of all endpoints of a polygon are acquired; whether all the endpoints are located on the same side of the X coordinate axis or the Y coordinate axis of the XY rectangular coordinate system or not is detected according to the coordinate values of the endpoints; if not, Y coordinate values of the endpoints are traversed, and a new point set formed by endpoints meeting the relation that yi*yi-1 is smaller than 0 is acquired; straight lines of every two continuous points and a straight line of a head point and a tail point in the new point set are determined; whether the number of intersection points formed by the straight lines and the positive axis of the X coordinate axis is an odd number or not is judged; if the number is an odd number, it is judged that the test point is located in the polygon; if the number is an even number or the endpoints are located on the same side of the X coordinate axis or the Y coordinate axis, it is judged that the test point is out of the polygon. The scheme is suitable for detecting the point to concave polygon position relation and point to convex polygon position relation, containment is enhanced, and the advantages of high detection efficiency and detection accuracy are achieved.

Description

technical field [0001] The invention relates to the technical field of computer graphics, in particular to a method and a system for detecting orientation relationships between points and polygons. Background technique [0002] In technologies such as computer graphics, computational geometry, and geographic information systems, it is often necessary to determine the positional relationship between points and polygons. For example, in GIS applications, the geographical distribution of network elements (such as base stations, cells, etc.) of mobile communication equipment can be visually checked. When there is an alarm or fault caused by poor call quality in a certain area, the maintenance engineer will locate this area on the GIS, and circle a polygonal area, and then summarize and correlate the indicators of the cells in this area, and finally locate the The specific fault cell and the cause of the fault. This is a usage scenario that operators are very concerned about an...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06T7/40
CPCG06T7/40
Inventor 吕腾威李良陈彦明江荣钿张立群李小明胡飞辉
Owner 广州伟裕电气设备有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products