CN102411794B - Output method of two-dimensional (2D) projection of three-dimensional (3D) model based on spherical harmonic transform - Google Patents

Output method of two-dimensional (2D) projection of three-dimensional (3D) model based on spherical harmonic transform Download PDF

Info

Publication number
CN102411794B
CN102411794B CN 201110214484 CN201110214484A CN102411794B CN 102411794 B CN102411794 B CN 102411794B CN 201110214484 CN201110214484 CN 201110214484 CN 201110214484 A CN201110214484 A CN 201110214484A CN 102411794 B CN102411794 B CN 102411794B
Authority
CN
China
Prior art keywords
dimensional model
dimensional
humorous
ball
phi
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.)
Expired - Fee Related
Application number
CN 201110214484
Other languages
Chinese (zh)
Other versions
CN102411794A (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.)
Nanjing University
Original Assignee
Nanjing 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 Nanjing University filed Critical Nanjing University
Priority to CN 201110214484 priority Critical patent/CN102411794B/en
Publication of CN102411794A publication Critical patent/CN102411794A/en
Application granted granted Critical
Publication of CN102411794B publication Critical patent/CN102411794B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses an output method of two-dimensional (2D) projection of a three-dimensional (3D) model based on spherical harmonic transform. The output method comprises the following steps of: 1. inputting the 3D model to be projected; 2. calculating barycentric coordinates of the 3D model, and then normalizing the 3D model; 3. carrying out layering sampling on the 3D model; 4. calculating the spherical harmonic characteristic of the 3D model by a Monte Carlo integration method, and calculating conversion factors based on sampling points; 5. calculating the 2D spherical harmonic characteristic after projection according to the conversion factors and the spherical harmonic characteristics of the 3D model; and 6. calculating the 2D information after projection according to the 2D spherical harmonic characteristic.

Description

A kind of output intent of two-dimensional projection of the three-dimensional model based on the humorous conversion of ball
Technical field
The present invention relates to a kind of method of three-dimensional model projection, a kind of three-dimensional model for only comprising geological information particularly utilizes the method for the humorous conversion of ball, the method for the two-dimensional projection of output three-dimensional model.
Background technology
Now, three-dimensional model has been widely applied to the aspects such as computer animation, game, virtual reality, and simultaneously, the projection of three-dimensional model has characterized the visual pattern of three-dimensional model, also is widely applied in each field.
The three-dimensional model projecting method that exists at present is parallel projection and perspective projection, is all the computing method of geometric projection.The projection ray of perspective projection is sent by common point, and parallel projection is special circumstances of perspective projection.The visual pattern that these two kinds of projection patterns obtain is usually used in three-dimensional model based on the search method of vision, but there is a common shortcoming in these two kinds of projection patterns: the difference of projection angle can obtain different visual patterns.So, in three-dimensional model search, in order to obtain the more information of model-based vision image, generally need to set different angles, obtain the visual pattern information on the three-dimensional model different directions.
Summary of the invention
Goal of the invention: technical matters to be solved by this invention is for the deficiencies in the prior art, and a kind of output intent of two-dimensional projection of the three-dimensional model based on the humorous conversion of ball is provided.
In order to solve the problems of the technologies described above, the invention discloses a kind of output intent of two-dimensional projection of the three-dimensional model based on the humorous conversion of ball, comprise the following steps:
The three-dimensional model of projection is treated in step 1, input, and the three-dimensional model of inputting is comprised of one group of tri patch, and the three-dimensional model of inputting is comprised of one group of tri patch, comprises three apex coordinates of spatial point coordinate, tri patch in tri patch;
Then the center-of-mass coordinate of step 2, Calculation of Three Dimensional model standardizes to three-dimensional model;
Step 3, three-dimensional model is carried out stratified sampling, use the monte carlo integration method when facilitating the humorous feature calculation of three-dimensional model ball;
Step 4, according to the thought of the humorous conversion of ball, sampling monte carlo integration method, the humorous feature of the ball of Calculation of Three Dimensional model; Simultaneously, calculate conversion factor by sampled point;
Step 5, according to conversion factor and the humorous feature of three-dimensional ball, calculate the humorous feature of two-sphere after projection;
Step 6, feature humorous according to two-sphere, the relevant information after the calculating projection.
In step 2 of the present invention, the computing method of the center-of-mass coordinate C of three-dimensional model (x, y, z) are:
C ( x , y , z ) = Σ i = 1 K ( S ) ( w i × C i ( x i , y i , z i ) ) Σ i = 1 K ( S ) w i ,
Wherein K (S) is three-dimensional model S intermediate cam dough sheet sum, w iThe area of i tri patch in S, C i(x i, y i, z i) be the center-of-mass coordinate of tri patch i.
In step 2 of the present invention, three-dimensional model is standardized, comprises following steps:
The translation three-dimensional model makes the barycenter C (x, y, z) of three-dimensional model overlap with the initial point of coordinate system;
Then the radially ultimate range with three-dimensional model normalizes to three-dimensional model in unit ball.
P(x,y,z)=σ(P(x,y,z)-C(x,y,z)),
Wherein, σ represents the peaked inverse of distance of the barycenter of three-dimensional model that three-dimensional model is had a few, σ=1/max (‖ P (x, y, z)-C (x, y, z) ‖), and some P (x, y, z) is the point on three-dimensional model surface.Afterwards, the barycenter of three-dimensional model is true origin.
In step 3 of the present invention, three-dimensional model is carried out stratified sampling, comprises following steps:
In step 2, after standardizing in unit ball to three-dimensional model, need to sample to the spheroid polar coordinates:
The spheroid polar coordinates are defined by position angle φ and polar angle θ,
0≤θ<π,
0≤φ<2π,
In the unit ball polar coordinates, carry out as follows stratified sampling:
θ i = ( i + 0.5 ) π N ,
φ j = ( j + 0.5 ) 2 π N ,
Wherein, 0≤i, j<N, N are the sampled point number on each direction, θ iRepresent i polar angle,
Figure BDA0000079564620000024
Represent j position angle,
Figure BDA0000079564620000025
A common point that consists of in polar coordinates; I and j represent respectively the desired value of polar coordinates down-sampling, and often a pair of (i, j) determines a sampled point, and total sampled point number is N*N.
Be true origin from the three-dimensional model barycenter, along direction (sin θ iCos φ j, sin θ iSin φ j, cos θ i) ray and the intersection point of three-dimensional model, be the sampled point of three-dimensional model stratified sampling.
In step 4, the humorous feature of the three-dimensional ball of Calculation of Three Dimensional model comprises following steps:
Get sampled point (θ, φ), calculate the spheric function f (θ, φ) of this sampled point: the radial function of getting the three-dimensional model sample point is spheric function
Figure BDA0000079564620000031
Wherein, some P represents the sampled point by the definite three-dimensional model surface of polar coordinates (θ, φ); Point C is the three-dimensional model barycenter of this moment, i.e. true origin; D represents Euclidean distance;
Secondly, calculated the basis function of the humorous conversion of ball by coordinate (θ, φ)
Figure BDA0000079564620000032
Only consider the humorous transform-based function of real number ball herein, Carry out according to following formula:
Y l m ( &theta; , &phi; ) = 2 K l m cos ( m&phi; ) P l m ( cos &theta; ) , m > 0 2 K l m sin ( - m&phi; ) P l - m ( cos &theta; ) , m < 0 K l 0 P l 0 ( cos &theta; ) , m = 0 ,
Wherein,
Figure BDA0000079564620000035
Be zoom factor,
Figure BDA0000079564620000036
Figure BDA0000079564620000037
Be associated Legendre polynomial, the l span is the integer more than or equal to 0 ,-l≤m≤l;
At last, calculate the coefficient of the humorous conversion of ball by spheric function and the humorous transform-based function of ball
Figure BDA0000079564620000038
a l m = &Integral; 0 2 &pi; &Integral; 0 &pi; sin ( &theta; ) f ( &theta; , &phi; ) Y l m ( &theta; , &phi; ) d&theta;d&phi; ,
Adopt the numerical computation method of monte carlo integration as follows to following formula:
a l m = 4 &pi; N &Sigma; &theta; , &phi; f ( &theta; , &phi; ) Y l m ( &theta; , &phi; ) ,
Choose default experiment parameter B, in the present invention, the B value is 7, only calculates the situation under 0≤l≤B, obtains the humorous character representation of ball of three-dimensional model S.
In step 4, the conversion factor of Calculation of Three Dimensional model comprises following steps:
At first, due to, three-dimensional polar coordinates can be by point
Figure BDA0000079564620000041
Determine, r is by polar coordinates The sampled point on the three-dimensional model surface of determining is to the distance of three-dimensional model barycenter, and the two dimensional surface polar coordinates can be definite by point (r, φ), so, by the conversion between cartesian coordinate system, carry out conversion between following polar coordinates to sampled point:
(θ,φ)→(cosθ,φ),
Utilize the associated Legendre polynomial under three-dimensional polar coordinate system and two-dimentional polar coordinate system, calculate conversion factor
Figure BDA0000079564620000043
Figure BDA0000079564620000044
Wherein,
Figure BDA0000079564620000045
Be associated Legendre polynomial, carry out iterative computation according to following formula:
P m m ( x ) = ( - 1 ) m ( 2 m - 1 ) ! ! ( 1 - x 2 ) m / 2 ,
P m + 1 m ( x ) = x ( 2 m + 1 ) P m m ( x ) ,
( l - m ) P l m ( x ) = x ( 2 l - 1 ) P l - 1 m ( x ) - ( l + m - 1 ) P l - 2 m ( x ) ,
In step 5, the humorous feature of two-sphere after the calculating projection, carry out according to following steps:
By the humorous feature of the three-dimensional ball that calculates in step 4 and conversion factor, calculate the humorous feature of two-sphere after projection,
c l m = a l m &CenterDot; &beta; l m ;
In step 6, the two-dimensional signal after the calculating projection, carry out according to following steps:
At first, utilize the expansion formula of the humorous conversion of ball, the spheric function of Two-dimensional:
g ( r , &phi; ) = &Sigma; l = 0 B &Sigma; m = - l m = l c l m H l m ( r , &phi; )
Wherein,
Figure BDA00000795646200000411
Be the humorous basis function of the ball under two-dimensional case.
Secondly, carry out the coordinate inverse mapping, to tlv triple obtained above (r, φ, g (r, φ)),
Figure BDA00000795646200000412
Image after the expression projection is at point
Figure BDA00000795646200000413
The gray-scale value at place, utilize the coordinate inverse mapping:
x=rcos(φ)=cos(θ)cos(φ)
y=rsin(φ)=cos(θ)sin(φ),
Obtain new tlv triple (x, y, g (r, φ)), be the information after three-dimensional model is transformed into two dimensional image.
Beneficial effect: the present invention is a kind of output intent of two-dimensional projection of the three-dimensional model based on the humorous conversion of ball, due to the three-dimensional model projection based on the humorous conversion of ball, embody a kind of global information of three-dimensional model, do not needed other geometric projection method to set the projecting direction parameter.The visual pattern of the three-dimensional model of projection output is used for the retrieval of three-dimensional model, the information of can be more accurate more complete expression three-dimensional model, thus improve the performance of three-dimensional model search.And the present invention has adopted the technology of the humorous conversion of ball, has guaranteed the feature of the rotational invariance of three-dimensional model search, and the three-dimensional model that namely rotates can obtain identical two-dimensional projection's visual pattern, thereby retrieval effectiveness is better.
Description of drawings
Below in conjunction with the drawings and specific embodiments, the present invention is done further illustrating, above-mentioned and/or otherwise advantage of the present invention will become apparent.
Fig. 1 is process flow diagram of the present invention.
Fig. 2 is three-dimensional model polar coordinates of the present invention and Cartesian coordinates schematic diagram.
Fig. 3 is three-dimensional model projection process schematic diagram.
Fig. 4 is the stratified sampling schematic diagram in three-dimensional polar coordinates.
Embodiment
The output intent of the two-dimensional projection of a kind of three-dimensional model based on the humorous conversion of ball of the present invention, its basic point of departure is by the humorous feature of the ball of three-dimensional model, under the conversion factor effect, obtain the humorous feature of ball after projection, afterwards, by the coordinate inverse mapping, obtain the information of two-dimensional projection image.
Below in conjunction with accompanying drawing, the present invention is done more detailed explanation:
As shown in Figure 1, the present invention includes following steps:
Step 1, the three-dimensional model of projection is treated in input, and the three-dimensional model of inputting is comprised of one group of tri patch, and the geological information that extracts from three-dimensional model comprises each tri patch which three summit is made of, and the geometric coordinate on each summit.
Step 2, then the center-of-mass coordinate of Calculation of Three Dimensional model standardizes to three-dimensional model.
In step 2, the computing method of the center-of-mass coordinate C of three-dimensional model (x, y, z) are:
C ( x , y , z ) = &Sigma; i = 1 K ( S ) ( w i &times; C i ( x i , y i , z i ) ) &Sigma; i = 1 K ( S ) w i ,
Wherein K (S) is three-dimensional model S intermediate cam dough sheet sum, w iThe area of i tri patch in S, C i(x i, y i, z i) center-of-mass coordinate of single tri patch i.
Three-dimensional model is standardized, comprises following steps:
The barycenter C (x, y, z) that three-dimensional model is moved to three-dimensional model overlaps with the initial point of coordinate system, is about to each apex coordinate of three-dimensional model and deducts the center-of-mass coordinate C (x, y, z) that has calculated, P (x, y, z)-C (x, y, z);
Then with three-dimensional model normalization in the unit spheroid, namely each apex coordinate after translation be multiply by a normalized parameter σ, as shown in the formula expression:
P(x,y,z)=σ(P(x,y,z)-C(x,y,z)),
Wherein, σ represents the peaked inverse of distance of the barycenter of three-dimensional model that three-dimensional model is had a few, σ=1/max (‖ P (x, y, z)-C (x, y, z) ‖), and some P (x, y, z) is the point on three-dimensional model surface.
Step 3 is carried out stratified sampling to three-dimensional model.
In step 3, three-dimensional model is carried out stratified sampling, comprises following steps:
At first, the spheroid polar coordinates are sampled:
The spheroid polar coordinate system can be made of position angle φ and polar angle θ, 0≤θ<π wherein, 0≤φ<2 π;
In the unit ball polar coordinates, carry out as follows stratified sampling:
&theta; i = ( i + 0.5 ) &pi; N ,
&phi; j = ( j + 0.5 ) 2 &pi; N ,
Wherein, 0≤i, j<N, N are the sampled point number on each direction, θ iRepresent i polar angle,
Figure BDA0000079564620000064
Represent j position angle,
Figure BDA0000079564620000065
A common point that consists of in polar coordinates; I and j represent respectively the desired value of polar coordinates down-sampling, and often a pair of (i, j) determines a sampled point, and total sampled point number is N*N;
Secondly, the sample coordinate in obtaining the unit ball polar coordinate system Afterwards, it is transformed in the cartesian coordinate system at three-dimensional model place, namely from the three-dimensional model barycenter along direction
Figure BDA0000079564620000072
Ray set out, calculate the intersection point of the dough sheet on itself and three-dimensional model surface, be the sampled point of three-dimensional model stratified sampling.
Step 4 is used the monte carlo integration method, the humorous feature of the ball of Calculation of Three Dimensional model, and calculate conversion factor by sampled point.
In step 4, the humorous feature of the ball of Calculation of Three Dimensional model comprises following steps:
According to step 3, get polar coordinates (θ, φ), calculate the spheric function f (θ, φ) of sample point corresponding to these polar coordinates: the radial function of getting the three-dimensional model sample point is spheric function:
f(θ,φ)=d(C,P);
Wherein, some P represents the sampled point by the definite three-dimensional model surface of polar coordinates (θ, φ); Point C is the barycenter of three-dimensional model; D represents Euclidean distance;
Calculated the basis function of the humorous conversion of ball by polar coordinates (θ, φ)
Figure BDA0000079564620000073
Wherein, the present invention adopts the humorous transform-based function of real number ball, still is designated as
Figure BDA0000079564620000074
Calculate according to following formula:
Y l m ( &theta; , &phi; ) = 2 K l m cos ( m&phi; ) P l m ( cos &theta; ) , m > 0 2 K l m sin ( - m&phi; ) P l - m ( cos &theta; ) , m < 0 K l 0 P l 0 ( cos &theta; ) , m = 0 ,
Wherein,
Figure BDA0000079564620000076
Be zoom factor,
Figure BDA0000079564620000077
Figure BDA0000079564620000078
Be associated Legendre polynomial, the l span is the integer more than or equal to 0, and-l≤m≤l can pre-set the parameter value B of experimental implementation, only calculates the humorous basis function of ball in 0≤l<B situation;
Calculate the coefficient of the humorous conversion of ball by spheric function and the humorous transform-based function of real number ball
a l m = &Integral; 0 2 &pi; &Integral; 0 &pi; sin ( &theta; ) f ( &theta; , &phi; ) Y l m ( &theta; , &phi; ) d&theta;d&phi; ,
In every pair (l, m) definite situation, utilize following formula, adopt the numerical computation method of monte carlo integration method to calculate the humorous feature of corresponding ball
Figure BDA0000079564620000081
The monte carlo integration method that following formula is corresponding is as follows:
Figure BDA0000079564620000082
According to this, but the humorous feature of a series of balls of Calculation of Three Dimensional model
Figure BDA0000079564620000083
Amount to B 2Individual.
In step 4, calculate conversion factor by sampled point and comprise following steps:
By three-dimensional polar coordinates (θ, φ, r), r is by the sampled point on polar coordinates (θ, φ) the definite three-dimensional model surfaces distance to the three-dimensional model barycenter, and the two dimensional surface polar coordinates
Figure BDA0000079564620000084
By the conversion between polar coordinates and Cartesian coordinates, and the conversion between cartesian coordinate system, can carry out conversion between following polar coordinates to sampled point:
(θ,φ)→(cosθ,φ),
Utilize the associated Legendre polynomial under three-dimensional polar coordinate system and two-dimentional polar coordinate system, calculate conversion factor
Figure BDA0000079564620000085
Figure BDA0000079564620000086
Wherein,
Figure BDA0000079564620000087
Be associated Legendre polynomial, carry out iterative computation according to following formula:
P m m ( x ) = ( - 1 ) m ( 2 m - 1 ) ! ! ( 1 - x 2 ) m / 2 ,
P m + 1 m ( x ) = x ( 2 m + 1 ) P m m ( x ) ,
( l - m ) P l m ( x ) = x ( 2 l - 1 ) P l - 1 m ( x ) - ( l + m - 1 ) P l - 2 m ( x ) .
Like this, just obtained the value of one group of conversion factor in different l and m situation.
Step 5, feature humorous according to the ball of described conversion factor and three-dimensional model, the humorous feature of two-sphere after the calculating projection.
In step 5, the humorous feature of two-sphere after the calculating projection: by one group of humorous feature of ball of the three-dimensional model that calculates in step 3
Figure BDA00000795646200000811
With the one group of conversion factor that obtains in step 4
Figure BDA00000795646200000812
Calculate one group of humorous feature of ball of the two dimensional image after projection
Figure BDA00000795646200000813
Wherein each
Figure BDA00000795646200000814
Calculated by following formula,
c l m = a l m &CenterDot; &beta; l m .
Step 6, feature humorous according to two-sphere, the two-dimensional signal after the calculating projection.
In step 6, the two-dimensional signal after the calculating projection, carry out according to following steps:
Choosing two-dimentional polar coordinates
Figure BDA0000079564620000091
Calculate the spheric function at subpoint place corresponding to these polar coordinates
Figure BDA0000079564620000092
At first, utilize the expansion formula of the humorous conversion of ball, the spheric function in Two-dimensional polar coordinates situation:
Figure BDA0000079564620000093
Wherein,
Figure BDA0000079564620000094
Be the humorous basis function of the ball under two dimension;
Secondly, carry out the coordinate inverse mapping, the tlv triple that obtains (r, φ, g (r, φ)),
Figure BDA0000079564620000095
The expression projected image is at polar coordinates
Figure BDA0000079564620000096
The gray-scale value at place, utilize the coordinate inverse mapping:
x=rcos(φ)=cos(θ)cos(φ)
y=rsin(φ)=cos(θ)sin(φ),
Obtain new tlv triple (x, y, g (r, φ)), be the information after three-dimensional model is transformed into two dimensional image.
As shown in Figure 2, three-dimensional model Cartesian coordinates and polar coordinates schematic diagram: in whole computation process, repeatedly use the mutual conversion between Cartesian coordinates and polar coordinates.
The three-dimensional model polar coordinates by position angle φ ∈ [0,2 π) and polar angle θ ∈ [0, π) form.Cartesian coordinate system is by x-, y-, and the z-axle represents.
In Fig. 2, Γ represents curved surface in three dimensions, and P (x, y, z) represents a point on this curved surface.By some relations of trigonometric function, can obtain polar coordinates and the Cartesian coordinates conversion formula is as follows:
Calculate polar coordinates by Cartesian coordinates:
r = x 2 + y 2 + z 2 ,
&phi; = tan - 1 ( y x ) ,
&theta; = cos - 1 ( z r ) ,
Otherwise, calculate Cartesian coordinates by polar coordinates:
x=rcosφsinθ,
y=rsinφsinθ,
z=rcosθ,
As shown in Figure 3, three-dimensional model projection process schematic diagram: from the input of three-dimensional model, to the expression that is converted to the humorous feature of three-dimensional ball, the humorous conversion factor of ball under Two-dimensional and three-dimensional situation afterwards, calculate the humorous character representation of two-sphere after projection, be reduced at last the two dimensional image after projection.
Fig. 3 schematic diagram is that (experiment parameter is respectively concrete experimental result: 1024 of sampled points, i.e. N=32; Bandwidth B=7; Perspective view is of a size of the 256*256 pixel.)
Three-dimensional model shown in Fig. 3 left side (ant) as input object, is then found the solution the humorous feature of its three-dimensional ball, is write as the form of matrix, and is as follows:
- 1.23448 - 3.53098 e - 016 - 0.0648568 L 32.311 2.49106 e - 015 33.4847 L 1.83729 e - 015 0.334174 L 4.41466
Afterwards, utilize the humorous basis function of two and three dimensions ball, calculate conversion factor.In figure below, the upper left side matrix is the humorous basis function of ball under two-dimensional case, and the lower left matrix is the humorous basis function of ball under three-dimensional situation, the conversion factor that right-hand matrix is served as reasons and both calculated.
Figure BDA0000079564620000102
Recycle at last the humorous feature of the three-dimensional ball that obtains previously and conversion factor, can calculate the humorous feature of two-sphere.
- 2.27326 - 9.30704 e - 017 - 0.759054 L 32.311 72.7984 55.9754 L 1.77207 e - 015 - 4.15861 L 2.77679
Utilize the humorous feature of two-sphere, can calculate the figure of drop shadow effect on the right in Fig. 3.
As shown in Figure 4, the stratified sampling schematic diagram in three-dimensional polar coordinates situation: three-dimensional polar coordinates by position angle φ ∈ [0,2 π) and polar angle θ ∈ [0, π) form, be expressed as respectively ordinate and horizontal ordinate, get N point on each coordinate, therefore θ is arranged respectively iWith
Figure BDA0000079564620000112
By both jointly consisting of polar coordinates
The invention provides a kind of thinking and method of output intent of two-dimensional projection of the three-dimensional model based on the humorous conversion of ball; method and the approach of this technical scheme of specific implementation are a lot; the above is only the preferred embodiment of the present invention; should be understood that; for those skilled in the art; under the prerequisite that does not break away from the principle of the invention, can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.In the present embodiment not clear and definite each ingredient all available prior art realized.

Claims (3)

1. the output intent based on the two-dimensional projection of the computer animation three-dimensional model of the humorous conversion of ball, is characterized in that, comprises the following steps:
Step 1, the three-dimensional model S of projection is treated in input, the three-dimensional model S that inputs is comprised of one group of tri patch, comprises three apex coordinates in tri patch;
Step 2, then the center-of-mass coordinate of Calculation of Three Dimensional model standardizes to three-dimensional model;
Step 3 is carried out stratified sampling to three-dimensional model;
Step 4, the humorous feature of the ball of Calculation of Three Dimensional model, and calculate conversion factor by sampled point;
Step 5, the humorous feature of two-sphere after the calculating projection;
Step 6, feature humorous according to two-sphere, the two dimensional image after the calculating projection;
In step 2, the computing method of the center-of-mass coordinate C of three-dimensional model (x, y, z) are:
C ( x , y , z ) = &Sigma; i = 1 K ( S ) ( w i &times; C i ( x i , y i , z i ) ) &Sigma; i = 1 K ( S ) w i ,
Wherein K (S) is three-dimensional model S intermediate cam dough sheet sum, w iThe area of i tri patch in three-dimensional model S, C i(x i, y i, z i) center-of-mass coordinate of single tri patch i;
In step 2, three-dimensional model is standardized, comprises following steps:
The translation three-dimensional model makes the barycenter C (x, y, z) of three-dimensional model overlap with the initial point of coordinate system;
Radially ultimate range with three-dimensional model normalizes to three-dimensional model in unit ball:
P(x,y,z)=σ(P(x,y,z)-C(x,y,z)),
Wherein, σ represents the peaked inverse of distance of the barycenter of three-dimensional model that three-dimensional model is had a few,
σ=1/max (|| P (x, y, z)-C (x, y, z) ||), some P (x, y, z) is the point on three-dimensional model surface;
In step 3, three-dimensional model is carried out stratified sampling, comprises following steps:
The spheroid polar coordinates are sampled:
The spheroid polar coordinates represent by position angle φ and polar angle θ, 0≤θ<π wherein, 0≤φ<2 π;
In the unit ball polar coordinates, carry out as follows stratified sampling:
&theta; i = ( i + 0.5 ) &pi; N ,
&phi; j = ( j + 0.5 ) 2 &pi; N ,
Wherein, 0≤i, j<N, N are the sampled point number on each direction, θ iRepresent i polar angle, φ jRepresent j position angle, (θ i, φ j) jointly consist of a point in polar coordinates; I and j represent respectively the desired value of polar coordinates down-sampling, and often a pair of (i, j) determines a sampled point, and total sampled point number is N*N;
(the sin θ from the three-dimensional model barycenter along direction iCos φ j, sin θ iSin φ j, cos θ i) ray and the intersection point of three-dimensional model, be the sampled point of three-dimensional model stratified sampling;
In step 4, the humorous feature of the ball of Calculation of Three Dimensional model comprises following steps:
Get polar coordinates (θ, φ), calculate the spheric function f (θ, φ) of this sampled point: the radial function of getting the three-dimensional model sample point is spheric function:
f(θ,φ)=d(C,P);
Wherein, some P represents the sampled point by the definite three-dimensional model surface of polar coordinates (θ, φ); Point C is the barycenter of three-dimensional model; D represents Euclidean distance;
Calculated the basis function of the humorous conversion of ball by polar coordinates (θ, φ)
Figure FDA00003339209100022
Wherein, the humorous transform-based function of real number ball
Figure FDA00003339209100023
Calculate according to following formula:
Y l m ( &theta; , &phi; ) = 2 K l m cos ( m&phi; ) P l m ( cos &theta; ) , m > 0 2 K l m sin ( - m&phi; ) P l - m ( cos &theta; ) , m < 0 K l 0 P l 0 ( cos &theta; ) , m = 0
Wherein,
Figure FDA00003339209100025
Be zoom factor,
Figure FDA00003339209100026
Figure FDA00003339209100027
Be associated Legendre polynomial, l is that span is the arbitrary integer more than or equal to 0, and m is calculating parameter ,-l≤m≤l;
Calculate the coefficient of the humorous conversion of ball according to spheric function and the humorous transform-based function of real number ball
Figure FDA00003339209100028
a l m = &Integral; 0 2 &pi; &Integral; 0 &pi; sin ( &theta; ) f ( &theta; , &phi; ) Y l m ( &theta; , &phi; ) d&theta;d&phi; ,
Adopt the monte carlo integration method to obtain to following formula:
a l m = 4 &pi; N &Sigma; &theta; , &phi; f ( &theta; , &phi; ) Y l m ( &theta; , &phi; ) ;
In step 4, calculate conversion factor by sampled point and comprise following steps:
By point (θ, φ, r) determine three-dimensional polar coordinates, r is by polar coordinates (θ, φ) sampled point on definite three-dimensional model surface to the distance of three-dimensional model barycenter, is determined the two dimensional surface polar coordinates by point (r, φ), change by cartesian coordinate system, sampled point carried out conversion between following polar coordinates:
(θ,φ)→(cosθ,φ),
Utilize the associated Legendre polynomial under three-dimensional polar coordinate system and two-dimentional polar coordinate system, calculate conversion factor
Figure FDA00003339209100032
&beta; l m &ap; &Sigma; r , &phi; P l m ( r , &phi; ) &Sigma; &theta; , &phi; P l m ( &theta; , &phi; ) ,
Wherein,
Figure FDA00003339209100034
Be associated Legendre polynomial, carry out iterative computation according to following formula:
P m m ( x ) = ( - 1 ) m ( 2 m - 1 ) ! ! ( 1 - x 2 ) m / 2 ,
P m + 1 m ( x ) = x ( 2 m + 1 ) P m m ( x ) ,
( l - m ) P l m ( x ) = x ( 2 l - 1 ) P l - 1 m ( x ) - ( l + m - 1 ) P l - 2 m ( x ) .
2. the output intent of the two-dimensional projection of a kind of computer animation three-dimensional model based on the humorous conversion of ball according to claim 1, is characterized in that, in step 5, calculates the humorous feature of two-sphere after projection:
Feature humorous according to the ball of described conversion factor and three-dimensional model, the humorous feature of two-sphere after the calculating projection c l m = a l m &CenterDot; &beta; l m .
3. the output intent of the two-dimensional projection of a kind of computer animation three-dimensional model based on the humorous conversion of ball according to claim 2, is characterized in that, in step 6, calculates the two-dimensional signal after projection, carries out according to following steps:
Utilize the expansion formula of the humorous conversion of ball, the spheric function of Two-dimensional:
g ( r , &phi; ) = &Sigma; l = 0 B &Sigma; m = - l m = l c l m H l m ( r , &phi; ) ,
Wherein,
Figure FDA00003339209100041
Be the humorous basis function of the ball under two dimension, g (r, φ) expression projected image is at the gray-scale value at the represented some place of polar coordinates (r, φ), and B is parameter value;
Carry out the coordinate inverse mapping, the tlv triple that obtains (r, φ, g (r, φ)), utilize the coordinate inverse mapping:
x=rcos(φ)=cos(θ)cos(φ)
y=rsin(φ)=cos(θ)sin(φ),
Obtain new tlv triple (x, y, g (r, φ)), be the information after three-dimensional model is transformed into two dimensional image.
CN 201110214484 2011-07-29 2011-07-29 Output method of two-dimensional (2D) projection of three-dimensional (3D) model based on spherical harmonic transform Expired - Fee Related CN102411794B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110214484 CN102411794B (en) 2011-07-29 2011-07-29 Output method of two-dimensional (2D) projection of three-dimensional (3D) model based on spherical harmonic transform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110214484 CN102411794B (en) 2011-07-29 2011-07-29 Output method of two-dimensional (2D) projection of three-dimensional (3D) model based on spherical harmonic transform

Publications (2)

Publication Number Publication Date
CN102411794A CN102411794A (en) 2012-04-11
CN102411794B true CN102411794B (en) 2013-11-06

Family

ID=45913858

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110214484 Expired - Fee Related CN102411794B (en) 2011-07-29 2011-07-29 Output method of two-dimensional (2D) projection of three-dimensional (3D) model based on spherical harmonic transform

Country Status (1)

Country Link
CN (1) CN102411794B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104778862B (en) * 2014-01-14 2017-08-25 北大方正集团有限公司 The method and terminal of threedimensional model expansion
CN106469445A (en) * 2015-08-18 2017-03-01 青岛海信医疗设备股份有限公司 A kind of calibration steps of 3-D view, device and system
CN105374062B (en) * 2015-10-28 2017-06-06 上海联影医疗科技有限公司 The generation method and device of two-dimensional medical images
CN105959702B (en) * 2016-05-30 2019-03-22 北京奇艺世纪科技有限公司 A kind of spherical video coding method and device
CN106210716B (en) * 2016-08-01 2019-08-23 上海国茂数字技术有限公司 A kind of panoramic video isodensity method of sampling and device
CN107085824A (en) * 2017-03-14 2017-08-22 佛山科学技术学院 A kind of pole view extracting method of threedimensional model
CN110412333B (en) * 2019-04-30 2020-10-13 清华大学 Current parameter elastic network regularization inversion method based on spherical harmonic decomposition
CN111462145B (en) * 2020-04-01 2023-04-07 重庆大学 Active contour image segmentation method based on double-weight symbol pressure function
CN111625667A (en) * 2020-05-18 2020-09-04 北京工商大学 Three-dimensional model cross-domain retrieval method and system based on complex background image

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101382934A (en) * 2007-09-06 2009-03-11 华为技术有限公司 Search method for multimedia model, apparatus and system
CN101609563A (en) * 2009-07-27 2009-12-23 浙江工商大学 A kind of construction method of binary tree of 3 D model shape features

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2002338376A1 (en) * 2001-04-06 2002-10-21 Lawrence R. Frank Method for analyzing mri diffusion data

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101382934A (en) * 2007-09-06 2009-03-11 华为技术有限公司 Search method for multimedia model, apparatus and system
CN101609563A (en) * 2009-07-27 2009-12-23 浙江工商大学 A kind of construction method of binary tree of 3 D model shape features

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘玉杰.基于形状的三维模型检索若干关键技术研究.《中国优秀博硕士学位论文全文数据库 (博士) 信息科技辑》.2006,(第10期),I138-60.
基于形状的三维模型检索若干关键技术研究;刘玉杰;《中国优秀博硕士学位论文全文数据库 (博士) 信息科技辑》;20061015(第10期);I138-60 *

Also Published As

Publication number Publication date
CN102411794A (en) 2012-04-11

Similar Documents

Publication Publication Date Title
CN102411794B (en) Output method of two-dimensional (2D) projection of three-dimensional (3D) model based on spherical harmonic transform
CN104299244B (en) Obstacle detection method and device based on monocular camera
CN102999942B (en) Three-dimensional face reconstruction method
CN100562895C (en) A kind of method of the 3 D face animation based on Region Segmentation and speced learning
CN102880866B (en) Method for extracting face features
CN104050681B (en) A kind of road vanishing Point Detection Method method based on video image
CN104463856B (en) The ground extracting method of the outdoor scene three dimensional point cloud based on normal vector ball
CN102136142B (en) Nonrigid medical image registration method based on self-adapting triangular meshes
CN104318551B (en) Gauss hybrid models point cloud registration method based on convex closure characteristic key
CN107122705A (en) Face critical point detection method based on three-dimensional face model
CN103093498A (en) Three-dimensional human face automatic standardization method
CN103839277A (en) Mobile augmented reality registration method of outdoor wide-range natural scene
You et al. An accurate and practical calibration method for roadside camera using two vanishing points
CN106295512A (en) Many correction line indoor vision data base construction method based on mark and indoor orientation method
CN105045496A (en) Gesture interaction method based on joint point transformation
CN109255304A (en) Method for tracking target based on distribution field feature
CN103955960B (en) Image viewpoint transformation method based on single input image
CN108733892A (en) A kind of three-dimensional numerical value building method about not convex particle in concrete
CN103700135B (en) A kind of three-dimensional model local spherical mediation feature extracting method
CN103839081B (en) A kind of across visual angle gait recognition method reached based on topology table
CN102768767B (en) Online three-dimensional reconstructing and locating method for rigid body
CN101196988B (en) Palm locating and center area extraction method of three-dimensional palm print identity identification system
CN106682575A (en) Human eye point cloud feature location with ELM (Eye Landmark Model) algorithm
CN104699879B (en) The multiple rotary equivalent simulation method of Complex multi-target electromagnetic scattering
CN107977618A (en) A kind of face alignment method based on Cascaded Double-layer neutral net

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20131106

Termination date: 20160729