The present invention relates to a position matching device, a position matching method, and a position matching program for performing position matching between point group data indicating three-dimensional coordinate values of measurement points of a measurement target.
For example, by imaging an object being a measurement target from different viewpoints with a stereo camera or the like, plural sets of three-dimensional point group data are obtained. Three-dimensional point group data indicates three-dimensional coordinate values of measurement points of a measurement target.
At this stage, it is possible to obtain three-dimensional point group data of the entire measurement target by integrating the plural sets of three-dimensional point group data. However, if the three-dimensional coordinate values of the same measurement point deviate, the measurement target shape obtained from the integrated three-dimensional point group data becomes different from the shape of the actual measurement target.
For this reason, to integrate plural sets of three-dimensional point group data, it is necessary to perform position matching between the plural sets of three-dimensional point group data.
Patent Literature 1 listed later discloses a position matching device that performs position matching between two sets of three-dimensional point group data.
In the following, the position matching procedures carried out by this position matching device are briefly described.
Here, for ease of explanation, two sets of three-dimensional point group data are referred to as three-dimensional point group data A and three-dimensional point group data B, respectively
(1) Respective feature points a are extracted from the three-dimensional point group data A, and respective feature points b are extracted from the three-dimensional point group data B.
A feature point is a measurement point indicating a feature of the shape of the object being a measurement target, and may be a corner point of the object, a point belonging to a boundary of the object, or the like, for example.
(2) Three feature points a are freely extracted from the feature points a, and a triangle Δa having the three feature points a as its vertices is generated.
Likewise, three feature points b are freely extracted from the feature points b, and a triangle Δb having the three feature points b as its vertices is generated.
By changing the three feature points to be extracted, plural triangles Δa and plural triangles Δb are generated.
(3) A triangle among the plural triangles Δa and a triangle among the plural triangles Δb which are similar to each other are searched for.
(4) The respective vertices of a triangle Δa and a triangle Δb that are similar in shape are determined to have correspondence relationship with each other, and the feature point a and the feature point b being vertices having correspondence relationship with each other are defined as a feature point pair.
(5) The matrix to be used in rigid transformation of the three-dimensional point group data B is calculated from the feature point pair, and by applying rigid transformation to the three-dimensional point group data B using the matrix, position matching between the three-dimensional point group data A and the three-dimensional point group data B is performed.
The matrix used in the rigid transformation is formed by a matrix for rotating the three-dimensional point group data B and a vector for translating the three-dimensional point group data B.
Patent Literature 1: JP 2012-14259 A
Since a conventional position matching device is configured as described above, there is a possibility that a triangle Δa and a triangle Δb that have no correspondence relationship are selected when there exist plural triangles Δb which are similar in shape to the triangle Δa. In a case where a triangle Δa and a triangle Δb that have no correspondence relationship are selected, an error occurs in combination in a feature point pair. As a result, the accuracy of calculation of the matrix used for rigid transformation is deteriorated, so that the accuracy of position matching between plural sets of three-dimensional point group data is degraded in some cases.
The present invention has been made to solve the above problems, and an object of the present invention is to provide a position matching device, a position matching method, and a position matching program that are capable of increasing the accuracy of position matching between plural sets of three-dimensional point group data.
A position matching device according to this invention includes: a pair searching unit extracting a plurality of feature points from first point group data indicating three-dimensional coordinate values of a plurality of measurement points of a measurement target, extracting a plurality of feature points from second point group data indicating three-dimensional coordinate values of a plurality of measurement points of the measurement target, and searching for feature point pairs each of which indicates correspondence relationship between one of the plurality of feature points extracted from the first point group data and one of the plurality of feature points extracted from the second point group data; and a rigid transformation unit performing selection of a plurality of feature point pairs from among all the feature point pairs searched by the pair searching unit, performing, from the plurality of feature points pairs being selected, calculation of a matrix to be used in rigid transformation of the second point group data, and performing rigid transformation of the second point group data using the matrix. The rigid transformation unit repeatedly performs the selection of the plurality of feature point pairs, and repeatedly performs the calculation of the matrix and the rigid transformation of the second point group data.
According to this invention, the rigid transformation unit repeatedly performs the selection of the plurality of feature point pairs, and repeatedly performs the calculation of the matrix and the rigid transformation of the second point group data. Thus, it is possible to achieve an effect of enhancing the accuracy of position matching between plural sets of three-dimensional point group data.
To explain the present invention in more detail, some embodiments for carrying out the present invention will be described below with reference to the accompanying drawings.
In
For example, the three-dimensional point group data A and the three-dimensional point group data B are pieces of data observed from different viewpoints by the three-dimensional sensor 1. Alternatively, the three-dimensional point group data A and the three-dimensional point group data B are pieces of data observed at different times by the three-dimensional sensor 1.
In addition to the three-dimensional coordinate values (x, y, z) of measurement points, the three-dimensional point group data A and B may include color information or polygon information. The polygon information indicates the indices of three-dimensional points serving as the vertices of each polygon.
In the first embodiment, it is assumed that position matching between the three-dimensional point group data A and the three-dimensional point group data B is performed by applying rigid transformation to the three-dimensional point group data B. The three-dimensional point group data A may be referred to as target three-dimensional point group data, and the three-dimensional point group data B may be referred to as source three-dimensional point group data.
In the first embodiment, it is assumed that the position matching device acquires the three-dimensional point group data A and B observed by the three-dimensional sensor 1. Alternatively, the three-dimensional point group data A and B may be acquired from an external storage device 2.
The external storage device 2 is a storage device such as a hard disk that stores three-dimensional point group data A and B to which position matching is performed.
A point group data reading unit 11 is formed by a point group data reading circuit 21 shown in
A pair searching unit 12 is formed by a pair searching circuit 22 shown in
A rigid transformation unit 13 is formed by a rigid transformation circuit 23 shown in
The rigid transformation unit 13 performs a process of selecting three feature point pairs Pa-b, for example, as a plural feature point pairs Pa-b from among all the feature point pairs Pa-b searched by the pair searching unit 12.
The rigid transformation unit 13 calculates a matrix G to be used in rigid transformation of the three-dimensional point group data B on the basis of the selected three feature point pairs Pa-b, and performs a process of carrying out the rigid transformation of the three-dimensional point group data B using the matrix G.
The rigid transformation unit 13 repeats the selection process of selecting three feature point pairs Pa-b, and repeats the calculation process of calculating the matrix G and the rigid transformation process of carrying out the rigid transformation of the three-dimensional point group data B, until a final result of the rigid transformation of the three-dimensional point group data B is obtained.
A point group data outputting unit 14 is formed by a point group data outputting circuit 24 shown in
The display device 3 is a display such as a liquid crystal display, for example, and displays the three-dimensional point group data B output from the point group data outputting unit 14.
In
Here, the point group data reading circuit 21, the pair searching circuit 22, the rigid transformation circuit 23, and the point group data outputting circuit 24 may be a single circuit, a composite circuit, a programmed processor, a parallel-programmed processor, an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or a combination thereof.
However, the components of the position matching device are not necessarily formed by dedicated hardware, and the position matching device may be formed by software, firmware, or a combination of software and firmware.
Software and firmware are stored as programs in a memory of a computer. The computer means hardware that executes a program, and is a central processing unit (CPU), a central processor, a processing unit, an arithmetic unit, a microprocessor, a microcomputer, a processor, a digital signal processor (DSP), or the like, for example.
A memory of a computer may be a nonvolatile or volatile semiconductor memory such as a random access memory (RAM), a read only memory (ROM), a flash memory, an erasable programmable read only memory (EPROM), or an electrically erasable programmable read only memory (EEPROM), a magnetic disk, a flexible disk, an optical disk, a compact disk, a mini disk, a digital versatile disc (DVD), or the like, for example.
In a case where the position matching device is formed by software, firmware, or the like, a position matching program for causing a computer to carry out processing procedures of the point group data reading unit 11, the pair searching unit 12, the rigid transformation unit 13, and the point group data outputting unit 14 is stored in a memory 31, and a processor 32 of the computer executes the position matching program stored in the memory 31.
Although
Next, the operation is described.
The point group data reading unit 11 reads out three-dimensional point group data A and B observed by the three-dimensional sensor 1, and outputs the three-dimensional point group data A and B to the pair searching unit 12.
Upon receiving the three-dimensional point group data A and B from the point group data reading unit 11, the pair searching unit 12 extracts plural feature points a from the three-dimensional point group data A, and extracts plural feature points b from the three-dimensional point group data B (step ST1 in
A feature point is a measurement point indicating a feature of the shape of the target object to be measured, and may be a corner point of the object, a point belonging to a boundary of the object, or the like, for example.
Since the process of extracting the feature points a and b from the three-dimensional point group data A and B is a known technique, detailed explanation thereof is not made herein. For example, the feature points a and b are extracted from the three-dimensional point group data A and B by the feature point extracting method disclosed in the following Non-Patent Literature 1.
After the feature points a and b are extracted from the three-dimensional point group data A and B by the pair searching unit 12, the pair searching unit 12 calculates feature vectors Va indicating the shape of the surrounding area for the respective feature points a (step ST2 in
The pair searching unit 12 also calculates feature vectors Vb indicating the shape of the surrounding area for the respective feature points b (step ST2 in
In general, a feature vector is a multidimensional vector indicating the positional relationship of a feature point or the difference in the direction of the normal vector with respect to a measurement point existing in the surrounding area of the feature point.
Since the process of calculating the feature vectors Va and Vb is a known technique, and the method of describing the feature vectors Va and Vb is also a known technique, detailed explanation of them is not made herein. For example, in the first embodiment, the SHOT (Signatures of Histograms of OrienTations) feature amount disclosed in the following Non-Patent Literature 2 is used as the feature vector.
After calculating the feature vectors Va of the feature points a and calculating the feature vectors Vb of the feature points b, the pair searching unit 12 calculates a degree of similarity between a feature vector Va and a feature vector Vb for each of the combinations of the feature vectors Va of the feature points a and the feature vectors Vb of the feature points b. Since the process of calculating the degree of similarity between two feature vectors is a known technique, a detailed explanation thereof is not made herein.
Then, for each of the feature points a extracted from the three-dimensional point group data A, the pair searching unit 12 compares the degrees of similarity between the feature vector Va of the current feature point a and the respective feature vectors Vb of plural feature points b, and identifies the feature point b corresponding to the feature vector Vb having the highest degree of similarity among the feature vectors Vb of the feature points b.
After identifying the feature point b corresponding to the feature vector Vb having the highest degree of similarity, the pair searching unit 12 determines the current feature point a and the identified feature point b to be the feature point pair Pa-b (step ST3 in
Specifically, in a case where the number of the feature points a is N, and the number of the feature points b is M, for example, the feature point b corresponding to the feature vector Vb having the highest degree of similarity to the current feature point a among the M feature points B is identified for each of the N feature points a, and the current feature point a and the identified feature point b are determined to be the feature point pair Pa-b.
In this case, N feature point pairs Pa-b are determined. N is an integer being 3 or greater.
The rigid transformation unit 13 stores the N feature point pairs Pa-b determined by the pair searching unit 12 in the internal memory 13a.
The rigid transformation unit 13 selects three feature point pairs Pa-b, for example, from the N feature point pairs Pa-b stored in the memory 13a (step ST11 in
The three feature point pairs Pa-b are randomly selected from among the N feature point pairs Pa-b, but should be feature point pairs Pa-b of combinations not selected before.
However, the three feature point pairs Pa-b are not necessarily randomly selected from among the N feature point pairs Pa-b, but may be selected on the basis of a specific rule. For example, feature point pairs Pa-b having higher degrees of similarity calculated by the pair searching unit 12 may be preferentially selected in some modes.
After selecting the three feature point pairs Pa-b, the rigid transformation unit 13 defines the three-dimensional coordinate values pa, i (i=1, 2, 3) of the feature points a included in the three feature point pairs Pa-b, as shown below in the expression (1).
The rigid transformation unit 13 also defines the three-dimensional coordinate values pb, i (i=1, 2, 3) of the feature points b included in the three feature point pairs Pa-b, as shown below in the expression (2).
After defining the three-dimensional coordinate values pa, i of the feature points a and the three-dimensional coordinate values pb, i of the feature points b included in the three feature point pairs Pa-b, the rigid transformation unit 13 calculates the matrix G to be used in the rigid transformation of the three-dimensional point group data B on the basis of the three-dimensional coordinate values pa, i of the feature points a and the three-dimensional coordinate values pb, i of the feature points b (step ST12 in
The matrix G to be used in the rigid transformation is formed from a rotation matrix R that is a matrix for rotating the three-dimensional point group data B and a translation vector t that is a vector for translating the three-dimensional point group data B.
Therefore, the rigid transformation unit 13 calculates the rotation matrix R and the translation vector t as the matrix G to be used in the rigid transformation. In this calculation, to maximize the degrees of similarity between the feature points a and the feature points b by performing rigid transformation of the feature points b included in the three feature point pairs Pa-b, it is necessary to determine the rotation matrix R and the translation vector t that minimize the value expressed by the following expression (3).
In the expression (3), ∥k∥ is the symbol representing the norm of the vector k.
There exist plural methods for calculating the rotation matrix R and the translation vector t that minimize the value expressed by the expression (3). In the example described in the first embodiment, the rotation matrix R and the translation vector t are calculated by the method disclosed in the following Non-Patent Literature 3.
The rigid transformation unit 13 calculates a covariance matrix Σ for the three feature point pairs Pa-b, as shown in the expression (4) below.
In the expression (4), kt represents the transpose of the vector k.
μa represents the barycentric coordinate values of the three-dimensional coordinate values pa, i of the three feature points a, and μb represents the barycentric coordinate values of the three-dimensional coordinate values pb, i of the three feature points b.
After calculating the covariance matrix Σ, the rigid transformation unit 13 calculates the rotation matrix R by performing singular value decomposition of the covariance matrix Σ as shown in the expression (8) below, and calculates the translation vector t as shown in the expression (9) below.
That is, since the matrices U and Vt in the expression (7) below are determined by performing singular value decomposition of the covariance matrix Σ, the rigid transformation unit 13 calculates the rotation matrix R by substituting the matrices U and Vt into the expression (8) shown below. Further, the translation vector t is calculated by substituting the calculated rotation matrix R into the expression (9) shown below.
In the expression (8), det ( ) is the symbol representing the determinant.
After calculating the rotation matrix R and the translation vector t for the matrix G to be used in the rigid transformation, the rigid transformation unit 13 performs the rigid transformation of the source three-dimensional point group data B by rotating the source three-dimensional point group data B using the rotation matrix R and translating the source three-dimensional point group data B using the translation vector t (step ST13 in
After the rigid transformation of the source three-dimensional point group data B, the rigid transformation unit 13 calculates the degree of coincidence S between the three-dimensional point group data B after the rigid transformation and the target three-dimensional point group data A (step ST14 in
That is, the rigid transformation unit 13 determines the distances from the respective feature points b included in the three-dimensional point group data B after the rigid transformation to the nearest neighbor feature point a included in the target three-dimensional point group data A, and calculates the reciprocal of the average value of these distances as the degree of coincidence S.
In the expression (10), H represents the number of the feature points b included in the three-dimensional point group data B after the rigid transformation.
d (pb, i, A) represents the distance from each of the feature points b included in the three-dimensional point group data B after the rigid transformation to the nearest feature point a included in the target three-dimensional point group data A, and is expressed as in the expression (11) shown below.
d(pb,i,A)=minp
In the expression (11), pa,j represents the three-dimensional coordinate values of the plural feature points a included in the three-dimensional point group data A.
After calculating the degree of coincidence S between the three-dimensional point group data B after the rigid transformation and the target three-dimensional point group data A, the rigid transformation unit 13 stores the degree of coincidence S in the memory 13a, and also stores the three-dimensional point group data B after the rigid transformation in the memory 13a if the process of calculating the degree of coincidence S is performed for the first-time.
If the process of calculating the degree of coincidence S is performed for the second time or later, the rigid transformation unit 13 compares the degree of coincidence S calculated this time with the degree of coincidence S stored in the memory 13a. If the degree of coincidence S calculated this time is higher than the degree of coincidence S stored in the memory 13a (Yes in step ST15 in
As a result, the degree of coincidence S stored in the memory 13a is updated to the highest degree of coincidence S among the degrees of coincidence S calculated in the calculation processes so far, and the three-dimensional point group data B after the rigid transformation stored in the memory 13a is updated to the three-dimensional point group data B corresponding to the highest degree of coincidence S.
The rigid transformation unit 13 compares the number of times C the rigid transformation process has been performed so far with the set number of trial times CES (a first threshold value) that is the preset number of times, and further compares the degree of coincidence S stored in the memory 13a with a set degree of coincidence SES (a second threshold value) that is a preset degree of coincidence. The set number of trial times CES and the set degree of coincidence SES vary depending on the number of pieces of data included in the three-dimensional point group data or the like. For example, the set number of trial times CES is ten, and the set degree of coincidence SES is 1/10 cm.
In a case where C<CES and S<SES, that is, where the number of times C has not reached the set number of trial times CES, and the degree of coincidence S stored in the memory 13a is lower than the set degree of coincidence SES (No in step ST17 in FIG. 5), the process returns to step ST11, and the rigid transformation unit 13 repeatedly performs the process of selecting a feature point pair Pa-b, the process of calculating the matrix G to be used in rigid transformation, and the rigid transformation process (steps ST11 through ST16 in
In a case where C=CES or S≥SES, that is, where the number of times C reaches the set number of trial times CES, or in a case where the degree of coincidence S stored in the memory 13a is equal to or higher than the set degree of coincidence SES (Yes in step ST17 in
Upon receiving the three-dimensional point group data B after the rigid transformation from the rigid transformation unit 13, the point group data outputting unit 14 stores the three-dimensional point group data B after the rigid transformation in the external storage device 2 as the three-dimensional point group data B after position matching, or displays the three-dimensional point group data B after the rigid transformation by the display device 3.
As is apparent from the above description, according to the first embodiment, the rigid transformation unit 13 repeatedly performs the selection process of selecting plural feature point pairs and repeatedly performs the calculation process of calculating the matrix G to be used in the rigid transformation and the rigid transformation process of performing the rigid transformation of the three-dimensional point group data B. Thus, it is possible to achieve an effect of increasing the accuracy of position matching between the three-dimensional point group data A and the three-dimensional point group data B.
That is, in the first embodiment, even in a case where the feature point pairs Pa-b determined by the pair searching unit 12 include a feature point pair Pa-b being a wrong combination, it is possible to lower the possibility that the rigid transformation unit 13 outputs the three-dimensional point group data B after the rigid transformation using the matrix G calculated using the wrong feature point pair Pa-b. Thus, the accuracy of position matching between the three-dimensional point group data A and the three-dimensional point group data B can be increased.
In the example described in the first embodiment, the rigid transformation unit 13 selects three feature point pairs Pa-b from the N feature point pairs Pa-b searched by the pair searching unit 12. However, the present invention is not limited to such an example, and four or more feature point pairs Pa-b may be selected from among the N feature point pairs Pa-b.
In the first embodiment described above, after three feature point pairs Pa-b are selected from among the N feature point pairs Pa-b searched by the pair searching unit 12, the rigid transformation unit 13 calculates the matrix G to be used in the rigid transformation from the three feature point pairs Pa-b, without determining whether the three feature point pairs Pa-b are good or bad. In a second embodiment described below, on the other hand, a rigid transformation unit 15 determines whether the three feature point pairs Pa-b are good or bad, and, if the result of the determination is bad, reselects three feature point pairs Pa-b from among the N feature point pairs Pa-b searched by the pair searching unit 12.
In
The rigid transformation unit 15 is formed by a rigid transformation circuit 25 shown in
Like the rigid transformation unit 13 shown in
Like the rigid transformation unit 13 shown in
Like the rigid transformation unit 13 shown in
Unlike the rigid transformation unit 13 shown in
In
Here, the point group data reading circuit 21, the pair searching circuit 22, the rigid transformation circuit 25, and the point group data outputting circuit 24 may be realized by a single circuit, a composite circuit, a programmed processor, a parallel-programmed processor, ASIC, FPGA, or a combination thereof.
However, the components of the position matching device are not necessarily formed by dedicated hardware, and the position matching device may be formed by software, firmware, or a combination of software and firmware.
In a case where the position matching device is formed by software, firmware, or the like, a position matching program for causing a computer to carry out processing procedures of the point group data reading unit 11, the pair searching unit 12, the rigid transformation unit 15, and the point group data outputting unit 14 is stored in the memory 31 shown in
Next, the operation is described.
In this description, since the components other than the rigid transformation unit 15 are the same as those of the first embodiment, only the procedures carried out by the rigid transformation unit 15 are described.
Like the rigid transformation unit 13 shown in
The rigid transformation unit 15 selects three feature point pairs Pa-b, for example, from the N feature point pairs Pa-b stored in the memory 15a (step ST11 in
After selecting the three feature point pairs Pa-b, the rigid transformation unit 15 determines whether the three feature point pairs Pa-b are good or bad.
The determination as to whether the three feature point pairs Pa-b are good or bad is made by determining whether the positional relationship in the three feature point pairs Pa-b is such that the matrix G to be used in the rigid transformation can be calculated with high accuracy.
For example, the rigid transformation unit 15 determines whether the three feature point pairs Pa-b are good or bad in the manner specifically described below.
The rigid transformation unit 15 determines whether the triangle that is the polygon having the three feature points a included in the three feature point pairs Pa-b as its vertices is similar to the triangle that is the polygon having the three feature points b included in the three feature point pairs Pa-b as its vertices.
If the two triangles are determined to be similar, the rigid transformation unit 15 determines that the three feature point pairs Pa-b are good. If the two triangles are determined not to be similar, the rigid transformation unit 15 determines that the three feature point pairs Pa-b are bad.
In the description below, a method implemented by the rigid transformation unit 15 for determining the similarity between two triangles is specifically explained.
First, the rigid transformation unit 15 calculates the difference in the length of the corresponding sides of the triangle having the three feature points a as the vertices and the triangle having the three feature points b as the vertices for every side.
The rigid transformation unit 15 then determines whether the ratio of the difference in the length to the length of the longer one in the corresponding sides is within 10%.
If the ratios of the differences for all three pairs of corresponding sides are within 10%, the rigid transformation unit 15 determines that the two triangles are similar. If there is even one side among the corresponding three sides in which the ratio of the difference is higher than 10%, the rigid transformation unit 15 determines that the two triangles are not similar.
If the three feature point pairs Pa-b are determined to be bad by the rigid transformation unit 15 (No in step ST21 in
At this stage, the reselected combination of the three feature point pairs Pa-b is a combination that is not selected before.
If the three feature point pairs Pa-b are determined to be good by the rigid transformation unit 15 (Yes in step ST21 in
As is apparent from the above description, according to the second embodiment, the rigid transformation unit 15 determines whether the three feature point pairs Pa-b are good or bad. If the result of the determination is bad, three feature point pairs Pa-b are reselected from among the N feature point pairs Pa-b searched by the pair searching unit 12. Accordingly, the accuracy of calculation of the matrix G to be used in the rigid transformation becomes higher than that in the first embodiment described above, and the accuracy of the position matching between the three-dimensional point group data A and the three-dimensional point group data B can be enhanced.
Furthermore, it is possible to omit rigid transformation processes and coincidence calculation processes that do not need to be performed. Accordingly, it is possible to reduce the calculation amount and shorten the processing time as compared with the first embodiment.
In the second embodiment, the rigid transformation unit 15 determines whether the three feature point pairs Pa-b are good or bad, and if the result of the determination is bad, reselects three feature point pairs Pa-b from among the N feature point pairs Pa-b searched by the pair searching unit 12. Alternatively, the rigid transformation unit 15 may determine whether the matrix G to be used in the rigid transformation of the three-dimensional point group data B is good or bad, and if the result of the determination is bad, reselect three feature point pairs Pa-b from among the N feature point pairs Pa-b searched by the pair searching unit 12. Also in this case, the accuracy of the position matching between the three-dimensional point group data A and the three-dimensional point group data B can be increased.
The goodness/badness of the matrix G to be used in the rigid transformation of the three-dimensional point group data B is determined as described below, for example.
Like the rigid transformation unit 13 in
If the calculated distance D is shorter than a preset distance threshold value, the rigid transformation unit 15 determines that the matrix G to be used in the rigid transformation of the three-dimensional point group data B is good. If the calculated distances D are equal to or larger than the distance threshold value, the rigid transformation unit 15 determines that the matrix G to be used in the rigid transformation of the three-dimensional point group data B is bad. The distance threshold value is 10 cm, for example.
If the rigid transformation unit 15 determines that the matrix G to be used in the rigid transformation of the three-dimensional point group data B is good, the procedures to be carried out thereafter are the same as those to be carried out by the rigid transformation unit 13 in the first embodiment.
If the rigid transformation unit 15 determines that the matrix G to be used in the rigid transformation of the three-dimensional point group data B is bad, the process performed by the rigid transformation unit 15 returns to the process in step ST11, and the rigid transformation unit 15 reselects three feature point pairs Pa-b from among the N feature point pairs Pa-b stored in the memory 15a.
The goodness/badness of the matrix G to be used in the rigid transformation of the three-dimensional point group data B may be determined in the manner described below.
Like the rigid transformation unit 13 in
In such a case, the rigid transformation unit 15 calculates the ratio between the size of the triangle having the three feature points a included in the three feature point pairs Pa-b as its vertexes and the size of the triangle having the three feature points b included in the three feature point pairs Pa-b after the rigid transformation as its vertices, that is, the scaling factor r of the three-dimensional point group data B.
The scaling factor r of the three-dimensional point group data B can be calculated by a method disclosed in Non-Patent Literature 4 mentioned below, for example.
If the calculated scaling factor r is close to 1, that is, if the calculated scaling factor r is within a preset threshold range, the rigid transformation unit 15 determines that the matrix G to be used in the rigid transformation of the three-dimensional point group data B is good. This threshold value may be 0.9 to 1.1, for example.
If the calculated scaling factor r is significantly different from 1, that is, if the calculated scaling factor r is outside the preset threshold range, the rigid transformation unit 15 determines that the matrix G to be used in the rigid transformation of the three-dimensional point group data B is bad.
If the rigid transformation unit 15 determines that the matrix G to be used in the rigid transformation of the three-dimensional point group data B is good, the procedures to be carried out thereafter are the same as those to be carried out by the rigid transformation unit 13 in the first embodiment.
If the rigid transformation unit 15 determines that the matrix G to be used in the rigid transformation of the three-dimensional point group data B is bad, the process performed by the rigid transformation unit 15 returns to the process in step ST11, and the rigid transformation unit 15 reselects three feature point pairs Pa-b from among the N feature point pairs Pa-b stored in the memory 15a.
Note that, within the scope of the present invention, the embodiments can be freely combined, modifications may be made to any component of any embodiment, or any component may be omitted from any embodiment.
The present invention is suitable for a position matching device, a position matching method, and a position matching program for performing position matching between sets of point group data each indicating the three-dimensional coordinate values of measurement points of a measurement target.
1: Three-dimensional sensor, 2: External storage device, 3: Display device, 11: Point group data reading unit, 12: Pair searching unit, 13: Rigid transformation unit, 13a: Memory, 14: Point group data outputting unit, 15: Rigid transformation unit, 15a: Memory, 21: Point group data reading circuit, 22: Pair searching circuit, 23: Rigid transformation circuit, 24: Point group data outputting circuit, 25: Rigid transformation circuit, 31: Memory, 32: Processor
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2016/066226 | 6/1/2016 | WO | 00 |