CN102111562A - Projection conversion method for three-dimensional model and device adopting same - Google Patents

Projection conversion method for three-dimensional model and device adopting same Download PDF

Info

Publication number
CN102111562A
CN102111562A CN2009102439296A CN200910243929A CN102111562A CN 102111562 A CN102111562 A CN 102111562A CN 2009102439296 A CN2009102439296 A CN 2009102439296A CN 200910243929 A CN200910243929 A CN 200910243929A CN 102111562 A CN102111562 A CN 102111562A
Authority
CN
China
Prior art keywords
image coordinate
distortion
coordinate
camera
image
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
CN2009102439296A
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.)
China Digital Video Beijing Ltd
Original Assignee
China Digital Video Beijing Ltd
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 China Digital Video Beijing Ltd filed Critical China Digital Video Beijing Ltd
Priority to CN2009102439296A priority Critical patent/CN102111562A/en
Publication of CN102111562A publication Critical patent/CN102111562A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses a projection conversion method for a three-dimensional model. The method comprises four steps as follows; the step one is achieved in the way that the three-dimensional model is projected on an image plane according to a pinhole imaging model to obtain image coordinates (u and v) in an image coordinate system; the step two is achieved in the way that the conversion relation of the image coordinates is obtained, and normalized image coordinates (x and y) in a camera coordinate system corresponding to the image coordinates (u and v) are calculated according to the conversion relation; the step three is achieved in that way that a distorted image coordinate is calculated according to the normalized image coordinates (x and y); and the step four is achieved in the way that the three-dimensional model is stacked to a real two-dimensional image after being projected to the distorted image coordinate. By adopting the invention, the three-dimensional model can be matched with the real scenes in the images, and more real and natural combination of void and solid is realized.

Description

The projective transformation method and the device of threedimensional model
Technical field
The present invention relates to the technical field of television program designing, particularly relate to a kind of projective transformation method of threedimensional model and a kind of projective transformation device of threedimensional model.
Background technology
Virtual studio is the television program designing technology of developed recently a kind of uniqueness of getting up.It is digitized synthetic in real time that its essence is that the object movement image with the virtual three-dimensional model of computer manufacture and video camera shooting carries out, subject image and virtual background can be changed synchronously, thereby realize both fusions, to obtain perfectly synthetic picture.Virtual Studio Technology is to scratch on the basis of picture technology at traditional chroma key, Computerized three-dimensional graph technology and video synthetic technology have been made full use of, position and parameter according to video camera, the perspective relation and the prospect of three-dimensional virtual scene are consistent, after the process chroma key is synthetic, in the three-dimensional virtual scene that makes image in the prospect seem to be in computer fully to be produced, and can move therein, thereby create television stadio effect true to nature, that third dimension is very strong.
Correspondingly, in Virtual Studio System, we need project to virtual threedimensional model in the two dimensional image according to the attitude of current video camera and go, thereby realize the combination of actual situation.For the attitude of video camera, the perspective projection image-forming principle that generally all is based on pin-hole imaging model in the machine vision is determined, is well known that it has shines upon straight characteristics to straight line.
Yet in fact real camera lens and nonideal pin-hole imaging model have small distortion toward contact, and as shown in Figure 1, real camera lens tends to the linear projection in the reality scene is become the curve of the arc of strip on the image.At this moment, if directly virtual threedimensional model being projected to image gets on, straight line is still straight line, will seem inharmonious with the scene in the image, lacks the sense of reality.
Summary of the invention
Technical problem to be solved by this invention provides a kind of projective transformation method of threedimensional model, so that the real scene in threedimensional model and the image is complementary, realizes truer, natural actual situation combination.
In order to solve the problems of the technologies described above, the embodiment of the invention discloses a kind of projective transformation method of threedimensional model, comprising:
Step S1, with threedimensional model by the pin-hole imaging model projection to the picture plane, obtain under the image coordinate system image coordinate (u, v);
Step S2, obtain the transformation relation of image coordinate, and according to described transformation relation computed image coordinate (u, v) the normalized image coordinate under the Dui Ying camera coordinate system (x, y);
Step S3, (x y), calculates the image coordinate after the distortion according to described normalized image coordinate
Figure G2009102439296D00021
Step S4, with threedimensional model through the image coordinate after the projection described distortion After, in the real two dimensional image that is added to.
Preferably, described step S3 comprises following substep:
The radial distortion model of substep S311, structure present image;
Substep S312, (x y) in the substitution radial distortion model, obtains the image coordinate after the distortion with described normalized image coordinate
Figure G2009102439296D00023
Preferably, described step S3 comprises following substep:
Substep S321, (x y) calculates normalized image coordinate after the distortion according to described normalized image coordinate
Figure G2009102439296D00024
Substep S322, with the normalized image coordinate after the described distortion
Figure G2009102439296D00025
Project on the picture plane image coordinate after obtaining to distort
Preferably, described step S2 comprises following substep:
Substep S21, generation camera intrinsic parameter projection matrix are:
Generating the camera intrinsic parameter projection matrix is:
K = f x 0 u 0 0 f y v 0 0 0 1 ;
By following formula is the normalization coordinate transform image coordinate:
u v 1 = f x 0 u 0 0 f y v 0 0 0 1 x y 1 ;
Wherein, described f x, f yBe focal length parameter, u 0, v 0Be the pixel coordinate of video camera photocentre on the picture plane;
Substep S22, the described camera intrinsic parameter projection matrix of foundation obtain following transformation relation:
x = u - u 0 f x , y = v - v 0 f y ;
Substep S23, with described image coordinate (u, v) in the above-mentioned formula of substitution, calculate normalized image coordinate under the corresponding camera coordinate system (x, y).
Preferably, described radial distortion model is:
Figure G2009102439296D00036
Figure G2009102439296D00037
Wherein, k 1, k 2Be coefficient of radial distortion; f x, f yBe focal length parameter, u 0, v 0Be the pixel coordinate of video camera photocentre on the picture plane; r 2=x 2+ y 2Described k 1, k 2, f x, f y, u 0, v 0Adopt the Zhang Zhengyou camera marking method to obtain.
Preferably, the normalized image coordinate after the described distortion
Figure G2009102439296D00041
Calculate acquisition by following formula;
Figure G2009102439296D00042
Figure G2009102439296D00043
Wherein, r 2=x 2+ y 2, k 1And k 2Be the coefficient of radial distortion that adopts the Zhang Zhengyou camera marking method to obtain;
Image coordinate after the described distortion
Figure G2009102439296D00044
Obtain as follows by the conversion of described camera intrinsic parameter projection matrix:
Figure G2009102439296D00045
The embodiment of the invention also discloses a kind of projective transformation device of threedimensional model, comprising:
The pin hole projecting cell is used for threedimensional model by the pin-hole imaging model projection to the picture plane, obtain under the image coordinate system image coordinate (u, v);
Coordinate transformation unit is used to obtain the transformation relation of image coordinate, and according to described transformation relation computed image coordinate (u, v) the normalized image coordinate under the Dui Ying camera coordinate system (x, y);
The distortion computing unit is used for that (x y), calculates the image coordinate after the distortion according to described normalized image coordinate
Figure G2009102439296D00046
The actual situation superpositing unit is used for the image coordinate after the described distortion of threedimensional model process projection
Figure G2009102439296D00047
After, in the real two dimensional image that is added to.
Preferably, described distortion calculating unit pack is drawn together:
Distortion model constructor unit is used to construct the radial distortion model of present image;
Distortion coordinate Calculation subelement is used for that (x y) in the substitution radial distortion model, obtains the image coordinate after the distortion with described normalized image coordinate
Figure G2009102439296D00051
Preferably, described distortion calculating unit pack is drawn together:
Distortion coordinate precomputation subelement is used for according to described normalized image coordinate (x, y) the normalized image coordinate after the calculating distortion
Distortion coordinate projection subelement is used for the normalized image coordinate after the described distortion
Figure G2009102439296D00053
Project on the picture plane image coordinate after obtaining to distort
Figure G2009102439296D00054
Preferably, described coordinate transformation unit comprises:
Matrix generates subelement, is used to generate described camera intrinsic parameter projection matrix and is:
K = f x 0 u 0 0 f y v 0 0 0 1 ;
Image coordinate varitron unit, being used for by following formula is the normalization coordinate transform image coordinate:
u v 1 = f x 0 u 0 0 f y v 0 0 0 1 x y 1 ;
Wherein, described f x, f yBe focal length parameter, u 0, v 0Be the pixel coordinate of video camera photocentre on the picture plane; Described f x, f y, u 0, v 0All adopt the Zhang Zhengyou camera marking method to obtain.
Transformation relation is obtained subelement, is used for obtaining following computing formula according to described camera intrinsic parameter projection matrix:
x = u - u 0 f x , y = v - v 0 f y ;
The substitution computation subunit, be used for described image coordinate (u, v) in the above-mentioned formula of substitution, calculate normalized image coordinate under the corresponding camera coordinate system (x, y).
Compared with prior art, the present invention has the following advantages:
The present invention describes the distortion effects of camera lens by introducing distortion factor, and with this coefficient acting in the process of projection, allow threedimensional model also produce distortion, make it with image in scene be complementary.Adopt after this technical finesse, virtual three-dimensional model and true environment are merged more, more true nature seems.
Description of drawings
Fig. 1 is the schematic diagram that the linear projection that causes of lens distortion becomes curve;
Fig. 2 is the flow chart of steps of the projective transformation method embodiment 1 of a kind of threedimensional model of the present invention;
Fig. 3 is the flow chart of steps of the projective transformation method embodiment 2 of a kind of threedimensional model of the present invention;
Fig. 4 is the flow chart of steps of the projective transformation method embodiment 3 of a kind of threedimensional model of the present invention;
Fig. 5 is the structured flowchart of the projective transformation device embodiment of a kind of threedimensional model of the present invention.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
For making those skilled in the art understand the present invention better, below simply introduce related image coordinate system of the embodiment of the invention and camera coordinate system.
The image of camera acquisition is converted to digital picture with the form of standard television signal through the high-speed image sampling system, and the input computer.Every width of cloth digital picture is the M*N array in computer, and (be called pixel, numerical value pixel) promptly is the brightness (or claiming gray scale) of picture point to each element in the image of the capable N row of M.Definition rectangular coordinate system u on image, v, (u v) is respectively the image coordinate system coordinate of unit with this pixel to the coordinate of each pixel.Because (u, v) a remarked pixel is arranged in the columns and the line number of array, does not express the position of this pixel in image with physical unit.Therefore, need set up the image coordinate system of representing with physical unit (millimeter) again.This coordinate system is an initial point with certain a bit (intersection point of the camera optical axis and the plane of delineation) in the image.X-axis and Y-axis respectively with u, the v axle is parallel.The physical size of each pixel on X-axis, Y direction is dX, dY, then can set up the relation of two coordinate systems.
The initial point of camera coordinates system is the video camera photocentre, the X of x axle and y axle and image, and Y-axis is parallel, and the z axle is a camera optical axis, and it is vertical with the plane of delineation.The intersection point of the optical axis and the plane of delineation is the initial point of image coordinate system, and the rectangular coordinate system of formation is called camera coordinate system.
One of core idea of the embodiment of the invention is, considers because lens distortion in the process that virtual threedimensional model is projected in the two dimensional image, tends to seem that the scene with in the image is inharmonious, lacks the sense of reality.So the inventor herein introduces the distortion effects that distortion factor is described camera lens, and with this coefficient acting in the process of projection, allow threedimensional model also produce distortion, make it with image in scene be complementary.
Be well known that the distortion of camera lens mainly contains two kinds, a kind of is radial distortion, and a kind of is tangential distortion.Tangential distortion is very little, so in the present invention, we only consider the influence of radial distortion.The characteristics of radial distortion are, the range image center is far away more, and it is obvious more to distort, and the radian that straight line is projected into curve is big more.Therefore, radial distortion should be the function of picture point to centre distance.
With reference to figure 2, show the flow chart of steps of the projective transformation method embodiment 1 of a kind of threedimensional model of the present invention, specifically can may further comprise the steps:
Step S 1, with threedimensional model by the pin-hole imaging model projection to the picture plane, obtain under the image coordinate system image coordinate (u, v);
Step S2, obtain the transformation relation of image coordinate, and according to described transformation relation computed image coordinate (u, v) the normalized image coordinate under the Dui Ying camera coordinate system (x, y);
Step S3, (x y), calculates the image coordinate after the distortion according to described normalized image coordinate
Figure G2009102439296D00081
Step S4, with threedimensional model through the image coordinate after the projection described distortion
Figure G2009102439296D00082
After, in the real two dimensional image that is added to.
Be well known that the pin-hole imaging model is to be used for describing the arbitrfary point in the space and the geometrical model of its corresponding relation between the imaging point on the image.These geometrical model parameters are exactly the camera calibration parameter.Particularly, the camera calibration parameter comprises outer parameter and intrinsic parameter, and wherein, outer parameter comprises geological informations such as the position, attitude of video camera, and intrinsic parameter comprises focus of camera, optical parametrics such as principal point and lens distortion coefficient.
In a preferred embodiment of the present invention, described step S2 can comprise following substep:
Substep S21, the described camera intrinsic parameter projection matrix of generation can be expressed as:
Generating the camera intrinsic parameter projection matrix is:
K = f x 0 u 0 0 f y v 0 0 0 1 ;
Substep S22, be the normalization coordinate transform image coordinate by following formula:
u v 1 = f x 0 u 0 0 f y v 0 0 0 1 x y 1 ; - - - ( 1 )
Wherein, described f x, f yBe focal length parameter, u 0, v 0Be the pixel coordinate of video camera photocentre on the picture plane.
Be above-mentioned f x, f y, u 0, v 0Can calculate easily by the Zhang Zhengyou camera marking method, Zhang Zhengyou considered radial distortion in 1998, had proposed a kind of method that can utilize several all inside and outside parameter of plane template calibrating camera---plane reference method.This method is calibrating camera accurately, and simple and easy to do.In above-mentioned formula (1), f x, f y, u 0, v 0Only relevant with intrinsic parameters of the camera, so above-mentioned matrix is in the prior art for being called as the camera intrinsic parameter projection matrix.
Particularly, fx=f/dX wherein, fy=f/dY is called the normalization focal length on x axle and the y axle; F is the focal length of camera, and dX and dY represent the size of unit picture element on u axle and the v axle respectively.What u0 and v0 then represented is optical centre, and promptly the intersection point of the camera optical axis and the plane of delineation is usually located at the picture centre place, so its value is often got resolution half.
Substep S23, the described camera intrinsic parameter projection matrix of foundation obtain the computing formula of following transformation relation:
x = u - u 0 f x , y = v - v 0 f y ;
Substep S24, according to described formula calculate described image coordinate (u, v) the normalized image coordinate under the Dui Ying camera coordinate system (x, y).
Pass through above-mentioned steps, can be simply be coordinate (limited point) under the camera coordinate system with image in the coordinate transform under the image coordinate system, travel through threedimensional model and need not pointwise, each point in the model is all downconverted under the camera coordinate system from world coordinate system, effectively conserve system resources improves treatment effeciency.
In embodiments of the present invention, (x y) is meant normalized image coordinate under the desirable pin-hole camera model, distortionless to described normalized image coordinate.
The embodiment of the invention all only needs a projective transformation for the threedimensional model of any complexity of reality, handles at image pixel exactly then.Because the size of general pattern is fixed, and number of pixels is limited, so treatment effeciency is very high.In specific implementation, the present invention can finish on GPU (Graphic Processing Unit, graphic process unit).
By above-mentioned steps, virtual three-dimensional model and true environment are merged more, realize the more actual situation combination of true nature.
Below (x y) is transformed to image coordinate after the distortion to described normalized image coordinate by two specific embodiments
Figure G2009102439296D00101
Method describe in detail.
With reference to figure 3, show the flow chart of steps of the projective transformation method embodiment 2 of a kind of threedimensional model of the present invention, specifically can may further comprise the steps:
Step 201, with threedimensional model by the pin-hole imaging model projection to the picture plane, obtain under the image coordinate system image coordinate (u, v);
Step 202, obtain the transformation relation of image coordinate, and according to described transformation relation computed image coordinate (u, v) the normalized image coordinate under the Dui Ying camera coordinate system (x, y);
The radial distortion model of step 203, structure present image;
In a preferred embodiment of the present invention, described radial distortion model is:
Figure G2009102439296D00102
Figure G2009102439296D00103
Wherein, r 2=x 2+ y 2
Step 204, (x y) in the substitution radial distortion model, obtains the image coordinate after the distortion with described normalized image coordinate
Figure G2009102439296D00104
Step 205, with threedimensional model through the image coordinate after the projection described distortion
Figure G2009102439296D00105
After, in the real two dimensional image that is added to.
With reference to figure 4, show the flow chart of steps of the projective transformation method embodiment 3 of a kind of threedimensional model of the present invention, specifically can may further comprise the steps:
Step 301, with threedimensional model by the pin-hole imaging model projection to the picture plane, obtain under the image coordinate system image coordinate (u, v);
Step 302, obtain the transformation relation of image coordinate, and according to described transformation relation computed image coordinate (u, v) the normalized image coordinate under the Dui Ying camera coordinate system (x, y);
Step 303, (x y) calculates normalized image coordinate after the distortion according to described normalized image coordinate
As a kind of preferred embodiment, the normalized image coordinate after the described distortion
Figure G2009102439296D00112
Can calculate by following formula and obtain;
Figure G2009102439296D00114
Wherein, r 2=x 2+ y 2, k 1And k 2Can be the coefficient of radial distortion that adopts the Zhang Zhengyou camera marking method to obtain.
Step 304, with the normalized image coordinate after the described distortion
Figure G2009102439296D00115
Project on the picture plane image coordinate after obtaining to distort
Figure G2009102439296D00116
In specific implementation, the image coordinate after the described distortion
Figure G2009102439296D00117
Can press the following formula conversion by above-mentioned camera intrinsic parameter projection matrix obtains;
Figure G2009102439296D00118
Step 305, with threedimensional model through the image coordinate after the projection described distortion
Figure G2009102439296D00119
After, in the real two dimensional image that is added to.
Need to prove, for aforesaid each method embodiment, for simple description, so it all is expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not subjected to the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.
The present invention is mainly used in Virtual Studio System, and, in the virtual sports system that further develops based on Virtual Studio System.Particularly, Virtual Studio System is to update along with computer technology develop rapidly and chroma key technique in recent years and a kind of new tv program producing system that occurs.In Virtual Studio System, the work state information of video camera sends graphics workstation to, computer obtains distance and the relative position between foreground object and the video camera according to this, can calculate the optimum size of virtual scene, position, and calculate the threedimensional model that generates virtual scene on request.By virtual threedimensional model is projected to the combination of realization actual situation in the two dimensional image according to the attitude of current video camera.
With reference to figure 5, show the structured flowchart of the projective transformation device embodiment of a kind of threedimensional model of the present invention, specifically can comprise with lower unit:
Pin hole projecting cell 501 is used for threedimensional model by the pin-hole imaging model projection to the picture plane, obtain under the image coordinate system image coordinate (u, v);
Coordinate transformation unit 502 is used to obtain the transformation relation of image coordinate, and according to described transformation relation computed image coordinate (u, v) the normalized image coordinate under the Dui Ying camera coordinate system (x, y);
Distortion computing unit 503 is used for that (x y), calculates the image coordinate after the distortion according to described normalized image coordinate
Figure G2009102439296D00121
Actual situation superpositing unit 504 is used for the image coordinate after the described distortion of threedimensional model process projection
Figure G2009102439296D00122
After, in the real two dimensional image that is added to.
In a preferred embodiment of the present invention, described coordinate transformation unit 502 can comprise following subelement:
Matrix generates subelement, is used to generate described camera intrinsic parameter projection matrix and is:
K = f x 0 u 0 0 f y v 0 0 0 1 ;
Image coordinate varitron unit, being used for by following formula is the normalization coordinate transform image coordinate:
u v 1 = f x 0 u 0 0 f y v 0 0 0 1 x y 1 ;
Wherein, described f x, f yBe focal length parameter, u 0, v 0Be the pixel coordinate of video camera photocentre on the picture plane; Described f x, f y, u 0, v 0All adopt the Zhang Zhengyou camera marking method to obtain.
Transformation relation is obtained subelement, is used for obtaining following computing formula according to described camera intrinsic parameter projection matrix:
x = u - u 0 f x , y = v - v 0 f y ;
The substitution computation subunit, be used for described image coordinate (u, v) in the above-mentioned formula of substitution, calculate normalized image coordinate under the corresponding camera coordinate system (x, y).
As a preferred embodiment of the present invention, described distortion computing unit 503 can comprise following subelement:
Distortion model constructor unit is used to construct the radial distortion model of present image;
Distortion coordinate Calculation subelement is used for that (x y) in the substitution radial distortion model, obtains the image coordinate after the distortion with described normalized image coordinate
Figure G2009102439296D00135
As another kind of preferred embodiment of the present invention, described distortion computing unit 503 can comprise following subelement:
Distortion coordinate precomputation subelement is used for according to described normalized image coordinate (x, y) the normalized image coordinate after the calculating distortion
Figure G2009102439296D00136
Distortion coordinate projection subelement is used for the normalized image coordinate after the described distortion
Figure G2009102439296D00141
Project on the picture plane image coordinate after obtaining to distort
Figure G2009102439296D00142
Preferably, described device can be arranged among the GPU.
For device embodiment, because it is similar substantially to method embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of method embodiment.
More than the projective transformation method of a kind of threedimensional model provided by the present invention and a kind of projective transformation device of threedimensional model are described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. the projective transformation method of a threedimensional model is characterized in that, comprising:
Step S1, with threedimensional model by the pin-hole imaging model projection to the picture plane, obtain under the image coordinate system image coordinate (u, v);
Step S2, obtain the transformation relation of image coordinate, and according to described transformation relation computed image coordinate (u, v) the normalized image coordinate under the Dui Ying camera coordinate system (x, y);
Step S3, (x y), calculates the image coordinate after the distortion according to described normalized image coordinate
Step S4, with threedimensional model through the image coordinate after the projection described distortion
Figure F2009102439296C00012
After, in the real two dimensional image that is added to.
2. the method for claim 1 is characterized in that, described step S3 comprises following substep:
The radial distortion model of substep S311, structure present image;
Substep S312, (x y) in the substitution radial distortion model, obtains the image coordinate after the distortion with described normalized image coordinate
Figure F2009102439296C00013
3. the method for claim 1 is characterized in that, described step S3 comprises following substep:
Substep S321, (x y) calculates normalized image coordinate after the distortion according to described normalized image coordinate
Figure F2009102439296C00014
Substep S322, with the normalized image coordinate after the described distortion
Figure F2009102439296C00015
Project on the picture plane image coordinate after obtaining to distort
Figure F2009102439296C00016
4. the method for claim 1 is characterized in that, described step S2 comprises following substep: substep S21, generation camera intrinsic parameter projection matrix are:
Generating the camera intrinsic parameter projection matrix is:
K = f x 0 u 0 0 f y v 0 0 0 1 ;
By following formula is the normalization coordinate transform image coordinate:
u v 1 = f x 0 u 0 0 f y v 0 0 0 1 x y 1 ;
Wherein, described f x, f yBe focal length parameter, u 0, v 0Be the pixel coordinate of video camera photocentre on the picture plane;
Substep S22, the described camera intrinsic parameter projection matrix of foundation obtain following transformation relation:
x = u - u 0 f x , y = v - v 0 f y ;
Substep S23, with described image coordinate (u, v) in the above-mentioned formula of substitution, calculate normalized image coordinate under the corresponding camera coordinate system (x, y).
5. method as claimed in claim 2 is characterized in that, described radial distortion model is:
Figure F2009102439296C00025
Figure F2009102439296C00026
Wherein, k 1, k 2Be coefficient of radial distortion; f x, f yBe focal length parameter, u 0, v 0Be the pixel coordinate of video camera photocentre on the picture plane; r 2=x 2+ y 2Described k 1, k 2, f x, f y, u 0, v 0Adopt the Zhang Zhengyou camera marking method to obtain.
6. method as claimed in claim 3 is characterized in that, the normalized image coordinate after the described distortion
Figure F2009102439296C00027
Calculate acquisition by following formula;
Figure F2009102439296C00031
Figure F2009102439296C00032
Wherein, r 2=x 2+ y 2, k 1And k 2Be the coefficient of radial distortion that adopts the Zhang Zhengyou camera marking method to obtain;
Image coordinate after the described distortion
Figure F2009102439296C00033
Obtain as follows by the conversion of described camera intrinsic parameter projection matrix:
Figure F2009102439296C00034
7. the projective transformation device of a threedimensional model is characterized in that, comprising:
The pin hole projecting cell is used for threedimensional model by the pin-hole imaging model projection to the picture plane, obtain under the image coordinate system image coordinate (u, v);
Coordinate transformation unit is used to obtain the transformation relation of image coordinate, and according to described transformation relation computed image coordinate (u, v) the normalized image coordinate under the Dui Ying camera coordinate system (x, y);
The distortion computing unit is used for that (x y), calculates the image coordinate after the distortion according to described normalized image coordinate
The actual situation superpositing unit is used for the image coordinate after the described distortion of threedimensional model process projection
Figure F2009102439296C00036
After, in the real two dimensional image that is added to.
8. device as claimed in claim 7 is characterized in that, described distortion is calculated unit pack and drawn together:
Distortion model constructor unit is used to construct the radial distortion model of present image;
Distortion coordinate Calculation subelement is used for that (x y) in the substitution radial distortion model, obtains the image coordinate after the distortion with described normalized image coordinate
Figure F2009102439296C00037
9. device as claimed in claim 7 is characterized in that, described distortion is calculated unit pack and drawn together:
Distortion coordinate precomputation subelement is used for according to described normalized image coordinate (x, y) the normalized image coordinate after the calculating distortion
Figure F2009102439296C00041
Distortion coordinate projection subelement is used for the normalized image coordinate after the described distortion
Figure F2009102439296C00042
Project on the picture plane image coordinate after obtaining to distort
Figure F2009102439296C00043
10. device as claimed in claim 7 is characterized in that, described coordinate transformation unit comprises:
Matrix generates subelement, is used to generate described camera intrinsic parameter projection matrix and is:
K = f x 0 u 0 0 f y v 0 0 0 1 ;
Image coordinate varitron unit, being used for by following formula is the normalization coordinate transform image coordinate:
u v 1 = f x 0 u 0 0 f y v 0 0 0 1 x y 1 ;
Wherein, described f x, f yBe focal length parameter, u 0, v 0Be the pixel coordinate of video camera photocentre on the picture plane; Described f x, f y, u 0, v 0All adopt the Zhang Zhengyou camera marking method to obtain.
Transformation relation is obtained subelement, is used for obtaining following computing formula according to described camera intrinsic parameter projection matrix:
x = u - u 0 f x , y = v - v 0 f y ;
The substitution computation subunit, be used for described image coordinate (u, v) in the above-mentioned formula of substitution, calculate normalized image coordinate under the corresponding camera coordinate system (x, y).
CN2009102439296A 2009-12-25 2009-12-25 Projection conversion method for three-dimensional model and device adopting same Pending CN102111562A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009102439296A CN102111562A (en) 2009-12-25 2009-12-25 Projection conversion method for three-dimensional model and device adopting same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009102439296A CN102111562A (en) 2009-12-25 2009-12-25 Projection conversion method for three-dimensional model and device adopting same

Publications (1)

Publication Number Publication Date
CN102111562A true CN102111562A (en) 2011-06-29

Family

ID=44175569

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009102439296A Pending CN102111562A (en) 2009-12-25 2009-12-25 Projection conversion method for three-dimensional model and device adopting same

Country Status (1)

Country Link
CN (1) CN102111562A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102745138A (en) * 2012-07-23 2012-10-24 北京智华驭新汽车电子技术开发有限公司 Dual view-field dynamic-trajectory reverse image system
CN102745198A (en) * 2012-07-23 2012-10-24 北京智华驭新汽车电子技术开发有限公司 Auxiliary forward track device for vehicle
CN107134000A (en) * 2017-05-23 2017-09-05 张照亮 A kind of three-dimensional dynamic images generation method and system for merging reality
CN108307179A (en) * 2016-08-30 2018-07-20 姜汉龙 A kind of method of 3D three-dimensional imagings
CN110175009A (en) * 2019-04-19 2019-08-27 北京戴纳实验科技有限公司 A kind of display methods of smart electronics menu
CN113380088A (en) * 2021-04-07 2021-09-10 上海中船船舶设计技术国家工程研究中心有限公司 Interactive simulation training support system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1719477A (en) * 2005-05-19 2006-01-11 上海交通大学 Calibration method of pick up camera or photographic camera geographic distortion
CN101520897A (en) * 2009-02-27 2009-09-02 北京机械工业学院 Video camera calibration method
CN301038163S (en) * 2008-09-17 2009-10-14 上海五洲药业股份有限公司 Medicine packaging box (dihydroergot mesylate tablets 2)

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1719477A (en) * 2005-05-19 2006-01-11 上海交通大学 Calibration method of pick up camera or photographic camera geographic distortion
CN301038163S (en) * 2008-09-17 2009-10-14 上海五洲药业股份有限公司 Medicine packaging box (dihydroergot mesylate tablets 2)
CN101520897A (en) * 2009-02-27 2009-09-02 北京机械工业学院 Video camera calibration method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
罗瑜林: "基于数据拟合的摄像机标定及其应用研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
袁野等: "一种考虑二阶径向畸变的主动视觉自标定算法", 《中国图象图形学报》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102745138A (en) * 2012-07-23 2012-10-24 北京智华驭新汽车电子技术开发有限公司 Dual view-field dynamic-trajectory reverse image system
CN102745198A (en) * 2012-07-23 2012-10-24 北京智华驭新汽车电子技术开发有限公司 Auxiliary forward track device for vehicle
CN102745198B (en) * 2012-07-23 2014-12-03 北京智华驭新汽车电子技术开发有限公司 Auxiliary forward track device for vehicle
CN108307179A (en) * 2016-08-30 2018-07-20 姜汉龙 A kind of method of 3D three-dimensional imagings
CN107134000A (en) * 2017-05-23 2017-09-05 张照亮 A kind of three-dimensional dynamic images generation method and system for merging reality
CN107134000B (en) * 2017-05-23 2020-10-23 张照亮 Reality-fused three-dimensional dynamic image generation method and system
CN110175009A (en) * 2019-04-19 2019-08-27 北京戴纳实验科技有限公司 A kind of display methods of smart electronics menu
CN110175009B (en) * 2019-04-19 2022-04-12 北京戴纳实验科技有限公司 Display method of intelligent electronic menu
CN113380088A (en) * 2021-04-07 2021-09-10 上海中船船舶设计技术国家工程研究中心有限公司 Interactive simulation training support system

Similar Documents

Publication Publication Date Title
Yang et al. Object detection in equirectangular panorama
CN102111561A (en) Three-dimensional model projection method for simulating real scenes and device adopting same
CN101356546B (en) Image high-resolution upgrading device, image high-resolution upgrading method image high-resolution upgrading system
CN106228507A (en) A kind of depth image processing method based on light field
CN104935909B (en) Multi-image super-resolution method based on depth information
CN108475327A (en) three-dimensional acquisition and rendering
CN104155765B (en) The method and apparatus of revision for 3-D image in spliced integration imaging display
CN110728671B (en) Dense reconstruction method of texture-free scene based on vision
CN112525107B (en) Structured light three-dimensional measurement method based on event camera
CN102111562A (en) Projection conversion method for three-dimensional model and device adopting same
JP2008016918A (en) Image processor, image processing system, and image processing method
CN103065318B (en) The curved surface projection method and device of multiple-camera panorama system
CN109615661A (en) Light-field camera intrinsic parameter caliberating device and method
CN105046743A (en) Super-high-resolution three dimensional reconstruction method based on global variation technology
CN110209997A (en) Depth camera automatic Calibration algorithm based on three-dimensional feature point
CN110070598A (en) Mobile terminal and its progress 3D scan rebuilding method for 3D scan rebuilding
CN113643414B (en) Three-dimensional image generation method and device, electronic equipment and storage medium
CN110648274B (en) Method and device for generating fisheye image
CN107146287B (en) Two-dimensional projection image to threedimensional model mapping method
CN105046649A (en) Panorama stitching method for removing moving object in moving video
CN113808220A (en) Calibration method and system of binocular camera, electronic equipment and storage medium
CN104794718B (en) A kind of method of single image CT center monitoring camera calibration
CN102110300A (en) Three-dimensional model projecting method and device for imitating lens distortion
Liu et al. Content-aware unsupervised deep homography estimation and its extensions
CN113554709A (en) Camera-projector system calibration method based on polarization information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110629