Processor-implemented method, device, and storage medium
By converting the undirected graph into a lattice and using the PR-GLS algorithm, the problems of low accuracy and high complexity in undirected graph matching are solved, and more efficient image splicing and object pose estimation are achieved.
Patent Information
- Application Number
- CN201711124245.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2017-11-14
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2037-11-14
AI Technical Summary
When the existing technology handles undirected graph matching, especially when the deformation is large, contaminated by noise or external points, the matching accuracy is low and the time complexity is high, making it difficult to effectively solve the approximate optimal solution to the quadratic assignment problem.
By converting the undirected graph into a lattice, the non-metric multidimensional scaling and point set registration algorithm (PR-GLS) is used to reduce the computational complexity and improve the matching accuracy, avoiding directly solving the secondary assignment problem.
It significantly reduces the computational complexity of undirected graph matching and improves the matching accuracy. Especially in the case of large deformation or serious noise, it achieves more efficient image splicing and object pose estimation.
Smart Images

Figure CN109784353B
Abstract
Description
Technical Field
[0001] The present application relates to the field of pattern recognition and computer vision, and in particular, to a processor-implemented method, device, and storage medium. Background Art
[0002] In a graph composed of multiple points, a graph with no direction between the edges of the points is called an undirected graph. In practical applications, the undirected graph model is a widely used mathematical model that can be used to express various relationships and processes. Generally speaking, the matching of multiple undirected graphs can be used for problems such as image stitching, object position and posture estimation, etc. The efficiency and accuracy of undirected graph matching will largely affect the processing results of these problems.
[0003] In particular, in some application scenarios of image stitching, some traditional graph matching algorithms will fail. For example, Figure 1 The scene shown in , where the image is mainly a repeating texture, and Figure 2 The scene shown in , where the image lacks grayscale changes; in a scene similar to Figure 1 and Figure 2 In the application scenario, graph matching algorithms based on local features of points (such as SIFT (Scale-invariant feature transform) features) will fail. In this case, graph matching algorithms based on structural information between points must be used.
[0004] The quadratic assignment problem is a model in operations research, and the solution to this problem is an NP-hard problem. For the matching problem of undirected graphs, a main approach in the prior art is to express the problem as a quadratic assignment problem and then find an approximate solution to the problem. Specifically, the undirected graph can be regarded as a graph model G, which contains nodes V and edges E, where edge E is undirected. Points V and edges E of an undirected graph have corresponding features F and W, respectively. Matching two undirected graphs is actually matching the features of the points and edges of the two undirected graphs. The quadratic assignment problem is to optimize a certain objective function so as to maximize the similarity of the matching features between the points and edges of the two undirected graphs.
[0005] Since the solution to the quadratic assignment problem is an NP-hard problem, generally speaking, no algorithm can find the optimal solution of the corresponding objective function in polynomial time. In practice, existing algorithms mainly focus on approximate solutions to this problem. However, the matching accuracy obtained by these existing algorithms is relatively low and the time complexity is high. In particular, when the deformation is large, contaminated by noise or outliers, or the scale of the undirected graph model is large, the existing algorithms have difficulty in solving the approximate optimal solution to the objective function. Summary of the invention
[0006] The purpose of the present application is to solve at least one of the above technical defects by using a graph model to characterize structural information. Then, two graph models are matched to find the corresponding relationship in the two images, thereby realizing image stitching. In particular, an undirected graph can be expressed by using a dot matrix, wherein the features of the undirected graph are expressed by the features of the dot matrix. In this way, the matching problem of the undirected graph can be converted into a matching problem of the dot matrix, so that the above-mentioned quadratic assignment problem does not need to be solved, thereby reducing the complexity of calculating the matching and improving the processing accuracy.
[0007] According to one aspect of the present application, a computer-implemented method for matching undirected graphs is provided, comprising: receiving a first undirected graph and a second undirected graph; obtaining a first lattice and a second lattice corresponding to the first undirected graph and the second undirected graph, respectively; and matching the first lattice and the second lattice.
[0008] According to another aspect of the present application, a computer system for matching undirected graphs is provided, comprising: a processor; and a memory on which instructions executable by the processor are stored, and when the instructions are executed by the processor, the processor performs the following steps: receiving a first undirected graph and a second undirected graph; obtaining a first lattice and a second lattice corresponding to the first undirected graph and the second undirected graph, respectively; and matching the first lattice and the second lattice.
[0009] According to another aspect of the present application, a machine-readable storage medium is provided, on which instructions executable by the machine are stored. When the instructions are executed by the machine, the machine performs the following steps: receiving a first undirected graph and a second undirected graph; obtaining a first lattice and a second lattice corresponding to the first undirected graph and the second undirected graph, respectively; and matching the first lattice and the second lattice.
[0010] The method, device and storage medium for matching undirected graphs proposed in the present application can effectively solve the problem of matching undirected graphs, reduce the complexity of processing and improve the accuracy of matching. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The above and other aspects, features and advantages of certain embodiments of the present disclosure will become more apparent from the following description in conjunction with the accompanying drawings, in which:
[0012] Figure 1 is a schematic diagram showing an image with repeated textures according to an actual application scenario;
[0013] Figure 2 is a schematic diagram showing an image lacking grayscale changes according to an actual application scenario;
[0014] Figure 3 is a schematic diagram of a framework of an algorithm for performing undirected graph matching according to some embodiments of the present application;
[0015] Figure 4 is a schematic diagram of a scenario in which undirected graph matching is applied according to some embodiments of the present application;
[0016] Figure 5 is a schematic diagram of a scenario in which undirected graph matching is applied according to some embodiments of the present application;
[0017] Figure 6 A graph showing the matching results of existing graph matching algorithms for the common public datasets CMU house and CMU hotel; and
[0018] Figure 7 A bar chart showing the matching results of existing graph matching algorithms for the common public dataset Pascal 2007. DETAILED DESCRIPTION
[0019] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be interpreted as limiting the present invention.
[0020] References throughout this specification to "one embodiment," "this embodiment," and similar phrases mean that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one of the one or more embodiments. Thus, the appearances of these phrases in various places throughout the specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0021] Those skilled in the art will appreciate that, unless expressly stated otherwise, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present invention refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. In addition, "connected" or "coupled" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.
[0022] Although ordinal numbers such as "first," "second," etc. will be used to describe various components, these components are not limited herein. These terms are only used to distinguish one component from another. For example, a first component may be referred to as a second component, and similarly, a second component may also be referred to as a first component without departing from the teachings of the inventive concept.
[0023] Figure 3 The overall framework of the algorithm proposed in this application is shown in FIG. It should be noted that this figure is only an example and is not intended to limit the scope of protection claimed in the present invention.
[0024] like Figure 3 As shown, in the algorithm flow, there are the following steps:
[0025] Firstly, the template undirected graph and the scene undirected graph are expressed as point lattices derived from the corresponding undirected graphs through non-metric multi-dimensional scaling;
[0026] Subsequently, the obtained dot matrix is rotated or inverted to obtain a plurality of template dot matrices and scene dot matrices, and local features of the obtained template dot matrices and scene dot matrices are extracted respectively;
[0027] Based on the extracted local features and the global structure of the template dot matrix and the scene dot matrix, the dot matrix derived from the template undirected graph and the scene undirected graph is matched by a point matching algorithm that maintains the global and local structures. Since multiple template dot matrices are generated by multiple rotations or flips, multiple matching is required and multiple matching results are obtained;
[0028] Among the multiple matching results obtained, the best matching result is selected as the final result.
[0029] In the entire algorithm process, it is worth noting that when matching different template lattices and scene lattices, parallel computing can be used to greatly shorten the calculation time.
[0030] The algorithm proposed in this application will be described in detail below.
[0031] Here, it is assumed that the template-type undirected graph (abbreviated as template graph) is composed of G t = {V t ,E t ,F 1 t ,W t}, where the set of nodes is The set of edges is For each node Or side There is a corresponding feature f i t ∈F 1t or For the algorithm of this application, the features here can be defined in a variety of ways. For example, for a point, its feature can be, for example, a shape context; for an edge, its feature can be, for example, the length of the edge. Similar to the above, the undirected graph that needs to match the above template-type undirected graph is a scene-type undirected graph (abbreviated as scene graph) G s = {V s , E s , F s , W s}, there are N nodes in the scenario-type undirected graph. Here, it is assumed that the number of nodes M in the template-type undirected graph is less than the number of nodes N in the scenario-type undirected graph, that is, M≤N. When matching the scenario-type undirected graph with the template-type undirected graph, as a common processing method, NM virtual points are added to the node set G of the template-type undirected graph. t In this way, the number of nodes of the template-type undirected graph and the scene-type undirected graph is kept consistent, so as to improve the robustness to external points when performing the undirected graph matching algorithm.
[0032] Here, the so-called external point in the scene graph model refers to a point that has no corresponding point in the template graph. Such a point will make the graph matching algorithm unstable and reduce the matching accuracy. Since not all nodes have corresponding edges for the original template-type undirected graph and the scene-type undirected graph, when adding the NM virtual points to the node set G of the template-type undirected graph, t When adding the edges corresponding to these virtual points, there is no need to consider whether to add them.
[0033] The matching algorithm of undirected graph aims to find the node set G of the template undirected graph. t and the node set G of the scenario-type undirected graph s The correspondence between the two points is the same, and the dissimilarity between the matching features is the lowest. Generally speaking, the points obtained by the matching algorithm of the undirected graph are one-to-one corresponding; after matching, the matching algorithm of the undirected graph is optimized to the following quadratic assignment problem:
[0034]
[0035] st1 T X=1 T ,X1=1,X∈{0,1} N×N , (1)
[0036] Where x is the vector obtained by concatenating the column vectors of matrix X. ij =1 means that the i-th node in the template graph matches the j-th node in the scene graph. 1 means a column vector with all elements being 1. K ij;klis the element in the ((i-1)N+j)th row and ((k-1)N+l)th column of the matrix K, which expresses the feature and The degree of dissimilarity between them. Usually, K ij;kl is a value between 0 and 1. Depending on the features taken, K ij;kl The possible values also differ in form. For example, K ij;kl Can be a discrete value, such as 0 or 1, or K ij;kl The possible values are a continuous space between 0 and 1. ij;ij is the characteristic of node i and the characteristics of node j The degree of dissimilarity between them. st means that the listed problems need to meet the conditions listed afterwards.
[0037] At present, solving problem (1) is still an NP-hard problem, because in general, the objective function of the problem cannot be solved efficiently, and the constraints are combinatorial. In order to avoid solving problem (1) directly, a method is proposed here to deal with the undirected graph matching problem from a new perspective.
[0038] Here, the template graph G t For example, describe the G t Method to convert to a lattice (GIPS) derived from the template graph.
[0039] With G t The corresponding GIPS is defined as in, is a point set. For every point in the lattice It corresponds to a node in the template graph At the same time, the node Features With point Related, here, and Corresponding.
[0040] The characteristics of the edges in the lattice are expressed as points and The distance between. is calculated by non-metric multidimensional scaling (NMDS) about graph G t A coordinate expression of . NMDS is particularly suitable for undirected graphs because it has weak assumptions about the data and is therefore applicable to a wider range of situations. In addition, NMDS allows the use of any method to measure the dissimilarity between nodes.
[0041] Specifically, NMDS first randomly generates a point matrix Then the dot matrix is iterated. Each iteration operation includes the following three steps:
[0042] First, calculate any two points in the lattice and The distance between The point and Respectively with the nodes in the undirected graph and Correspondingly; then, a monotonic function r(·) without parameters is used to transform the two nodes of the template graph and The characteristics of the edges between To the point in the lattice corresponding to the two nodes and The distance between Here, the function r(·) is obtained by making Minimization is obtained;
[0043] In the third step, update the
[0044] coordinate To minimize Kruskal's Stress1 as shown in formula (2),
[0045]
[0046] If the Kruskal stress Stress1 has converged, the NMDS output matrix Otherwise, the above iterative operation is performed again on the obtained new point matrix.
[0047] After Kruskal stress Stress1 converges, the edge characteristics of the template graph are The order relationship between them and the distance between the points in the lattice The sequential relationship between them is maximized. Through this processing method, the structural information of the undirected graph is expressed as a dot matrix structure.
[0048] As a result, the dot matrix Expressed in Figure G t The characteristics of the nodes and edges. Similarly, the lattice I s To represent the scene graph G s .
[0049] Matching two dot matrix GIPS
[0050] Given respectively and template graph G t and scene graph G sThe corresponding two dot matrix GIPS, where the template graph G t Corresponding template lattice With the scene graph G s Corresponding scene dot matrix The two point arrays are matched by the image registration algorithm PR-GLS (Point set Registration by preserving Global and Local Structures). The PR-GLS algorithm is particularly suitable for matching multiple point arrays GIPS because it makes full use of the point set The structural information and local features of V.
[0051] Global structure of the lattice
[0052] Global structure of the template lattice It is represented by a Gaussian mixture model. In this Gaussian mixture model, the center of each Gaussian component is in is a deformation. Based on this, the scene matrix is considered to be sampled from this Gaussian mixture model.
[0053] Specifically, it is assumed that all Gaussian components in this Gaussian mixture model have equal and isotropic covariance σ 2 I, then the probability of obtaining a certain scene dot matrix through sampling is:
[0054]
[0055] Among them, the collection are all the parameters to be optimized, and N is the total number of points in the template lattice. Here, γ is the percentage of outliers. Assume that the distribution of outliers is uniform, and the probability density function is ||·|| represents the Frobenius norm of the matrix. Here, formula (3) describes what we get from the existing model. The probability of , where the probability described by the first term on the right side is The probability that the point in is an outlier, and the second term on the right side is sampled from the Gaussian mixture model The probability of mn is the probability of membership in a Gaussian component, which satisfies
[0056] Local features of the lattice
[0057] The local features determine the membership probability π in formula (3) mn .
[0058] Specifically, assume that the matrix A is two lattices and The dissimilarity matrix of the local features of mn It is a feature and Based on the matrix A, we can solve an assignment problem to assign the point matrix and Match,
[0059]
[0060]
[0061] in Represents a point in the template lattice With the points in the scene matrix The assignment problem can be solved by the Hungarian algorithm in a time complexity of O(N 3 ) to obtain the global optimal solution.
[0062] Given a match Then, the membership probability is set according to the following formula:
[0063]
[0064] Where τ, 0≤τ≤1, the value of τ can be set by the user, and the value reflects the user's confidence in the matching result. For example, if the user believes that the matching result of formula (5) is relatively accurate, the value of τ can be set to be close to 1, otherwise the value of τ can be set to be close to 0. In particular, if a point in a scene matrix With a point in a template lattice If it matches, set
[0065] Deformation and matching
[0066] Now the global structural information and local features have been captured in the likelihood function (3). On this basis, the PR-GLS algorithm uses a prior probability about the parameter θ to make the obtained deformation Smoother.
[0067] Specifically, regarding deformation The prior probability density function
[0068]
[0069] Here, λ is a positive number, for example, we can set it to 3. φ is a The regularization function of in is a vector reproducing kernel Hilbert space. This space consists of a diagonal Gaussian matrix kernel function Define, where β is the standard deviation of the Gaussian kernel function, for example, we can set it to 2.
[0070] Combining formula (6) and (3), the negative logarithmic posterior probability is minimized, so the maximum a posteriori probability MAP solution of θ is:
[0071]
[0072] It is assumed that the sampled points are independent of each other. This problem is solved by the Expectation Conditional Maximization (ECM) method. It can be proved that The optimal solution has the following form:
[0073]
[0074] where c n is the nth column vector of matrix C. Matrix C is determined by the following formula,
[0075]
[0076] The i-th row and j-th column of Γ is Γ ij , g(·) takes the diagonal elements of the input matrix to form a new diagonal matrix. is the posterior probability matrix, whose element in row i and column j is
[0077]
[0078] So far, the PR-GLS algorithm can estimate the optimal and Deformation of registration And it can calculate the posterior probability defined in formula (10).
[0079] The form of matching between dot matrix
[0080] If the posterior probability Higher, the dot matrix and The two corresponding points in and Mutual matching. Therefore, multiple scene points can be matched to the same template point, and vice versa. The point-to-point matching can be many-to-one or many-to-many.
[0081] At the same time, the assignment problem can be solved to make the matching between the lattice and the lattice one-to-one. To achieve this goal, the feature "shape context" of the point can be used as a local feature to describe the deformed lattice. And scene dot matrix By using χ 2 The test statistic is used to calculate the dissimilarity matrix S, whose elements s mn It's about the point and The dissimilarity between the shape contexts of . Then the dot matrix arrive The one-to-one correspondence of can be obtained by minimizing the following assignment problem:
[0082]
[0083] st1 T M=1 T ,M1=1,M∈{0,1} N×N , (11)
[0084] Among them, M mn =1 indicates point and Point Match. Accordingly, if M mn =1, then point and Match.
[0085] Parallel processing of algorithms
[0086] Combining formulas (3) and (6), we can see that the solution to problem (11) depends on the lattice and The initial alignment state of the dot matrix is determined by and However, and The coordinates of may be rotated or flipped, as shown in Algorithm (1).
[0087] In order to achieve higher matching accuracy, for multiple template dot matrices, multiple corresponding PR-GLS algorithms can be processed in parallel, each of which has a different initial alignment state and produces different matching results. Specifically, for the template dot matrix GIPS, For the flipped dot matrix First solve. Then, rotate according to the following formula and
[0088]
[0089] in is an angle uniformly distributed between [0, 360). Thus, a total of 2h points are obtained. For each dot Match the dot matrix GIPS, where and And get a matching result M i . In total, 2h matching results were obtained Then, select the best matching result M * for
[0090]
[0091] It is worth noting that the process of matching multiple point array GIPS can be calculated in parallel, thus saving a lot of time.
[0092] Algorithm time complexity
[0093] The time complexity of the above algorithm is O(N 3 ), where N is the number of nodes in the scene graph. Specifically, NMDS uses O(N 3 ) time complexity to convert an undirected graph into a lattice. Then, the PR-GLS algorithm uses O(N 3 ) to match two lattices GIPS. Given a pair of undirected graphs, the PR-GLS algorithm runs 2h times to obtain the best matching accuracy, where h controls the balance between accuracy and efficiency. Multiple copies of the PR-GLS algorithm can run in parallel.
[0094] In contrast, the running time of traditional undirected graph matching algorithms is usually O(N 4 ), because they need to calculate N in formula (1) 2 ×N 2 Matrix K. Therefore, compared with the previous traditional algorithms, the time complexity of the algorithm proposed in this application is lower.
[0095] Below, this application will provide several scenarios in which the algorithm is applied to facilitate further understanding of the algorithm.
[0096] Scene 1
[0097] Image stitching is a technique for stitching multiple overlapping images into one image. Image stitching can be used to stitch remote sensing images, make maps, or for astronomical space images, stitching panoramas, and is an important technical means used in panoramic image creation. It can also be used to compare medical images. For images of the same patient acquired at different times (to detect changes in the body or monitor tumors), image stitching can be performed to handle deformations caused by breathing, anatomical changes, etc. It can be executed in real time and run in many different technologies in embedded devices such as cameras and mobile phone cameras.
[0098] Generally speaking, image stitching technology includes five steps: 1. Image preprocessing, which includes establishing image matching templates and performing certain transformations on images through basic digital image processing operations (such as denoising, edge extraction, histogram processing, etc.); 2. Image registration, which adopts a certain registration strategy to find the corresponding positions of the templates or feature points in the image to be stitched in the reference image, and then determine the direct transformation relationship between the two images; 3. Establishing a transformation model, which calculates the parameter values in the transformation model based on the correspondence between the templates or image features; 4. Unified coordinate transformation, which converts the image to be stitched into the coordinate system of the reference image according to the established transformation model; 5. Fusion reconstruction, which fuses the overlapping areas of the images to be stitched to obtain a smooth and seamless panoramic image of the stitching reconstruction.
[0099] The algorithm proposed previously is mainly applied to the above steps 1 and 2. In these two steps, the goal is to find two images I 1 and I 2 The corresponding relationship between Figure 4 Specifically, in step 1, we first use SIFT, LBP and other algorithms to find the coordinates of the key points in the image and describe the local features of the key points. Then, based on the spatial position relationship between the key points, such as distance, angle, etc., we establish the correspondence between the key points. At this time, we can express an image through a graph model. The nodes of the graph model represent the key points in the image, and the edges of the graph model represent the relationship between the key points. In step 2, we assume that we use the graph model G 1 Represents image I 1 , using the graph model G 2 Representation Figure I 2 , then, image I 1 and I 2 The registration can be achieved by matching the graph model G 1 and G 2 Then, based on the registration relationship given by the previously proposed method, the remaining steps of image stitching can be further completed.
[0100] Through the above method, two different pictures can be effectively matched and a high matching accuracy can be achieved.
[0101] Scene 2
[0102] The pose estimation of an object refers to the estimation of the position and pose of an object in an image. Pose estimation can be used for a variety of tasks such as autonomous driving and scene understanding. For example, in autonomous driving, the direction and speed of the human body and vehicle can be analyzed to determine whether there is a potential danger. In terms of specific steps, the pose estimation of an object can be divided into the following three steps: Step 1, establish a pose library, first generate a possible pose image library of the object to be analyzed; Step 2, establish a pre-processed pose library, for the images in the pose library, by using basic operations of digital image processing (such as denoising, edge extraction, histogram processing, etc.), establish image matching templates and perform some transformation operations on the image; Step 3, pre-process the image to be analyzed, the pre-processing method adopted here is similar to the method in Step 2; Step 4, match the image to be analyzed with the image in the pose library; Step 5, according to the matching results, find the pose image in the pose library with the highest registration degree with the image to be analyzed.
[0103] The method proposed in this application is mainly used for steps 2 to 4 of the above process, and provides decision information for step 5. In steps 2 and 3, first use SIFT, LBP and other algorithms to find the coordinates of the key points in the image and describe the local features of the key points. Then, based on the spatial position relationship between the key points, such as distance, angle, etc., the relationship between the key points is established. At this time, an image can be expressed by a graph model, in which the nodes of the graph model represent the key points in the image, and the edges of the graph model represent the relationship between the key points. In step 4, assuming that the graph model G is used 1 Represents image I 1 , use G 2 Representation Figure I 2 , then, image I 1 and I 2 The corresponding relationship can be obtained by transforming the graph model G 1 and G 2 Matching is done. Figure 5 As shown, if I 1 is a posture library image, where the position and posture of the object are known, then it can be obtained by I 1 and I 2 The correspondence relationship between the object and I 2 In step 5, the current matching degree can be analyzed to determine which template library the object posture in the image to be analyzed is closer to.
[0104] Technical effects of this application
[0105] In the common public datasets CMU house and CMU hotel, the images to be matched have a certain degree of deformation. CMU house and CMU hotel sequence images are currently the most popular experimental data for testing image-based learning algorithms. The two sequence images are composed of 111 and 110 images respectively, and each image has 30 marked feature points. In the following table, the accuracy of the method of this application is shown as:
[0106]
[0107] However, the accuracy achieved by other best known graph matching algorithms (factorized graph matching (FGM), reweighted random walk matching (RRWM), spectral matching (SM), integer projected stable point-uniform initial solution (IPFP-U), integer projected stable point-uniform initial solution (IPFP-S), spectral matching with affine constraints (SMAC), binary constraint preserving graph matching (BPGM)) is as high as 1. Figure 6 As shown:
[0108] The horizontal axis represents the deformation degree of the graph model, and the vertical axis represents the accuracy of different methods. For the most difficult deformation, the algorithm of the present application correctly matches all the nodes of the graph, while the best accuracy of other algorithms is less than 80%.
[0109] On the common public dataset Pascal 2007, the graph to be matched contains a certain number of outliers. The accuracy of the algorithm in this application is:
[0110]
[0111] The best other graph matching algorithms currently have an accuracy of Figure 7 As shown:
[0112] The horizontal axis represents the number of outliers, and the vertical axis represents the accuracy of different methods. It can be seen that the algorithm of the present application greatly improves the matching accuracy.
[0113] It will be appreciated by those skilled in the art that the present invention includes devices for performing one or more of the operations described in the present application. These devices may be specially designed and manufactured for the desired purpose, or may include known devices in general-purpose computers. These devices have computer programs stored therein, which are selectively activated or reconfigured. Such computer programs may be stored in a device (e.g., computer) readable medium or in any type of medium suitable for storing electronic instructions and coupled to a bus, respectively, the computer readable medium including but not limited to any type of disk (including floppy disk, hard disk, optical disk, CD-ROM, and magneto-optical disk), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or optical card. That is, the readable medium includes any medium that stores or transmits information in a readable form by a device (e.g., computer).
[0114] Those skilled in the art will appreciate that each block in these structure diagrams and / or block diagrams and / or flow charts and combinations of blocks in these structure diagrams and / or block diagrams and / or flow charts can be implemented using computer program instructions. Those skilled in the art will appreciate that these computer program instructions can be provided to a general-purpose computer, a professional computer, or a processor of other programmable data processing methods to implement, thereby executing the scheme specified in the block or multiple blocks of the structure diagram and / or block diagram and / or flow chart disclosed in the present invention through the processor of the computer or other programmable data processing method.
[0115] Those skilled in the art will appreciate that the various operations, methods, steps, measures, and schemes discussed in the present invention may be alternated, modified, combined, or deleted. Further, other steps, measures, and schemes in the various operations, methods, and schemes discussed in the present invention may also be alternated, modified, rearranged, decomposed, combined, or deleted. Further, the steps, measures, and schemes in the prior art that are similar to those disclosed in the present invention may also be alternated, modified, rearranged, decomposed, combined, or deleted.
[0116] The above descriptions are only some embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A processor-implemented method, include: Acquire, by a processor, a first undirected graph from a first image and a second undirected graph from a second image, wherein the first image and the second image are images acquired by capturing the same scene from different viewpoints; The processor generates a first dot matrix corresponding to the first undirected graph and a second dot matrix corresponding to the second undirected graph; matching, by a processor, the first lattice and the second lattice based on a first global structure of the first lattice and a second global structure of the second lattice, the first global structure corresponding to nodes of the first undirected graph, and the second global structure corresponding to nodes of the second undirected graph; and Based on the matching results of the first lattice and the second lattice, processing the first undirected graph and the second undirected graph; The first lattice and the second lattice respectively represent the features of the edges and nodes of the first undirected graph and the second undirected graph by coordinates.
2. The method according to claim 1, in, Generating the first dot matrix and generating the second dot matrix include: generating a first lattice based on non-metric multidimensional scaling (NMDS); and Generate the second lattice based on NMDS.
3. The method according to claim 2, in, Generate the first matrix based on NMDS, including: Randomly generate target points; and The first lattice is generated by optimizing the target lattice based on the features of the edges and nodes of the first undirected graph.
4. The method according to claim 3, in, The first lattice is generated by optimizing the target lattice, including: Calculate the distance between the first point and the second point in the target lattice, where the first point and the second point correspond to the first node and the second node of the first undirected graph, respectively. Based on a monotonic function that does not include a parameter, converting a feature of an edge between a first node and a second node into a distance between the first point and the second point; Calculate the Kruskal pressure 1 of the target lattice; and In response to the convergence of the calculated Kruskal pressure 1, the target lattice is determined as the first lattice.
5. The method according to claim 4, in, The monotonic function is determined by minimizing the following expression: Among them, r(·) represents a monotonic function, represents the characteristics of the edge between the first node and the second node, represents the distance between the first point and the second point, and i and j represent numbers within the total number of nodes of the first undirected graph.
6. The method according to claim 4, in, Kruskal pressure 1 is calculated based on the following equation: Among them, r(·) represents a monotonic function, represents the characteristics of the edge between the first node and the second node, represents the distance between the first point and the second point, and i and j represent numbers within the total number of nodes of the first undirected graph.
7. The method according to any one of claims 1 to 6, in, Matching the first point matrix and the second point matrix includes matching the first point matrix and the second point matrix based on a point set registration algorithm preserving global and local structure (PR-GLS).
8. The method according to any one of claims 1 to 6, in, Obtaining a first undirected graph and a second undirected graph, including: generating a first undirected graph from the first image, and A second undirected graph is generated from the second image.
9. The method according to any one of claims 1 to 6, in, Processing the first undirected graph and the second undirected graph includes: synthesizing the first image and the second image based on matching of the first dot matrix and the second dot matrix.
10. The method according to any one of claims 1 to 6, in, The first undirected graph and the second undirected graph are associated with the same object, and Processing the first undirected graph and the second undirected graph includes analyzing a pose of the object.
11. A non-transitory computer-readable storage medium storing instructions, which, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 10.
12. An electronic device, include: a memory configured to store a program; as well as A processor, configured to run a program, Wherein, the processor runs the program to implement the method described in any one of claims 1-10.
