A method, device and storage medium for multimodal matching of real-scene three-dimensional linear entities

Through topological inspection and data dimensionality reduction, cosine similarity calculation and feature matching are used to solve the problem of low matching efficiency of line and surface primitives, realize fast matching and unified encoding of line and surface primitives, and improve the editing of geographical data. efficiency.

CN118247533BActive Publication Date: 2024-08-23湖南省第一测绘院
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410666622.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-28
Publication Date
2024-08-23
Estimated Expiration
2044-05-28

AI Technical Summary

Technical Problem

During the materialization transformation of existing technologies, the line and surface modal data of linear entities are disconnected at intersections, ramps, culverts, viaducts, bridges, etc., resulting in the graphics elements of the same entity requiring a lot of manual intervention for matching and attribute hooking. , and the calculation is complex, making it difficult to achieve fast matching.

Method used

Through topology inspection and data dimensionality reduction, cosine similarity calculation and feature matching are used to achieve rapid matching and unified coding of line and surface primitives, reducing manual intervention and improving matching efficiency.

Benefits of technology

It realizes fast matching and attribute hooking of two modes of the same entity, improves the editing efficiency and unified coding capabilities of geographical data, and is suitable for geographical data mining and resource management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118247533B
    Figure CN118247533B
Patent Text Reader

Abstract

The present invention discloses a method for multimodal matching of real-life three-dimensional linear entities, comprising the following steps: data rough matching: reading vector data from different sources, and searching for line and surface primitives with an intersecting relationship from the vector data; data dimension reduction: reading the coordinates of the line and surface primitives with an intersecting relationship, using the read coordinates to respectively construct matrices, calculating the eigenvalues ​​and corresponding eigenvectors of the matrices, and performing dimension reduction; cosine similarity calculation: extracting the eigenvector corresponding to the maximum eigenvalue after dimensionality reduction as the main direction index of the two primitives, and calculating the cosine similarity of the two direction vectors; feature matching: calculating the angle between the two direction vectors, and when the calculated angle is within the angle threshold range, it is considered to be a matched line and surface primitive. This embodiment also discloses a device and storage medium for multimodal matching of real-life three-dimensional linear entities. Compared with the prior art, the present invention can realize fast matching of two modes of the same entity, unified coding, and attribute attachment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of geographic information systems of basic surveying and mapping systems, and in particular to a method, device and storage medium for multi-modal matching of real-scene three-dimensional linear entities. Background Art

[0002] The geometric primitives of linear entities such as water systems and roads exist in both line and surface modes. They play an important role in different modes in urban management, ecological civilization construction and other work, and are the focus of the conversion of geographic entity stock data. However, in order to ensure the synchronous update of stock data during the physical transformation, the connectivity of geographic entity primitives adopts the standard requirements of basic surveying and mapping, resulting in the line and surface modal data of linear entities such as roads and water systems often being disconnected at intersections, ramps, culverts, viaducts, bridges, and connected intersections as required. The primitives of the same entity are stored as sequences of different lengths according to different modes. During the physical transformation, primitive editing and attribute attachment require a lot of manual intervention. Therefore, it is very important to study the matching technology of different modes of linear entity primitives in stock data.

[0003] At present, the research on primitive matching is mainly focused on the same-mode matching of multi-source data. According to the primitive mode, it can be divided into point primitive matching, line primitive matching and surface primitive matching. Point primitive matching mostly uses the distance method, but it is greatly affected by the data position accuracy; line and surface primitive matching mostly uses the geometric feature method, including distance, shape, angle, direction, topology, etc. as matching features, which has the problem of complex calculation process and large amount of calculation, and is difficult to apply directly in the production environment. At present, there are relatively few studies on matching between different modes of the same entity, and it is still a relatively new proposition.

[0004] When studying the technical standards related to physical transformation, it was found that the existing methods for physical transformation of linear elements have the following shortcomings:

[0005] 1. The same linear entity line and surface mode are cut into multiple segments according to usage requirements, and the line and surface mode cutting points are different, and the connectivity is different. The operation process is mainly manual intervention, and the operation efficiency is low.

[0006] 2. The line and surface modal geometry of linear entities not only have topological relationships themselves, but also have complex topological relationships with related elements, making it difficult to match them directly. There are intersections of unequal lengths between the line and surface modes of the entity, and the results of matching based on the length of the intersection lines are greatly affected by the threshold.

[0007] In view of the above problems, a method, device and storage medium for multi-modal matching of real-scene three-dimensional linear entities are proposed. Summary of the invention

[0008] The purpose of the present invention is to provide a method, device and storage medium for multi-modal matching of real-scene three-dimensional linear entities, which can realize fast matching of two modes, unified coding and attribute attachment of the same entity.

[0009] The above technical objectives of the present invention are achieved through the following technical solutions:

[0010] A method for multimodal matching of real-scene three-dimensional linear entities comprises the following steps:

[0011] Data rough matching: read vector data from different sources, and use topology check to find line and surface primitives with intersecting relationships from the vector data;

[0012] Data dimensionality reduction: read the coordinates of intersecting line and surface primitives, use the read coordinates to construct n-row and 2-column matrices consisting of x-coordinates and y-coordinates, calculate the eigenvalues ​​and corresponding eigenvectors of the two matrices, and perform dimensionality reduction. The two matrices refer to the matrix consisting of surface coordinates and the matrix consisting of line coordinates, n represents the number of coordinates, and the columns represent the x and y values ​​of the coordinates.

[0013] Cosine similarity calculation: extract the eigenvector corresponding to the maximum eigenvalue after dimensionality reduction as the main direction index of the two primitives, and calculate the cosine similarity of the two direction vectors;

[0014] Feature matching: Use cosine similarity to calculate the angle between two direction vectors. When the calculated angle is within the angle threshold, it is considered to be a matched line and surface primitive, and the relevant information is recorded. Otherwise, it is eliminated.

[0015] In a preferred embodiment, the data rough matching process further includes: reading the classification code attributes of the line and surface graphic elements having an intersection relationship, and eliminating the pairs of objects that are not of the same type.

[0016] In a preferred embodiment, the angle between the two direction vectors calculated using cosine similarity is converted to an acute angle within a range of 0-90 degrees, and the angle threshold is plus or minus 13-17 degrees.

[0017] In a preferred embodiment, the angle threshold is plus or minus 15 degrees.

[0018] In a preferred embodiment, when reading the coordinates of line-surface primitives having an intersecting relationship, the surface primitive reads all the coordinates, and the line primitive only reads the coordinates of the portion intersecting within the surface.

[0019] In a preferred embodiment, the specific process of searching for line-surface primitives with an intersecting relationship includes: reading a single surface primitive from a surface layer, reading the line elements in all centerline layers in the data one by one in a traversal manner, calculating whether two primitives have an intersecting relationship, and when two primitives have an intersecting relationship, recording the primitive pairing information and calculating the intersection line coordinates; when there are other relationships besides intersection, the pairing is considered to have failed and is not recorded.

[0020] In a preferred embodiment, the specific process of data dimensionality reduction includes:

[0021] Data standardization: Arrange and sort the coordinate values ​​of the geometric primitives to obtain a two-dimensional vector of size N×2, where N represents the number of nodes in the coordinate data, and 2 represents the coordinate values ​​of the two dimensions of X and Y. The X and Y coordinates are regarded as the two characteristic dimensions of the data. At the same time, the matrix is ​​standardized by column. The processing method is to traverse the data of each column and extract the maximum and minimum values ​​from them. For each data, the maximum and minimum values ​​are used to calculate its standardized value. The calculation formula is as follows:

[0022] ,

[0023] Covariance calculation: For the normalized matrix constructed in data standardization, each column represents a feature, and the covariance matrix calculation formula is as follows:

[0024] ,

[0025] Among them, X and Y represent two features, and x and y represent the values ​​corresponding to the two features. and It represents the mean value corresponding to the two columns of features;

[0026] Eigenvector extraction: Use the calculated covariance matrix to calculate its eigenvalue and eigenvector sequence, and take the largest eigenvalue The corresponding eigenvector As the feature vector of the graph, data dimensionality reduction is completed.

[0027] In a preferred embodiment, the cosine similarity calculation formula of two feature vectors is:

[0028] ,

[0029] Among them, the eigenvectors corresponding to the largest eigenvalues ​​of the two primitives after dimensionality reduction are a=( , ) and b = ( , ).

[0030] A device for multi-modal matching of real-scene three-dimensional linear entities, comprising:

[0031] Data rough matching unit: used to read vector data from different sources and use topology check to find line and surface primitives with intersecting relationships from the vector data;

[0032] Data dimension reduction unit: used to read the coordinates of the line and surface primitives with an intersecting relationship, use the read coordinates to construct n-row and 2-column matrices composed of x-coordinates and y-coordinates, calculate the eigenvalues ​​and corresponding eigenvectors of the two matrices, and perform dimension reduction, where the two matrices refer to the matrix composed of surface coordinates and the matrix composed of line coordinates, n represents the number of coordinates, and the columns represent the x and y values ​​of the coordinates;

[0033] The specific process of data dimensionality reduction includes:

[0034] Data standardization: Arrange and sort the coordinate values ​​of the geometric primitives to obtain a two-dimensional vector of size N*2, where N represents the number of nodes in the coordinate data, and 2 represents the coordinate values ​​of the two dimensions of X and Y. The X and Y coordinates are regarded as the two characteristic dimensions of the data. At the same time, the matrix is ​​standardized by column. The processing method is to traverse the data of each column and extract the maximum and minimum values ​​from them. For each data, the maximum and minimum values ​​are used to calculate its standardized value. The calculation formula is as follows:

[0035] ,

[0036] Covariance calculation: For the normalized matrix constructed in data standardization, each column represents a feature, and the covariance matrix calculation formula is as follows:

[0037] ,

[0038] Among them, X and Y represent two features, and x and y represent the values ​​corresponding to the two features. and It represents the mean value corresponding to the two columns of features;

[0039] Eigenvector extraction: Use the calculated covariance matrix to calculate its eigenvalue and eigenvector sequence, and take the largest eigenvalue The corresponding eigenvector As the feature vector of the graph, data dimension reduction is completed;

[0040] Cosine similarity calculation unit: used to extract the eigenvector corresponding to the maximum eigenvalue after dimensionality reduction as the main direction index of the two primitives, and calculate the cosine similarity of the two direction vectors;

[0041] Feature matching unit: used to calculate the angle between two direction vectors using cosine similarity. When the calculated angle is within the angle threshold range, it is considered to be a matched line and surface primitive and the relevant information is recorded. Otherwise, it is eliminated.

[0042] A storage medium stores a computer program, which, when executed by a processor, implements the steps of the method for multimodal matching of real-scene three-dimensional linear entities.

[0043] Compared with the prior art, the present invention takes the center line and surface modes of linear entities as research objects, explores a set of linear entity multi-modal fast matching technology, and realizes fast matching, unified coding and attribute attachment of two modes of the same entity. It can realize fast matching of two geometric modes of a large number of geographical entities in artificial or natural states. After matching, the same geographical entity elements in national, provincial and city-level real-life three-dimensional data can be uniformly coded, and the natural geographical attributes, social attributes and management attributes of different modes can be uniformly attached and managed for geographical data mining, natural resource management and various social industries. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 The present invention relates to an overall technical roadmap of a method for multi-modal matching of real-scene three-dimensional current entities.

[0045] Figure 2 It is a schematic diagram of the topology method in the first embodiment of the present invention.

[0046] Figure 3 It is an example of the original coordinate matrix in the first embodiment of the present invention.

[0047] Figure 4 It is the feature after data dimensionality reduction in the first embodiment of the present invention.

[0048] Figure 5 This is a comparison diagram of the maximum characteristic directions in the first embodiment of the present invention.

[0049] Figure 6 It is a schematic diagram of characteristic angles in Embodiment 1 of the present invention. DETAILED DESCRIPTION

[0050] The present invention is further described in detail below in conjunction with the accompanying drawings.

[0051] This specific embodiment is merely an explanation of the present invention and is not a limitation of the present invention. After reading this specification, those skilled in the art may make non-creative modifications to the present embodiment as needed. However, as long as they are within the scope of the claims of the present invention, they are protected by the patent law. Embodiment 1

[0052] The overall technical roadmap of a method for multi-modal matching of real-scene 3D current entity in this embodiment is as follows: Figure 1 As shown, the details are as follows:

[0053] A method for multimodal matching of real-scene three-dimensional linear entities comprises the following steps:

[0054] Rough data matching: read vector data from different sources, and use topology checking to find line and surface primitives with intersecting relationships from the vector data. Topological relationship screening is to perform preliminary screening from the primitives by calculating the correlation between two primitives, such as intersection, adjacency and connection. This method uses the vector surface and centerline layers of all linear entities such as roads and water systems in the same set of data.

[0055] The data is roughly matched because the amount of data is too large. It is stored in units of ten thousand in the database. Rough matching can reduce the time required for subsequent operations.

[0056] Data dimensionality reduction: read the coordinates of intersecting line and surface primitives, use the read coordinates to construct n-row and 2-column matrices consisting of x-coordinates and y-coordinates, calculate the eigenvalues ​​and corresponding eigenvectors of the two matrices, and perform dimensionality reduction, where the two matrices refer to the matrix composed of surface coordinates and the matrix composed of line coordinates, n represents the number of coordinates, and the columns represent the x and y values ​​of the coordinates. The main purpose of data dimensionality reduction is to obtain the features of different primitives of linear elements and to compare the features of matching primitive pairs. Considering that the amount of node data in linear elements is large and the coordinate values ​​are large, it is advisable to use matrix features for dimensionality reduction to obtain fewer effective features for analysis.

[0057] The essence of data dimensionality reduction is to transform the feature space, that is, to convert the coordinate values ​​of the data into the required features. Here, because the directional features are used as similarity evaluation indicators, data dimensionality reduction is performed and a large number of coordinate values ​​are converted into unified directional features.

[0058] Cosine similarity calculation: Extract the eigenvector corresponding to the maximum eigenvalue after dimensionality reduction as the main direction index of the two primitives, and calculate the cosine similarity of these two direction vectors. Cosine similarity is used to measure the similarity of features between primitives after dimensionality reduction.

[0059] Feature matching: To determine whether line and surface primitives represent the same entity, it is necessary to perform angle inverse calculation on the cosine similarity and set an angle threshold. The cosine similarity is used to calculate the angle between two direction vectors. When the calculated angle is within the angle threshold, it is considered to be a matched line and surface primitive and the relevant information is recorded. Otherwise, it is eliminated.

[0060] The cosine similarity value is not intuitive as an evaluation indicator and cannot directly show whether the directions of two geometric elements are the same. Therefore, it is converted into the angle of the direction vector, which is more intuitive and clear. At the same time, a threshold is given here to measure whether the directions are consistent to complete the final matching screening.

[0061] Furthermore, the data rough matching process also includes: reading the classification code attributes of the line and surface primitives with an intersecting relationship, and eliminating the pairs of objects that are not of the same type. The classification code screening is performed through the classification code attribute value of the primitive itself. When the primitives represent the same feature, their classification codes are the same, otherwise the classification codes are different. The data rough matching can be automated by topological checking, and no manual intervention is required. This attribute is used to perform secondary screening on the primitive pairs that are initially matched in the topological relationship screening, and primitive pairs with different classification codes are eliminated, and primitive pairs with the same classification code are retained to proceed to the next step.

[0062] Furthermore, the angle between the two direction vectors calculated using the cosine similarity is converted to an acute angle within the range of 0-90 degrees, and the angle threshold is plus or minus 13-17 degrees, preferably plus or minus 15 degrees. The best effect is achieved when the angle threshold is 15 degrees. The calculated cosine similarity is calculated as an angle (acute angle) through the inverse cosine function and its absolute value is taken. When the absolute value is within 15 degrees, it indicates a successful match, and the relevant information is recorded, otherwise the match fails.

[0063] Furthermore, when reading the coordinates of line-surface primitives that have an intersecting relationship, the surface primitive reads all the coordinates, and the line primitive only reads the coordinates of the portion that intersects within the surface.

[0064] Furthermore, the specific process of searching for line and surface primitives with an intersecting relationship includes: reading a single surface primitive from the surface layer, reading the line features in all centerline layers in the data one by one in a traversal manner, calculating whether two primitives have an intersecting relationship, and when two primitives have an intersecting relationship, recording the primitive pairing information and calculating the intersection line coordinates; when there are other relationships besides intersection, the pairing is considered to have failed and is not recorded.

[0065] Furthermore, the specific process of data dimensionality reduction includes:

[0066] Data standardization: Arrange and sort the coordinate values ​​of the geometric primitives to obtain a two-dimensional vector of size N×2, where N represents the number of nodes in the coordinate data, and 2 represents the coordinate values ​​of the two dimensions of X and Y. The X and Y coordinates are regarded as the two characteristic dimensions of the data. At the same time, the matrix is ​​standardized by column. The processing method is to traverse the data of each column and extract the maximum and minimum values ​​from them. For each data, the maximum and minimum values ​​are used to calculate its standardized value. The calculation formula is as follows:

[0067] ,

[0068] Covariance calculation: For the normalized matrix constructed in data standardization, each column represents a feature, and the covariance matrix calculation formula is as follows:

[0069] ,

[0070] Among them, X and Y represent two features, and x and y represent the values ​​corresponding to the two features. and It represents the mean value of two columns of features.

[0071] Covariance represents the overall error of multiple variables and is used to measure the correlation between variables.

[0072] Eigenvector extraction: Use the calculated covariance matrix to calculate its eigenvalue and eigenvector sequence, and take the largest eigenvalue The corresponding eigenvector As the feature vector of the graph, data dimensionality reduction is completed.

[0073] Furthermore, the cosine similarity calculation formula of two feature vectors is:

[0074] ,

[0075] Among them, the eigenvectors corresponding to the largest eigenvalues ​​of the two primitives after dimensionality reduction are a=( , ) and b = ( , ), use the above cosine similarity calculation formula to calculate the cosine similarity of two features.

[0076] The following is a further explanation with reference to specific examples:

[0077] Figure 2 In the figure, several preliminary screening topological methods are shown, including partial intersection, inclusion, and crossing, which are uniformly identified as intersection. Among them, a represents the normal line-surface primitive inclusion relationship under normal circumstances, b represents the approximately vertical intersection relationship of line-surface primitives, c represents the normal line-surface primitive unilateral penetration relationship under normal circumstances, d represents the normal line-surface primitive bilateral penetration relationship under normal circumstances, e represents the one-to-many intersection relationship of line-surface primitives under normal circumstances, including penetration and intersection, f represents the complex line-surface primitive unilateral penetration relationship, g represents the complex line-surface image inclusion relationship, and h represents the complex line-surface primitive intersection relationship. It can be seen from the figure that there are one-to-many and many-to-one relationships between surface-line primitives. The above topological relationships are used to first screen the line-surface primitives with intersection relationships, and then the classification code values ​​in their attribute tables are read for secondary screening. Figure 2 The two intersecting lines on one side of b have the same classification code and can be preliminarily matched. Figure 2 The two lines intersecting on one side of h have different classification codes and are considered to correspond to different entities, so no pairing record is made.

[0078] In order to further improve the accuracy of pairing, the following step may be added: before performing the topology check, mask raster data is generated according to the geographic vector data.

[0079] Figure 3 It represents the matrix constructed by the original coordinate records of line primitives and surface primitives, where the x column represents the x coordinate and the y column represents the y coordinate. These two columns represent two features of the graph respectively. After reducing the dimension using the coordinate matrix, the eigenvector corresponding to the eigenvalue is extracted as follows Figure 4 , where a represents the surface element and its primary and secondary eigenvector directions, where y represents the primary eigenvector direction, and x represents the secondary eigenvector direction. b represents the line element and its primary and secondary eigenvector directions, where y represents the primary eigenvector direction, and x represents the secondary eigenvector direction. The x-directed arrow in the figure represents the eigenvector corresponding to the maximum eigenvalue, and the y-directed arrow represents the eigenvector corresponding to the minimum eigenvalue. It can be seen from the figure that the eigenvector corresponding to the maximum eigenvalue represents the direction of the figure and can be defined as the primary eigenvector. Figure 5 The main eigenvectors constructed by data dimensionality reduction after the surface and line elements are disassembled separately are shown in the figure, where a represents the direction of the main eigenvectors and the size of the vector angle when the line and surface elements are approximately perpendicular and intersecting, and b represents the direction of the main eigenvectors and the size of the vector angle when the line and surface elements are intersecting and penetrating. In a, the x line and the y plane are obviously not the same entity, so the main eigenvector direction is different and the vector angle is large; in the second feature map, when the two elements are obviously the same element, the main eigenvector direction is different and the eigenvector angle is small. The eigenvector of the figure after dimensionality reduction can be used to determine the direction of the figure, thereby determining whether it is the same element.

[0080] Referring to the cosine similarity calculation process above, the cosine similarity is calculated. The main purpose is to calculate the feature similarity through the feature vector, so as to give a quantitative judgment standard.

[0081] The angle of the feature vector is converted by cosine similarity, such as Figure 6 As shown, Figure 6 In the figure, a represents the normal line-surface primitive inclusion relationship and the size of the main eigenvector angle under normal circumstances, b represents the approximately perpendicular intersection relationship of line-surface primitives and the size of the main eigenvector angle under normal circumstances, c represents the normal single-side penetration relationship of line-surface primitives and the size of the main eigenvector angle under normal circumstances, d represents the complex line-surface image inclusion relationship and the size of the main eigenvector angle under normal circumstances, e represents the one-to-many intersection relationship (including penetration and intersection) of line-surface primitives under normal circumstances and the size of the main eigenvector angle under normal circumstances, f represents the complex line-surface primitive intersection relationship and the size of the main eigenvector angle under normal circumstances, and Figure 6As can be seen from the figure, after the cosine similarity is converted into the direction angle, the angle can be used to determine whether the two primitives have the same direction, thereby determining whether to pair them. Figure 6 When filtering the data, two intersecting relationships can be eliminated, which is consistent with the visual situation. Embodiment 2

[0082] A device for multi-modal matching of real-scene three-dimensional linear entities, comprising:

[0083] Data rough matching unit: used to read vector data from different sources and use topology check to find line and surface primitives with intersecting relationships from the vector data;

[0084] Data dimension reduction unit: used to read the coordinates of the line and surface primitives with an intersecting relationship, use the read coordinates to construct n-row and 2-column matrices composed of x-coordinates and y-coordinates, calculate the eigenvalues ​​and corresponding eigenvectors of the two matrices, and perform dimension reduction, where the two matrices refer to the matrix composed of surface coordinates and the matrix composed of line coordinates, n represents the number of coordinates, and the columns represent the x and y values ​​of the coordinates;

[0085] The specific process of data dimensionality reduction includes:

[0086] Data standardization: Arrange and sort the coordinate values ​​of the geometric primitives to obtain a two-dimensional vector of size N*2, where N represents the number of nodes in the coordinate data, and 2 represents the coordinate values ​​of the two dimensions of X and Y. The X and Y coordinates are regarded as the two characteristic dimensions of the data. At the same time, the matrix is ​​standardized by column. The processing method is to traverse the data of each column and extract the maximum and minimum values ​​from them. For each data, the maximum and minimum values ​​are used to calculate its standardized value. The calculation formula is as follows:

[0087] ,

[0088] Covariance calculation: For the normalized matrix constructed in data standardization, each column represents a feature, and the covariance matrix calculation formula is as follows:

[0089] ,

[0090] Among them, X and Y represent two features, and x and y represent the values ​​corresponding to the two features. and It represents the mean value corresponding to the two columns of features;

[0091] Eigenvector extraction: Use the calculated covariance matrix to calculate its eigenvalue and eigenvector sequence, and take the largest eigenvalue The corresponding eigenvector As the feature vector of the graph, data dimension reduction is completed;

[0092] Cosine similarity calculation unit: used to extract the eigenvector corresponding to the maximum eigenvalue after dimensionality reduction as the main direction index of the two primitives, and calculate the cosine similarity of the two direction vectors;

[0093] Feature matching unit: used to calculate the angle between two direction vectors using cosine similarity and convert it to an acute angle within the range of 0-90 degrees. The angle threshold is set to plus or minus 15 degrees. When the calculated angle is within the angle threshold, it is considered to be a matched line and surface primitive and the relevant information is recorded. Otherwise, it is eliminated. Embodiment 3

[0094] A storage medium stores a computer program, which, when executed by a processor, implements the steps of the method for multimodal matching of real-scene three-dimensional linear entities described in Example 1.

[0095] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "include..." or "comprise..." do not exclude the existence of other elements in the process, method, article or terminal device including the elements. In addition, in this article, "greater than", "less than", "exceed" and the like are understood to exclude the number itself; "above", "below", "within" and the like are understood to include the number itself.

[0096] The above description of the embodiments is to facilitate the understanding and use of the present invention by those skilled in the art. It is obvious that those skilled in the art can easily make various modifications to the embodiments and apply the general principles described herein to other embodiments without creative work. Therefore, the present invention is not limited to the above embodiments. Improvements and modifications made by those skilled in the art based on the disclosure of the present invention without departing from the scope of the present invention should be within the protection scope of the present invention.

Claims

1. A method for multi-modal matching of real-scene three-dimensional linear entities. It is characterized in that The steps include: Data rough matching: read vector data from different sources, and use topology check to find line and surface primitives with intersecting relationships from the vector data; Data dimensionality reduction: read the coordinates of intersecting line and surface primitives, use the read coordinates to construct n-row and 2-column matrices consisting of x-coordinates and y-coordinates, calculate the eigenvalues ​​and corresponding eigenvectors of the two matrices, and perform dimensionality reduction. The two matrices refer to the matrix consisting of surface coordinates and the matrix consisting of line coordinates, n represents the number of coordinates, and the columns represent the x and y values ​​of the coordinates. The specific process of data dimensionality reduction includes: Data standardization: Arrange and sort the coordinate values ​​of the geometric primitives to obtain a two-dimensional vector of size N*2, where N represents the number of nodes in the coordinate data, and 2 represents the coordinate values ​​of the two dimensions of X and Y. The X and Y coordinates are regarded as the two characteristic dimensions of the data. At the same time, the matrix is ​​standardized by column. The processing method is to traverse the data of each column and extract the maximum and minimum values ​​from them. For each data, the maximum and minimum values ​​are used to calculate its standardized value. The calculation formula is as follows: , Covariance calculation: For the normalized matrix constructed in data standardization, each column represents a feature, and the covariance matrix calculation formula is as follows: , Among them, X and Y represent two features, and x and y represent the values ​​corresponding to the two features. and Represents the mean value corresponding to the two columns of features; Eigenvector extraction: Use the calculated covariance matrix to calculate its eigenvalue and eigenvector sequence, and take the largest eigenvalue The corresponding eigenvector As the feature vector of the graph, data dimension reduction is completed; Cosine similarity calculation: extract the eigenvector corresponding to the maximum eigenvalue after dimensionality reduction as the main direction index of the two primitives, and calculate the cosine similarity of the two direction vectors; Feature matching: Use cosine similarity to calculate the angle between two direction vectors. When the calculated angle is within the angle threshold, it is considered to be a matched line and surface primitive, and the relevant information is recorded. Otherwise, it is eliminated.

2. According to the method for multi-modal matching of real-scene three-dimensional linear entities as described in claim 1, It is characterized in that The data rough matching process also includes: reading the classification code attributes of the line and surface graphic elements with an intersecting relationship, and eliminating the pairs of objects that are not of the same type.

3. According to the method for multi-modal matching of real-scene three-dimensional linear entities as described in claim 1, It is characterized in that The angle between the two direction vectors calculated using cosine similarity is converted to an acute angle within the range of 0-90 degrees, and the angle threshold is plus or minus 13-17 degrees.

4. According to the method for multi-modal matching of real-scene three-dimensional linear entities as described in claim 3, It is characterized in that The angle threshold is plus or minus 15 degrees.

5. According to the method for multi-modal matching of real-scene three-dimensional linear entities as described in claim 1, It is characterized in that When reading the coordinates of line and surface primitives that have an intersecting relationship, the surface primitive reads all the coordinates, and the line primitive only reads the coordinates of the part that intersects within the surface.

6. According to the method for multi-modal matching of real-scene three-dimensional linear entities as described in claim 1, It is characterized in that The specific process of finding intersecting line and surface entities includes: reading a single surface entity from the surface layer, reading the line features in all centerline layers in the data one by one in a traversal manner, calculating whether there is an intersecting relationship between two entities, and when there is an intersecting relationship between the two entities, recording the entity pairing information and calculating the intersection coordinates; when there is a relationship other than intersection, the pairing is considered to have failed and is not recorded.

7. According to claim 1, a method for multi-modal matching of real-scene three-dimensional linear entities, It is characterized in that The formula for calculating the cosine similarity of two feature vectors is: , Among them, the eigenvectors corresponding to the largest eigenvalues ​​of the two primitives after dimensionality reduction are a=( , ) and b = ( , ).

8. A device for multi-modal matching of real-scene three-dimensional linear entities, It is characterized in that include: Data rough matching unit: used to read vector data from different sources and use topology check to find line and surface primitives with intersecting relationships from the vector data; Data dimension reduction unit: used to read the coordinates of line and surface primitives with an intersecting relationship, use the read coordinates to construct n-row and 2-column matrices composed of x coordinates and y coordinates, calculate the eigenvalues ​​and corresponding eigenvectors of the two matrices, and perform dimension reduction; wherein the two matrices refer to the matrix composed of surface coordinates and the matrix composed of line coordinates, n represents the number of coordinates, and the columns represent the x and y values ​​of the coordinates; The specific process of data dimensionality reduction includes: Data standardization: Arrange and sort the coordinate values ​​of the geometric primitives to obtain a two-dimensional vector of size N*2, where N represents the number of nodes in the coordinate data, and 2 represents the coordinate values ​​of the two dimensions of X and Y. The X and Y coordinates are regarded as the two characteristic dimensions of the data. At the same time, the matrix is ​​standardized by column. The processing method is to traverse the data of each column and extract the maximum and minimum values ​​from them. For each data, the maximum and minimum values ​​are used to calculate its standardized value. The calculation formula is as follows: , Covariance calculation: For the normalized matrix constructed in data standardization, each column represents a feature, and the covariance matrix calculation formula is as follows: , Among them, X and Y represent two features, and x and y represent the values ​​corresponding to the two features. and Represents the mean value corresponding to the two columns of features; Eigenvector extraction: Use the calculated covariance matrix to calculate its eigenvalue and eigenvector sequence, and take the largest eigenvalue The corresponding eigenvector As the feature vector of the graph, data dimension reduction is completed; Cosine similarity calculation unit: used to extract the eigenvector corresponding to the maximum eigenvalue after dimensionality reduction as the main direction index of the two primitives, and calculate the cosine similarity of the two direction vectors; Feature matching unit: used to calculate the angle between two direction vectors using cosine similarity. When the calculated angle is within the angle threshold range, it is considered to be a matched line and surface primitive and the relevant information is recorded. Otherwise, it is eliminated.

9. A storage medium, It is characterized in that The storage medium stores a computer program, which, when executed by a processor, implements the steps of the method for multimodal matching of real-scene three-dimensional linear entities as claimed in any one of claims 1 to 7.