Preprocessing device, determination system, preprocessing method, and recording medium

By pre-processing polygons by cutting, rotating or splitting them, the problem of long processing time for determining inside and outside polygons is solved, and the processing speed is significantly accelerated, especially when determining road areas.

CN114424249BActive Publication Date: 2025-09-30NIPPON TELEGRAPH & TELEPHONE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201980100222.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-09-12
Publication Date
2025-09-30
Estimated Expiration
2039-09-12

AI Technical Summary

Technical Problem

When processing polygons with a large number of vertices or elongated shapes, existing polygon inside-outside determination technologies take too long to process, making it difficult to shorten the average processing time.

Method used

By reducing the number of polygon vertices, rotating the coordinates of the polygon and the judgment object, or dividing the polygon into smaller areas for pre-processing, the processing time for detailed judgment can be reduced.

Benefits of technology

The time required for polygon inside/outside determination processing is shortened, and the processing speed is improved, especially when determining whether the coordinates of a car, etc. are geographically included in a polygon of a road area.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114424249B_ABST
    Figure CN114424249B_ABST
Patent Text Reader

Abstract

The vertex reduction device (10) comprises: a vertex reduction unit (131) which, as a pre-processing step for determining whether the coordinates of the determination object exist inside or outside the internal and external determination polygon, obtains coordinate information of each vertex of the internal and external determination polygon and reduces the vertices of the internal and external determination polygon; and a communication unit (11) which outputs the coordinate information of each vertex of the polygon after the vertex reduction unit (131) reduces the vertices to a device for performing the determination process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a preprocessing device, a determination system, a preprocessing method and a recording medium. Background Art

[0002] The inside-outside polygon determination technology is used to determine whether specific coordinates are included in a specific polygon. The inside-outside polygon determination technology is suitable for determining whether the coordinates of a car or the like are geographically included in a polygon representing a road area.

[0003] For example, existing techniques for determining whether a polygon is inside or outside include techniques based on crossing numbers and winding numbers (e.g., see Non-Patent Document 1). These techniques determine whether a coordinate is contained within the polygon by statistically analyzing the positional relationship between all edges of the polygon being determined and the coordinates of the target polygon.

[0004] In addition, as an existing polygon inside-outside determination technology, there is a simple determination technology based on a bounding container (for example, see Non-Patent Document 2). This bounding container refers to a graphic that contains the polygon to be determined. This technology reduces the average processing time by selecting a graphic that can perform inside-outside determination at high speed as the bounding container and applying the Crossing Number method and Winding Number method only to the coordinates contained in the bounding container. As the above-mentioned bounding container, a rectangle with sides parallel to the XY axes (MBR, Minimal Bounding Rectangle) is generally used.

[0005] Prior art literature

[0006] Non-patent literature

[0007] Non-Patent Literature 1: "Inclusion of a Point in a Polygon", [online], [Reiwa 1 August 23, 2018], Internate<URL:http: / / geomalgorithms.com / a03-_inclusion.html>

[0008] Non-Patent Document 2: "Bounding Containers for Point Sets", [online], [Reiwa 1 August 23 search], Internate<URL:http: / / geomalgorithms.com / a08-_containers.html> Summary of the Invention

[0009] Problems to be solved by the invention

[0010] When applying polygon inside / outside determination technology to determine whether a road area geographically includes a car or the like, the polygon represents the road area and therefore has the characteristic of having a large number of vertices and being elongated.

[0011] However, since the Crossing Number and Winding Number methods have the property that processing time is proportional to the number of vertices, there is a problem that processing time becomes longer when judging polygons with a large number of vertices. In addition, since MBR has the property of including a larger area outside the polygon than for slender polygons, it is difficult to achieve the effect of shortening the average processing time when judging slender polygons.

[0012] The present invention has been made in view of the above-mentioned situation, and its object is to provide a preprocessing device, a determination system, a preprocessing method and a preprocessing program that can shorten the processing time required for polygon inside and outside determination processing.

[0013] Means for solving problems

[0014] In order to solve the above-mentioned problems and achieve the purpose, the preprocessing device of the present invention is characterized in that it has: a reduction unit, which obtains the coordinate information of each vertex of the internal and external judgment polygon as a preprocessing of the judgment processing for determining whether the coordinates of the judgment object exist inside and outside the internal and external judgment polygon, and reduces the vertices of the internal and external judgment polygon; and an output unit, which outputs the coordinate information of each vertex of the polygon after the vertices are reduced by the reduction unit to the device for performing the judgment processing.

[0015] In addition, the determination system of the present invention has a determination device for determining whether the coordinates of the determination object exist inside or outside the polygon for inside or outside determination, and a first preprocessing device for performing preprocessing of the determination processing. The determination system is characterized in that the first preprocessing device has: a reduction unit, which performs a first preprocessing, in which the coordinate information of each vertex of the polygon for inside or outside determination is obtained and the vertices of the polygon for inside or outside determination are reduced; and an output unit, which outputs the coordinate information of each vertex of the polygon after the vertices are reduced by the reduction unit, that is, the reduced polygon information. The determination device uses the preprocessed information to determine whether the coordinates of the determination object exist inside or outside the polygon for inside or outside determination.

[0016] In addition, the preprocessing method of the present invention is a preprocessing method performed by a preprocessing device, which is characterized in that it includes the following steps: as a preprocessing for determining whether the coordinates of the determination object exist inside or outside the polygon for internal and external determination, obtaining the coordinate information of each vertex of the polygon for internal and external determination, reducing the vertices of the polygon for internal and external determination; and outputting the coordinate information of each vertex of the polygon after the vertices are reduced to the device for performing the determination processing.

[0017] In addition, the preprocessing program of the present invention enables the computer to perform the following steps: as a preprocessing for determining whether the coordinates of the determination object exist inside or outside the polygon for internal and external determination, obtaining the coordinate information of each vertex of the polygon for internal and external determination, reducing the vertices of the polygon for internal and external determination; and outputting the coordinate information of each vertex of the polygon after the vertices are reduced to the device for performing the determination processing.

[0018] Effects of the Invention

[0019] According to the present invention, the processing time required for polygon inside / outside determination processing can be shortened. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 This is a block diagram showing an example of the configuration of the determination system according to the first embodiment.

[0021] Figure 2 It shows Figure 1 A block diagram showing an example of the structure of a vertex reduction device shown.

[0022] Figure 3 This is a diagram showing an overview of the data structure of polygon information.

[0023] Figure 4 It shows Figure 1 A block diagram showing an example of the structure of the determination device shown.

[0024] Figure 5 This is a diagram showing an overview of the data structure of coordinate information.

[0025] Figure 6 This is a diagram explaining vertex reduction processing.

[0026] Figure 7 It is an explanation Figure 1 The illustrated sequence diagram is a processing procedure of the determination process of the determination system.

[0027] Figure 8 It shows Figure 7 Flowchart of the vertex pruning process shown.

[0028] Figure 9 It shows Figure 7 Flowchart of the processing procedure of the internal and external determination processing shown.

[0029] Figure 10 This is a block diagram showing an example of the configuration of a determination system according to the second embodiment.

[0030] Figure 11 It shows Figure 10 A block diagram showing an example of the structure of the rotating device shown.

[0031] Figure 12 It is a diagram explaining the rotation process.

[0032] Figure 13 It is an explanation Figure 10 The illustrated sequence diagram is a processing procedure of the determination process of the determination system.

[0033] Figure 14 It shows Figure 13 Flowchart of the processing procedure of the rotation processing shown.

[0034] Figure 15 This is a block diagram showing an example of the configuration of a determination system according to the third embodiment.

[0035] Figure 16 It shows Figure 15 A block diagram showing an example of the structure of a dividing device shown.

[0036] Figure 17 It is a diagram explaining the segmentation process.

[0037] Figure 18 It is an explanation Figure 15 The illustrated sequence diagram is a processing procedure of the determination process of the determination system.

[0038] Figure 19 It shows Figure 18 Flowchart of the processing procedure of the segmentation process shown.

[0039] Figure 20 This is a block diagram showing an example of the configuration of a determination system according to the fourth embodiment.

[0040] Figure 21 It is an explanation Figure 20 The illustrated sequence diagram is a processing procedure of the determination process of the determination system.

[0041] Figure 22 This is a sequence diagram illustrating the processing procedure of the determination process in the first modification of the fourth embodiment.

[0042] Figure 23 This is a sequence diagram illustrating the processing procedure of the determination process in the second modification of the fourth embodiment.

[0043] Figure 24 This is a sequence diagram illustrating the processing procedure of the determination process in the third modification of the fourth embodiment.

[0044] Figure 25 is a diagram illustrating the experimental model.

[0045] Figure 26 This is a diagram illustrating the PIP processing time when the inside-outside determination is performed after the vertex reduction process is executed and when the inside-outside determination is performed without executing the pre-processing.

[0046] Figure 27 This is a diagram explaining the segmentation process performed during verification.

[0047] Figure 28 This is a diagram illustrating the PIP processing time when the internal / external determination is performed after the segmentation process is performed and when the internal / external determination is performed without executing the pre-processing.

[0048] Figure 29 A diagram illustrating the rotation process performed during verification.

[0049] Figure 30 This is a diagram illustrating the PIP processing time when the inside-outside determination is performed after the rotation process is performed and when the inside-outside determination is performed without performing the pre-processing.

[0050] Figure 31 It is a diagram for explaining another application example of the determination system of Embodiments 1 to 4.

[0051] Figure 32 This is a diagram showing an example of a computer that realizes the vertex reduction device, the judgment device, the rotation device, and the division device by executing a program. DETAILED DESCRIPTION

[0052] Hereinafter, embodiments of the preprocessing device, determination system, preprocessing method, and preprocessing program of the present application will be described in detail with reference to the accompanying drawings.

[0053] [Implementation Method 1]

[0054] First, Embodiment 1 is described. In Embodiment 1, the vertices of the inside / outside determination polygon are reduced before the inside / outside determination process of determining whether the target coordinates are inside / outside the inside / outside determination polygon, thereby shortening the processing time required for the inside / outside determination process.

[0055] [Structure of the judgment system]

[0056] Figure 1 : is a block diagram showing an example of the structure of the determination system of embodiment 1. Figure 1 As shown, the judgment system 1 of the first embodiment includes a client terminal 2, an internal / external judgment control device 3, a vertex reduction device (preprocessing device, first preprocessing device) 10, and a judgment device 20. The client terminal 2 and the internal / external judgment control device 3 are connected via a network or the like. The internal / external judgment control device 3, the vertex reduction device 10, and the judgment device 20 are connected via a network or the like.

[0057] The client terminal 2 is a terminal device used by the user of the determination system 1. The client terminal 2 transmits coordinate information D20 of the coordinates of the determination target and polygon information D10 of the coordinates of each vertex of the inside-outside determination polygon to the inside-outside determination control device 3 to request determination.

[0058] The inside-outside determination control device 3 is a server device that controls the processing in the vertex reduction device 10 and the determination device 20. Upon receiving a determination request from the client terminal 2, the inside-outside determination control device 3 causes the determination device 20 to perform inside-outside determination processing (determination processing) to determine whether the coordinates to be determined are located inside or outside the inside-outside determination polygon, and returns the determination result to the client terminal 2. Furthermore, in this first embodiment, the inside-outside determination control device 3 causes the vertex reduction device 10 to perform pre-processing for the inside-outside determination processing before the determination device 20 executes the inside-outside determination processing.

[0059] Vertex reduction device 10 receives polygon information D10 from inside / outside determination control device 3 and performs preprocessing to reduce the vertices of the inside / outside determination polygon. Vertex reduction device 10 outputs post-reduction polygon information D11, which is the coordinate information of each vertex of the polygon after vertex reduction, to inside / outside determination control device 3.

[0060] The determination device 20 performs inside-outside determination processing to determine whether the coordinates to be determined are located inside or outside the inside-outside determination polygon. In this process, the determination device 20 performs inside-outside determination processing based on the reduced polygon information D11 and the coordinate information D20 of the coordinates to be determined. The determination device 20 outputs determination information including the determination result to the inside-outside determination control device 3.

[0061] [Vertex Reduction Device]

[0062] Then, Figure 1 The vertex reduction device 10 shown will be described. Figure 2 It shows Figure 1 FIG. 1 is a block diagram showing an example of the structure of the vertex reduction device 10. Figure 2 As shown, the vertex reduction device 10 includes a communication unit 11 (output unit, first output unit), a storage unit 12 , and a control unit 13 .

[0063] The communication unit 11 is a communication interface that sends and receives various types of information to and from other devices connected via a network, etc. The communication unit 11 is implemented by a NIC (Network Interface Card) or the like, and communicates with the control unit 13 (described later) and other devices via electrical communication lines such as a LAN (Local Area Network) and the Internet.

[0064] The communication unit 11 receives the polygon information D10 from the inside-outside determination control device 3 via the network, and transmits the reduced polygon information D11 to the inside-outside determination control device 3 .

[0065] The storage unit 12 is implemented by a semiconductor memory element such as RAM (Random Access Memory) or flash memory, or a storage device such as a hard disk or optical disk, and stores the processing program that operates the vertex reduction device 10 and data used in executing the processing program. The storage unit 12 stores polygon information D10 and reduced polygon information D11.

[0066] The polygon information D10 is the coordinate information of each vertex of the inside / outside determination polygon, and is sent from the inside / outside determination control device 3 . Figure 3 : is a diagram showing an overview of the data structure of the polygon information D10. Figure 3 As shown, the polygon information D10 is a list of coordinates of the vertices of the inside / outside determination polygon. For example, if the inside / outside determination polygon has 100 vertices, it has 100 sets of coordinates.

[0067] The reduced coordinate information D11 is the coordinate information of each vertex of the polygon after the vertex reduction unit 131 (described later) processes the vertices of the inside-outside determination polygon. For example, the reduced coordinate information D11 is a coordinate list of each vertex of the polygon after the number of vertices has been reduced from 100 to 60.

[0068] The control unit 13 controls the vertex reduction device 10 as a whole. The control unit 13 is, for example, an electronic circuit such as a CPU (Central Processing Unit), an MPU (Micro Processing Unit), an integrated circuit such as an ASIC (Application Specific Integrated Circuit), or an FPGA (Field Programmable Gate Array). Furthermore, the control unit 13 has an internal memory for storing programs and control data that define various processing procedures, and uses the internal memory to execute various processes. Furthermore, the control unit 13 functions as various processing units by running various programs. The control unit 13 includes a vertex reduction unit 131 (reduction unit).

[0069] As a pre-process for the inside-outside determination process, the vertex reduction unit 131 obtains polygon information D10 and reduces the vertices of the inside-outside determination polygon. The vertex reduction unit 131 performs thinning processing on the vertices of the inside-outside determination polygon at appropriate intervals. For example, the vertex reduction unit 131 implements the vertex reduction process using the Ramer-Douglas-Peucker algorithm (e.g., see Reference 1).

[0070] Reference 1: "Ramer-Douglas-Peucker Algorithm", [online], [Reiwa August 23, 2018], インターネット<URL:https: / / siguniang.wordpress.com / 2012 / 07 / 16 / ramer-douglas-peucker-algorithm / >

[0071] The vertex reduction unit 131 stores the coordinate information of each vertex of the polygon whose vertices have been reduced through vertex reduction processing on each vertex of the inside and outside judgment polygon, that is, the reduced coordinate information D11, in the storage unit 12, and outputs the information to the inside and outside judgment control device 3 via the communication unit 11.

[0072] [Judgment device]

[0073] Then, Figure 1 The determination device 20 shown will be described. Figure 4 It shows Figure 1 FIG. 2 is a block diagram showing an example of the structure of the determination device 20. Figure 4 As shown, the determination device 20 includes a communication unit 21 , a storage unit 22 , and a control unit 23 .

[0074] The communication unit 21 is a communication interface for transmitting and receiving various types of information with other devices connected via a network or the like. Implemented by a NIC or other network interface, it facilitates communication between other devices and the control unit 23 (described later) via a telecommunication line such as a LAN or the Internet. The communication unit 21 receives the reduced polygon information D11 and coordinate information D20, which serves as the coordinate information for each vertex of the inside-outside determination polygon, from the inside-outside determination control unit 3 via the network. Furthermore, the communication unit 21 transmits the determination results of the inside-outside determination unit 231 (described later) to the inside-outside determination control unit 3.

[0075] The storage unit 22 is implemented by a semiconductor memory element such as RAM or flash memory, or a storage device such as a hard disk or optical disk, and stores processing programs for operating the determination device 20 and data used in executing the processing programs. The storage unit 22 stores the reduced polygon information D11 and coordinate information D20.

[0076] The coordinate information D20 is coordinate information of the coordinates to be determined. The coordinate information D20 is sent from the inside-outside determination control device 3. Figure 5 : is a diagram showing an overview of the data structure of the coordinate information D20. Figure 5 As shown, the coordinate information D20 indicates the longitude and latitude of the coordinates to be determined.

[0077] The control unit 23 controls the vertex reduction device 10 as a whole. Examples of the control unit 23 include electronic circuits such as a CPU and MPU, or integrated circuits such as an ASIC and FPGA. The control unit 23 also includes internal memory for storing programs and control data that define various processing procedures, and uses this internal memory to execute various processes. Furthermore, the control unit 23 functions as various processing units by executing various programs. The control unit 23 also performs an internal / external determination unit 231.

[0078] Based on the reduced polygon information D11 and the coordinate information D20, the inside-outside determination unit 231 performs inside-outside determination processing to determine whether the coordinates to be determined are located inside or outside the inside-outside determination polygon. Following a simple determination based on the MBR, the inside-outside determination unit 231 performs a detailed determination using the Crossing Number method or the Winding Number method.

[0079] Vertex reduction processing

[0080] Next, the vertex reduction process executed by the vertex reduction device 10 will be described in detail. Figure 6 This is a diagram explaining vertex reduction processing. Figure 6 (1) shows the inside-outside judgment polygon P10 before vertex reduction processing. Figure 6 (2) shows the polygon P11 after vertex reduction. For the convenience of explanation, Figure 6Also shown are the MBR 40 and the coordinates C1, C2, and C3 to be determined.

[0081] Figure 6 The number of vertices of the polygon P10 shown in (1) is 16. In the vertex reduction device 10, the vertex reduction unit 131 uses the Ramer-Douglas-Peucker algorithm to reduce the vertices of the polygon P10. The Ramer-Douglas-Peucker algorithm is as follows: (A) the start and end points of the route are used as drawing objects, (B) the distance between the straight line connecting the drawing objects and the points between them is investigated, and the point with the farthest distance from the points that are more than the allowable distance away is found, (C) this point is used as a new drawing object, and the processing of (B) and (C) is recursively repeated, and (D) if there are no points with a distance of more than ε, the process ends.

[0082] Through this process, Figure 6 As shown in (2), the vertex reduction unit 131 generates a polygon P11 having 10 vertices compared to the polygon P10 having 16 vertices. Then, the determination device 20 performs determination processing on the polygon P11 as a polygon for inside and outside determination.

[0083] In this case, since detailed determination is performed on the coordinates C2 and C3 requiring detailed determination based on the polygon P11 after vertex elimination, the processing time for detailed determination can be shortened compared to the case where detailed determination is performed on the original polygon P10 for inside-outside determination. Furthermore, since coordinate C1 is outside the MBR 40, determination is completed with only a simplified determination.

[0084] [Processing Procedure for Determination Processing]

[0085] Next, the processing procedure of the determination process in the determination system 1 will be described. Figure 7 It is an explanation Figure 1 The shown sequence diagram is a processing procedure of the determination process of the determination system 1.

[0086] First, the client terminal 2 sends coordinate information D20, which is the coordinate information of the coordinates of the determination target, and polygon information D10, which is the coordinate information of each vertex of the inside-outside determination polygon, to the inside-outside determination control device 3 to request the determination (step S1). Upon receiving the determination request, the inside-outside determination control device 3 sends polygon information D10 to the vertex reduction device 10 (step S2), causing it to perform preprocessing.

[0087] As a pre-processing, the vertex reduction device 10 performs vertex reduction processing (step S3) to reduce the vertices of the polygons used for inside and outside judgment based on the polygon information D10 received from the inside and outside judgment control device 3, and sends the reduced polygon information D11 to the inside and outside judgment control device 3 (step S4).

[0088] The inside-outside determination control device 3 transmits the reduced polygon information D11 and coordinate information D20 to the determination device 20 (step S5), causing it to perform inside-outside determination processing. The inside-outside determination control device 3 performs inside-outside determination processing based on the reduced polygon information D11 and coordinate information D20 (step S6), and transmits determination information to the inside-outside determination control device 3 (step S7). The inside-outside determination control device 3 transmits the determination information to the client terminal 2 (step S8).

[0089] [Vertex pruning process]

[0090] Next, the processing procedure of the vertex reduction process (step S3) will be described. Figure 8 It shows Figure 7 Flowchart of the vertex pruning process shown.

[0091] like Figure 8 As shown, upon receiving input of polygon information D10 from the inside-outside determination control device 3 (step S11), the vertex reduction device 10 reduces the vertices of the inside-outside determination polygon (step S12). The vertex reduction device 10 generates reduced polygon information D11 and outputs it to the inside-outside determination control device 3 (step S13), thereby completing the vertex reduction process.

[0092] [Processing procedure of internal and external judgment processing]

[0093] Next, the processing procedure of the inside / outside determination processing (step S6) will be described. Figure 9 It shows Figure 7 Flowchart of the processing procedure of the internal and external determination processing shown.

[0094] like Figure 9 As shown, the determination device 20 performs a simple determination process to determine whether the coordinates of the determination target are inside the MBR (step S21). If the determination device 20 determines that the coordinates of the determination target are not inside the MBR (step S21: No), it determines that the coordinates are outside the inside-outside determination polygon ("false") (step S22).

[0095] On the other hand, if the determination device 20 determines that the coordinates of the determination target are inside the MBR (step S21: Yes), it performs a detailed determination based on the Crossing Number method or the Winding Number method. In this case, the determination device 20 sets the polygon indicated by the reduced polygon information D11 as the polygon for inside-outside determination and determines whether the coordinates of the determination target are inside the inside-outside determination polygon (step S23).

[0096] When the determination device 20 determines that the coordinates of the determination object are not inside the inside-outside determination polygon (step S23: No), it proceeds to step S22 and determines that the coordinates are outside the inside-outside determination polygon ("false") (step S22).

[0097] In contrast, when the determination device 20 determines that the coordinates of the determination target are inside the inside-outside determination polygon (step S23: Yes), it determines that the coordinates are inside the inside-outside determination polygon ("true") (step S24).

[0098] The determination device 20 executes the processes of steps S21 to S24 for each coordinate of the determination object, and transmits determination information in which the determination results are associated with each coordinate of the determination object to the inside-outside determination control device 3 .

[0099] [Effects of Embodiment 1]

[0100] Thus, in the first embodiment, pre-processing is performed to reduce the vertices of the inside-outside determination polygon, and the polygon with the reduced vertices is used to perform the polygon inside-outside determination process for each coordinate. Therefore, in the first embodiment, the detailed determination process is performed based on the polygon with the reduced vertices. This shortens the processing time of the detailed determination process compared to the case where the detailed determination is performed based on the initial inside-outside determination polygon.

[0101] This embodiment 1 is particularly applicable to the case of determining whether the geographical coordinates of a car, etc. are included in a polygon representing a road area. Since detailed determination processing is performed on a polygon representing a road area having a large number of vertices after pre-reduction of vertices, the processing time of the determination processing can be accelerated.

[0102] In addition, in this embodiment 1, the inside and outside judgment control device 3 can also reduce the vertices of the polygons used for inside and outside judgment in advance in the vertex reduction device 10, and store them in the storage area of ​​the inside and outside judgment control device 3, read them out during the inside and outside judgment, and send them to the judgment device 20.

[0103] [Implementation Method 2]

[0104] Next, embodiment 2 is described. In embodiment 2, before the inside / outside determination process of the determination device, the coordinates of the inside / outside determination polygon and the determination target are rotated, and the area of ​​the MBR including the rotated polygon is reduced, thereby shortening the processing time required for the inside / outside determination process.

[0105] Figure 10 This is a block diagram showing an example of the structure of the determination system of the second embodiment. Figure 10 As shown, Figure 1 Compared with the judgment system 1 shown, the judgment system 201 of the second embodiment includes a rotation device 210 (third pre-processing device) instead of the vertex reduction device 10 .

[0106] The rotation device 210 receives polygon information D10 and coordinate information D20 from the inside-outside determination control device 3 and performs preprocessing to rotate the inside-outside determination polygon and the coordinates of the determination target. The rotation device 210 outputs rotated polygon information D12, which represents the coordinate information of each vertex of the rotated polygon, and rotated coordinate information D22, which represents the coordinate information of the determination target after rotation, to the inside-outside determination control device 3.

[0107] The determination device 20 performs inside-outside determination processing to determine whether the coordinates of the determination target after rotation exist inside or outside the rotated inside-outside determination polygon based on the rotated polygon information D12 and the rotated coordinate information D22.

[0108] [Rotating device]

[0109] Then, Figure 10 The rotating device 210 is shown for illustration. Figure 11 It shows Figure 10 FIG. 2 is a block diagram showing an example of the structure of the rotating device 210. Figure 11 As shown, the rotating device 210 includes a communication unit 211 (third output unit), a storage unit 212 , and a control unit 213 .

[0110] The communication unit 211 has the same function as the communication unit 11 in the vertex reduction device 10. The communication unit 211 receives polygon information D10 and coordinate information D20 from the inside-outside determination control device 3 via the network. Furthermore, the communication unit 211 transmits to the inside-outside determination control device 3 rotated polygon information D12 and rotated coordinate information D22, generated by the rotation processing performed by the rotation unit 2131 (described later) on the inside-outside determination polygon and the coordinates of the determination object.

[0111] The storage unit 212 has the same function as the storage unit 12 in the vertex reduction device 10. The storage unit 312 stores polygon information D10, coordinate information D20, rotated polygon information D12, and rotated coordinate information D22.

[0112] The control unit 213 has the same function as the control unit 13 in the vertex reduction device 10 . The control unit 213 includes a rotation unit 2131 .

[0113] As a pre-process for the inside-outside determination process, the rotation unit 2131 obtains polygon information D10 and coordinate information D20 and rotates the inside-outside determination polygon and the coordinates of the determination object. For example, the rotation unit 2131 implements the rotation process using a rotation angle derivation algorithm (e.g., see Reference 2).

[0114] Reference 2: "Minimum-Area Rectangle Containing a Set of Points", [online], [Reiwa August 23, 2018], インターネット<URL:https: / / www.geometrictools.com / Documentation / MinimumAreaRectangle.pdf>

[0115] The rotation unit 2131 stores the rotated polygon information D12 and the rotated coordinate information D22 in the storage unit 212 , and outputs these pieces of information to the inside-outside determination control device 3 via the communication unit 211 .

[0116] [Rotation Processing]

[0117] Next, the rotation process performed by the rotation device 210 will be described in detail. Figure 12 It is a diagram explaining the rotation process. Figure 12 (1) shows the inside-outside judgment polygon P10 and the coordinates C1, C2, and C3 of the judgment object before the rotation process. Figure 12 (2) shows the polygon P11 after the rotation process and the coordinates C12, C22, and C32 after the rotation. In addition, for the convenience of explanation, Figure 12 Also shown are the MBR 40 before the rotation process and the MBR 42 set after the rotation process.

[0118] like Figure 12 As shown in (1), the MBR 40 for the polygon P10 is a substantially square including the coordinates C1 and C2. In the rotation device 210, the rotation unit 2131 appropriately rotates the polygon P10 and the coordinates C1, C2, and C3 of the determination target using an algorithm for deriving the rotation angle.

[0119] Through this process, Figure 12As shown in (2), the MBR 42 with a reduced area compared to the MBR 40 can be set as the MBR including the rotated inside-outside judgment polygon P12. Then, the coordinate C22 of the judgment object is located outside the new MBR 42 due to the rotation, and the judgment is completed only by the simplified judgment.

[0120] As a result, in the determination process of the determination device 20, since the MBR 42 after the area reduction is used for simple determination, the number of coordinates determined to be outside the inner and outer determination polygon increases only through simple determination, and the number of executions of detailed determination can be reduced. Figure 12 In the example, the coordinates to be determined in detail are only the coordinate C32 among the coordinates C12, C22, and C23.

[0121] [Processing Procedure for Determination Processing]

[0122] Next, the processing procedure of the determination process in the determination system 201 will be described. Figure 13 It is an explanation Figure 10 The flowchart shows the processing procedure of the determination process of the determination system 201.

[0123] Figure 13 The step S31 shown is Figure 7 The same processing as step S1 shown in FIG. When receiving the determination request, the inside and outside determination control device 3 sends the polygon information D10 and the coordinate information D20 to the rotation device 210 (step S32) to cause it to perform pre-processing.

[0124] As a preprocessing, the rotation device 210 performs a rotation process (step S33) to rotate the polygon used for internal and external judgment and the coordinates of the judgment object based on the polygon information D10 and coordinate information D20 received from the internal and external judgment control device 3, and sends the rotated polygon information D12 and the rotated coordinate information D22 to the internal and external judgment control device 3 (step S34).

[0125] The inside-outside determination control device 3 sends the rotated polygon information D12 and the rotated coordinate information D22 to the determination device 20 (step S35), causing it to execute the inside-outside determination process. The determination device 20 performs the inside-outside determination process of determining whether the coordinates of the rotated determination object exist inside or outside the rotated inside-outside determination polygon based on the rotated polygon information D12 and the rotated coordinate information D22 (step S36). Figure 7 The same process as step S6 shown in FIG. Figure 13 Steps S37 and S38 are shown in FIG. Figure 7 The same processing is performed in steps S7 and S8 shown.

[0126] [Rotation Processing Procedure]

[0127] Next, the processing procedure of the rotation process (step S33) will be described. Figure 14 It shows Figure 13 Flowchart of the processing procedure of the rotation processing shown.

[0128] like Figure 14 As shown, upon receiving input of polygon information D10 and coordinate information D20 from the inside-outside determination control device 3 (step S41), the rotation device 210 rotates the inside-outside determination polygon and the coordinates of the determination target (step S42). The rotation device 210 generates rotated polygon information D12 and rotated coordinate information D22, outputs them to the inside-outside determination control device 3 (step S43), and terminates the rotation process.

[0129] [Effects of Embodiment 2]

[0130] Thus, in the second embodiment, a pre-processing step is performed to rotate the coordinates of the inside-outside determination polygon and the determination target. The MBR, which has a reduced area compared to before the rotation, is then used to perform the polygon inside-outside determination process for each coordinate of the rotated determination target. Therefore, in the second embodiment, since a simplified determination is performed using the reduced area MBR, only the number of coordinates determined to be outside the inside-outside determination polygon increases through the simplified determination. Consequently, in the second embodiment, the number of detailed determinations performed can be reduced, shortening the overall processing time.

[0131] In addition, in this embodiment 2, the internal and external judgment control device 3 can also rotate the coordinates of the internal and external judgment polygon and the judgment object in advance with respect to the rotation device 210, and store them in the storage area of ​​the internal and external judgment control device 3, read them out during the internal and external judgment, and send them to the judgment device 20.

[0132] [Implementation Method 3]

[0133] Next, Embodiment 3 is described. In Embodiment 3, before the inside / outside determination process of the determination device, the inside / outside determination polygon is divided into multiple polygons of smaller areas, and the area of ​​each MBR for the divided polygons is reduced, thereby shortening the processing time required for the inside / outside determination process.

[0134] Figure 15 : is a block diagram showing an example of the structure of the determination system of embodiment 3. Figure 15 As shown, Figure 1 Compared with the judgment system 1 shown, the judgment system 301 of the third embodiment includes a segmentation device 310 (second pre-processing device) instead of the vertex reduction device 10 .

[0135] The segmentation device 310 performs preprocessing to segment the polygons for inside / outside determination upon receiving polygon information D10 from the inside / outside determination control device 3. The segmentation device 310 segments the polygons for inside / outside determination and outputs segmented polygon information D13, including the coordinate information of each vertex of each segmented polygon, to the inside / outside determination control device 3.

[0136] The determination device 20 performs inside-outside determination processing for each inside-outside determination polygon after division based on the divided polygon information D13 and the coordinate information D20 to determine whether the coordinates of the determination object exist inside or outside the inside-outside determination polygon.

[0137] [Split device]

[0138] Then, Figure 15 The segmentation device 310 shown is described. Figure 16 It shows Figure 15 FIG. 3 is a block diagram showing an example of the structure of the segmentation device 310. Figure 16 As shown, the dividing device 310 includes a communication unit 311 (second output unit), a storage unit 312 , and a control unit 313 .

[0139] The communication unit 311 has the same function as the communication unit 11 in the vertex reduction device 10. The communication unit 311 receives polygon information D10 from the inside-outside determination control device 3 via the network. In addition, the communication unit 311 transmits to the inside-outside determination control device 3 divided polygon information D13 generated by dividing the inside-outside determination polygon by the dividing unit 3131 (described later).

[0140] The storage unit 312 has the same function as the storage unit 12 in the vertex reduction device 10. The storage unit stores polygon information D10 and divided polygon information D13.

[0141] The control unit 313 has the same function as the control unit 13 in the vertex reduction device 10. The control unit 313 includes a division unit 3131.

[0142] As a pre-process for the inside / outside determination process, the segmentation unit 3131 obtains polygon information D10 and segments the inside / outside determination polygon into multiple polygons. For example, the segmentation unit 3131 implements the segmentation process using an algorithm for segmenting a polygon into triangles (e.g., see Reference 3).

[0143] Reference 3: "Polygon triangulation in O(n log logn) time with simple datastructures", [online], [Reiwa August 23, 2018], インターネット<URL:https: / / link.springer.com / article / 10.1007%2FBF02187846>

[0144] The division unit 3131 stores the coordinate information of each vertex of each polygon divided by the division process for the inside / outside determination polygon, that is, the divided polygon information D13 in the storage unit 212 , and outputs the information to the inside / outside determination control device 3 via the communication unit 211 .

[0145] [Split Processing]

[0146] Next, the division process performed by the division device 310 will be described in detail. Figure 17 It is a diagram explaining the segmentation process. Figure 17 (1) shows the inside and outside judgment polygon P10 and the coordinates C1, C2, and C3 of the judgment object before the segmentation process. Figure 17 (2) shows the polygons P13-1, P13-2, and P13-3 after segmentation. In addition, for the convenience of explanation, Figure 17 Also shown are the MBR 40, MBRs 43-1, 43-2, and 43-3 corresponding to the divided polygons P13-1, P13-2, and P13-3, respectively, and coordinates C1, C2, and C3 to be determined.

[0147] like Figure 17 As shown in (1), the MBR 40 for the polygon P10 is a substantially square containing the coordinates C1 and C2. In the segmentation device 310, the segmentation unit 3131 uses an algorithm for segmenting polygons into triangles to segment the polygon P10 into, for example, three polygons P13-1, P13-2, and P13-3 (see Figure 17 (2)).

[0148] Through this process, Figure 17 As shown in (2), MBRs 43-1, 43-2, and 43-3 can be set as MBRs that include the divided inside and outside judgment polygons P13-1, P13-2, and P13-3, respectively. Figure 17 As shown in (2), the areas of these MBRs 43-1, 43-2, and 43-3 are reduced compared to MBR 40. Then, as Figure 17As shown in (2), the coordinate C2 of the determination target located in the MBR 40 is located outside the new MBRs 43-1, 43-2, and 43-3, and the determination is completed only by the simplified determination.

[0149] As a result, in the determination process of the determination device 20, since the simplified determination is performed using the MBRs 43-1, 43-2, and 43-3 after the area reduction, the number of coordinates determined to be outside the inner and outer determination polygons by the simplified determination increases, and the number of executions of the detailed determination can be reduced. Figure 17 In the example of , the coordinates to be determined in detail are only the coordinate C3 among the coordinates C1, C2, and C3.

[0150] [Processing Procedure for Determination Processing]

[0151] Next, the processing procedure of the determination process in the determination system 301 will be described. Figure 18 It is an explanation Figure 15 The flowchart shows the processing procedure of the determination process of the determination system 301.

[0152] Figure 18 Step S51 shown is Figure 7 The inside-outside determination control device 3, upon receiving the determination request, sends the polygon information D10 to the segmentation device 310 (step S52) to cause it to perform pre-processing.

[0153] As a pre-processing, the segmentation device 310 performs segmentation processing (step S53) to segment the inside and outside judgment polygon into multiple polygons based on the polygon information D10 received from the inside and outside judgment control device 3, and sends the segmented polygon information D13 to the inside and outside judgment control device 3 (step S54).

[0154] The inside-outside determination control device 3 sends the segmented polygon information D13 and the coordinate information D20 to the determination device 20 (step S55), causing it to execute the inside-outside determination process. The determination device 20 performs the following inside-outside determination process: Based on the segmented polygon information D13 and the coordinate information D20, for each segmented inside-outside determination polygon, it determines whether the coordinates of the determination object exist inside or outside the segmented inside-outside determination polygon (step S56). In addition, the inside-outside determination process is the same as the inside-outside determination process. Figure 7 The same process as step S6 shown in FIG. Figure 17 Steps S57 and S58 are shown in FIG. Figure 7 The same processing is performed in steps S7 and S8 shown.

[0155] [Processing steps of segmentation]

[0156] Next, the processing procedure of the division process (step S53) will be described. Figure 19 It shows Figure 18 Flowchart of the processing procedure of the segmentation process shown.

[0157] like Figure 14 As shown, upon receiving input of polygon information D10 from the inside-outside determination control device 3 (step S61), the rotation device 210 divides the inside-outside determination polygon into a plurality of polygons (step S62). The division device 310 generates divided polygon information D13 and outputs it to the inside-outside determination control device 3 (step S63), thereby terminating the rotation process.

[0158] [Effects of Embodiment 3]

[0159] Thus, in Embodiment 3, a pre-processing step is performed to divide the inside-outside determination polygon into multiple polygons. Then, the polygon inside-outside determination process is performed for each coordinate of the determination target using these multiple MBRs, which have a reduced overall area compared to the MBR for the polygon before division. Therefore, in Embodiment 3, since simplified determination is performed using these multiple MBRs, only the number of coordinates determined to be outside the inside-outside determination polygon increases through simplified determination. Consequently, in Embodiment 3, the number of detailed determinations performed can be reduced, shortening the overall processing time for the determination process.

[0160] In addition, in this embodiment 3, the internal and external judgment control device 3 can also enable the segmentation device 310 to divide the internal and external judgment polygon into multiple polygons in advance, store them in the storage area of ​​the internal and external judgment control device 3, read them out during the internal and external judgment, and send them to the judgment device 20.

[0161] [Implementation Method 4]

[0162] Next, a description will be given of Embodiment 4. In Embodiment 4, the pre-processing described in Embodiments 1 to 3 is sequentially executed to further shorten the processing time required for the internal / external determination process.

[0163] Figure 20 : is a block diagram showing an example of the structure of the determination system of embodiment 4. Figure 20 As shown, the determination system 401 of the fourth embodiment includes a vertex reduction device 10, a division device 310, and a rotation device 210 as a pre-processing device.

[0164] For example, the inside-outside determination control device 3 first transmits the polygon information D10 to the vertex reduction device 10 and executes the vertex reduction process of the vertex reduction device 10 as the first pre-processing, thereby acquiring the polygon information D11 after reduction.

[0165] Then, the inside / outside determination control device 3 sends the reduced polygon information D11 to the segmentation device 310, and executes the segmentation process of the segmentation device 310 as the second pre-processing. Thus, the inside / outside determination control device 3 obtains the post-segmentation vertex reduction / split polygon information D13' for the polygon after vertex reduction.

[0166] Next, the inside / outside determination control device 3 transmits the vertex reduction / split polygon information D13′ and coordinate information D20 to the rotation device 210, and performs the rotation process by the rotation device 210 as the third pre-processing. Thus, the inside / outside determination control device 3 obtains the rotated vertex reduction / split / rotated polygon information D12′ and rotated coordinate information D22 for each of the inside / outside determination polygons that were split after vertex reduction.

[0167] The determination device 20 performs inside-outside determination processing for each inside-outside determination polygon after division and rotation based on the vertex reduction / division / rotation polygon information D12' and the rotated coordinate information D22 to determine whether the coordinates of the determination object exist inside or outside the inside-outside determination polygon.

[0168] [Processing Procedure for Determination Processing]

[0169] Next, the processing procedure of the determination process in the determination system 401 will be described. Figure 21 It is an explanation Figure 20 The flowchart shows the processing procedure of the determination process of the determination system 401.

[0170] Figure 20 Steps S71 to S74 are shown in FIG. Figure 7 The inside-outside determination control device 3 sends the polygon information D11 after reduction to the segmentation device 310 (step S75) to cause it to perform pre-processing.

[0171] The segmentation device 310 performs segmentation processing on the polygon after vertex reduction into multiple polygons as a pre-processing (step S76), and sends the vertex reduction / split polygon information D13' to the inside and outside judgment control device 3 (step S77). Step S76 is Figure 18 The same processing as step S53 is shown.

[0172] Then, the inside-outside judgment control device 3 sends the polygon information D13′ and the coordinate information D20 after vertex reduction / division to the rotation device 210 (step S78), so that it performs pre-processing. As a pre-processing, the rotation device 210 performs a rotation process (step S79) to rotate the coordinates of each polygon used for inside-outside judgment and the judgment object based on the polygon information D13′ and the coordinate information D20 after vertex reduction / division received from the inside-outside judgment control device 3, and sends the polygon information D12′ and the rotated coordinate information D22 after vertex reduction / division / rotation to the inside-outside judgment control device 3 (step S80). Step S79 is the same as Figure 13 The same processing as step S33 is shown.

[0173] The inside-outside judgment control device 3 sends the polygon information D12′ after vertex reduction / splitting / rotation and the coordinate information D22 after rotation to the judgment device 20 (step S81), so that it performs the inside-outside judgment process. The judgment device 20 performs the inside-outside judgment process for each inside-outside judgment polygon after division and rotation, based on the polygon information D12′ after vertex reduction / splitting / rotation and the coordinate information D22 after rotation, to judge whether the coordinates of the judgment object exist inside or outside the inside-outside judgment polygon (step S82). In addition, the inside-outside judgment process is the same as the inside-outside judgment process. Figure 7 The same process as step S6 shown in FIG. Figure 21 Steps S83 and S84 are shown in FIG. Figure 7 The same processing is performed in steps S7 and S8 shown.

[0174] [Effects of Embodiment 4]

[0175] Thus, in the fourth embodiment, vertex reduction processing for the inside / outside determination polygon, rotation processing for the inside / outside determination polygon after vertex reduction, and segmentation processing for the inside / outside determination polygon after vertex reduction and rotation are sequentially performed as pre-processing. Thus, in the fourth embodiment, it is expected that the increase in coordinates determined to be outside the inside / outside determination polygon can be further shortened compared to the first to third embodiments by simply determining the increase in coordinates.

[0176] In addition, in embodiment 4, the case where preprocessing is performed in the order of vertex reduction processing for the polygons used for internal and external judgment, rotation processing for the polygons used for internal and external judgment after vertex reduction, and splitting processing for the polygons used for internal and external judgment after vertex reduction and rotation is explained as an example, but the order of preprocessing is not limited.

[0177] [Variation 1 of Embodiment 4]

[0178] In addition, while Embodiment 4 describes an example in which the preprocessing device includes the vertex reduction device 10, the segmentation device 310, and the rotation device 210, this is not limiting. The preprocessing device may also include both the vertex reduction device 10 and the rotation device 210. The following describes the process of the determination process in this case.

[0179] Figure 22 This is a sequence diagram illustrating the processing procedure of the determination process in the first modification of the fourth embodiment. Figure 22 Steps S91 to S94 are shown in FIG. Figure 7 The inside-outside determination control device 3 sends the reduced polygon information D11 and the coordinate information D20 to the rotation device 210 (step S95) to cause it to perform pre-processing.

[0180] The rotation device 210 performs a rotation process (step S96) to rotate the inside-outside judgment polygon and the coordinates of the judgment object after vertex reduction based on the polygon information D11 and coordinate information D20 received from the inside-outside judgment control device 3 as a pre-processing, and sends the polygon information D12" after vertex reduction / rotation and the rotated coordinate information D22 to the inside-outside judgment control device 3 (step S97). Step S96 is the same as the rotation process. Figure 13 The same processing as step S33 is shown.

[0181] The inside-outside judgment control device 3 sends the polygon information D12" after vertex reduction / rotation and the coordinate information D22 after rotation to the judgment device 20 (step S98), so that it performs the inside-outside judgment process. The judgment device 20 performs the inside-outside judgment process (step S99) to judge whether the coordinates of the judgment object exist inside or outside the inside-outside judgment polygon according to the polygon information D12" after vertex reduction / rotation and the coordinate information D22 after rotation for each inside-outside judgment polygon after vertex reduction and rotation. In addition, the inside-outside judgment process is the same as the inside-outside judgment process. Figure 7 The same process as step S6 shown in FIG. Figure 21 Steps S100 and S101 are shown in FIG. Figure 7 The same processing is performed in steps S7 and S8 shown.

[0182] [Variation 2 of Embodiment 4]

[0183] Furthermore, the pre-processing device may be both the vertex reduction device 10 and the segmentation device 310. The following describes the processing procedure of the determination process in this case.

[0184] Figure 23 This is a sequence diagram illustrating the processing procedure of the determination process in the second modification of the fourth embodiment. Figure 23 Steps S111 to S114 are shown in FIG. Figure 7The steps S1 to S4 shown are the same processing. Figure 23 Steps S115 to S117 are shown in FIG. Figure 21 The inside-outside determination control device 3 sends the vertex reduction / division polygon information D13' and the coordinate information D20 to the determination device 20 (step S118), causing it to execute the inside-outside determination process.

[0185] The determination device 20 performs an inside-outside determination process (step S119) to determine whether the coordinates of the determination object exist inside or outside the inside-outside determination polygon according to the polygon information D13' after vertex reduction / division and the coordinate information D20. Figure 7 The same process as step S6 shown in FIG. Figure 23 Steps S120 and S121 are shown in FIG. Figure 7 The same processing is performed in steps S7 and S8 shown.

[0186] [Variation 3 of Implementation 4]

[0187] Furthermore, the pre-processing device may be both the rotation device 210 and the division device 310. The following describes the processing procedure of the determination process in this case.

[0188] Figure 24 This is a sequence diagram illustrating the processing procedure of the determination process in the third modification of the fourth embodiment. Figure 24 Steps S131 to S134 are shown in FIG. Figure 18 The processes in steps S51 to S54 are the same as those in the above description.

[0189] Then, the inside-outside determination control device 3 sends the divided polygon information D13 and the coordinate information D20 to the rotation device 210 (step S135) to cause it to perform pre-processing. As pre-processing, the rotation device 210 performs a rotation process to rotate the coordinates of each polygon used for inside-outside determination and the determination object based on the divided polygon information D13 and the coordinate information D20 received from the inside-outside determination control device 3 (step S136), and sends the divided / rotated polygon information D13" and the rotated coordinate information D22 to the inside-outside determination control device 3 (step S137). Step S136 is the same as Figure 13 The same processing as step S33 is shown.

[0190] The inside-outside judgment control device 3 sends the polygon information D13" after segmentation / rotation and the coordinate information D22 after rotation to the judgment device 20 (step S138), so that it performs the inside-outside judgment process. The judgment device 20 performs the inside-outside judgment process (step S139) for judging whether the coordinates of the judgment object exist inside or outside the inside-outside judgment polygon for each segmented and rotated inside-outside judgment polygon based on the polygon information D13" after segmentation / rotation and the coordinate information D22 after rotation. In addition, the inside-outside judgment process is the same as the inside-outside judgment process. Figure 7 The same process as step S6 shown in FIG. Figure 24 Steps S140 and S141 are shown in FIG. Figure 7 The same processing is performed in steps S7 and S8 shown.

[0191] [verify]

[0192] The performance comparison of the determination method using the determination system in the first to third embodiments with the conventional determination method was verified. Figure 25 is a diagram illustrating the experimental model. Figure 25 The objects are one polygon and 4,000 vehicles. Figure 25 The polygon shown is a road polygon with a long side of 7000m, a short side of 35m, and a vertex spacing of 1m. Furthermore, this verification used three scenarios: the vehicle was outside the MBR and outside the polygon, inside the MBR and outside the polygon, and inside the MBR and inside the polygon. The average of the judgment results from 10 trials was used for comparison.

[0193] First, we'll describe the results of a comparison between cases where vertex reduction on road polygons was performed as preprocessing, followed by an inside-outside determination, and cases where the inside-outside determination was performed without preprocessing. PIP processing time was measured for cases where the number of vertices in road polygons was reduced to 1 / 2, 1 / 10, and 1 / 100 as preprocessing, and for cases where the inside-outside determination was performed without preprocessing.

[0194] Figure 26 1 is a diagram illustrating the PIP processing time when the inside-outside determination is performed after the vertex reduction process is performed and when the inside-outside determination is performed without performing pre-processing. Figure 26 As shown, in the case where no preprocessing is performed and internal and external judgment is performed ( Figure 26 Compared to the "benchmark" ("baseline"), when the number of vertices is reduced to 1 / 2, 1 / 10, and 1 / 100, the processing time is shortened to 0.5 times, 0.15 times, and 0.07 times the PIP time in the benchmark, respectively.

[0195] Next, a description will be given of the comparison results between a case where a division process of dividing a road polygon into a plurality of polygons is performed as pre-processing and then an inside-outside determination is performed, and a case where an inside-outside determination is performed without performing pre-processing. Figure 27 This is a diagram explaining the segmentation process performed during verification.

[0196] In this verification, as a pre-processing, the road polygon P14 (refer to Figure 27 (1)) is divided into two equal parts: road polygons P14-1 and P-14-2 (refer to Figure 27 (2)) and MBR 44( Figure 27 (1) of the reference) is divided into MBR 44-1 and 44-2 (reference) after the area is reduced compared to MBR 44. Figure 27 The PIP processing time in the case of (2)) and the PIP processing time in the case where no preprocessing is performed and internal and external judgment is performed.

[0197] Figure 28 This graph illustrates the PIP processing time for the cases where an inside / outside determination is performed after segmentation, and when an inside / outside determination is performed without pre-processing. The experimental results represent a model assuming that all 4,000 vehicles are positioned outside the MBR due to segmentation. The extremes in this model are estimated values ​​based on the degree of improvement achieved by the estimation method.

[0198] When the internal and external judgment is performed without executing the division process, the total time required until the PIP process is performed on 4000 vehicles in the MBR is 7984ms ( Figure 28 In contrast, when the segmentation process is executed and the inside-outside determination is performed, all 4000 vehicles located in the MBR are "outside the MBR", so the process can be terminated by a simple determination. In other words, the outer product calculation for the vehicles located outside the MBR due to the segmentation process can be omitted. Therefore, when the segmentation process is executed and the inside-outside determination is performed ( Figure 28 The total time required for the internal and external judgment processing of the 4000 units outside the MBR is 1.4ms.

[0199] As a result, when the internal / external determination was performed after the division process was performed, the total processing time obtained by adding the division processing time and the PIP processing time was shortened to 0.00018 times the processing time when the pre-processing was not performed.

[0200] Next, a description will be given of the comparison results between a case where the inside-outside determination is performed after performing a rotation process of rotating the road polygon and the vehicle as pre-processing and a case where the inside-outside determination is performed without performing the pre-processing. Figure 29A diagram illustrating the rotation process performed during verification.

[0201] like Figure 29 As shown, in this verification, as a pre-processing, the road polygon P14 (refer to Figure 29 (1)) and when the vehicle rotates 45° (refer to Figure 29 (2)) PIP processing time is the PIP processing time when no pre-processing is performed and internal and external judgment is performed. Figure 29 As shown in (2), the MBR becomes MBR 44-3, which has a reduced area compared to MBR 44, based on the road polygon P15 rotated 45 degrees. Furthermore, the experimental results are a model that assumes that all 4,000 vehicles are positioned outside the MBR through the rotation process. This extreme model is based on an estimated value based on the degree of improvement achieved by the estimation method. Furthermore, the rotation processing time is as short as 1 / 10,000 or less of the PIP processing time.

[0202] Figure 30 This diagram illustrates the PIP processing time when the inside / outside determination is performed after the rotation process is executed and when the inside / outside determination is performed without executing the pre-processing. When the inside / outside determination is performed without executing the rotation process, the total time required to perform the PIP process on 4000 vehicles in the MBR is 8127ms ( Figure 30 of “no rotation”).

[0203] On the other hand, when the rotation process is executed and the inside and outside determination is performed ( Figure 30 =("with rotation"), all 4000 vehicles in the MBR are "outside the MBR", so the process can be ended by a simple judgment. In other words, the outer product calculation for the vehicles outside the MBR due to the rotation process can be omitted. Therefore, when the rotation process is executed and the inside-outside judgment is performed ( Figure 30 The total time required for the internal and external judgment processing of the 4000 units outside the MBR is 3.3ms.

[0204] As a result, when the internal / external determination is performed after the rotation process is performed, the total processing time obtained by summing the rotation processing time and the PIP processing time is shortened to 0.0004 times the processing time when the preprocessing is not performed.

[0205] [Other application examples]

[0206] Figure 31 This is a diagram illustrating another application example of the determination system of the first to fourth embodiments. The determination system of the first to fourth embodiments can be applied to the coordinate determination of a ship on a sea route (area: sea route). First, according to the sea route ( Figure 31 The width of the sea route is expanded to Wm (W can be set freely). Then, the determination system of Embodiments 1 to 4 replaces the road with a new sea route and the car with a ship to determine the position of the ship at sea.

[0207] Furthermore, the determination systems of Embodiments 1 to 4 can be applied to fish tracking (region: river) with a coordinate sensor. Specifically, the determination systems of Embodiments 1 to 4 replace roads with rivers and cars with fish to determine the position of fish in the river.

[0208] [System Configuration of Embodiment]

[0209] Figure 2 The vertex reduction device 10 shown, Figure 4 The determination device 20 shown, Figure 11 The rotating device 210 shown, Figure 16 The components of the segmentation device 310 shown are conceptual and not necessarily physically configured as shown. Specifically, the specific manner in which the functions of the vertex reduction device 10, the determination device 20, the rotation device 210, and the segmentation device 310 are distributed / integrated is not limited to that shown; all or part of them can be functionally or physically distributed / integrated in arbitrary units depending on various loads, usage conditions, and the like.

[0210] Furthermore, all or any portion of the processing performed by the vertex reduction device 10, the determination device 20, the rotation device 210, and the segmentation device 310 may be implemented by a CPU or a program analyzed and executed by the CPU. Furthermore, the processing performed by the vertex reduction device 10 may be implemented as hardware using wired logic.

[0211] Furthermore, all or part of the processes described in the embodiments as being automatically performed can be performed manually. Alternatively, all or part of the processes described as being manually performed can be performed automatically using a known method. Furthermore, the processing procedures, control procedures, specific names, and information including various data and parameters described above and in the accompanying drawings may be modified as appropriate, unless otherwise specified.

[0212] [program]

[0213] Figure 32This figure shows an example of a computer that implements the vertex reduction device 10, the judgment device 20, the rotation device 210, and the segmentation device 310 by executing a program. The computer 1000 includes, for example, a memory 1010 and a CPU 1020. Furthermore, the computer 1000 includes a hard disk drive interface 1030, a disk drive interface 1040, a serial port interface 1050, a video adapter 1060, and a network interface 1070. These components are connected via a bus 1080.

[0214] The memory 1010 includes a ROM 1011 and a RAM 1012. The ROM 1011 stores a boot program such as a BIOS (Basic Input / Output System). The hard disk drive interface 1030 is connected to the hard disk drive 1090. The disk drive interface 1040 is connected to the disk drive 1100. For example, removable storage media such as a magnetic disk or an optical disk are inserted into the disk drive 1100. The serial port interface 1050 is connected to, for example, a mouse 1110 and a keyboard 1120. The video adapter 1060 is connected to, for example, a display 1130.

[0215] The hard disk drive 1090 stores, for example, an operating system (OS) 1091, application programs 1092, program modules 1093, and program data 1094. Specifically, the programs that define the processes of the vertex reduction device 10, the determination device 20, the rotation device 210, and the segmentation device 310 are installed as program modules 1093 containing codes executable by the computer 1000. The program modules 1093 are stored, for example, in the hard disk drive 1090. For example, the program modules 1093 for executing processes identical to those in the vertex reduction device 10, the determination device 20, the rotation device 210, and the segmentation device 310 are stored in the hard disk drive 1090. Alternatively, the hard disk drive 1090 may be replaced with an SSD (Solid State Drive).

[0216] Furthermore, the setting data used in the processing of the above-described embodiment is stored as program data 1094 in, for example, the memory 1010 or the hard disk drive 1090. Furthermore, the CPU 1020 reads the program module 1093 and program data 1094 stored in the memory 1010 or the hard disk drive 1090 into the RAM 1012 as necessary and executes them.

[0217] Furthermore, program modules 1093 and program data 1094 are not limited to being stored in hard disk drive 1090. They may also be stored in, for example, a removable storage medium and read by CPU 1020 via disk drive 1100 or the like. Alternatively, program modules 1093 and program data 1094 may be stored in another computer connected via a network (e.g., a LAN (Local Area Network), a WAN (Wide Area Network), etc.). Furthermore, program modules 1093 and program data 1094 may also be read from another computer by CPU 1020 via network interface 1070.

[0218] While the embodiments of the invention developed by the present inventors have been described above, the present invention is not limited by the description and drawings that constitute part of the disclosure of the invention based on these embodiments. In other words, other embodiments, examples, and operational techniques developed by those skilled in the art based on these embodiments are also within the scope of the present invention.

[0219] Label Description

[0220] 1. 201, 301, 401: judgment system; 2: client terminal; 3: internal and external judgment control device; 10: vertex reduction device; 11, 21, 211, 311: communication unit; 12, 22, 212, 312: storage unit; 13, 23, 213, 313: control unit; 20: judgment device; 131: vertex reduction unit; 231: internal and external judgment unit; 210: rotation device; 310: splitting device; 2131: rotation unit; 3131: splitting unit.

Claims

1. A pretreatment device, characterized in that: have: a rotation unit that, as a pre-processing step for a determination process, obtains coordinate information of coordinates to be determined and coordinate information of each vertex of an inside-outside determination polygon, and rotates the coordinates to be determined and the inside-outside determination polygon so as to define a minimum bounding rectangle having a reduced area compared to a minimum bounding rectangle before the rotation, wherein the determination process determines whether the coordinates to be determined exist inside or outside the inside-outside determination polygon, the polygon having an elongated shape; and An output unit outputs the coordinate information of each vertex of the rotated inside-outside determination polygon and the coordinates of the determination object after rotation as rotated coordinate information to the device performing the determination process.

2. A determination system comprising a determination device for performing determination processing and a third pre-processing device for performing pre-processing of the determination processing, wherein: The determination process is to determine whether the coordinates to be determined are inside or outside the inside-outside determination polygon, the polygon having an elongated shape, and the determination system is characterized in that: The third pre-processing device comprises: a rotation unit that obtains, as a pre-processing step, coordinate information of the coordinates of the determination target and coordinate information of each vertex of the inside-outside determination polygon, and rotates the coordinates of the determination target and the inside-outside determination polygon so as to establish a minimum bounding rectangle having an area reduced compared to the minimum bounding rectangle before the rotation; as well as The third output unit outputs the coordinate information of each vertex of the rotated inside-outside determination polygon and the coordinates of the determination object after rotation as rotated coordinate information. The determination device uses the pre-processed information to determine whether the coordinates to be determined exist inside or outside the inside-outside determination polygon.

3. The determination system according to claim 2, wherein: The determination system further comprises a second pre-processing device, which performs pre-processing of the determination process. The second pre-processing device comprises: a segmentation unit that obtains coordinate information of each vertex of the inside-outside determination polygon as a pre-processing step and segments the inside-outside determination polygon into a plurality of polygons; as well as The second output unit outputs, as pre-processing, coordinate information of each vertex of each divided polygon for inside / outside determination as divided polygon information.

4. A pretreatment method performed by a pretreatment device, characterized in that: The pretreatment method includes the following steps: As a pre-processing for a determination process, coordinate information of a coordinate to be determined and coordinate information of each vertex of an inside-outside determination polygon are obtained, and the coordinate to be determined and the inside-outside determination polygon are rotated so as to define a minimum bounding rectangle having an area reduced compared to the minimum bounding rectangle before the rotation, wherein the determination process is to determine whether the coordinate to be determined exists inside or outside the inside-outside determination polygon, the polygon having an elongated shape; and The coordinate information of each vertex of the rotated inside-outside determination polygon and the coordinates of the determination object after rotation are output as rotated coordinate information to the device performing the determination process.

5. A recording medium storing a preprocessing program for causing a computer to execute the following steps: As a pre-processing for the determination process, coordinate information of the coordinates of the determination object and coordinate information of each vertex of the inside-outside determination polygon are obtained, and the coordinates of the determination object and the inside-outside determination polygon are rotated so as to set a minimum bounding rectangle whose area is reduced compared to the minimum bounding rectangle before the rotation, wherein: The determination process is to determine whether the coordinates to be determined are inside or outside the inside-outside determination polygon, the polygon having an elongated shape; as well as The coordinate information of each vertex of the rotated inside-outside determination polygon and the coordinates of the determination object after rotation are output as rotated coordinate information to the device performing the determination process.