CN104657990A - Two-dimensional contour fast registration method - Google Patents

Two-dimensional contour fast registration method Download PDF

Info

Publication number
CN104657990A
CN104657990A CN201510064048.3A CN201510064048A CN104657990A CN 104657990 A CN104657990 A CN 104657990A CN 201510064048 A CN201510064048 A CN 201510064048A CN 104657990 A CN104657990 A CN 104657990A
Authority
CN
China
Prior art keywords
point
target data
relation
objective function
reference data
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
Application number
CN201510064048.3A
Other languages
Chinese (zh)
Inventor
宁涛
陈志同
黄方
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beihang University
Original Assignee
Beihang University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beihang University filed Critical Beihang University
Priority to CN201510064048.3A priority Critical patent/CN104657990A/en
Publication of CN104657990A publication Critical patent/CN104657990A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

The invention relates to a two-dimensional contour fast registration method. The two-dimensional contour fast registration method comprises six major steps: step 1, setting a reference data set and a target data set; step 2, for each point in the target data set, seeking a point with the shortest distance corresponding to the point from reference data set in a centralized manner; step 3, establishing a matching target function; step 4, optimizing the target function, and figuring out an optimal solution of the target function to obtain a new target data set; step 5, performing error analysis and calculation, and if error conditions are met or a maximum number of iterations is reached, going to the step 6, and otherwise, going to step 2, step 6, outputting an error analysis report according to a matching relation after the optimal matching relation is obtained, and realizing two-dimensional contour fast registration. The invention provides the two-dimensional contour fast registration method to realize an ICP (iterative closest point) algorithm, by adopting the method, curve contour registration is efficiently and stably realized, and the method provided by the invention is widely applied to measurement and detection of workpieces after processing, reconstruction of surfaces, identification of three-dimensional objects, calibration of cameras and the like.

Description

A kind of two-dimensional silhouette rapid registering method
Technical field
The present invention relates to a kind of two dimension (2D) profile rapid registering method, refer more particularly to the registration that curved profile is quick, efficient, stable.The invention belongs to Computer Applied Technology field.
Background technology
Iterative closest point algorithms (Iterative Closest Point, ICP) is a kind of method for registering based on free form curved surface that American scholar Besl and Mckay proposed for point set Registration of Measuring Data problem in 1992.This algorithm is on the basis of known two point sets and an initial state assumption corresponding relation, utilizes corresponding point set registration technology to carry out registration, continuous iteration and minimize the algorithm of Image matching error.Compared with the method for registering between corresponding point set, the sharpest edges of ICP algorithm are that it does not need to know the definite corresponding relation between two point sets, but start interative computation based on the corresponding relation of a hypothesis, finally find a corresponding relation optimized and a registration result optimized.ICP algorithm is suitable for registration problems when cannot know point set corresponding relation.The realization of classical ICP algorithm will be used Quaternion Method and ask for the maximum eigenwert of matrix and eigenvalue of maximum characteristic of correspondence vector algorithm, no matter adopts which kind of method to solve the objective function of ICP algorithm, all needs the accuracy considering to solve and speed of convergence.
In prior art, the realization of ICP algorithm has multiple, as singular value decomposition method, Quaternion method, orthogonal matrix method and two Quaternion method, wherein, and most importantly singular value decomposition method and Quaternion method.
Prior art one, based on the method (SVD) of svd.The method, by the relevant nature of the conversion of matrix, directly obtains optimum geometric parameter solution.
Prior art two, based on the calculating kinematic parameter method of hypercomplex number.Rotation matrix and a translation vector unit quaternion matrix represent by the method, then a symmetric matrix is constructed according to the covariance matrix of two point sets, the unit character vector corresponding to eigenvalue of maximum obtaining this matrix is optimum rotation, thus obtains rotation geometry parameter and translation geometric parameter.
Prior art one method implements fairly simple, and result of calculation is also more accurate.The method is owing to being decompose based on SVD, and not all matrix can both carry out SVD decomposition, and for linear and have the data set of singular point not carry out SVD decomposition, therefore the range of application of prior art one has limitation.
Prior art two is owing to being expressed as the function about rotation parameter by translation parameters when tectonic unit's Quaternion Matrix, the calculating therefore for rotation parameter has good precision, but for the calculating of translation parameters, its precision need to improve.
Summary of the invention
1, object: the object of this invention is to provide a kind of two-dimensional silhouette rapid registering method, to improve efficiency and the stability of measurement point string and curved profile registration.
2, technical scheme: the object of the invention is to be achieved through the following technical solutions.
A kind of two-dimensional silhouette rapid registering method of the present invention, it comprises the following steps:
Step one, setting reference data set and target data set;
Step 2, each point concentrated target data, concentrate the point seeking a corresponding with it bee-line in reference data;
Step 3, foundation coupling objective function;
Step 4, objective function to be optimized, to obtain objective function optimum solution, obtain new target data set;
Step 5, carry out error analysis calculation, if meet error condition or reach maximum iteration time, go to step six, otherwise, go to step two;
Step 6, after obtaining Optimum Matching relation, according to this matching relationship output error analysis report.
The rapid registering of two-dimensional silhouette is just achieved by above-mentioned six steps.
Wherein, described in step one, " reference data set " refers to two-dimentional reference data point set, and " target data set " refers to two-dimensional measurement point string, is actual measured value.
Wherein, " bee-line " described in step 2 refers to that obtaining each number of targets strong point by pointwise concentrates corresponding bee-line point in reference data points, each number of targets strong point is made to have a reference data points corresponding with it, its corresponding relation is not also known, but can suppose to there is a corresponding relation, this relation object is similar to rotation and the translation transformation relation of rigid body, therefore, only rotation matrix and translation vector need be solved, just this transformation relation can be obtained;
Wherein, " setting up coupling objective function " described in step 3, " coupling objective function " hypothesis existence target data point set and reference data points collection corresponding relation should be referred to, this corresponding relation is equivalent to rigid body and rotates and translation motion, is namely measurement point string and curved profile registration relation; Described " setting up coupling objective function ", its way sets up coupling objective function based on such corresponding relation according to least square method principle;
Wherein, " being optimized " matching relationship referring to and obtain when making target function value minimum described in step 4 to objective function, then carry out " rigid body translation " according to this relation and obtain new target data point set, certainly, only once and the transformation relation obtained normally can not meet error requirements, need after conversion that the new target data point set that obtains is as the target data point set of next iteration, repeat above step, this is so-called iterative closest point algorithms just.
Wherein, according to the new target data point set that step 4 obtains in step 5, carry out error analysis calculation, if meet error requirements or reach maximum iteration time, then go to step six, otherwise repeat above step until iteration terminates.
3, advantage and effect
The present invention proposes a kind of two-dimensional silhouette rapid registering method to realize ICP algorithm, the method efficiently, stably can realize curved profile registration, and the present invention also can solve linearly and have the registration problems between the data set of singular point.The present invention has wide range of applications, as processed the identification, camera calibration etc. of the measurement and detection of rear workpiece, surperficial reconstruction, three-dimensional body.Meaning of the present invention is to realize 2D measurement point string and quick, efficient, the stable registration of curved profile.
Accompanying drawing explanation
Fig. 1 is iterative closest point algorithms schematic diagram
Fig. 2 is two-dimensional silhouette registration fast method idiographic flow enforcement figure
Code name in figure, symbol description are as follows:
P i-target data point set, is provided with n data point i=1,2,3 ..., n
Q i-number of targets strong point P ibee-line point is concentrated to reference data points;
P i 1-target data point set P ithrough the new target data point set that first time rotates and obtains after translation transformation;
Q i 1-number of targets strong point P i 1bee-line point is concentrated to reference data points;
P i k-target data the point set that obtains after kth time iterated transform;
Q i k-number of targets strong point P i kbee-line point is concentrated to reference data points.
Embodiment
See Fig. 1, Fig. 2, a kind of two-dimensional silhouette rapid registering method of the present invention, concrete implementation step is as follows:
Step one, existing target data point set P i(i=1,2 ..., n), be provided with n number of targets strong point, reference data point set from input DXF graphic file, the measurement point data that target data point set is measured from surveying instrument;
Step 2, get target data point concentrate 1 P i(x i, y i), concentrate searching point in reference data points make a P iarrive distance is the shortest, and namely calculating reference point concentrates corresponding point make minimum, in this way the point that can find correspondence is concentrated in reference point to each point in target data.Suppose existence rotation matrix and a translation vector, target data point set P i(x i, y i) obtain a new new data point set by this conversion corresponding relation between these two point sets is x i 1 y i 1 = cos θ sin θ - sin θ cos θ x i y i + b 1 b 2 , Wherein, θ, b 1, b 2for undetermined coefficient, matrix cos θ sin θ - sin θ cos θ For rotation matrix, vector b 1 b 2 For translation vector;
Step 3, solve undetermined coefficient θ, b according to the corresponding relation in step 2 1, b 2, resolution principle should make the number of targets strong point after conversion to P i(x i, y i) corresponding to reference data points the quadratic sum of distance minimum, set up about independent variable θ, b according to this principle 1, b 2objective function:
f = Σ i = 1 n [ ( x i ′ - cos θx i - sin θy i - b 1 ) 2 + ( y i ′ + sin θx i - cos θy i - b 2 ) 2 ] ;
Step 4, objective function to be optimized, to obtain objective function optimum solution.If function f gets minimum value, then the local derviation numerical value of f to each unknowm coefficient equals zero, and so can set up following three equations:
∂ f ∂ θ = 2 Σ [ ( x i ′ - cos θx i - sin θ y i - b 1 ) ( sin θx - cos θy i ) + ( y i ′ + sin θx i - cos θy i - b 2 ) ( cos θx i + sin θy i ) ] = 0
∂ f ∂ b 1 = - 2 Σ ( x i ′ - cos θx i - sin θy i - b 1 )
∂ f ∂ b 2 = - 2 Σ ( y i ′ + sin θx i - cos θy i - b 2 )
These three equations are solved, obtains
b 1 = Σ x i ′ - cos θΣ x i - sin θΣ y i n
b 2 = Σ y i ′ + sin θΣ x i - cos θΣ y i n
If X ′ = Σ x i ′ n , Y ′ = Σ y i ′ n , X = Σ x i n , Y = Σ y i n , Obtain:
Σ{(Yx i-Xy i)+[(y′ i-Y′)x i-(x′ i-X′)y i]cosθ+[(x′ i-X′)x i+(y′ i-Y′)y i]sinθ}=0
Because Y Σ is x i-X Σ y i=0, so
[n(X′Y-XY′)+Σ(x iy′ i-x′ iy i)]cosθ-[n(ZZ′+YY′)-Σ(x′ ix i+y′ iy i)]sinθ=0
Thus try to achieve
θ = arctan = [ n ( X ′ Y - XY ′ ) + Σ ( x i y i ′ - x i ′ y i ) ] [ n ( ZZ ′ + YY ′ ) - Σ ( x i ′ x i + y i ′ + y i ) ]
θ is substituted into b 1, b 2can in the hope of b 1, b 2.
θ, b will be obtained 1, b 2value, be then updated to equation x i 1 y i 1 = cos θ sin θ - sin θ cos θ x i y i + b 1 b 2 In, just can obtain new target data point set
Step 5, the target data point set that step 4 is obtained be updated to equation in carry out error analysis, if error σ is not less than specified value, then will step 2 is returned, if the target data point that obtains is after kth time iteration as new target data point set corresponding bee-line point is concentrated to be to reference data points so repeat down, until error meets the demands or iterations reaches maximum requirement, then go to step six;
Step 6, the data point finally obtained and reference point to be made comparisons one by one, obtain the error of each point and output error analysis report, thus obtain the error analysis report of whole two-dimensional silhouette curve registration.
The present invention can be applicable to process in the measurement and detection technology of rear workpiece, first a registration mode is found according to datum mark in measurement and detection process, then the error of other measurement points and reference point is calculated according to this mode and output error is reported, and then obtain Error analysis of machining report, to processing, there is certain directive function.The present invention is not limited to measure and detects and in registration technology field, also can be applicable to the reconstruction on surface, the identification of three-dimensional body, the demarcation etc. of camera.

Claims (6)

1. a two-dimensional silhouette rapid registering method, is characterized in that: it comprises the following steps:
Step one, setting reference data set and target data set;
Step 2, each point concentrated target data, concentrate the point seeking a corresponding with it bee-line in reference data;
Step 3, foundation coupling objective function;
Step 4, objective function to be optimized, to obtain objective function optimum solution, obtain new target data set;
Step 5, carry out error analysis calculation, if meet error condition or reach maximum iteration time, go to step six, otherwise, go to step two;
Step 6, after obtaining Optimum Matching relation, according to this matching relationship output error analysis report, achieve the rapid registering of two-dimensional silhouette.
2. a kind of two-dimensional silhouette rapid registering method according to claim 1, is characterized in that: " reference data set " refers to two-dimentional reference data point set described in step one, " target data set " refers to two-dimensional measurement point string, is actual measured value.
3. a kind of two-dimensional silhouette rapid registering method according to claim 1, it is characterized in that: " bee-line " described in step 2 refers to that obtaining each number of targets strong point by pointwise concentrates corresponding bee-line point in reference data points, each number of targets strong point is made to have a reference data points corresponding with it, its corresponding relation is not known, but suppose to there is a corresponding relation, this relation object is similar to rotation and the translation transformation relation of rigid body, therefore, only rotation matrix and translation vector need be solved, just this transformation relation can be obtained.
4. a kind of two-dimensional silhouette rapid registering method according to claim 1, it is characterized in that: " setting up coupling objective function " described in step 3, " coupling objective function " hypothesis existence target data point set and reference data points collection corresponding relation should be referred to, this corresponding relation is equivalent to rigid body and rotates and translation motion, is namely measurement point string and curved profile registration relation; Described " setting up coupling objective function ", its way sets up coupling objective function based on such corresponding relation according to least square method principle.
5. a kind of two-dimensional silhouette rapid registering method according to claim 1, it is characterized in that: " being optimized " matching relationship referring to and obtain when making target function value minimum described in step 4 to objective function, then carry out " rigid body translation " according to this relation and obtain new target data point set, certainly, only once and the transformation relation obtained normally can not meet error requirements, need the new target data point set that obtains after conversion as the target data point set of next iteration, repeat above step, this is so-called iterative closest point algorithms just.
6. a kind of two-dimensional silhouette rapid registering method according to claim 1, it is characterized in that: according to the new target data point set that step 4 obtains in step 5, carry out error analysis calculation, if meet error requirements or reach maximum iteration time, then go to step six, otherwise repeat above step until iteration terminates.
CN201510064048.3A 2015-02-06 2015-02-06 Two-dimensional contour fast registration method Pending CN104657990A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510064048.3A CN104657990A (en) 2015-02-06 2015-02-06 Two-dimensional contour fast registration method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510064048.3A CN104657990A (en) 2015-02-06 2015-02-06 Two-dimensional contour fast registration method

Publications (1)

Publication Number Publication Date
CN104657990A true CN104657990A (en) 2015-05-27

Family

ID=53249066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510064048.3A Pending CN104657990A (en) 2015-02-06 2015-02-06 Two-dimensional contour fast registration method

Country Status (1)

Country Link
CN (1) CN104657990A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107886528A (en) * 2017-11-30 2018-04-06 南京理工大学 Distribution line working scene three-dimensional rebuilding method based on a cloud
CN111815768A (en) * 2020-09-14 2020-10-23 腾讯科技(深圳)有限公司 Three-dimensional face reconstruction method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030190091A1 (en) * 2002-04-08 2003-10-09 Stewart Charles V. Dual bootstrap iterative closest point method and algorithm for image registration
CN104166989A (en) * 2014-07-04 2014-11-26 电子科技大学中山学院 Rapid ICP method for two-dimensional laser radar point cloud matching

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030190091A1 (en) * 2002-04-08 2003-10-09 Stewart Charles V. Dual bootstrap iterative closest point method and algorithm for image registration
CN104166989A (en) * 2014-07-04 2014-11-26 电子科技大学中山学院 Rapid ICP method for two-dimensional laser radar point cloud matching

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李元璐: "基于ICP算法的医学图像配准的研究", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107886528A (en) * 2017-11-30 2018-04-06 南京理工大学 Distribution line working scene three-dimensional rebuilding method based on a cloud
CN107886528B (en) * 2017-11-30 2021-09-03 南京理工大学 Distribution line operation scene three-dimensional reconstruction method based on point cloud
CN111815768A (en) * 2020-09-14 2020-10-23 腾讯科技(深圳)有限公司 Three-dimensional face reconstruction method and device

Similar Documents

Publication Publication Date Title
CN103236064B (en) A kind of some cloud autoegistration method based on normal vector
CN104619020B (en) WIFI indoor orientation methods based on RSSI and TOA rangings
CN110497373B (en) Joint calibration method between three-dimensional laser radar and mechanical arm of mobile robot
CN102034101B (en) Method for quickly positioning circular mark in PCB visual detection
CN105806315B (en) Noncooperative target relative measurement system and measuring method based on active coding information
CN105954712B (en) The direct localization method of the multiple target of associated wireless electric signal complex envelope and carrier phase information
CN102589530B (en) Method for measuring position and gesture of non-cooperative target based on fusion of two dimension camera and three dimension camera
CN105021124A (en) Planar component three-dimensional position and normal vector calculation method based on depth map
CN104392426A (en) Adaptive markerless three-dimensional point cloud automatic registration method
CN111145232A (en) Three-dimensional point cloud automatic registration method based on characteristic information change degree
CN104748683A (en) Device and method for online and automatic measuring numerical control machine tool workpieces
CN104121902A (en) Implementation method of indoor robot visual odometer based on Xtion camera
CN110009680B (en) Monocular image position and posture measuring method based on circle feature and different-surface feature points
CN109785389A (en) A kind of three-dimension object detection method based on Hash description and iteration closest approach
CN103617328A (en) Airplane three-dimensional attitude computation method
CN108663653A (en) Wave arrival direction estimating method based on L-shaped Electromagnetic Vector Sensor Array
CN109766903B (en) Point cloud model curved surface matching method based on curved surface features
CN108959182A (en) The small feature loss gravitational field modeling method returned based on Gaussian process
CN104615880A (en) Rapid ICP (inductively coupled plasma) method for point cloud matching of three-dimensional laser radar
CN113902779B (en) Point cloud registration method based on tensor voting method
CN104657990A (en) Two-dimensional contour fast registration method
CN103500448A (en) Method for estimating affine transformation model parameters of high density packaging component
CN111985308B (en) Stereoscopic vision space curve matching method of differential geometry
Li et al. An allowance optimal distribution method based on improved iterative closest point algorithm
CN104331563A (en) Profile rectification and positioning design method for rolling blade

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150527

WD01 Invention patent application deemed withdrawn after publication