CN104778731A - Method for solving three-dimensional similarity transformation parameter of model based on fitting plane normal vector direction - Google Patents
Method for solving three-dimensional similarity transformation parameter of model based on fitting plane normal vector direction Download PDFInfo
- Publication number
- CN104778731A CN104778731A CN201510094552.8A CN201510094552A CN104778731A CN 104778731 A CN104778731 A CN 104778731A CN 201510094552 A CN201510094552 A CN 201510094552A CN 104778731 A CN104778731 A CN 104778731A
- Authority
- CN
- China
- Prior art keywords
- model
- reference point
- dimensional
- coordinate
- normal vector
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Image Analysis (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention discloses a method for solving a three-dimensional similarity transformation parameter of a model based on a fitting plane normal vector direction. The method comprises the following steps: firstly, selecting N (N is greater than or equal to 3) pairs of corresponding points in a three-dimensional model and a real model as directional reference points, completing the coordinate centralization of the directional reference points under each model, solving the coordinates of the directional reference points after coordinate centralization, and further calculating a zoom factor lambda between the three-dimensional model and the real model; then obtaining optimal fitting planes of the directional reference points in the three-dimensional model and the real model by using an overall least square method, and performing further calculation so as to obtain the normal vectors of the two optimal fitting planes; finally calculating a three-dimensional rotary matrix R between the three-dimensional model and the real model, and calculating the translation vector t of similarity transformation. The method disclosed by the invention can realize the direct solution of the three-dimensional rotary parameters between the models without providing an initial value in advance, so that the dependence on the initial values of the parameters is reduced, and the method is suitable for the solution of three-dimensional similarity transformation parameters under various rotary conditions.
Description
Technical field
The present invention relates to the method asking the three-dimensional similarity transformation parameter of model, particularly ask the method for the three-dimensional similarity transformation parameter of model based on fit Plane normal vector direction, belong to mapping and computer vision field.
Background technology
Often relate between different coordinates in the processing procedure of target three-dimensional fix and changing, as the conversion between partial 3 d coordinate system and earth coordinates, conversion etc. between photogrammetric image space coordinate system and object coordinates system.Conversion between three-dimensional cartesian coordinate system meets rigid body translation, has needed solving of 7 parameters, comprises the rotation parameter of conversion between scale-up factor, coordinate system translation vector and coordinate system.Wherein rotation relationship usually with one by 3 independent parameters form 3 × 3 rotation matrix represent to there is correlativity between 9 elements of rotation matrix, can cause separating unstable according to direct linear solution method.Therefore, how fast, accurately solve between coordinate system rotation relationship become focal point.
The mode at usual employing three-dimensional rotation angle expresses rotation relationship, according to three dimensions similarity transformation relation, the multivariate function of three-dimensional similarity transformation parameter are launched into the once item of Taylor series, by iterative accurate parameters, but more accurate unknown number initial value must be provided, otherwise the situation solving and do not restrain or converge to false solution can be caused.When coordinate system rotation angle is large especially, predict that rotation angle initial value is very difficult exactly.At computer vision field, the rotation relationship method for solving based on unit quaternion is widely used, but it is indefinite to there is parameter physical significance, not easily the problem such as estimated parameter precision.For such problem, be necessary to study a kind of parametric solution method being applicable to the three-dimensional similarity transformation of high rotation angle.
Summary of the invention
Technology of the present invention is dealt with problems and is: overcome the deficiencies in the prior art, provide a kind of method asking the three-dimensional similarity transformation parameter of model based on fit Plane normal vector direction, corresponding directed reference point is chosen in stereoscopic model and true model, and utilize total least square method to simulate best fit plane, the rotation matrix between two best fit planes is tried to achieve in structure by-level face, finally determine the three-dimensional similarity transformation parameter between stereoscopic model and true model, without the need to prior given initial value, get final product the direct solution of the three-dimensional rotation parameter between implementation model, reduce the dependence to initial parameter value, under being applicable to various rotating condition, three-dimensional similarity transformation parameter solves.
Technical solution of the present invention is: the method asking the three-dimensional similarity transformation parameter of model based on fit Plane normal vector direction, and step is as follows:
(1) in stereoscopic model and true model, N number of corresponding point are chosen as directed reference point, and complete the coordinate center of gravity of directed reference point under each self model, try to achieve the coordinate after each directed reference point coordinate center of gravity, described N be more than or equal to 3 natural number;
(2) utilize the coordinate after each directed reference point coordinate center of gravity obtained in step (1), calculate the zoom factor λ between stereoscopic model and true model;
(3) according to the coordinate after each directed reference point coordinate center of gravity obtained in step (1), total least squares method is adopted to carry out plane fitting to the directed reference point in stereoscopic model and true model respectively, obtain the best-fitting plane of directed reference point in stereoscopic model and true model, calculate the normal vector of two best-fitting planes further;
(4) build by-level face, according to the normal vector of two best-fitting planes obtained in step (3), calculate the three-dimensional rotation matrix R between stereoscopic model and true model;
(5) according to the coordinate after each directed reference point coordinate center of gravity obtained in the three-dimensional rotation matrix R between the stereoscopic model determined in the zoom factor λ between the stereoscopic model solved in step (2) and true model, step (4) and true model and step (1), the translation vector t of similarity transformation is calculated.
Build by-level face in described step (4), according to the normal vector of two best-fitting planes obtained in step (3), calculate the three-dimensional rotation matrix R between stereoscopic model and true model, concrete steps are:
(4-1) a by-level face π is built
h, its normal vector is [0,0,1]
t, make the fit Plane π of stereoscopic model
1to by-level face π
hrotation angle be
then
and ω
1specifically by formula:
ω
1=-arcsinq
1
Provide, wherein, (p
1, q
1, r
1) be π
1unit normal vector;
(4-2) π is calculated
1to π
hrotation matrix
and by π
1on each directed reference point rotate to π
h, specifically by formula:
Provide, in formula, X
1i, Y
1iand Z
1irepresent π respectively
1on the center of gravity coordinate in stereoscopic model of i-th directed reference point, X
hi, Y
hiand Z
hirepresent π respectively
1on i-th directed reference point by by-level face π
hcoordinate in the three-dimensional coordinate system built, described by by-level face π
hthe XOY plane of the three-dimensional coordinate system built and by-level face π
hoverlap, Z axis positive dirction and by-level face π
hnormal vector direction consistent;
(4-3) π is made
hto the fit Plane π of true model
2between rotation angle be
then π
hto π
2rotation matrix
by formula:
Provide, wherein
and ω
2by formula:
ω
2=-arcsinq
2
Provide, wherein (p
2, q
2, r
2) be π
2unit normal vector;
κ
2pass through equation:
Obtain, X in formula
2i, Y
2iand Z
2irepresent π respectively
2on the center of gravity coordinate in stereoscopic model of i-th directed reference point;
(4-4) π that step (4-2) obtains is utilized
1to π
hrotation matrix
with the π that step (4-3) is determined
hto π
2rotation matrix
calculate the rotation matrix R between stereoscopic model and true model, specifically by formula:
Provide.
π in described step (4-2)
1to π
hrotation matrix
specifically by formula:
Provide.
According to the coordinate after each directed reference point coordinate center of gravity obtained in the three-dimensional rotation matrix R between the stereoscopic model determined in the zoom factor λ between the stereoscopic model solved in step (2) and true model, step (4) and true model and step (1) in described step (5), calculate the translation vector t of similarity transformation, specifically by formula:
Provide, wherein
with
for the barycentric coordinates of reference point directed in stereoscopic model,
with
for the barycentric coordinates of reference point directed in true model.
The present invention's beneficial effect is compared with prior art:
(1) existing method is difficult to the three-dimensional rotation relation under the condition not providing rotation angle initial value between accurate coordinates computed system, also the statistics of solving precision is unfavorable for, context of methods adopts and builds fit Plane, by the rotation angle between the relation solving model (coordinate system) of planar process vector, without the need to prior given initial value, realize solving of the three-dimensional similarity transformation relation between coordinate system, reduce the dependence to initial parameter value, under being applicable to various rotating condition, three-dimensional similarity transformation parameter solves;
(2) intermediate quantity that context of methods solves has clear and definite physical significance, and its value can be good at reaction solving result and precision.
Accompanying drawing explanation
Fig. 1 is process flow diagram of the present invention.
Fig. 2 is the schematic diagram by planar process vector calculation model rotation angle in the present invention.
Embodiment
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is further described in detail.
Technical solution of the present invention can adopt computer software technology to realize automatic operational scheme, describes technical solution of the present invention in detail below in conjunction with drawings and Examples.Be illustrated in figure 1 process flow diagram of the present invention, as can be seen from Figure 1, the method asking the three-dimensional similarity transformation parameter of model based on fit Plane normal vector direction that the present invention proposes, concrete steps are as follows:
(1) in stereoscopic model and true model, N number of corresponding point are chosen as directed reference point, and complete the coordinate center of gravity of directed reference point under each self model, try to achieve the coordinate after each directed reference point coordinate center of gravity, described N be more than or equal to 3 natural number;
During concrete enforcement center of gravity, the first barycentric coordinates of computation model, the formula of employing is as follows:
Wherein
the focus point coordinate of directed reference point under being respectively stereoscopic model and true model, (X
1i, Y
1i, Z
1i), (X
2i, Y
2i, Z
2i) be respectively the three-dimensional coordinate of stereoscopic model and lower i-th the directed reference point of true model;
The process of model points coordinate center of gravity adopts following formulae discovery:
Wherein
be respectively the model orientation reference point coordinate after center of gravity process under stereoscopic model and true model.
(2) utilize the coordinate after each directed reference point coordinate center of gravity obtained in step (1), calculate the zoom factor λ between stereoscopic model and true model; Specifically by formula:
Provide.
(3) according to the coordinate after each directed reference point coordinate center of gravity obtained in step (1), total least squares method is adopted to carry out plane fitting to the directed reference point in stereoscopic model and true model respectively, obtain the best-fitting plane of directed reference point in stereoscopic model and true model, calculate the normal vector of two best-fitting planes further;
The step of reference point plane fitting is as follows:
First suppose that plane equation is:
Z=aX+bY+d
Wherein (X, Y, Z) is reference point coordinate, and a, b, d are plane parameter, are solved and can be solved a, b, d by the least square of linear equation;
Then based on the thought of total least square TLS, the distance function of point to plane is built:
Taking A into account
2+ B
2+ C
2under the constraint condition of=1, with
for unknown number initial value carries out the indirect adjustment of Problem with Some Constrained Conditions, complete the Exact Solution of fit Plane parameter, wherein
Finally calculate normalization method vector n=[A, B, the C] of corresponding flat
t.
(4) build by-level face, according to the normal vector of two best-fitting planes obtained in step (3), calculate the three-dimensional rotation matrix R between stereoscopic model and true model; Concrete steps are:
(4-1) a by-level face π is built
h, specifically see Fig. 2, its normal vector is [0,0,1]
t, make the fit Plane π of stereoscopic model
1to by-level face π
hrotation angle be
then
and ω
1specifically by formula:
ω
1=-arcsinq
1
Provide, wherein, (p
1, q
1, r
1) be π
1unit normal vector;
(4-2) π is calculated
1to π
hrotation matrix
and by π
1on each directed reference point rotate to π
h, specifically by formula:
Provide, in formula, X
1i, Y
1iand Z
1irepresent π respectively
1on the center of gravity coordinate in stereoscopic model of i-th directed reference point, X
hi, Y
hiand Z
hirepresent π respectively
1on i-th directed reference point by by-level face π
hcoordinate in the three-dimensional coordinate system built, described by by-level face π
hthe XOY plane of the three-dimensional coordinate system built and by-level face π
hoverlap, Z axis positive dirction and by-level face π
hnormal vector direction consistent;
(4-3) π is made
hto the fit Plane π of true model
2between rotation angle be
then π
hto π
2rotation matrix
by formula:
Provide, wherein
and ω
2by formula:
ω
2=-arcsinq
2
Provide, wherein (p
2, q
2, r
2) be π
2unit normal vector;
κ
2pass through equation:
Obtain, X in formula
2i, Y
2iand Z
2irepresent π respectively
2on the center of gravity coordinate in stereoscopic model of i-th directed reference point;
Solving rotation matrix
time, by rotation matrix
be 3 × 3 matrixes, but its independent parameter only have 3, so there is strong correlation between rotation matrix 9 elements, if direct matrix carries out linear solution, can cause and separate instability, thus cause solving failure, therefore need 3 independent parameters of trying to achieve matrix respectively, and then determine rotation matrix
value.
(4-4) π that step (4-2) obtains is utilized
1to π
hrotation matrix
with the π that step (4-3) is determined
hto π
2rotation matrix
calculate the rotation matrix R between stereoscopic model and true model, specifically by formula:
Provide.
(5) according to the coordinate after each directed reference point coordinate center of gravity obtained in the three-dimensional rotation matrix R between the stereoscopic model determined in the zoom factor λ between the stereoscopic model solved in step (2) and true model, step (4) and true model and step (1), calculate the translation vector t of similarity transformation, specifically by formula:
Provide, wherein
with
for the barycentric coordinates of reference point directed in stereoscopic model,
with
for the barycentric coordinates of reference point directed in true model.
The method asking the three-dimensional similarity transformation parameter of model based on fit Plane normal vector direction that the present invention proposes, can be applicable to the processing procedure relating to space three-dimensional conversion and ordinate transform, comprise the space coordinates conversion in geodetic surveying field, the Image model absolute orientation in photogrammetric field and the model conversion of computer vision field and local coordinate system conversion etc.
The content be not described in detail in instructions of the present invention belongs to the known technology of professional and technical personnel in the field.
Claims (4)
1. ask the method for the three-dimensional similarity transformation parameter of model based on fit Plane normal vector direction, it is characterized in that step is as follows:
(1) in stereoscopic model and true model, N is chosen to corresponding point as directed reference point, and complete the coordinate center of gravity of directed reference point under each self model, try to achieve the coordinate after each directed reference point coordinate center of gravity, described N be more than or equal to 3 natural number;
(2) utilize the coordinate after each directed reference point coordinate center of gravity obtained in step (1), calculate the zoom factor λ between stereoscopic model and true model;
(3) according to the coordinate after each directed reference point coordinate center of gravity obtained in step (1), total least squares method is adopted to carry out plane fitting to the directed reference point in stereoscopic model and true model respectively, obtain the best-fitting plane of directed reference point in stereoscopic model and true model, calculate the normal vector of two best-fitting planes further;
(4) build by-level face, according to the normal vector of two best-fitting planes obtained in step (3), calculate the three-dimensional rotation matrix R between stereoscopic model and true model;
(5) according to the coordinate after each directed reference point coordinate center of gravity obtained in the three-dimensional rotation matrix R between the stereoscopic model determined in the zoom factor λ between the stereoscopic model solved in step (2) and true model, step (4) and true model and step (1), the translation vector t of similarity transformation is calculated.
2. the computing method of the three-dimensional similarity transformation parameter of model are asked as claimed in claim 1 based on fit Plane normal vector direction, it is characterized in that: in described step (4), build by-level face, according to the normal vector of two best-fitting planes obtained in step (3), calculate the three-dimensional rotation matrix R between stereoscopic model and true model, concrete steps are:
(4-1) a by-level face π is built
h, its normal vector is [0,0,1]
t, make the fit Plane π of stereoscopic model
1to by-level face π
hrotation angle be
then
and ω
1specifically by formula:
ω
1=-arcsin q
1
Provide, wherein, (p
1, q
1, r
1) be π
1unit normal vector;
(4-2) π is calculated
1to π
hrotation matrix
and by π
1on each directed reference point rotate to π
h, specifically by formula:
Provide, in formula, X
1i, Y
1iand Z
1irepresent π respectively
1on the center of gravity coordinate in stereoscopic model of i-th directed reference point, X
hi, Y
hiand Z
hirepresent π respectively
1on i-th directed reference point by by-level face π
hcoordinate in the three-dimensional coordinate system built, described by by-level face π
hthe XOY plane of the three-dimensional coordinate system built and by-level face π
hoverlap, Z axis positive dirction and by-level face π
hnormal vector direction consistent;
(4-3) π is made
hto the fit Plane π of true model
2between rotation angle be
then π
hto π
2rotation matrix
by formula:
Provide, wherein
and ω
2by formula:
ω
2=-arcsin q
2
Provide, wherein (p
2, q
2, r
2) be π
2unit normal vector;
κ
2pass through equation:
Obtain, X in formula
2i, Y
2iand Z
2irepresent π respectively
2on the center of gravity coordinate in stereoscopic model of i-th directed reference point;
(4-4) π that step (4-2) obtains is utilized
1to π
hrotation matrix
with the π that step (4-3) is determined
hto π
2rotation matrix
calculate the rotation matrix R between stereoscopic model and true model, specifically by formula:
Provide.
3. the computing method asking the three-dimensional similarity transformation parameter of model based on fit Plane normal vector direction according to claim 2, is characterized in that: π in described step (4-2)
1to π
hrotation matrix
specifically by formula:
Provide.
4. the computing method asking the three-dimensional similarity transformation parameter of model based on fit Plane normal vector direction according to claim 1, it is characterized in that: according to the coordinate after each directed reference point coordinate center of gravity obtained in the three-dimensional rotation matrix R between the stereoscopic model determined in the zoom factor λ between the stereoscopic model solved in step (2) and true model, step (4) and true model and step (1) in described step (5), calculate the translation vector t of similarity transformation, specifically by formula:
Provide, wherein
with
for the barycentric coordinates of reference point directed in stereoscopic model,
with
for the barycentric coordinates of reference point directed in true model.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510094552.8A CN104778731A (en) | 2015-03-03 | 2015-03-03 | Method for solving three-dimensional similarity transformation parameter of model based on fitting plane normal vector direction |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510094552.8A CN104778731A (en) | 2015-03-03 | 2015-03-03 | Method for solving three-dimensional similarity transformation parameter of model based on fitting plane normal vector direction |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104778731A true CN104778731A (en) | 2015-07-15 |
Family
ID=53620175
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510094552.8A Pending CN104778731A (en) | 2015-03-03 | 2015-03-03 | Method for solving three-dimensional similarity transformation parameter of model based on fitting plane normal vector direction |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104778731A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107203269A (en) * | 2017-06-01 | 2017-09-26 | 珠海智康医疗科技有限公司 | A kind of data processing method and device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6580821B1 (en) * | 2000-03-30 | 2003-06-17 | Nec Corporation | Method for computing the location and orientation of an object in three dimensional space |
CN101943563A (en) * | 2010-03-26 | 2011-01-12 | 天津大学 | Rapid calibration method of line-structured light vision sensor based on space plane restriction |
-
2015
- 2015-03-03 CN CN201510094552.8A patent/CN104778731A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6580821B1 (en) * | 2000-03-30 | 2003-06-17 | Nec Corporation | Method for computing the location and orientation of an object in three dimensional space |
CN101943563A (en) * | 2010-03-26 | 2011-01-12 | 天津大学 | Rapid calibration method of line-structured light vision sensor based on space plane restriction |
Non-Patent Citations (2)
Title |
---|
张永军等: "大旋角影像的绝对定向方法研究", 《武汉大学学报 信息科学版》 * |
钟灿: "非常规航摄影像定位方法及精度评定", 《中国博士学位论文全文数据库 基础科学辑》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107203269A (en) * | 2017-06-01 | 2017-09-26 | 珠海智康医疗科技有限公司 | A kind of data processing method and device |
CN107203269B (en) * | 2017-06-01 | 2020-05-05 | 珠海智康医疗科技有限公司 | Data processing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102393183A (en) | Fast registration method for huge amount of point cloud based on control network | |
CN103994765B (en) | Positioning method of inertial sensor | |
CN105913489A (en) | Indoor three-dimensional scene reconstruction method employing plane characteristics | |
CN106599427B (en) | A kind of Wave Information prediction technique based on bayesian theory and aircushion vehicle posture information | |
CN104463969B (en) | A kind of method for building up of the model of geographical photo to aviation tilt | |
CN103886593A (en) | Method for detecting hook face circular hole based on three-dimensional point cloud | |
CN104406538A (en) | Three-dimensional mark point matching method for point cloud registration and three-dimensional scanning method | |
CN106600632A (en) | Improved matching cost aggregation stereo matching algorithm | |
CN106067172A (en) | A kind of underwater topography image based on suitability analysis slightly mates and mates, with essence, the method combined | |
CN102609940A (en) | Method for processing errors generated by point cloud registration in process of surface reconstruction of measuring object by using ground laser scanning technique | |
CN104933639A (en) | A small-interference stability rapid analysis method targeted at a large scale electric power system | |
CN105066996B (en) | Adaptive matrix Kalman filtering Attitude estimation method | |
CN106547724A (en) | Theorem in Euclid space coordinate transformation parameter acquisition methods based on minimum point set | |
CN104318551A (en) | Convex hull feature retrieval based Gaussian mixture model point cloud registration method | |
CN106408653A (en) | Real-time robust cluster adjustment method for large-scale three-dimensional reconstruction | |
CN104977816B (en) | The mechanical parameter flexible measurement method of mask aligner mask platform micropositioner based on Compact Particle Swarm Optimization algorithms | |
CN103344946A (en) | Foundation radar and aerial mobile platform radar real-time error registering method | |
CN105004351A (en) | SINS large-azimuth misalignment angle initial alignment method based on self-adaptation UPF | |
CN104036512A (en) | Novel Tsai's camera calibration improved method based on orthogonal vanishing points | |
CN106971087A (en) | A kind of Flatness error evaluation method based on secondary learning aid algorithm of climbing the mountain | |
CN103400393B (en) | A kind of image matching method and system | |
CN103324784B (en) | A kind of grid model collision processing method based on local restriction | |
CN101609563A (en) | A kind of construction method of binary tree of 3 D model shape features | |
CN103438872A (en) | Indoor and field integrated system based on dam three-dimension forward intersection measurement | |
CN102879179B (en) | Pointing correction method of biased three-axis telescope |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150715 |
|
RJ01 | Rejection of invention patent application after publication |