CN1804904A - Method for directly performing three-dimensional model transformation with three-dimensional bench marks - Google Patents

Method for directly performing three-dimensional model transformation with three-dimensional bench marks Download PDF

Info

Publication number
CN1804904A
CN1804904A CNA2006100234512A CN200610023451A CN1804904A CN 1804904 A CN1804904 A CN 1804904A CN A2006100234512 A CNA2006100234512 A CN A2006100234512A CN 200610023451 A CN200610023451 A CN 200610023451A CN 1804904 A CN1804904 A CN 1804904A
Authority
CN
China
Prior art keywords
dimensional
coordinate
model
point
matrix
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.)
Granted
Application number
CNA2006100234512A
Other languages
Chinese (zh)
Other versions
CN100346357C (en
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.)
Shanghai Jiaotong University
Original Assignee
Shanghai Jiaotong 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 Shanghai Jiaotong University filed Critical Shanghai Jiaotong University
Priority to CNB2006100234512A priority Critical patent/CN100346357C/en
Publication of CN1804904A publication Critical patent/CN1804904A/en
Application granted granted Critical
Publication of CN100346357C publication Critical patent/CN100346357C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

The invention relates to a method for using three-dimensional mark point directly to do three-dimensional model deformation in the field of image processing technology. It comprises the following steps: 1)normalizing the top point data at the range of [-1, 1], using a cube with the edge length 2 to limit it; 2) transferring the screen obtained points into boundary beacon, complementary operating the screen obtained Y coordinate, reading the current frame buffer in the internal memory, at last computing the three-dimensional coordinate point; 3) preserving the three-dimensional mark points, obtaining another model corresponding position mark point; 4) using thin plate stripe bracketing method to do elastic deformation, using the three-dimensional points to displace the two-dimensional points to directly obtain the new coordinate.

Description

Method with directly performing three-dimensional model transformation with three-dimensional bench marks
Technical field
The present invention relates to a kind of method of technical field of image processing, specifically is a kind of method with directly performing three-dimensional model transformation with three-dimensional bench marks.
Background technology
Image more and more is subject to people's attention as a kind of crucial medium and means, and image has become the object of learning and studying between each subject of field such as engineering science, computer science, information science, statistics, physics, chemistry, biology, medical science even social science.Distortion is a method more common in the computer graphics, is mainly used in the purposes such as registration of image or figure.Elastic deformation to two dimensional image has obtained very fast development at present, comprises multiple algorithms such as light stream, resampling, thin plate spline, B batten, on the overall situation and local deformation a lot of classification has been arranged also, makes present deformation ratio more careful, true.But for the distortion of three-dimensional model, great majority are based on the cylinder unwrapping of model, obtain two dimensional image, utilize existing algorithm then, realize distortion on two dimensional image, the three-dimensional model after reduction obtains being out of shape at last.
Find through literature search prior art, people such as Volker Blanz are at " IEEE transaction onPattern Recognition and Machine Intelligence " Vol.25, No.9, September2003,1063-1074 (IEEE pattern-recognition and machine intelligence, the 25th volume, the 9th phase, in September, 2003 version, the 1063-1074 page or leaf) on, adopt the method for light stream that the three-dimensional face coordinate that launches is carried out elastic registrating.By the calculating of high dimension vector, obtain the Strength Changes between the different models.The model that such method is bigger to spatial variations, the smoothness assumption of optical flow algorithm can not be satisfied, and the result of calculation correspondence is undesirable.Also find in the retrieval, Hu Yongli etc. were " Chinese journal of computers " 2005, the 10th phase, in " based on the three-dimensional facial reconstruction method and the improvement thereof of deformation model " literary composition of delivering on the 91-99 page or leaf, be that three-dimensional model is launched equally, obtain the distortion of correspondence markings point with the method that resamples, thereby realize the registration of three-dimensional face model.
Such expansion is more suitable for desirable cylinder model, but also occurs distortion inevitably.If not desirable cylinder, the two dimensional image that then obtains has overlapping, and when reducing once more, a part of information of model must be lost, and effect is undesirable.Simultaneously, need a large amount of computing times owing to launch and reduce, make counting yield also wordy, on-line performance reduces greatly.
Summary of the invention
The objective of the invention is at the deficiencies in the prior art, a kind of method with directly performing three-dimensional model transformation with three-dimensional bench marks is proposed, make it not need three-dimensional model is launched into two dimensional image, be reduced to these redundant steps of cylinder three-dimensional model after utilizing the two-dimensional marker point deformation again, but can be on model the three-dimensional feature point that needs of mark, directly carry out model deformation.Experiment showed, that the present invention has saving operation time, improve operational precision, reduce because many-sided advantages such as aliasing error that two-dimensional development brings.
The present invention is achieved by the following technical solutions: adopt based on improved thin plate spline (Thin-plateSpline) elasticity interpolation algorithm, three-dimensional gauge point with same feature and number calculates each coordinate of model, obtains the corresponding three-dimensional coordinate points of new model; Texture or RGB information remain unchanged simultaneously, have guaranteed the out of Memory of original model like this, are unlikely to distortion.
The present invention specifically may further comprise the steps:
(1) normalization vertex data.Here relate to projection matrix, model matrix, viewing matrix etc.In order to keep the accuracy and the consistance of the three-dimensional gauge point in back, must be to [1,1] scope with the original vertices data normalization.Here can be that 2 cube retrains with a length of side;
(2) point of obtaining on the screen is converted into world coordinates.According to the ask for something that transforms, preserve viewing matrix, model matrix and the projection matrix (matrix size is 4 * 4) of model this moment.In order to realize the corresponding relation of coordinate in screen coordinate and the frame buffer, with the screen Y coordinate " supplement " (promptly according to viewing matrix, trying to achieve according to the lower left corner is the three-dimensional Y coordinate of initial position) that obtains this moment.Again current frame buffer is read in internal memory (reading in pixel format is depth component).The last mapping according to three matrixes that obtain before this obtains three-dimensional coordinate point;
(3) get a little, preserve three-dimensional gauge point.Similarly, can obtain gauge point on the another one model correspondence position.The feature of gauge point and number must be consistent with the gauge point of model that will be to be out of shape;
(4) carry out elastic deformation with the thin-plate spline interpolation algorithm.All two-dimensional points all replace with three-dimensional point, and corresponding distance function, biharmonic function, the equal correct of function of asking for new coordinate points become the variable of three-dimensional coordinate, directly ask for new coordinate, and at this moment, distortion is finished.What adopt here is through the thin plate spline algorithm after improving, and is used for directly carrying out 3 D deformation.
The present invention's directly performing three-dimensional model transformation with three-dimensional bench marks, the method with respect to cylinder unwrapping becomes two dimensional image to be out of shape has following advantage: save operation time; Improve operational precision; Reduce because the aliasing error that two-dimensional development brings.
Description of drawings
Fig. 1 is the inventive method block diagram
Embodiment
As shown in Figure 1, realize method, need four steps with directly performing three-dimensional model transformation with three-dimensional bench marks:
1. normalization vertex data
This step is to get for next step screen a little to be converted into three-dimensional coordinate and to prepare.To the x of three-dimensional system of coordinate, y, the z component is sought the maximal value of absolute value respectively, formula below utilizing:
X new = X ori | X | max , Y new = Y ori | Y | max , Z new = Z ori | Z | max
Vertex data all is limited between [1,1].Like this, each all normalization of group coordinate with the depth coordinate that obtains later (system exports between [1,1]) correspondence, can directly be used as world coordinates after the inverse transformation.
2. the point of obtaining on the screen is converted into world coordinates
This step can be utilized the inversion among the OpenGL to bring and obtain world coordinates (three-dimensional coordinate).For this reason, obtain viewing matrix, model matrix and the projection matrix (matrix size is 4*4) of current model in advance.Because screen coordinate is to be initial point with the upper left corner, and the coordinate in the frame buffer is to begin with the lower left corner, in order to realize the corresponding relation of coordinate in screen coordinate and the frame buffer, the screen Y coordinate " supplement " that must be obtained this moment (, utilizing " viewport coordinate-current screen coordinate Y component-1 " to try to achieve the needed Y coordinate of inverse transformation) promptly according to the screen viewport.Again current frame buffer is read in internal memory (reading in pixel format is depth component), can obtain the depth value of correspondence position.
This depth value is in [1,1] scope.Last obtain three-dimensional coordinate point with the inverse transformation mapping according to the data in three matrixes that obtain before this and the present frame buffer memory.
3. get a little, preserve three-dimensional gauge point
As Fig. 1 right side, can obtain the gauge point on the object module character pair similarly.The feature of gauge point and number must be consistent with the gauge point of model to be out of shape;
4. carry out elastic deformation with the thin-plate spline interpolation algorithm
General elastic deformation algorithm relates to following three aspects:
1) in reference picture and image subject to registration, selects reference mark and determine their corresponding relation;
2) type and the parameter by known coordinate and reference mark decision mapping function;
3) treat registering images with mapping function and carry out geometric transformation.
Here, the present invention selects existing overall situation distortion, and the thin-plate spline interpolation algorithm of local deformation is also arranged.This arthmetic statement is as follows:
Thin plate spline is the instrument that is used for spaced point data set interpolation is obtained curved surface, is the elasticity interpolation, and it is modeled as the flexural deformation of metal sheet under a constraint with interpolation problem, represents the energy that is out of shape with terse algebraic expression.Thin plate spline obtains like this.
The basis function of thin plate spline is U (r)=r 2Logr 2
Wherein, r = x 2 + y 2
Can be regarded as the one dimension cubic spline function | the x3| natural expansion is to the result of two dimension.
Suppose to have a two-dimentional point set, (x 1, y 1), (x 2, y 2) ..., (x n, y n), be referred to as monumented point, make P i=(x i, y i), i=1,2 ..., n defines r simultaneously I, j=| P i-P j|, be a P iWith a P jEuclidean distance.
Definition n * n matrix
And n * 3 matrixes P = 1 x 1 y 1 1 x 2 y 2 . . . . . . . . . 1 x n y n
L = K P P T 0
0 represent 3 * 30 matrix, P at this TIt is the transposition of P.Want to make sheet metal at point (x i, y i) locate highly to be z i, thereby make up row vector V=(z 1, z 2..., z i) and column vector Y=(V000) T, dimension is (n+3) * 1.
By following formula definition column vector W=(w 1, w 2... w n) and coefficient a 1, a x, a y:
L -1Y=(W|a 1?a x?a y) T
The function that obtains requiring according to above definition:
f ( x , y ) = a 1 + a x x + a y y + Σ i = 1 n w i U ( P i - ( x , y ) )
For this reason, thin plate spline function is done following improvement: all two-dimensional points all replace with three-dimensional point, corresponding basis function, make up matrix, variable that the equal correct of function of asking for new coordinate points becomes three-dimensional coordinate.Like this, the gauge point of getting by three-dimensional just now, directly new coordinate is asked in substitution.At this moment, distortion is finished.
This method is equally applicable to the radial basis function of other type, as linear interpolation, Gauss interpolation, many surface interpolations etc.Utilizing direct three-dimensional point to carry out interpolation, eliminated because the data distortion that the two-dimensional coordinate expansion causes has also been saved operation time greatly, is more satisfactory deformation method.
Use the present invention can realize data processing such as the registration of three-dimensional model or surface transformation.With the registration is example, if 100 three-dimensional face models are arranged, needs realization point-to-point to deserved registration, then can realize with the method in our bright.At first these 100 models are averaged, obtain average face model.At 60 three-dimensional gauge points of this averaging model subscript (as eyes, eyebrow, lip etc.), as the target label point of all model deformations.Each faceform is got equally 60 corresponding gauge points, this 2 group echo point is as the P, the V vector data that improve the back thin plate spline again.Try to achieve the faceform's who needs registration new three-dimensional coordinate at last with the thin plate spline algorithm.So 100 models are all done this type of distortion, can obtain with the gauge point is corresponding registration model.Can find, the three-dimensional registration model of Huo Deing like this, basic configuration does not change, and only model press the direction variation of gauge point, and what obtain is the model of the more satisfactory point-to-point correspondence of effect.

Claims (4)

1, a kind of method with directly performing three-dimensional model transformation with three-dimensional bench marks is characterized in that, may further comprise the steps:
(1) normalization vertex data relates to projection matrix, model matrix, viewing matrix, in order to keep the accuracy and the consistance of the three-dimensional gauge point in back, to [1,1] scope, is that 2 cube retrain with a length of side with the original vertices data normalization;
(2) point of obtaining on the screen is converted into world coordinates, preserve viewing matrix, model matrix and the projection matrix of model this moment, matrix size is 4 * 4, in order to realize the corresponding relation of coordinate in screen coordinate and the frame buffer, with the screen Y coordinate " supplement " that obtains this moment, again internal memory is read in current frame buffer, the last mapping according to three matrixes that obtain before this obtains three-dimensional coordinate point;
(3) get a little, preserve three-dimensional gauge point, in like manner, obtain the gauge point on the another one model correspondence position;
(4) carry out elastic deformation with the thin-plate spline interpolation algorithm, all two-dimensional points all replace with three-dimensional point, and corresponding distance function, biharmonic function, the function of asking for new coordinate points all are modified as the variable of three-dimensional coordinate, directly obtain new coordinate, at this moment, distortion is finished.
2, the method with directly performing three-dimensional model transformation with three-dimensional bench marks according to claim 1, it is characterized in that described screen Y coordinate " supplement " is meant: according to viewing matrix, trying to achieve according to the lower left corner is the three-dimensional Y coordinate of initial position.
3, the method with directly performing three-dimensional model transformation with three-dimensional bench marks according to claim 1 is characterized in that, described internal memory is read in frame buffer, and reading in pixel format is depth component.
4, the method with directly performing three-dimensional model transformation with three-dimensional bench marks according to claim 1 is characterized in that, described gauge point, and its feature and number must be consistent with the gauge point of model to be out of shape.
CNB2006100234512A 2006-01-19 2006-01-19 Method for directly performing three-dimensional model transformation with three-dimensional bench marks Expired - Fee Related CN100346357C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100234512A CN100346357C (en) 2006-01-19 2006-01-19 Method for directly performing three-dimensional model transformation with three-dimensional bench marks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100234512A CN100346357C (en) 2006-01-19 2006-01-19 Method for directly performing three-dimensional model transformation with three-dimensional bench marks

Publications (2)

Publication Number Publication Date
CN1804904A true CN1804904A (en) 2006-07-19
CN100346357C CN100346357C (en) 2007-10-31

Family

ID=36866906

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100234512A Expired - Fee Related CN100346357C (en) 2006-01-19 2006-01-19 Method for directly performing three-dimensional model transformation with three-dimensional bench marks

Country Status (1)

Country Link
CN (1) CN100346357C (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103325086A (en) * 2013-07-10 2013-09-25 中国科学院苏州纳米技术与纳米仿生研究所 Deformation method of three-dimensional figure based on tetrahedron coordinate system
CN106022281A (en) * 2016-05-27 2016-10-12 广州帕克西软件开发有限公司 Face data measurement method and system
CN108876933A (en) * 2017-05-11 2018-11-23 富士施乐株式会社 The method of the editing device and editor's three-dimensional shape data of three-dimensional shape data
CN111784823A (en) * 2020-07-03 2020-10-16 江苏徐工工程机械研究院有限公司 Light-weight three-dimensional model anti-surveying drawing display method and device and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101577011B (en) * 2009-06-18 2013-06-19 清华大学 Method and device for selecting characteristics of three-dimensional objects

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
IL108668A (en) * 1993-02-25 1998-09-24 Hughes Training Inc Method and system for generating a plurality of images of a three-dimensional scene
KR100519779B1 (en) * 2004-02-10 2005-10-07 삼성전자주식회사 Method and apparatus for high speed visualization of depth image-based 3D graphic data
CN1271574C (en) * 2004-12-09 2006-08-23 上海交通大学 Human limb three-dimensional model building method based on labelling point

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103325086A (en) * 2013-07-10 2013-09-25 中国科学院苏州纳米技术与纳米仿生研究所 Deformation method of three-dimensional figure based on tetrahedron coordinate system
CN103325086B (en) * 2013-07-10 2016-03-09 中国科学院苏州纳米技术与纳米仿生研究所 A kind of deformation method of the three-dimensional picture based on tetrahedral coordinate system
CN106022281A (en) * 2016-05-27 2016-10-12 广州帕克西软件开发有限公司 Face data measurement method and system
CN108876933A (en) * 2017-05-11 2018-11-23 富士施乐株式会社 The method of the editing device and editor's three-dimensional shape data of three-dimensional shape data
CN108876933B (en) * 2017-05-11 2023-04-28 富士胶片商业创新有限公司 Three-dimensional shape data editing device and method for editing three-dimensional shape data
CN111784823A (en) * 2020-07-03 2020-10-16 江苏徐工工程机械研究院有限公司 Light-weight three-dimensional model anti-surveying drawing display method and device and storage medium
CN111784823B (en) * 2020-07-03 2023-10-03 江苏徐工工程机械研究院有限公司 Light-weight three-dimensional model mapping-prevention display method and device and storage medium

Also Published As

Publication number Publication date
CN100346357C (en) 2007-10-31

Similar Documents

Publication Publication Date Title
CN1818977A (en) Fast human-face model re-construction by one front picture
CN110738697B (en) Monocular depth estimation method based on deep learning
CN110929748A (en) Motion blur image feature matching method based on deep learning
CN100346357C (en) Method for directly performing three-dimensional model transformation with three-dimensional bench marks
CN110796143A (en) Scene text recognition method based on man-machine cooperation
CN111899295B (en) Monocular scene depth prediction method based on deep learning
CN107507263B (en) Texture generation method and system based on image
CN111814827A (en) Key point target detection method based on YOLO
CN111402403B (en) High-precision three-dimensional face reconstruction method
CN111709307A (en) Resolution enhancement-based remote sensing image small target detection method
CN112183675A (en) Twin network-based tracking method for low-resolution target
Wang et al. Revisiting monocular satellite pose estimation with transformer
CN113436237A (en) High-efficient measurement system of complicated curved surface based on gaussian process migration learning
CN112163990A (en) Significance prediction method and system for 360-degree image
CN115439669A (en) Feature point detection network based on deep learning and cross-resolution image matching method
CN112184785B (en) Multi-mode remote sensing image registration method based on MCD measurement and VTM
CN103020936A (en) Super-resolution reconstruction method of facial image
Grogan et al. Shape registration with directional data
CN115115860A (en) Image feature point detection matching network based on deep learning
CN106570911B (en) Method for synthesizing facial cartoon based on daisy descriptor
CN115272450A (en) Target positioning method based on panoramic segmentation
CN113159158A (en) License plate correction and reconstruction method and system based on generation countermeasure network
CN110033415B (en) Image deblurring method based on Retinex algorithm
CN102938156B (en) Planar note configuration method based on integral images
Xing et al. Dynamic Guided Network for Monocular Depth Estimation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20071031

Termination date: 20120119