CN102411794A - 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
CN102411794A
CN102411794A CN2011102144846A CN201110214484A CN102411794A CN 102411794 A CN102411794 A CN 102411794A CN 2011102144846 A CN2011102144846 A CN 2011102144846A CN 201110214484 A CN201110214484 A CN 201110214484A CN 102411794 A CN102411794 A CN 102411794A
Authority
CN
China
Prior art keywords
mrow
msubsup
dimensional model
dimensional
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.)
Granted
Application number
CN2011102144846A
Other languages
Chinese (zh)
Other versions
CN102411794B (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 CN201110214484.6A 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

Landscapes

  • Image Generation (AREA)
  • Processing Or Creating Images (AREA)

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

Output method of two-dimensional projection of three-dimensional model based on spherical harmonic transformation
Technical Field
The invention relates to a method for projecting a three-dimensional model, in particular to a method for outputting a two-dimensional projection of the three-dimensional model by utilizing a spherical harmonic transformation method aiming at the three-dimensional model only containing geometric information.
Background
At present, three-dimensional models have been widely applied to computer animation, games, virtual reality and other aspects, and meanwhile, the projection of the three-dimensional models represents the visual images of the three-dimensional models and is also widely applied to various fields.
The existing three-dimensional model projection method is parallel projection and perspective projection, and is a calculation method of geometric projection. Projection rays of the perspective projection are all emitted from a common point, and the parallel projection is a special case of the perspective projection. The visual images obtained by the two projection modes are commonly used in a three-dimensional model visual-based retrieval method, but the two projection modes have a common defect: different projection angles result in different visual images. Therefore, in order to obtain more information of the model visual image in the three-dimensional model search, it is generally necessary to set different angles to obtain visual image information in different directions of the three-dimensional model.
Disclosure of Invention
The purpose of the invention is as follows: the invention provides an output method of two-dimensional projection of a three-dimensional model based on spherical harmonic transformation, aiming at the defects of the prior art.
In order to solve the technical problem, the invention discloses an output method of two-dimensional projection of a three-dimensional model based on spherical harmonic transformation, which comprises the following steps:
inputting a three-dimensional model to be projected, wherein the input three-dimensional model consists of a group of triangular patches, and the triangular patches comprise space point coordinates and three vertex coordinates of the triangular patches;
step two, calculating the centroid coordinate of the three-dimensional model, and then normalizing the three-dimensional model;
step three, carrying out layered sampling on the three-dimensional model, and using a Monte Carlo integral method when the spherical harmonic characteristics of the three-dimensional model are conveniently calculated;
step four, according to the idea of spherical harmonic transformation, a Monte Carlo integral method is sampled to calculate the spherical harmonic characteristics of the three-dimensional model; meanwhile, calculating a conversion factor by sampling points;
step five, calculating the two-dimensional spherical harmonic characteristics after projection according to the conversion factors and the three-dimensional spherical harmonic characteristics;
and sixthly, calculating the related information after projection according to the two-dimensional spherical harmonic characteristics.
In the second step of the invention, the method for calculating the centroid coordinate C (x, y, z) of the three-dimensional model comprises the following steps:
<math> <mrow> <mi>C</mi> <mrow> <mo>(</mo> <mi>x</mi> <mo>,</mo> <mi>y</mi> <mo>,</mo> <mi>z</mi> <mo>)</mo> </mrow> <mo>=</mo> <mfrac> <mrow> <munderover> <mi>&Sigma;</mi> <mrow> <mi>i</mi> <mo>=</mo> <mn>1</mn> </mrow> <mrow> <mi>K</mi> <mrow> <mo>(</mo> <mi>S</mi> <mo>)</mo> </mrow> </mrow> </munderover> <mrow> <mo>(</mo> <msub> <mi>w</mi> <mi>i</mi> </msub> <mo>&times;</mo> <msub> <mi>C</mi> <mi>i</mi> </msub> <mrow> <mo>(</mo> <msub> <mi>x</mi> <mi>i</mi> </msub> <mo>,</mo> <msub> <mi>y</mi> <mi>i</mi> </msub> <mo>,</mo> <msub> <mi>z</mi> <mi>i</mi> </msub> <mo>)</mo> </mrow> <mo>)</mo> </mrow> </mrow> <mrow> <munderover> <mi>&Sigma;</mi> <mrow> <mi>i</mi> <mo>=</mo> <mn>1</mn> </mrow> <mrow> <mi>K</mi> <mrow> <mo>(</mo> <mi>S</mi> <mo>)</mo> </mrow> </mrow> </munderover> <msub> <mi>w</mi> <mi>i</mi> </msub> </mrow> </mfrac> <mo>,</mo> </mrow> </math>
where K (S) is the total number of triangular patches in the three-dimensional model S, wiIs the area of the ith triangular patch in S, Ci(xi,yi,zi) Is the centroid coordinate of the triangular patch i.
In the second step of the invention, the three-dimensional model is normalized, which comprises the following steps:
translating the three-dimensional model such that a centroid C (x, y, z) of the three-dimensional model coincides with an origin of the coordinate system;
the three-dimensional model is then normalized to within a unit sphere by the radial maximum distance of the three-dimensional model.
P(x,y,z)=σ(P(x,y,z)-C(x,y,z)),
Where σ represents the reciprocal of the maximum of the distances of all points of the three-dimensional model to the centroid of the three-dimensional model, σ is 1/max (| P (x, y, z) -C (x, y, z) |), and point P (x, y, z) is a point of the three-dimensional model surface. And then, the centroid of the three-dimensional model is the origin of coordinates.
In the third step of the invention, the three-dimensional model is subjected to layered sampling, and the method comprises the following steps:
in step two, after the three-dimensional model is normalized to be in a unit sphere, the polar coordinates of the sphere need to be sampled:
the polar coordinates of the sphere are defined by the azimuth angle phi and the polar angle theta,
0≤θ<π,
0≤φ<2π,
in unit sphere polar coordinates, layered sampling is carried out according to the following formula:
<math> <mrow> <msub> <mi>&theta;</mi> <mi>i</mi> </msub> <mo>=</mo> <mrow> <mo>(</mo> <mi>i</mi> <mo>+</mo> <mn>0.5</mn> <mo>)</mo> </mrow> <mfrac> <mi>&pi;</mi> <mi>N</mi> </mfrac> <mo>,</mo> </mrow> </math>
<math> <mrow> <msub> <mi>&phi;</mi> <mi>j</mi> </msub> <mo>=</mo> <mrow> <mo>(</mo> <mi>j</mi> <mo>+</mo> <mn>0.5</mn> <mo>)</mo> </mrow> <mfrac> <mrow> <mn>2</mn> <mi>&pi;</mi> </mrow> <mi>N</mi> </mfrac> <mo>,</mo> </mrow> </math>
wherein i is more than or equal to 0, j is less than N, N is the number of sampling points in each direction, and thetaiWhich represents the i-th polar angle,
Figure BDA0000079564620000024
it represents the j-th azimuth angle,
Figure BDA0000079564620000025
together forming a point in polar coordinates; i and j are divided intoAnd respectively representing index values of polar coordinate down-sampling, wherein each pair (i, j) determines a sampling point, and the total number of the sampling points is N.
From the three-dimensional model centroid, i.e. origin of coordinates, in the direction (sin θ)i cosφj,sinθi sinφj,cosθi) The intersection point of the ray and the three-dimensional model is the sampling point of the three-dimensional model for layered sampling.
In the fourth step, the three-dimensional spherical harmonic characteristics of the three-dimensional model are calculated, and the method comprises the following steps:
taking a sampling point (theta, phi), and calculating a spherical function f (theta, phi) of the sampling point: taking a radial function at a sampling point of the three-dimensional model as a spherical function
Figure BDA0000079564620000031
Wherein the point P represents a sampling point of the three-dimensional model surface determined by the polar coordinates (θ, φ); point C is the centroid of the three-dimensional model at that time, i.e. the origin of coordinates; d represents the euclidean distance;
secondly, the basis functions of the spherical harmonic transformation are calculated from the coordinates (theta, phi)Here, only real spherical harmonic transformation basis functions are considered
Figure BDA0000079564620000033
The method is carried out according to the following formula:
<math> <mrow> <msubsup> <mi>Y</mi> <mi>l</mi> <mi>m</mi> </msubsup> <mrow> <mo>(</mo> <mi>&theta;</mi> <mo>,</mo> <mi>&phi;</mi> <mo>)</mo> </mrow> <mo>=</mo> <mfenced open='{' close=''> <mtable> <mtr> <mtd> <msqrt> <mn>2</mn> </msqrt> <msubsup> <mi>K</mi> <mi>l</mi> <mi>m</mi> </msubsup> <mi>cos</mi> <mrow> <mo>(</mo> <mi>m&phi;</mi> <mo>)</mo> </mrow> <msubsup> <mi>P</mi> <mi>l</mi> <mi>m</mi> </msubsup> <mrow> <mo>(</mo> <mi>cos</mi> <mi>&theta;</mi> <mo>)</mo> </mrow> <mo>,</mo> </mtd> <mtd> <mi>m</mi> <mo>></mo> <mn>0</mn> </mtd> </mtr> <mtr> <mtd> <msqrt> <mn>2</mn> </msqrt> <msubsup> <mi>K</mi> <mi>l</mi> <mi>m</mi> </msubsup> <mi>sin</mi> <mrow> <mo>(</mo> <mo>-</mo> <mi>m&phi;</mi> <mo>)</mo> </mrow> <msubsup> <mi>P</mi> <mi>l</mi> <mrow> <mo>-</mo> <mi>m</mi> </mrow> </msubsup> <mrow> <mo>(</mo> <mi>cos</mi> <mi>&theta;</mi> <mo>)</mo> </mrow> <mo>,</mo> </mtd> <mtd> <mi>m</mi> <mo>&lt;</mo> <mn>0</mn> </mtd> </mtr> <mtr> <mtd> <msubsup> <mi>K</mi> <mi>l</mi> <mn>0</mn> </msubsup> <msubsup> <mi>P</mi> <mi>l</mi> <mn>0</mn> </msubsup> <mrow> <mo>(</mo> <mi>cos</mi> <mi>&theta;</mi> <mo>)</mo> </mrow> <mo>,</mo> </mtd> <mtd> <mi>m</mi> <mo>=</mo> <mn>0</mn> </mtd> </mtr> </mtable> </mfenced> <mo>,</mo> </mrow> </math>
wherein,
Figure BDA0000079564620000035
in order to be a scaling factor, the scaling factor,
Figure BDA0000079564620000036
Figure BDA0000079564620000037
is a conjunctive Legendre polynomial, the value range of l is an integer which is more than or equal to 0, and m is more than or equal to l and less than or equal to l;
finally, the coefficients of the spherical harmonic transformation are calculated from the spherical function and the spherical harmonic transformation basis function
Figure BDA0000079564620000038
<math> <mrow> <msubsup> <mi>a</mi> <mi>l</mi> <mi>m</mi> </msubsup> <mo>=</mo> <msubsup> <mo>&Integral;</mo> <mn>0</mn> <mrow> <mn>2</mn> <mi>&pi;</mi> </mrow> </msubsup> <msubsup> <mo>&Integral;</mo> <mn>0</mn> <mi>&pi;</mi> </msubsup> <mi>sin</mi> <mrow> <mo>(</mo> <mi>&theta;</mi> <mo>)</mo> </mrow> <mi>f</mi> <mrow> <mo>(</mo> <mi>&theta;</mi> <mo>,</mo> <mi>&phi;</mi> <mo>)</mo> </mrow> <msubsup> <mi>Y</mi> <mi>l</mi> <mi>m</mi> </msubsup> <mrow> <mo>(</mo> <mi>&theta;</mi> <mo>,</mo> <mi>&phi;</mi> <mo>)</mo> </mrow> <mi>d&theta;d&phi;</mi> <mo>,</mo> </mrow> </math>
The numerical calculation method using the monte carlo integral for the above equation is as follows:
<math> <mrow> <msubsup> <mi>a</mi> <mi>l</mi> <mi>m</mi> </msubsup> <mo>=</mo> <mfrac> <mrow> <mn>4</mn> <mi>&pi;</mi> </mrow> <mi>N</mi> </mfrac> <munder> <mi>&Sigma;</mi> <mrow> <mi>&theta;</mi> <mo>,</mo> <mi>&phi;</mi> </mrow> </munder> <mi>f</mi> <mrow> <mo>(</mo> <mi>&theta;</mi> <mo>,</mo> <mi>&phi;</mi> <mo>)</mo> </mrow> <msubsup> <mi>Y</mi> <mi>l</mi> <mi>m</mi> </msubsup> <mrow> <mo>(</mo> <mi>&theta;</mi> <mo>,</mo> <mi>&phi;</mi> <mo>)</mo> </mrow> <mo>,</mo> </mrow> </math>
and selecting a preset experiment parameter B, wherein the value of B is 7, and only calculating the condition that l is more than or equal to 0 and less than or equal to B to obtain the spherical harmonic characteristic representation of the three-dimensional model S.
In the fourth step, calculating the conversion factor of the three-dimensional model comprises the following steps:
first, because three-dimensional polar coordinates can be defined by points
Figure BDA0000079564620000041
Determined as r is a polar coordinateDetermining the distance from a sampling point on the surface of the three-dimensional model to the centroid of the three-dimensional model, wherein the polar coordinates of the two-dimensional plane can be determined by the point (r, phi), so that through the conversion between the Cartesian coordinate systems, the following polar coordinates are converted for the sampling point:
(θ,φ)→(cosθ,φ),
calculating conversion factor by using three-dimensional polar coordinate system and conjoint Legendre polynomial under two-dimensional polar coordinate system
Figure BDA0000079564620000043
Figure BDA0000079564620000044
Wherein,
Figure BDA0000079564620000045
for the associated legendre polynomial, an iterative calculation is performed according to the 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 the fifth step, calculating the two-dimensional spherical harmonic characteristics after projection, and performing the following steps:
calculating the two-dimensional spherical harmonic characteristics after projection by the three-dimensional spherical harmonic characteristics and the conversion factors obtained by calculation in the step four,
<math> <mrow> <msubsup> <mi>c</mi> <mi>l</mi> <mi>m</mi> </msubsup> <mo>=</mo> <msubsup> <mi>a</mi> <mi>l</mi> <mi>m</mi> </msubsup> <mo>&CenterDot;</mo> <msubsup> <mi>&beta;</mi> <mi>l</mi> <mi>m</mi> </msubsup> <mo>;</mo> </mrow> </math>
in the sixth step, the projected two-dimensional information is calculated according to the following steps:
firstly, a two-dimensional spherical function is calculated by using an expansion formula of spherical harmonic transformation:
<math> <mrow> <mi>g</mi> <mrow> <mo>(</mo> <mi>r</mi> <mo>,</mo> <mi>&phi;</mi> <mo>)</mo> </mrow> <mo>=</mo> <munderover> <mi>&Sigma;</mi> <mrow> <mi>l</mi> <mo>=</mo> <mn>0</mn> </mrow> <mi>B</mi> </munderover> <munderover> <mi>&Sigma;</mi> <mrow> <mi>m</mi> <mo>=</mo> <mo>-</mo> <mi>l</mi> </mrow> <mrow> <mi>m</mi> <mo>=</mo> <mi>l</mi> </mrow> </munderover> <msubsup> <mi>c</mi> <mi>l</mi> <mi>m</mi> </msubsup> <msubsup> <mi>H</mi> <mi>l</mi> <mi>m</mi> </msubsup> <mrow> <mo>(</mo> <mi>r</mi> <mo>,</mo> <mi>&phi;</mi> <mo>)</mo> </mrow> </mrow> </math>
wherein,is a spherical harmonic basis function in the two-dimensional case.
Next, coordinate inverse mapping is performed, and the three tuples (r, phi, g (r,φ)),
Figure BDA00000795646200000412
representing projected image dots
Figure BDA00000795646200000413
The gray value of (b) is mapped by using coordinate inverse:
x=rcos(φ)=cos(θ)cos(φ)
y=rsin(φ)=cos(θ)sin(φ),
and obtaining a new triplet (x, y, g (r, phi)) which is the information after the three-dimensional model is converted into the two-dimensional image.
Has the advantages that: the invention relates to an output method of two-dimensional projection of a three-dimensional model based on spherical harmonic transformation, which embodies global information of the three-dimensional model due to the three-dimensional model projection based on the spherical harmonic transformation and does not need other geometric projection methods to set projection direction parameters. The visual image of the three-dimensional model output by projection is used for searching the three-dimensional model, and the information of the three-dimensional model can be more accurately and more completely expressed, so that the performance of searching the three-dimensional model is improved. Moreover, the invention adopts the spherical harmonic transformation technology, ensures the rotation invariance characteristic of the three-dimensional model retrieval, namely the three-dimensional model which rotates can obtain the same two-dimensional projection visual image, thereby having better retrieval effect.
Drawings
The foregoing and/or other advantages of the invention will become further apparent from the following detailed description of the invention when taken in conjunction with the accompanying drawings.
FIG. 1 is a flow chart of the present invention.
FIG. 2 is a schematic diagram of the polar coordinates and Cartesian coordinates of the three-dimensional model of the present invention.
Fig. 3 is a schematic diagram of a three-dimensional model projection process.
Fig. 4 is a schematic diagram of hierarchical sampling in three-dimensional polar coordinates.
Detailed Description
The invention discloses an output method of a two-dimensional projection of a three-dimensional model based on spherical harmonic transformation.
The invention is explained in more detail below with reference to the drawings:
as shown in fig. 1, the present invention comprises the steps of:
step 1, inputting a three-dimensional model to be projected, wherein the input three-dimensional model consists of a group of triangular patches, and the geometric information extracted from the three-dimensional model comprises which three vertexes each triangular patch consists of and the geometric coordinates of each vertex.
And 2, calculating the centroid coordinate of the three-dimensional model, and then normalizing the three-dimensional model.
In step 2, the method for calculating the centroid coordinate C (x, y, z) of the three-dimensional model is as follows:
<math> <mrow> <mi>C</mi> <mrow> <mo>(</mo> <mi>x</mi> <mo>,</mo> <mi>y</mi> <mo>,</mo> <mi>z</mi> <mo>)</mo> </mrow> <mo>=</mo> <mfrac> <mrow> <munderover> <mi>&Sigma;</mi> <mrow> <mi>i</mi> <mo>=</mo> <mn>1</mn> </mrow> <mrow> <mi>K</mi> <mrow> <mo>(</mo> <mi>S</mi> <mo>)</mo> </mrow> </mrow> </munderover> <mrow> <mo>(</mo> <msub> <mi>w</mi> <mi>i</mi> </msub> <mo>&times;</mo> <msub> <mi>C</mi> <mi>i</mi> </msub> <mrow> <mo>(</mo> <msub> <mi>x</mi> <mi>i</mi> </msub> <mo>,</mo> <msub> <mi>y</mi> <mi>i</mi> </msub> <mo>,</mo> <msub> <mi>z</mi> <mi>i</mi> </msub> <mo>)</mo> </mrow> <mo>)</mo> </mrow> </mrow> <mrow> <munderover> <mi>&Sigma;</mi> <mrow> <mi>i</mi> <mo>=</mo> <mn>1</mn> </mrow> <mrow> <mi>K</mi> <mrow> <mo>(</mo> <mi>S</mi> <mo>)</mo> </mrow> </mrow> </munderover> <msub> <mi>w</mi> <mi>i</mi> </msub> </mrow> </mfrac> <mo>,</mo> </mrow> </math>
where K (S) is the total number of triangular patches in the three-dimensional model S, wiIs the area of the ith triangular patch in S, Ci(xi,yi,zi) The centroid coordinates of a single triangular patch i.
Normalizing the three-dimensional model, comprising the steps of:
translating the three-dimensional model to make the centroid C (x, y, z) of the three-dimensional model coincide with the origin of the coordinate system, namely subtracting the calculated centroid coordinates C (x, y, z), P (x, y, z) -C (x, y, z) from the coordinates of each vertex of the three-dimensional model;
the three-dimensional model is then normalized within the unit sphere, i.e., each vertex coordinate after translation is multiplied by a normalization parameter σ, as represented by:
P(x,y,z)=σ(P(x,y,z)-C(x,y,z)),
where σ represents the reciprocal of the maximum of the distances of all points of the three-dimensional model to the centroid of the three-dimensional model, σ is 1/max (| P (x, y, z) -C (x, y, z) |), and point P (x, y, z) is a point of the three-dimensional model surface.
And 3, carrying out layered sampling on the three-dimensional model.
In step 3, the three-dimensional model is subjected to layered sampling, and the method comprises the following steps:
first, the polar coordinates of the sphere are sampled:
the sphere polar coordinate system can be composed of an azimuth angle phi and a polar angle theta, wherein theta is more than or equal to 0 and less than pi, and phi is more than or equal to 0 and less than 2 pi;
in unit sphere polar coordinates, layered sampling is carried out according to the following formula:
<math> <mrow> <msub> <mi>&theta;</mi> <mi>i</mi> </msub> <mo>=</mo> <mrow> <mo>(</mo> <mi>i</mi> <mo>+</mo> <mn>0.5</mn> <mo>)</mo> </mrow> <mfrac> <mi>&pi;</mi> <mi>N</mi> </mfrac> <mo>,</mo> </mrow> </math>
<math> <mrow> <msub> <mi>&phi;</mi> <mi>j</mi> </msub> <mo>=</mo> <mrow> <mo>(</mo> <mi>j</mi> <mo>+</mo> <mn>0.5</mn> <mo>)</mo> </mrow> <mfrac> <mrow> <mn>2</mn> <mi>&pi;</mi> </mrow> <mi>N</mi> </mfrac> <mo>,</mo> </mrow> </math>
wherein i is more than or equal to 0, j is less than N, N is the number of sampling points in each direction, and thetaiWhich represents the i-th polar angle,it represents the j-th azimuth angle,together forming a point in polar coordinates; i and j respectively represent index values of polar coordinate down-sampling, each pair (i, j) determines a sampling point, and the total number of the sampling points is N;
next, sampling coordinates in the unit sphere polar coordinate system are acquired
Figure BDA0000079564620000071
Then, the three-dimensional model is converted into a Cartesian coordinate system of the three-dimensional model, namely, the three-dimensional model is from the centroid along the directionAnd (4) starting from the ray, calculating the intersection point of the ray and the surface patch of the surface of the three-dimensional model, namely the sampling point of the three-dimensional model for layered sampling.
And 4, calculating the spherical harmonic characteristics of the three-dimensional model by using a Monte Carlo integral method, and calculating a conversion factor by using the sampling points.
In step 4, calculating the spherical harmonic characteristics of the three-dimensional model, comprising the following steps:
according to the step 3, taking the polar coordinates (theta, phi), and calculating the spherical function f (theta, phi) at the sampling point corresponding to the polar coordinates: taking a radial function at a sampling point of the three-dimensional model as a spherical function:
f(θ,φ)=d(C,P);
wherein the point P represents a sampling point of the three-dimensional model surface determined by the polar coordinates (θ, φ); point C is the centroid of the three-dimensional model; d represents the euclidean distance;
calculating the basis functions of the spherical harmonic transformation from the polar coordinates (theta, phi)
Figure BDA0000079564620000073
Wherein the hair isThe real spherical harmonic transformation basis function is adopted and still recorded as
Figure BDA0000079564620000074
Calculated according to the following formula:
<math> <mrow> <msubsup> <mi>Y</mi> <mi>l</mi> <mi>m</mi> </msubsup> <mrow> <mo>(</mo> <mi>&theta;</mi> <mo>,</mo> <mi>&phi;</mi> <mo>)</mo> </mrow> <mo>=</mo> <mfenced open='{' close=''> <mtable> <mtr> <mtd> <msqrt> <mn>2</mn> </msqrt> <msubsup> <mi>K</mi> <mi>l</mi> <mi>m</mi> </msubsup> <mi>cos</mi> <mrow> <mo>(</mo> <mi>m&phi;</mi> <mo>)</mo> </mrow> <msubsup> <mi>P</mi> <mi>l</mi> <mi>m</mi> </msubsup> <mrow> <mo>(</mo> <mi>cos</mi> <mi>&theta;</mi> <mo>)</mo> </mrow> <mo>,</mo> </mtd> <mtd> <mi>m</mi> <mo>></mo> <mn>0</mn> </mtd> </mtr> <mtr> <mtd> <msqrt> <mn>2</mn> </msqrt> <msubsup> <mi>K</mi> <mi>l</mi> <mi>m</mi> </msubsup> <mi>sin</mi> <mrow> <mo>(</mo> <mo>-</mo> <mi>m&phi;</mi> <mo>)</mo> </mrow> <msubsup> <mi>P</mi> <mi>l</mi> <mrow> <mo>-</mo> <mi>m</mi> </mrow> </msubsup> <mrow> <mo>(</mo> <mi>cos</mi> <mi>&theta;</mi> <mo>)</mo> </mrow> <mo>,</mo> </mtd> <mtd> <mi>m</mi> <mo>&lt;</mo> <mn>0</mn> </mtd> </mtr> <mtr> <mtd> <msubsup> <mi>K</mi> <mi>l</mi> <mn>0</mn> </msubsup> <msubsup> <mi>P</mi> <mi>l</mi> <mn>0</mn> </msubsup> <mrow> <mo>(</mo> <mi>cos</mi> <mi>&theta;</mi> <mo>)</mo> </mrow> <mo>,</mo> </mtd> <mtd> <mi>m</mi> <mo>=</mo> <mn>0</mn> </mtd> </mtr> </mtable> </mfenced> <mo>,</mo> </mrow> </math>
wherein,
Figure BDA0000079564620000076
in order to be a scaling factor, the scaling factor,
Figure BDA0000079564620000077
Figure BDA0000079564620000078
for the associated Legendre polynomial, l is an integer with the value range of more than or equal to 0, m is more than or equal to l, a parameter value B of experimental operation can be preset, and only the spherical harmonic basis function under the condition that l is more than or equal to 0 and less than B is calculated;
calculating coefficients of spherical harmonic transforms from spherical functions and real spherical harmonic transform basis functions
Figure BDA0000079564620000079
<math> <mrow> <msubsup> <mi>a</mi> <mi>l</mi> <mi>m</mi> </msubsup> <mo>=</mo> <msubsup> <mo>&Integral;</mo> <mn>0</mn> <mrow> <mn>2</mn> <mi>&pi;</mi> </mrow> </msubsup> <msubsup> <mo>&Integral;</mo> <mn>0</mn> <mi>&pi;</mi> </msubsup> <mi>sin</mi> <mrow> <mo>(</mo> <mi>&theta;</mi> <mo>)</mo> </mrow> <mi>f</mi> <mrow> <mo>(</mo> <mi>&theta;</mi> <mo>,</mo> <mi>&phi;</mi> <mo>)</mo> </mrow> <msubsup> <mi>Y</mi> <mi>l</mi> <mi>m</mi> </msubsup> <mrow> <mo>(</mo> <mi>&theta;</mi> <mo>,</mo> <mi>&phi;</mi> <mo>)</mo> </mrow> <mi>d&theta;d&phi;</mi> <mo>,</mo> </mrow> </math>
In the case of determining each pair (l, m), the corresponding spherical harmonic characteristic is calculated by the numerical calculation method of the Monte Carlo integral method using the above formula
Figure BDA0000079564620000081
The Monte Carlo integration method corresponding to the above equation is as follows:
Figure BDA0000079564620000082
accordingly, a series of spherical harmonic characteristics of the three-dimensional model can be calculatedIn total B2And (4) respectively.
In step 4, calculating the conversion factor from the sampling points comprises the following steps:
the distance from the sampling point of the three-dimensional model surface to the three-dimensional model centroid determined by the three-dimensional polar coordinates (theta, phi, r) and the two-dimensional plane polar coordinates
Figure BDA0000079564620000084
Through the conversion between the polar coordinates and the cartesian coordinates and the conversion between the cartesian coordinate systems, the following conversion between the polar coordinates can be performed on the sampling points:
(θ,φ)→(cosθ,φ),
calculating conversion factor by using three-dimensional polar coordinate system and conjoint Legendre polynomial under two-dimensional polar coordinate system
Figure BDA0000079564620000086
Wherein,
Figure BDA0000079564620000087
for the associated legendre polynomial, an iterative calculation is performed according to the 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 ) .
thus, a set of values for the conversion factor for different l and m conditions is obtained.
And 5, calculating the projected two-dimensional spherical harmonic characteristics according to the conversion factors and the spherical harmonic characteristics of the three-dimensional model.
In step 5, calculating the two-dimensional spherical harmonic characteristics after projection: a set of spherical harmonic features of the three-dimensional model calculated in step 3
Figure BDA00000795646200000811
And the set of conversion factors obtained in step 4
Figure BDA00000795646200000812
To calculate a set of spherical harmonic features of the projected two-dimensional image
Figure BDA00000795646200000813
Each of which
Figure BDA00000795646200000814
Calculated from the following formula,
<math> <mrow> <msubsup> <mi>c</mi> <mi>l</mi> <mi>m</mi> </msubsup> <mo>=</mo> <msubsup> <mi>a</mi> <mi>l</mi> <mi>m</mi> </msubsup> <mo>&CenterDot;</mo> <msubsup> <mi>&beta;</mi> <mi>l</mi> <mi>m</mi> </msubsup> <mo>.</mo> </mrow> </math>
and 6, calculating the projected two-dimensional information according to the two-dimensional spherical harmonic characteristics.
In step 6, calculating the projected two-dimensional information according to the following steps:
in selecting two-dimensional polar coordinates
Figure BDA0000079564620000091
Calculating the spherical function at the projection point corresponding to the polar coordinates
Figure BDA0000079564620000092
Firstly, an expansion formula of spherical harmonic transformation is utilized to calculate a spherical function under the condition of two-dimensional polar coordinates:
Figure BDA0000079564620000093
wherein,
Figure BDA0000079564620000094
is a spherical harmonic basis function in two dimensions;
secondly, coordinate inverse mapping is carried out, and the obtained triad (r, phi, g (r, phi)),
Figure BDA0000079564620000095
representing projected images in polar coordinatesThe gray value of (b) is mapped by using coordinate inverse:
x=rcos(φ)=cos(θ)cos(φ)
y=rsin(φ)=cos(θ)sin(φ),
and obtaining a new triplet (x, y, g (r, phi)) which is the information after the three-dimensional model is converted into the two-dimensional image.
As shown in fig. 2, the cartesian coordinates and polar coordinates of the three-dimensional model are schematically shown: in the whole calculation process, the mutual conversion between the Cartesian coordinates and the polar coordinates is used for multiple times.
The three-dimensional model polar coordinate is composed of an azimuth angle phi epsilon [0, 2 pi) and a polar angle theta [0, pi ]. The Cartesian coordinate system is represented by the x-, y-, and z-axes.
In fig. 2, Γ represents a curved surface in three-dimensional space, and P (x, y, z) represents a point on the curved surface. Through some relationships of trigonometric functions, a polar coordinate to cartesian coordinate conversion formula can be obtained as follows:
polar coordinates are calculated from cartesian coordinates:
r = x 2 + y 2 + z 2 ,
<math> <mrow> <mi>&phi;</mi> <mo>=</mo> <msup> <mi>tan</mi> <mrow> <mo>-</mo> <mn>1</mn> </mrow> </msup> <mrow> <mo>(</mo> <mfrac> <mi>y</mi> <mi>x</mi> </mfrac> <mo>)</mo> </mrow> <mo>,</mo> </mrow> </math>
<math> <mrow> <mi>&theta;</mi> <mo>=</mo> <msup> <mi>cos</mi> <mrow> <mo>-</mo> <mn>1</mn> </mrow> </msup> <mrow> <mo>(</mo> <mfrac> <mi>z</mi> <mi>r</mi> </mfrac> <mo>)</mo> </mrow> <mo>,</mo> </mrow> </math>
conversely, cartesian coordinates are calculated from polar coordinates:
x=rcosφsinθ,
y=rsinφsinθ,
z=rcosθ,
as shown in fig. 3, the three-dimensional model projection process is schematically illustrated as follows: converting the input of the three-dimensional model into the representation of the three-dimensional spherical harmonic characteristic, then calculating the conversion factor of the spherical harmonic in two-dimensional and three-dimensional conditions, calculating to obtain the representation of the projected two-dimensional spherical harmonic characteristic, and finally restoring the representation into the projected two-dimensional image.
Fig. 3 shows the specific experimental results (the experimental parameters are 1024 samples, i.e., N is 32, the bandwidth B is 7, and the projection size is 256 × 256 pixels.)
The three-dimensional model (ant) shown on the left side of fig. 3, as an input object, then solves its three-dimensional spherical harmonic features, and writes them in the form of a matrix, 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
the conversion factor is then calculated using the two-dimensional and three-dimensional spherical harmonic basis functions. In the lower graph, the upper left matrix is a spherical harmonic basis function under the two-dimensional condition, the lower left matrix is a spherical harmonic basis function under the three-dimensional condition, and the right matrix is a conversion factor obtained by calculation of the two matrixes.
Figure BDA0000079564620000102
And finally, calculating to obtain the two-dimensional spherical harmonic characteristic by utilizing the three-dimensional spherical harmonic characteristic and the conversion factor obtained in the previous step.
- 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
By using the two-dimensional spherical harmonic feature, the projection effect diagram on the right side in fig. 3 can be calculated.
As shown in fig. 4, a schematic diagram of layered sampling in the case of three-dimensional polar coordinates: the three-dimensional polar coordinate is composed of an azimuth angle phi epsilon [0, 2 pi) and a polar angle theta epsilon [0, pi) which are respectively expressed as a vertical coordinate and a horizontal coordinate, N points are taken on each coordinate, and therefore theta is respectively arrangediAnd
Figure BDA0000079564620000112
the two components together form a polar coordinate
Figure BDA0000079564620000113
The present invention provides a method and a system for outputting a two-dimensional projection of a three-dimensional model based on spherical harmonic transformation, and a plurality of methods and ways for implementing the technical solution are provided, and the above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, a plurality of improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be regarded as the protection scope of the present invention. All the components not specified in the present embodiment can be realized by the prior art.

Claims (8)

1. An output method of a two-dimensional projection of a three-dimensional model based on spherical harmonic transformation, characterized by comprising the following steps:
inputting a three-dimensional model S to be projected, wherein the input three-dimensional model S consists of a group of triangular patches, and the triangular patches comprise three vertex coordinates;
calculating the centroid coordinate of the three-dimensional model, and then normalizing the three-dimensional model;
step three, carrying out layered sampling on the three-dimensional model;
step four, calculating the spherical harmonic characteristics of the three-dimensional model, and calculating a conversion factor by using the sampling points;
step five, calculating the two-dimensional spherical harmonic characteristics after projection;
and step six, calculating the projected two-dimensional information according to the two-dimensional spherical harmonic characteristics.
2. The output method of the two-dimensional projection of the three-dimensional model based on the spherical harmonic transformation as claimed in claim 1, wherein in the second step, the centroid coordinate C (x, y, z) of the three-dimensional model is calculated by:
<math> <mrow> <mi>C</mi> <mrow> <mo>(</mo> <mi>x</mi> <mo>,</mo> <mi>y</mi> <mo>,</mo> <mi>z</mi> <mo>)</mo> </mrow> <mo>=</mo> <mfrac> <mrow> <munderover> <mi>&Sigma;</mi> <mrow> <mi>i</mi> <mo>=</mo> <mn>1</mn> </mrow> <mrow> <mi>K</mi> <mrow> <mo>(</mo> <mi>S</mi> <mo>)</mo> </mrow> </mrow> </munderover> <mrow> <mo>(</mo> <msub> <mi>w</mi> <mi>i</mi> </msub> <mo>&times;</mo> <msub> <mi>C</mi> <mi>i</mi> </msub> <mrow> <mo>(</mo> <msub> <mi>x</mi> <mi>i</mi> </msub> <mo>,</mo> <msub> <mi>y</mi> <mi>i</mi> </msub> <mo>,</mo> <msub> <mi>z</mi> <mi>i</mi> </msub> <mo>)</mo> </mrow> <mo>)</mo> </mrow> </mrow> <mrow> <munderover> <mi>&Sigma;</mi> <mrow> <mi>i</mi> <mo>=</mo> <mn>1</mn> </mrow> <mrow> <mi>K</mi> <mrow> <mo>(</mo> <mi>S</mi> <mo>)</mo> </mrow> </mrow> </munderover> <msub> <mi>w</mi> <mi>i</mi> </msub> </mrow> </mfrac> <mo>,</mo> </mrow> </math>
where K (S) is the total number of triangular patches in the three-dimensional model S, wiIs the area of the ith triangular patch, C, in the three-dimensional model Si(xi,yi,zi) The centroid coordinates of a single triangular patch i.
3. The method as claimed in claim 2, wherein the step two of normalizing the three-dimensional model comprises the steps of:
translating the three-dimensional model to translate so that the centroid C (x, y, z) of the three-dimensional model coincides with the origin of the coordinate system;
normalizing the three-dimensional model to be within a unit sphere by the radial maximum distance of the three-dimensional model:
P(x,y,z)=σ(P(x,y,z)-C(x,y,z)),
where σ represents the reciprocal of the maximum of the distances of all points of the three-dimensional model to the centroid of the three-dimensional model, σ is 1/max (| P (x, y, z) -C (x, y, z) |), and point P (x, y, z) is a point of the three-dimensional model surface.
4. The method as claimed in claim 3, wherein the step three of hierarchically sampling the three-dimensional model comprises the following steps:
sampling the polar coordinates of the sphere:
the polar coordinates of the sphere are represented by an azimuth angle phi and a polar angle theta, wherein theta is more than or equal to 0 and less than pi, and phi is more than or equal to 0 and less than 2 pi;
in unit sphere polar coordinates, layered sampling is carried out according to the following formula:
<math> <mrow> <msub> <mi>&theta;</mi> <mi>i</mi> </msub> <mo>=</mo> <mrow> <mo>(</mo> <mi>i</mi> <mo>+</mo> <mn>0.5</mn> <mo>)</mo> </mrow> <mfrac> <mi>&pi;</mi> <mi>N</mi> </mfrac> </mrow> </math>
<math> <mrow> <msub> <mi>&phi;</mi> <mi>j</mi> </msub> <mo>=</mo> <mrow> <mo>(</mo> <mi>j</mi> <mo>+</mo> <mn>0.5</mn> <mo>)</mo> </mrow> <mfrac> <mrow> <mn>2</mn> <mi>&pi;</mi> </mrow> <mi>N</mi> </mfrac> </mrow> </math>
wherein i is more than or equal to 0, j is less than N, N is the number of sampling points in each direction, and thetaiWhich represents the i-th polar angle,
Figure FDA0000079564610000023
it represents the j-th azimuth angle,
Figure FDA0000079564610000024
together forming a point in polar coordinates; i and i respectively represent index values of polar coordinate down-sampling, each pair (i, j) determines a sampling point, and the total number of the sampling points is N;
from the three-dimensional model centroid in the direction (sin θ i cos φ)j,sinθisinφj,cosθi) The intersection point of the ray and the three-dimensional model is the sampling point of the three-dimensional model for layered sampling.
5. The method as claimed in claim 4, wherein the step four of calculating the spherical harmonic characteristics of the three-dimensional model comprises the steps of:
taking the polar coordinates (theta, phi), calculating the spherical function f (theta, phi) of the sampling point: taking a radial function at a sampling point of the three-dimensional model as a spherical function:
f(θ,φ)=d(C,P);
wherein the point P represents a sampling point of the three-dimensional model surface determined by the polar coordinates (θ, φ); point C is the centroid of the three-dimensional model; d represents the euclidean distance;
calculating the basis functions of the spherical harmonic transformation from the polar coordinates (theta, phi)Wherein, real number spherical harmonic transformation basis functionCalculated according to the following formula:
<math> <mrow> <msubsup> <mi>Y</mi> <mi>l</mi> <mi>m</mi> </msubsup> <mrow> <mo>(</mo> <mi>&theta;</mi> <mo>,</mo> <mi>&phi;</mi> <mo>)</mo> </mrow> <mo>=</mo> <mfenced open='{' close=''> <mtable> <mtr> <mtd> <msqrt> <mn>2</mn> </msqrt> <msubsup> <mi>K</mi> <mi>l</mi> <mi>m</mi> </msubsup> <mi>cos</mi> <mrow> <mo>(</mo> <mi>m&phi;</mi> <mo>)</mo> </mrow> <msubsup> <mi>P</mi> <mi>l</mi> <mi>m</mi> </msubsup> <mrow> <mo>(</mo> <mi>cos</mi> <mi>&theta;</mi> <mo>)</mo> </mrow> <mo>,</mo> </mtd> <mtd> <mi>m</mi> <mo>></mo> <mn>0</mn> </mtd> </mtr> <mtr> <mtd> <msqrt> <mn>2</mn> </msqrt> <msubsup> <mi>K</mi> <mi>l</mi> <mi>m</mi> </msubsup> <mi>sin</mi> <mrow> <mo>(</mo> <mo>-</mo> <mi>m&phi;</mi> <mo>)</mo> </mrow> <msubsup> <mi>P</mi> <mi>l</mi> <mrow> <mo>-</mo> <mi>m</mi> </mrow> </msubsup> <mrow> <mo>(</mo> <mi>cos</mi> <mi>&theta;</mi> <mo>)</mo> </mrow> <mo>,</mo> </mtd> <mtd> <mi>m</mi> <mo>&lt;</mo> <mn>0</mn> </mtd> </mtr> <mtr> <mtd> <msubsup> <mi>K</mi> <mi>l</mi> <mn>0</mn> </msubsup> <msubsup> <mi>P</mi> <mi>l</mi> <mn>0</mn> </msubsup> <mrow> <mo>(</mo> <mi>cos</mi> <mi>&theta;</mi> <mo>)</mo> </mrow> <mo>,</mo> </mtd> <mtd> <mi>m</mi> <mo>=</mo> <mn>0</mn> </mtd> </mtr> </mtable> </mfenced> </mrow> </math>
wherein,
Figure FDA0000079564610000028
in order to be a scaling factor, the scaling factor,
Figure FDA0000079564610000029
Figure FDA00000795646100000210
is a conjunctive Legendre polynomial, l is any integer with the value range of more than or equal to 0, m is a calculation parameter, and-l is more than or equal to m and less than or equal to l;
from spherical functions and real spherical harmonic transformsCalculating coefficients of a spherical harmonic transform using basis functions
Figure FDA00000795646100000211
Figure FDA0000079564610000031
The above formula is obtained by adopting a Monte Carlo integral method:
<math> <mrow> <msubsup> <mi>a</mi> <mi>l</mi> <mi>m</mi> </msubsup> <mo>=</mo> <mfrac> <mrow> <mn>4</mn> <mi>&pi;</mi> </mrow> <mi>N</mi> </mfrac> <munder> <mi>&Sigma;</mi> <mrow> <mi>&theta;</mi> <mo>,</mo> <mi>&phi;</mi> </mrow> </munder> <mi>f</mi> <mrow> <mo>(</mo> <mi>&theta;</mi> <mo>,</mo> <mi>&phi;</mi> <mo>)</mo> </mrow> <msubsup> <mi>Y</mi> <mi>l</mi> <mi>m</mi> </msubsup> <mrow> <mo>(</mo> <mi>&theta;</mi> <mo>,</mo> <mi>&phi;</mi> <mo>)</mo> </mrow> <mo>.</mo> </mrow> </math>
6. the method of claim 5, wherein the step four of calculating the conversion factor from the sampling points comprises the steps of:
determining three-dimensional polar coordinates from the points (theta, phi, r), wherein r is the distance from the sampling point of the three-dimensional model surface to the mass center of the three-dimensional model determined by the polar coordinates (theta, phi)
Figure FDA0000079564610000033
Determining two-dimensional plane polar coordinates, and performing Cartesian coordinate system conversion on the sampling pointsThe following polar coordinates:
(θ,φ)→(cosθ,φ),
calculating conversion factor by using three-dimensional polar coordinate system and conjoint Legendre polynomial under two-dimensional polar coordinate system
Figure FDA0000079564610000034
<math> <mrow> <msubsup> <mi>&beta;</mi> <mi>l</mi> <mi>m</mi> </msubsup> <mo>&ap;</mo> <mfrac> <mrow> <munder> <mi>&Sigma;</mi> <mrow> <mi>r</mi> <mo>,</mo> <mi>&phi;</mi> </mrow> </munder> <msubsup> <mi>P</mi> <mi>l</mi> <mi>m</mi> </msubsup> <mrow> <mo>(</mo> <mi>r</mi> <mo>,</mo> <mi>&phi;</mi> <mo>)</mo> </mrow> </mrow> <mrow> <munder> <mi>&Sigma;</mi> <mrow> <mi>&theta;</mi> <mo>,</mo> <mi>&phi;</mi> </mrow> </munder> <msubsup> <mi>P</mi> <mi>l</mi> <mi>m</mi> </msubsup> <mrow> <mo>(</mo> <mi>&theta;</mi> <mo>,</mo> <mi>&phi;</mi> <mo>)</mo> </mrow> </mrow> </mfrac> <mo>,</mo> </mrow> </math>
Wherein,
Figure FDA0000079564610000036
for the associated legendre polynomial, an iterative calculation is performed according to the 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 ) .
7. the output method of the two-dimensional projection based on the spherical harmonic transformed three-dimensional model as claimed in claim 6, wherein in the fifth step, the projected two-dimensional spherical harmonic features are calculated:
calculating the two-dimensional spherical harmonic characteristics after projection according to the conversion factor and the spherical harmonic characteristics of the three-dimensional model
Figure FDA00000795646100000310
<math> <mrow> <msubsup> <mi>c</mi> <mi>l</mi> <mi>m</mi> </msubsup> <mo>=</mo> <msubsup> <mi>a</mi> <mi>l</mi> <mi>m</mi> </msubsup> <mo>&CenterDot;</mo> <msubsup> <mi>&beta;</mi> <mi>l</mi> <mi>m</mi> </msubsup> <mo>.</mo> </mrow> </math>
8. The output method of the two-dimensional projection of the three-dimensional model based on the spherical harmonic transformation as claimed in claim 1, wherein in the sixth step, the two-dimensional information after projection is calculated according to the following steps:
calculating a two-dimensional spherical function by using an expansion formula of spherical harmonic transformation:
<math> <mrow> <mi>g</mi> <mrow> <mo>(</mo> <mi>r</mi> <mo>,</mo> <mi>&phi;</mi> <mo>)</mo> </mrow> <mo>=</mo> <munderover> <mi>&Sigma;</mi> <mrow> <mi>l</mi> <mo>=</mo> <mn>0</mn> </mrow> <mi>B</mi> </munderover> <munderover> <mi>&Sigma;</mi> <mrow> <mi>m</mi> <mo>=</mo> <mo>-</mo> <mi>l</mi> </mrow> <mrow> <mi>m</mi> <mo>=</mo> <mi>l</mi> </mrow> </munderover> <msubsup> <mi>c</mi> <mi>l</mi> <mi>m</mi> </msubsup> <msubsup> <mi>H</mi> <mi>l</mi> <mi>m</mi> </msubsup> <mrow> <mo>(</mo> <mi>r</mi> <mo>,</mo> <mi>&phi;</mi> <mo>)</mo> </mrow> <mo>,</mo> </mrow> </math>
wherein,is a spherical harmonic basis function in two dimensions,representing projected images in polar coordinates
Figure FDA0000079564610000044
The gray value at the represented point, B being the parameter value;
and (3) carrying out coordinate inverse mapping to obtain a triplet (r, phi, g (r, phi)), and using the coordinate inverse mapping:
x=rcos(φ)=cos(θ)cos(φ)
y=rsin(φ)=cos(θ)sin(φ),
and obtaining a new triplet (x, y, g (r, phi)) which is the information after the three-dimensional model is converted into the two-dimensional image.
CN201110214484.6A 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
CN201110214484.6A 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
CN201110214484.6A 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 true CN102411794A (en) 2012-04-11
CN102411794B CN102411794B (en) 2013-11-06

Family

ID=45913858

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110214484.6A 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)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104778862A (en) * 2014-01-14 2015-07-15 北大方正集团有限公司 Three-dimensional model unfolding method and terminal
CN105374062A (en) * 2015-10-28 2016-03-02 上海联影医疗科技有限公司 2D medical image generating method and device
CN105959702A (en) * 2016-05-30 2016-09-21 北京奇艺世纪科技有限公司 Spherical video coding method and device
CN106210716A (en) * 2016-08-01 2016-12-07 上海国茂数字技术有限公司 A kind of panoramic video isodensity method of sampling and device
WO2017028516A1 (en) * 2015-08-18 2017-02-23 青岛海信医疗设备股份有限公司 Three-dimensional image calibration method, apparatus and system
CN107085824A (en) * 2017-03-14 2017-08-22 佛山科学技术学院 A kind of pole view extracting method of threedimensional model
CN110412333A (en) * 2019-04-30 2019-11-05 清华大学 The current parameters elastic network(s) regularization inversion method decomposed based on spheric harmonic function
CN111462145A (en) * 2020-04-01 2020-07-28 重庆大学 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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050068031A1 (en) * 2001-04-06 2005-03-31 Frank Lawrence R. Method for analyzing mri diffusion data
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050068031A1 (en) * 2001-04-06 2005-03-31 Frank Lawrence R. Method for analyzing mri diffusion data
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 (1)

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

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104778862A (en) * 2014-01-14 2015-07-15 北大方正集团有限公司 Three-dimensional model unfolding method and terminal
WO2017028516A1 (en) * 2015-08-18 2017-02-23 青岛海信医疗设备股份有限公司 Three-dimensional image calibration method, apparatus and system
CN105374062A (en) * 2015-10-28 2016-03-02 上海联影医疗科技有限公司 2D medical image generating method and device
CN105374062B (en) * 2015-10-28 2017-06-06 上海联影医疗科技有限公司 The generation method and device of two-dimensional medical images
CN105959702A (en) * 2016-05-30 2016-09-21 北京奇艺世纪科技有限公司 Spherical video coding method and device
CN105959702B (en) * 2016-05-30 2019-03-22 北京奇艺世纪科技有限公司 A kind of spherical video coding method and device
CN106210716A (en) * 2016-08-01 2016-12-07 上海国茂数字技术有限公司 A kind of panoramic video isodensity method of sampling 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
CN110412333A (en) * 2019-04-30 2019-11-05 清华大学 The current parameters elastic network(s) regularization inversion method decomposed based on spheric harmonic function
CN111462145A (en) * 2020-04-01 2020-07-28 重庆大学 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

Also Published As

Publication number Publication date
CN102411794B (en) 2013-11-06

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
Sinha et al. Deep learning 3D shape surfaces using geometry images
CN107122705B (en) Face key point detection method based on three-dimensional face model
US10614620B2 (en) Systems and methods for computer-based visualization, rendering, and representation of regions of space using point clouds
Papadakis et al. PANORAMA: A 3D shape descriptor based on panoramic views for unsupervised 3D object retrieval
CN110458939A (en) The indoor scene modeling method generated based on visual angle
Dominitz et al. Texture mapping via optimal mass transport
Jung et al. Principal arc analysis on direct product manifolds
CN104318551B (en) Gauss hybrid models point cloud registration method based on convex closure characteristic key
CN101655993A (en) Multi-resolution modeling method for three dimensional model of complex building
CN110910492B (en) Method for point matching between non-rigid three-dimensional models
CN103700135B (en) A kind of three-dimensional model local spherical mediation feature extracting method
US20170169084A9 (en) Method and System for Analysing, Storing, and Regenerating Information
CN106599053A (en) Three-dimensional model retrieval method
CN107610121B (en) A kind of initial pose setting method of liver statistical shape model
CN104318552A (en) Convex hull projection graph matching based model registration method
CN112017159B (en) Ground target realism simulation method under remote sensing scene
CN102982552A (en) Surface registration method based on ricci flow
CN109816767A (en) A kind of three-dimensional building model house Story and door based map Method of Fuzzy Matching based on tangent space
Bischoff et al. Teaching meshes, subdivision and multiresolution techniques
Adán et al. Modeling wave set: Definition and application of a new topological organization for 3d object modeling
An et al. Self-adaptive polygon mesh reconstruction based on ball-pivoting algorithm
Guedri et al. Three-dimensional reconstruction of blood vessels of the human retina by fractal interpolation
CN109658489B (en) Three-dimensional grid data processing method and system based on neural network
Chen et al. 3D Mesh classification and panoramic image segmentation using spherical vector networks with rotation-equivariant self-attention mechanism

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

Granted publication date: 20131106

Termination date: 20160729

CF01 Termination of patent right due to non-payment of annual fee