Method and device for automatic matching of planar point patterns
First Claim
Patent Images
1. A method for automatic matching of planar point patterns to decide whether two patterns (P and q) consisting of points distributed in respective coordinate plans are similar;
- wherein P={p1,p2, . . . pm} is a reference pattern including m points and Q={q1,q2, . . . qn} is a test pattern including n points and wherein every point of the pattern is expressed by (x,y,D) wherein (x, y) is the coordinate of the point and D is the feature direction of the point;
said method comprising;
a mating process to locate an only point pi in the P pattern for every point qj in the Q pattern thereby pi and qj are overlapped or within a very short distance from each other, if they were in a same coordinate plan;
a similarity calculation process to calculate the similarity of the two patterns according to the result of said mating process; and
a determination process to determine whether the two patterns are similar by comparing the index of similarity with a threshold;
wherein said mating process comprises;
calculating the mated possiblity of every point in the Q pattern (qj, j=1, 2, . . . , m) and every point in the P pattern (pi, i=1, 2, . . . , n), comprising;
designating a point in the Q pattern (qj) to be mated with a point in the P pattern (pi);
calculating the mated possibility of every point, other than said qj point, in the Q pattern (qk, k=1, 2, . . . , m. k≠
j) to be mated with every point, other than said pi point, in the P pattern (ph, h=1, 2, . . . , m, h≠
i), under a transformation angle;
accumulating the mated possibilities of qk points and ph points under the premise that pi and qj are mated and making the result the mated possibility of qj and pi; and
selecting the mated parts according to the values of mated possibility of qj points and pi points;
wherein the mated possibility of qj and pi while pattern Q is rotated at angle θ
(S[i][j][θ
]) is calculated according to the following equation;
##EQU10## wherein;
##EQU11## wherein;
Cijkh (θ
) represents the mated possibility of qk (k=1, 2, . . . m, k≠
j) and ph (h=1, 2, . . . , h≠
i), θ
=θ
qjqk-θ
piph, Ds represents the difference between the difference between the feature direction of pi and the direction of piph and the difference between the feature direction of qj and the direction of qiqk, De represents the difference between the difference between the feature direction of ph and the direction of piph and the difference between the feature direction of qk and the direction of qiqk, d1 represents the difference between the lengths of piph and qiqk, and w, w1 and w2 are constants; and
wherein the similarity value (Score) of the two patterns is calculated according to the following equation;
Score=C*K2*S1 *S2 *S3 *md, whereinC is a constant;
K is the number of mated pairs;
S1 is the mated rate of the reference pattern, K/n;
S2 is the mated rate of the test pattern, K/m;
md is the average mated possibility of all the mated pairs; and
S3 =1.01(1.0+average distance of the mated points).wherein the planar point patterns are automatically matched based upon said similarity value (Score) of the two patterns.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for automatic matching of planar point patterns in a reference pattern with a test pattern includes course mating, calculation of a mated possibility for one point in each pattern, preliminary selection of mated pairs based on these possibilities, and calculation of a similarity value based upon the number of mated pairs, the mated rate of the reference and test patterns, and the average mating possibility and average distance between mated points.
22 Citations
18 Claims
-
1. A method for automatic matching of planar point patterns to decide whether two patterns (P and q) consisting of points distributed in respective coordinate plans are similar;
-
wherein P={p1,p2, . . . pm} is a reference pattern including m points and Q={q1,q2, . . . qn} is a test pattern including n points and wherein every point of the pattern is expressed by (x,y,D) wherein (x, y) is the coordinate of the point and D is the feature direction of the point; said method comprising; a mating process to locate an only point pi in the P pattern for every point qj in the Q pattern thereby pi and qj are overlapped or within a very short distance from each other, if they were in a same coordinate plan; a similarity calculation process to calculate the similarity of the two patterns according to the result of said mating process; and a determination process to determine whether the two patterns are similar by comparing the index of similarity with a threshold; wherein said mating process comprises; calculating the mated possiblity of every point in the Q pattern (qj, j=1, 2, . . . , m) and every point in the P pattern (pi, i=1, 2, . . . , n), comprising; designating a point in the Q pattern (qj) to be mated with a point in the P pattern (pi); calculating the mated possibility of every point, other than said qj point, in the Q pattern (qk, k=1, 2, . . . , m. k≠
j) to be mated with every point, other than said pi point, in the P pattern (ph, h=1, 2, . . . , m, h≠
i), under a transformation angle;accumulating the mated possibilities of qk points and ph points under the premise that pi and qj are mated and making the result the mated possibility of qj and pi; and selecting the mated parts according to the values of mated possibility of qj points and pi points; wherein the mated possibility of qj and pi while pattern Q is rotated at angle θ
(S[i][j][θ
]) is calculated according to the following equation;
##EQU10## wherein;
##EQU11## wherein;
Cijkh (θ
) represents the mated possibility of qk (k=1, 2, . . . m, k≠
j) and ph (h=1, 2, . . . , h≠
i), θ
=θ
qjqk-θ
piph, Ds represents the difference between the difference between the feature direction of pi and the direction of piph and the difference between the feature direction of qj and the direction of qiqk, De represents the difference between the difference between the feature direction of ph and the direction of piph and the difference between the feature direction of qk and the direction of qiqk, d1 represents the difference between the lengths of piph and qiqk, and w, w1 and w2 are constants; andwherein the similarity value (Score) of the two patterns is calculated according to the following equation; Score=C*K2*S1 *S2 *S3 *md, wherein C is a constant; K is the number of mated pairs; S1 is the mated rate of the reference pattern, K/n; S2 is the mated rate of the test pattern, K/m; md is the average mated possibility of all the mated pairs; and S3 =1.01(1.0+average distance of the mated points). wherein the planar point patterns are automatically matched based upon said similarity value (Score) of the two patterns. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A device for automatic matching of planar point patterns to decide whether two patterns (P and Q) consisting of points distributed in respective coordinate plans are similar wherein P={p1,p2, . . . pm} is a reference pattern including m points and Q={q1,q2, . . . qn} is a test pattern including n points and wherein every point of the pattern is expressed by (x,y,D) wherein (x, y) is the coordinate of the point and D is the feature direction of the point;
-
said device comprising; a mating means to identify an only point (pi) in the P pattern for every point in the Q pattern, according to the coordinates and feature directions of the points; a similarity calculation means to calculate the similarity of the two patterns according to the result of said mating process; and a determination means to determine whether the two patterns are similar by comparing the result of said similarity calculation with a threshold; wherein mating of said mating means comprises; calculating the mated possibility of every point in the Q pattern (qj, j=1, 2, . . . , m) and every point in the P pattern (pi, i=1, 2, . . . , n), comprising; designating a point in the Q pattern (qj) to be mated with a point in the P pattern (pi); calculating the mated possibility of every point, other than said qj point, in the Q pattern (qk, k=1, 2, . . . , m. k≠
j) to be mated with every point, other than said pi point, in the P pattern (ph. h=1, 2, . . . , m, h≠
i), under a transformation angle; andaccumulating the mated possibility of qk points anci pn points under the premise that pi and qj are mated and making the result the mated possibility of qj and pi; and selecting the mated parts according to the values of mated possibility of qj points and pi points; wherein said mating means calculates the mated possibility of aj and pi while pattern Q is rotated at angle θ
(S[i][j][θ
]) according to the following equation;
##EQU13## wherein;
##EQU14## wherein;
Cijkh (θ
) represents the mated possibility of qk (k=1, 2, . . . , m, k≠
j) and ph (h=1, 2, . . . , n h≠
i), θ
=θ
qjqk-θ
piph, Ds represents the difference between the difference between the feature direction of pi and the direction of piph and the difference between the feature direction of qj and the direction of qiqk, De represents the difference between the difference between the feature direction of ph and the direction of piph and the difference between the feature direction of qk and the direction of qiqk, d1 represents the difference between the lengths of piph and qiqk, and w, w1 and w2 are constants; andwherein the similarity value calculation device calculates the similarity value (Score) of the two patterns is calculated according to the following equation; Score=C*K*S1 * S3 *md, wherein C is a constant; K is the number of mated pairs; S1 is the mated rate of the reference pattern, K/n; S2 is the mated rate of the test pattern, K/m; md is the average mated possibility of all the mated pairs; and S3 =1.0/(1.0 +average distance of the mated points). wherein the planar point patterns are automatically matched based upon said similarity value (Score) of the two patterns. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18)
-
Specification