CN103281549A - Video deformation correcting method and system - Google Patents

Video deformation correcting method and system Download PDF

Info

Publication number
CN103281549A
CN103281549A CN2013101934428A CN201310193442A CN103281549A CN 103281549 A CN103281549 A CN 103281549A CN 2013101934428 A CN2013101934428 A CN 2013101934428A CN 201310193442 A CN201310193442 A CN 201310193442A CN 103281549 A CN103281549 A CN 103281549A
Authority
CN
China
Prior art keywords
spline curves
video
interpolation
spline
curves
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2013101934428A
Other languages
Chinese (zh)
Inventor
黄振华
黄飞
江民中
何勋霆
陈锦威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Playfun Culture & Technology Co Ltd
Original Assignee
Shenzhen Playfun Culture & Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Playfun Culture & Technology Co Ltd filed Critical Shenzhen Playfun Culture & Technology Co Ltd
Priority to CN2013101934428A priority Critical patent/CN103281549A/en
Publication of CN103281549A publication Critical patent/CN103281549A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Generation (AREA)

Abstract

The invention provides a video deformation correcting method and a video deformation correcting system. The video deformation correcting method comprises the following steps that a video picture is divided and positioned by twelve B splines to form a shape of Chinese character ''tian''; each B spline can be separately regulated and moved, and a plurality of B splines can be provided with a common endpoint; and four equally divided parts of the shape of Chinese character ''tian'' are interpolated according to four B splines surrounded by the four equal parts to form subdivided interpolated B splines, and finally, the video picture is rendered and output. The video deformation correcting method and the video deformation correcting system have the beneficial effects that after the video deformation correcting method provided by the invention is adopted, a video can be well subjected to global and local deformation, and the problems of projection deformation, video alignment of left and right eyes, multi-video seamless splicing and the like of a 3D (three-dimensional) stereoscopic film can be well solved; and a real undeformed 3D movie effect is finally achieved, and a very good effect can be achieved in case of planar projection or cyclorama projection.

Description

Video distortion correction method and system
Technical field
The present invention relates to video image processing technology, relate in particular to video distortion correction method and system.
Background technology
When playing the 3D three-dimensional film, picture is that two width of cloth pictures of right and left eyes project in the same screen simultaneously.Produce best stereoeffect, the coincidence of will highly aliging of the picture of right and left eyes.But because traditional method is to align by the position of adjusting projecting apparatus, so be difficult to reach very high-precision alignment.If be projected on the arc curtain, that has alignd with regard to difficulty.
Summary of the invention
In order to solve the problems of the prior art, the invention provides a kind of video distortion correction method.
The invention provides a kind of video distortion correction method, video pictures is divided the location by 12 B-spline curves, forms a sphere of movements for the elephants type; Every B-spline curves can carry out independent adjustment and movement, and many B-spline curves have public end points; Divide part equally according to the interpolation B-spline curves that 4 B-spline curves of its encirclement carry out interpolation generation segmentation, at last video pictures is played up output for four of the sphere of movements for the elephants type.
As a further improvement on the present invention, comprise the steps:
A. 12 B-spline curves initialization of sphere of movements for the elephants type;
B.Direct3D Vertex summit initialization;
C. by adjusting the control point of B-spline curves, change the shape of B-spline curves;
D. according to the B-spline curves after adjusting, generate the interpolation B-spline curves;
E. according to the B-spline curves after adjusting, upgrade Direct3D Vertex summit space coordinates (x, y, z);
F.Direct3D plays up the output video picture.
As a further improvement on the present invention, four B-spline curves overlap from beginning to end, are combined into a hollow, and can make up expansion to hollow.
As a further improvement on the present invention, 3 clamped B-spline curves of B-spline curves employing, knot vector U={0,0,0,0,1,1,1,1}, four control point { P 0, P 1, P 2, P 3.
As a further improvement on the present invention, form two video pictures by two projectors.
The present invention also provides a kind of video distortion than positive system, and video pictures is divided the location by 12 B-spline curves, forms a sphere of movements for the elephants type; Every B-spline curves can carry out independent adjustment and movement, and many B-spline curves have public end points; Divide part equally according to the interpolation B-spline curves that 4 B-spline curves of its encirclement carry out interpolation generation segmentation, at last video pictures is played up output for four of the sphere of movements for the elephants type.
As a further improvement on the present invention, comprising:
The B-spline curves initialization module is used for 12 B-spline curves initialization of sphere of movements for the elephants type;
The summit initialization module is used for Direct3D Vertex summit initialization;
Adjusting module is used for changing the shape of B-spline curves by adjusting the control point of B-spline curves;
Generation module is used for generating the interpolation B-spline curves according to the B-spline curves after adjusting;
Update module is used for according to the B-spline curves after adjusting, and renewal Direct3D Vertex summit space coordinates (x, y, z);
Play up output module, be used for Direct3D and play up the output video picture.
As a further improvement on the present invention, four B-spline curves overlap from beginning to end, are combined into a hollow, and can make up expansion to hollow.
As a further improvement on the present invention, 3 clamped B-spline curves of B-spline curves employing, knot vector U={0,0,0,0,1,1,1,1}, four control point { P 0, P 1, P 2, P 3.
As a further improvement on the present invention, form two video pictures by two projectors.
The invention has the beneficial effects as follows: video distortion correction method provided by the invention, can be well carry out the overall situation and local distortion to video, the distortion of projection that can solve the 3D three-dimensional film well, the alignment of right and left eyes video, problem such as many videos are seamless spliced.No matter the final 3D film effect of realizing true nothing distortion is plane projection or the projection of arc curtain, can both reach extraordinary effect.
Description of drawings
Fig. 1 is video distortion correction method flow chart of the present invention.
Fig. 2 is the shape figure of B-spline curves of the present invention.
Fig. 3 is hollow B-spline curves figure of the present invention.
Fig. 4 is interpolation B batten figure of the present invention.
Fig. 5 is 12 B-spline curves figure of the present invention.
Fig. 6 is video distortion schematic diagram of the present invention.
Fig. 7 is the Direct3D of setting perspective matrix diagram of the present invention.
Fig. 8 is the initialization figure of 12 B-spline curves of the present invention.
Fig. 9 is 3D three-dimensional film perspective view of the present invention.
Figure 10 is of the present invention and inserts 1 interpolation B-spline curves.
Figure 11 is that the present invention has 2 interpolation B-spline curves figure.
Figure 12 is that the present invention has N bar interpolation B-spline curves figure.
Figure 13 is that the present invention has the another schematic diagram of N bar interpolation B-spline curves.
Figure 14 is texture coordinate figure schematic diagram of the present invention.
Figure 15 be the present invention for the 3D three-dimensional film, frame of video has comprised right and left eyes two width of cloth pictures.
Embodiment
The invention discloses a kind of video distortion correction method, video pictures is divided the location by 12 B-spline curves, forms a sphere of movements for the elephants type; Every B-spline curves can carry out independent adjustment and movement, and many B-spline curves have public end points; Divide part equally according to the interpolation B-spline curves that 4 B-spline curves of its encirclement carry out interpolation generation segmentation, at last video pictures is played up output for four of the sphere of movements for the elephants type.
As shown in Figure 1, video distortion correction method of the present invention comprises the steps: in step S1,12 B-spline curves initialization of sphere of movements for the elephants type; In step S2, Direct3D Vertex summit initialization; In step S3, by adjusting the control point of B-spline curves, change the shape of B-spline curves; In step S4, the B-spline curves according to after adjusting generate the interpolation B-spline curves; In step S5, according to the B-spline curves after adjusting, renewal Direct3D Vertex summit space coordinates (x, y, z); In step S6, Direct3D plays up the output video picture.
Article four, B-spline curves overlap from beginning to end, are combined into a hollow, and can make up expansion to hollow.
3 clamped B-spline curves of B-spline curves employing, knot vector U={0,0,0,0,1,1,1,1}, four control point { P 0, P 1, P 2, P 3.
Form two video pictures by two projectors.
The invention also discloses a kind of video distortion than positive system, video pictures is divided the location by 12 B-spline curves, forms a sphere of movements for the elephants type; Every B-spline curves can carry out independent adjustment and movement, and many B-spline curves have public end points; Divide part equally according to the interpolation B-spline curves that 4 B-spline curves of its encirclement carry out interpolation generation segmentation, at last video pictures is played up output for four of the sphere of movements for the elephants type.
This video distortion also comprises than positive system:
The B-spline curves initialization module is used for 12 B-spline curves initialization of sphere of movements for the elephants type;
The summit initialization module is used for Direct3D Vertex summit initialization;
Adjusting module is used for changing the shape of B-spline curves by adjusting the control point of B-spline curves;
Generation module is used for generating the interpolation B-spline curves according to the B-spline curves after adjusting;
Update module is used for according to the B-spline curves after adjusting, and renewal Direct3D Vertex summit space coordinates (x, y, z);
Play up output module, be used for Direct3D and play up the output video picture.
Video distortion correction method provided by the invention can be well be carried out the overall situation and local distortion to video, the distortion of projection that can solve the 3D three-dimensional film well, the alignment of right and left eyes video, problem such as many videos are seamless spliced.No matter the final 3D film effect of realizing true nothing distortion is plane projection or the projection of arc curtain, can both reach extraordinary effect.
This video distortion alignment technique is based on B-spline curves and is out of shape.B-spline curves can reach the distortion adjustment to picture easily by adjusting the control point.Left and right sides picture can be distinguished adjustment separately, can also carry out whole translation, convergent-divergent, rotation.And can preserve current distortion and be written into the distortion file.
The B spline base function:
If U is the set of m+1 non-decreasing number, u 0<=u 2<=u 3<=...<=u mu iBe called node (knots), set U is called knot vector (knot vector), half open interval [u i, u I+1) be (knot span) between i node area.Note some u iMay equate, can not exist between some node area.If node u i(that is u, appears k time i=u I+1=...=u I+k-1), k wherein〉1, u iBe a multiplicity (multiplicity) for the multiplex node of k, be written as u i(k).Otherwise, if u iOnly occur once, it is a simple node.If node is (that is u, equidistantly I+1-u iBe a constant, to 0<=i<=m-1), knot vector or sequence node are called uniformly; Otherwise it is heterogeneous.
Node can be thought separation, with interval [u 0, u m] be subdivided between node area.All B-spline base functions are supposed that the domain of definition is at [u 0, u m] on.
In order to define the B-spline base function, we also need a parameter, the number of times of basic function (degree) p, and i p B-spline base function is written as N I, p(u).
B spline base function recursive definition is as follows:
N i , 0 ( u ) = 1 if u i &le; u < u i + 1 0 otherwise - - - ( 1 )
N i , p ( u ) = u - u i u i + p - u i N i , p - 1 ( u ) + u i + p + 1 - u u i + p + 1 - u i + 1 N i + 1 , p - 1 ( u )
The B-spline curves definition:
Given n+1 control point P 0, P 1..., P nWith a knot vector U={u 0, u 1..., u m, p B-spline curve is by these control points and knot vector U definition.
C ( u ) = &Sigma; i = 0 n N i , p ( u ) P i - - - ( 2 )
N wherein I, p(u) be p B-spline base function, P iBe the control point.
In the present invention, the B-spline curves parameter arranges as follows:
Get number of times (degree) p=3 of basic function.
Get knot vector number m+1=8, knot vector U={0,0,0,0,1,1,1,1}, 8 nodes, basic function domain of definition u gets [0,1].
Get control point P number n+1=4, { P 0, P 1, P 2, P 3, 4 control points.
So just form the Clamped B-spline curves 3 times, it is defined as:
C ( u ) = &Sigma; i = 0 3 N i , 3 ( u ) P i - - - ( 3 )
P iI control point of 3 clamped B-spline curves of expression.I=0,1,2,3, P 0, P 1, P 2, P 3, totally 4 control points.
N I, 3(u) i 3 B spline base functions of expression.I=0,1,2,3, totally 43 B spline base functions.
That is:
C ( u ) = &Sigma; i = 0 3 N i , 3 ( u ) P i = N 0,3 ( u ) P 0 + N 1,3 ( u ) P 1 + N 2,3 ( u ) P 2 + N 3,3 ( u ) P 3 - - - ( 4 )
By formula (4) as can be known, 3 clamped B-spline curves, fully by four control point P0, P1, P2, P3 are definite fully.
The Clamped B-spline curves are fully by four control point P0, P1, and P2, P3 are definite fully, and two control point P of curve negotiating head and the tail 0And P 3, the head of curve and limit P 0P 1Tangent, afterbody and limit P 2P 3Tangent.
As shown in Figure 2, general modification control point { P 0, P 1, P 2, P 3The position, can control the shape of B-spline curves.
The sampled point of B-spline curves:
The meaning of the sampled point of curve refers to get a little at curve, and the every bit on the curve all is one of them sampled point.When u gets arbitrary numerical value u between [0,1] iThe time, functional value C (u all can be arranged i) corresponding with it.C (u i) be called B-spline curves, work as u=u iThe time sampled point.
The interpolation B-spline curves:
As shown in Figure 3, four 3 clamped B-spline curves overlap two control points of its head and the tail, are combined into a hollow.
3 clamped B-spline curves shapes using in the present invention by 4 control point controls, are out of shape arbitrarily so 4 B-spline curves of square shape can be controlled hollow fully.
Hollow four limits ought to generate intermediate interpolated B line transect according to these four B-spline curves in the middle of the square shape so round 43 clamped B-spline curves, and the interpolation B-spline curves also are 3 clamped B-spline curves.Interpolation B-spline curves interpolation in theory are more many more accurate, but can influence calculated performance again too much.So in embodiments of the present invention, the interpolation number is a variable N, and concrete quantity is set by actual conditions, and in the program code of embodiment, the interpolation number also is a variable, and the program adaptability of doing like this is stronger.
The crucial thinking that the interpolation B-spline curves generate is to obtain four control points of interpolation B-spline curves, as long as we obtain four control points of interpolation B-spline curves, just can determine the shape of these interpolation B-spline curves fully.The control point P at interpolation B-spline curves two ends 0And P 3Certainly to drop on respectively on the B-spline curves of hollow the right and left.
Introduce the simplest situation, interpolation B-spline curves quantity N=1, i.e. B-spline curves of an interpolation below.
The control point P0 of interpolation B-spline curves is sure on this curve, but should be just suitable on which location point of curve.Be in the middle of curve, still on the upper side or on the lower side, have what according to?
For the position of obtaining this control point P0 on earth on that position of curve, will obtain the sampled point of B-spline curves earlier.
In the method, under the situation of B-spline curves of an interpolation, u gets middle point value u=0.5, and namely sampled point is C (0.5).P is got at the control point of interpolation B-spline curves 0=C (0.5).C (0.5) is a concrete point data, is a point value that has formula to calculate.Concrete computing formula is the formula of 3 Clamped B-spline curves (3) just, and substitution u=0.5 can obtain.
In like manner, when interpolation is counted N=2, namely insert 2 interpolation B-spline curves.Make u between 0 to 1, evenly get 2 values, and obtain corresponding sampling points.
For the 1st interpolation B-spline curves, get u=1/3, i.e. control point P 0=C(1/3).
For the 2nd interpolation B-spline curves, get u=2/3, i.e. control point P 0=C(2/3).
In like manner, when interpolation is counted N=3, namely insert 3 interpolation B-spline curves.Make u between 0 to 1, evenly get 3 values, and obtain corresponding sampling points.
For the 1st interpolation B-spline curves, get u=1/4, i.e. control point P 0=C(1/4).
For the 2nd interpolation B-spline curves, get u=2/4, i.e. control point P 0=C(2/4).
For the 3rd interpolation B-spline curves, get u=3/4, i.e. control point P 0=C(3/4).
So when the interpolation number is N, namely insert N bar interpolation B-spline curves.Make u between 0 to 1, evenly get N value, and obtain corresponding sampling points.
For the 1st interpolation B-spline curves, get u=1/ (N+1), i.e. control point P 0=C(1/ (N+1)).
For the 2nd interpolation B-spline curves, get u=2/ (N+1), i.e. control point P 0=C(2/ (N+1)).
For the 3rd interpolation B-spline curves, get u=3/ (N+1), i.e. control point P 0=C(3/ (N+1)).
..........
For N bar interpolation B-spline curves, get u=N/ (N+1), i.e. control point P 0=C(N/ (N+1)).
I bar interpolation B-spline curves control point P 0Formula be:
Figure BDA00003229714400071
p 0(i) the control point P of expression i bar interpolation B-spline curves 0
Figure BDA00003229714400072
The sampled point of expression hollow left side B-spline curves
Control point P for the interpolation B-spline curves 3Ask method, the B-spline curves calculating sampling point on available hollow the right, method principle and P 0The same.
I bar interpolation B-spline curves control point P 3Formula be:
Figure BDA00003229714400073
p 3(i) the control point P of expression i bar interpolation B-spline curves 3
Figure BDA00003229714400074
The sampled point of expression hollow the right B-spline curves.
Introduce below and ask for interpolation B-spline curves control point P 1Thinking and method, with top method, can obtain the control point P of whole interpolation B-spline curves 0And P 3Ask for interpolation B-spline curves control point P 1Key idea be wish the hollow top B-spline curves through the B-spline curves of middle interpolation B-spline curves even variation to hollow bottom.The B-spline curves of hollow top variation just little by little generates article one interpolation B-spline curves, change again and little by little generate second interpolation B-spline curves, the each variation little by little all generates interpolation B-spline curves, thereby generation article one, second, ... N bar interpolation B-spline curves, and this variation is even variation.Because 3 times the clamped B-spline curves are determined by four control points are intact entirely, so can make control point P 1And P 2Even variation, thus make the curve even variation.
For convenience of explanation, adopt following mark:
Control point vector P 0P 1Be designated as:
Figure BDA00003229714400081
Control point vector P 3P 2Be designated as:
At first introduce the simplest situation, interpolation is counted N=1, namely only inserts 1 interpolation B-spline curves.As shown in figure 10.
In Figure 10, solid line is the control point vector P of hollow top B-spline curves 0P 1, chain-dotted line is the control point vector P of the following B-spline curves of hollow 0P 1, dashed middle line is the control point vector P of interpolation B-spline curves 0P 1
Article 1, interpolation B-spline curves control point P 1Formula is:
Figure BDA00003229714400083
P 1(1) the 1st interpolation B-spline curves control point P of expression 1
P 0(1) the 1st interpolation B-spline curves control point P of expression 0
Figure BDA00003229714400084
The following B-spline curves of expression hollow control point vector P 0P 1
Expression B-spline curves control point, hollow top vector P 0P 1
When as shown in figure 11, interpolation is counted N=2.
Article 1, interpolation B-spline curves control point P 1Formula is:
Figure BDA00003229714400086
Article 2, interpolation B-spline curves control point P 1Formula is:
P 1(1) the 1st interpolation B-spline curves control point P of expression 1
P 1(2) the 2nd interpolation B-spline curves control point P of expression 1
P 0(1) the 1st interpolation B-spline curves control point P of expression 0
Figure BDA00003229714400088
The following B-spline curves of expression hollow control point vector P 0P 1
Figure BDA00003229714400089
Expression B-spline curves control point, hollow top vector P 0P 1
As shown in figure 12, when the interpolation number is N, N bar interpolation B-spline curves are arranged namely.
I bar interpolation B-spline curves control point P 1Formula is:
Figure BDA00003229714400091
P 1(i) expression i bar interpolation B-spline curves control point P 1, i=1,2,3.......N.
P 0(1) the 1st interpolation B-spline curves control point P of expression 0
Figure BDA00003229714400092
The following B-spline curves of expression hollow control point vector P 0P 1
Expression B-spline curves control point, hollow top vector P 0P 1
For asking interpolation B-spline curves control point P 2Method, utilize B-spline curves control point, hollow top vector P 3P 2, and the following B-spline curves of hollow control point vector P 3P 2, the method principle with ask P 1Identical, as shown in figure 13.
I bar interpolation B-spline curves control point P 2Formula is:
Figure BDA00003229714400094
Interpolation B batten as shown in Figure 4.
Be illustrated in figure 6 as the video distortion schematic diagram, each Direct3D vertex vertex data comprise the summit space coordinates (x, y, z) and texture coordinate (tu, tv).Wherein no longer change after the texture coordinate initialization, (x, y z), play up output through Direct 3D, just can reach the effect of video distortion by changing the summit space coordinates.
It is 1 that Direct3D world matrix is set, i.e. no change.It is that eyes are seen to the Z positive direction at initial point that Direct 3D viewpoint matrix is set.Direct 3D perspective matrix is set for as shown in Figure 7.
In this example, get Zp=10.0.
Article 12, B-spline curves control point initialization value as shown in Figure 8.
Introduce below Direct3D vertex corner space coordinates (x, y, computational methods z) and principle:
After the B-spline curves interpolation through the front.The horizontal B-spline curves of a lot of bars have just been arranged in the hollow.The hollow top, B-spline curves and the interpolation B-spline curves of following script are referred to as whole B-spline curves.
(z value z) is changeless to Direct3D vertex corner space coordinates for x, y, and value is z=10;
(x y) is point coordinates, and (x, y) value equals the sampling point value of B-spline curves.
Whole B-spline curves are carried out the calculating sampling point value, and (z always equals 10 for x, value y) as Direct3D vertex corner space coordinates Vertex will to calculate the gained sampling point value.General thought that Here it is.
In theory, every horizontal B-spline curves are sampled, sampling number is more many more accurate, but can influence calculated performance again too much, is M so establish every horizontal B-spline curves sampling number, and concrete data are determined by actual conditions.
For these whole B-spline curves, these all are horizontal.From top to bottom, be called the 1st, the 2nd .... the M bar.
For the horizontal B-spline curves of article one, i.e. the B-spline curves C(u of hollow top), u is evenly got between 0 to 1.
U=0/ (M-1), 1/ (M-1), 2/ (M-1) ... (M-1)/(M-1), be total to M sampled point.Calculate sampling point value
C(0/(M-1)),C(1/(M-1)),C(2/(M-1)),…….C((M-1)/(M-1))。Formulate:
Vertex(x i,y i)=C((i-1)/(M-1)),i=1,2……M。
Vertex (x i, y i) expression i Direct3D vertex corner space coordinates (x, value y).
C ((i-1)/(M-1)) represents i sampling point value.
For the horizontal B-spline curves of second, i.e. article one interpolation B-spline curves.These B-spline curves are advanced sampled point calculate, in like manner also calculate Direct3D vertex corner space coordinates (x, value y).In like manner, can calculate Direct3D vertex corner space coordinates Vertex (x, the value of calculating all y) to whole B-spline curves.
So for whole B-spline curves, formula is as follows:
Vertex j{x i,y i}=C j((i-1)/(M-1)) (11)
J=1,2,3 ... .N+2, horizontal B-spline curves of N+2 bar altogether, comprise 2 hollows up and down the B-spline curves on limit add N bar interpolation B-spline curves.
I=1,2,3 ... M, M sampled point altogether.
Vertex j{ x i, y iI Direct3D vertex corner space coordinates x of expression j bar horizontal B-spline curves, the value of y.
C jI sampling point value of the horizontal B-spline curves of ((i-1)/(M-1)) expression j bar.
For texture coordinate Vertex (tu, tv), principle as shown in figure 14, matrix pattern upper left corner texture coordinate is (0,0), the lower right corner is (1,1).The texture coordinate of whole Direct3D vertex corners is evenly distributed on the whole matrix pattern.
The vertex texture coordinate formula:
Upper left hollow:
Vertex j { tu i , tv i } = { 0.5 * ( i - 1 ) ( M - 1 ) , 0.5 * ( j - 1 ) N + 1 } - - - ( 12 )
J=1,2,3 ... .N+2, horizontal B-spline curves of N+2 bar altogether, comprise 2 hollows up and down the B-spline curves on limit add N bar interpolation B-spline curves.
I=1,2,3 ... M, M sampled point altogether
Vertex j{ tu i, tv iI Direct3D vertex corner texture coordinate tu of expression j bar horizontal B-spline curves, the value of tv.
In like manner, lower-left hollow:
Vertex j { tu i , tv i } = { 0.5 * ( i - 1 ) ( M - 1 ) , 0.5 * ( j - 1 ) N + 1 + 0.5 } - - - ( 13 )
In like manner, upper right corner hollow:
Vertex j { tu i , tv i } = { 0.5 * ( i - 1 ) ( M - 1 ) + 0.5 , 0.5 * ( j - 1 ) N + 1 } - - - ( 14 )
In like manner, lower right corner hollow:
Vertex j { tu i , tv i } = { 0.5 * ( i - 1 ) ( M - 1 ) + 0.5 , 0.5 * ( j - 1 ) N + 1 + 0.5 } - - - ( 15 )
As shown in figure 15, for the 3D three-dimensional film, because frame of video has comprised right and left eyes two width of cloth pictures, so, expand matrix pattern similarly and become two matrix patterns, respectively the right and left eyes picture is out of shape.
Above content be in conjunction with concrete preferred implementation to further describing that the present invention does, can not assert that concrete enforcement of the present invention is confined to these explanations.For the general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, can also make some simple deduction or replace, all should be considered as belonging to protection scope of the present invention.

Claims (10)

1. video distortion correction method, it is characterized in that: video pictures is divided the location by 12 B-spline curves, forms a sphere of movements for the elephants type; Every B-spline curves can carry out independent adjustment and movement, and many B-spline curves have public end points; Divide part equally according to the interpolation B-spline curves that 4 B-spline curves of its encirclement carry out interpolation generation segmentation, at last video pictures is played up output for four of the sphere of movements for the elephants type.
2. video distortion correction method according to claim 1 is characterized in that, comprises the steps:
A. 12 B-spline curves initialization of sphere of movements for the elephants type;
B. Direct3D Vertex summit initialization;
C. by adjusting the control point of B-spline curves, change the shape of B-spline curves;
D. according to the B-spline curves after adjusting, generate the interpolation B-spline curves;
E. according to the B-spline curves after adjusting, upgrade Direct3D Vertex summit space coordinates (x, y, z);
F. Direct3D plays up the output video picture.
3. video distortion correction method according to claim 2, it is characterized in that: four B-spline curves overlap from beginning to end, are combined into a hollow, and can make up expansion to hollow.
4. video distortion correction method according to claim 2 is characterized in that: B-spline curves adopt 3 clamped B-spline curves, knot vector U=0,0,0,0,1,1,1,1}, four control points P 0, P 1, P 2, P 3.
5. video distortion correction method according to claim 2 is characterized in that: form two video pictures by two projectors.
6. a video distortion is characterized in that than positive system: video pictures is divided the location by 12 B-spline curves, forms a sphere of movements for the elephants type; Every B-spline curves can carry out independent adjustment and movement, and many B-spline curves have public end points; Divide part equally according to the interpolation B-spline curves that 4 B-spline curves of its encirclement carry out interpolation generation segmentation, at last video pictures is played up output for four of the sphere of movements for the elephants type.
7. video distortion according to claim 6 is characterized in that than positive system, comprising:
The B-spline curves initialization module is used for 12 B-spline curves initialization of sphere of movements for the elephants type;
The summit initialization module is used for Direct3D Vertex summit initialization;
Adjusting module is used for changing the shape of B-spline curves by adjusting the control point of B-spline curves;
Generation module is used for generating the interpolation B-spline curves according to the B-spline curves after adjusting;
Update module is used for according to the B-spline curves after adjusting, and renewal Direct3D Vertex summit space coordinates (x, y, z);
Play up output module, be used for Direct3D and play up the output video picture.
8. video distortion according to claim 7 is characterized in that than positive system, and four B-spline curves overlap from beginning to end, is combined into a hollow, and can makes up expansion to hollow.
9. video distortion according to claim 8 is characterized in that than positive system, B-spline curves adopt 3 clamped B-spline curves, knot vector U=0,0,0,0,1,1,1,1}, four control points P 0, P 1, P 2, P 3.
10. video distortion according to claim 9 is characterized in that than positive system, forms two video pictures by two projectors.
CN2013101934428A 2013-05-22 2013-05-22 Video deformation correcting method and system Pending CN103281549A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013101934428A CN103281549A (en) 2013-05-22 2013-05-22 Video deformation correcting method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013101934428A CN103281549A (en) 2013-05-22 2013-05-22 Video deformation correcting method and system

Publications (1)

Publication Number Publication Date
CN103281549A true CN103281549A (en) 2013-09-04

Family

ID=49063975

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013101934428A Pending CN103281549A (en) 2013-05-22 2013-05-22 Video deformation correcting method and system

Country Status (1)

Country Link
CN (1) CN103281549A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112381813A (en) * 2020-11-25 2021-02-19 华南理工大学 Panorama visual saliency detection method based on graph convolution neural network
CN114979592A (en) * 2022-03-30 2022-08-30 中旭信达(北京)科技发展有限公司 Image curved surface geometric correction method and device, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510316A (en) * 2009-03-26 2009-08-19 山东理工大学 Deformation design method for product STL model
US20090257677A1 (en) * 2008-04-10 2009-10-15 Nvidia Corporation Per-Channel Image Intensity Correction
CN101799939A (en) * 2010-04-02 2010-08-11 天津大学 Rapid and self-adaptive generation algorithm of intermediate viewpoint based on left and right viewpoint images
WO2010129363A2 (en) * 2009-04-28 2010-11-11 The Regents Of The University Of California Markerless geometric registration of multiple projectors on extruded surfaces using an uncalibrated camera
CN102291527A (en) * 2011-08-11 2011-12-21 杭州海康威视软件有限公司 Panoramic video roaming method and device based on single fisheye lens
CN102508405A (en) * 2011-11-02 2012-06-20 天津理工大学 Direct passive stereo realization device for cubic screen and correction method for image
CN102541488A (en) * 2010-12-09 2012-07-04 深圳华强游戏软件有限公司 Image processing method and system for realizing seamless alignment of projection screen
CN103034743A (en) * 2011-09-30 2013-04-10 鸿富锦精密工业(深圳)有限公司 Curve distance calculating system and method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090257677A1 (en) * 2008-04-10 2009-10-15 Nvidia Corporation Per-Channel Image Intensity Correction
CN101510316A (en) * 2009-03-26 2009-08-19 山东理工大学 Deformation design method for product STL model
WO2010129363A2 (en) * 2009-04-28 2010-11-11 The Regents Of The University Of California Markerless geometric registration of multiple projectors on extruded surfaces using an uncalibrated camera
CN101799939A (en) * 2010-04-02 2010-08-11 天津大学 Rapid and self-adaptive generation algorithm of intermediate viewpoint based on left and right viewpoint images
CN102541488A (en) * 2010-12-09 2012-07-04 深圳华强游戏软件有限公司 Image processing method and system for realizing seamless alignment of projection screen
CN102291527A (en) * 2011-08-11 2011-12-21 杭州海康威视软件有限公司 Panoramic video roaming method and device based on single fisheye lens
CN103034743A (en) * 2011-09-30 2013-04-10 鸿富锦精密工业(深圳)有限公司 Curve distance calculating system and method
CN102508405A (en) * 2011-11-02 2012-06-20 天津理工大学 Direct passive stereo realization device for cubic screen and correction method for image

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
李丽红: "基于B样条函数的多模态医学图像弹性配准", 《大众科技》 *
杜丽娅: "《中国优秀硕士学位论文全文数据库信息科技辑》", 15 January 2010 *
杜丽娅: "《基于B样条的医学图像弹性配准》", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
谢晓勇: "样条曲线在游戏图形引擎中的应用综述", 《计算机与数字工程》 *
赵猛: "大屏幕多人沉浸式立体显示系统", 《中国博士学位论文全文数据库(电子期刊) 信息科技辑》 *
马珍杰,等: "法国梧桐树叶片仿真", 《计算机仿真》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112381813A (en) * 2020-11-25 2021-02-19 华南理工大学 Panorama visual saliency detection method based on graph convolution neural network
CN112381813B (en) * 2020-11-25 2023-09-05 华南理工大学 Panoramic view visual saliency detection method based on graph convolution neural network
CN114979592A (en) * 2022-03-30 2022-08-30 中旭信达(北京)科技发展有限公司 Image curved surface geometric correction method and device, electronic equipment and storage medium
CN114979592B (en) * 2022-03-30 2024-04-26 中旭信达(北京)科技发展有限公司 Image curved surface geometric correction method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN101803395B (en) Rendering improvement for 3d display
CN102170573B (en) Correction information calculation and method, image correction device and image display system
JP3852934B2 (en) Image processing system, program, and information storage medium
CN106897976B (en) Single video card triple channel solid what comes into a driver&#39;s projection software based on GPU corrects fusion method
CN106412556B (en) A kind of image generating method and device
CN105069827A (en) Method for processing video transitions through three-dimensional model
CN105513110A (en) GPU-based method for drawing linetype map symbol with gradually-varied width
CN104851133B (en) A kind of image adaptive mess generation variational method
CN104954715A (en) GPU (graphics processing unit) acceleration based video display method adopting multi-projector splicing fusion on special-shaped screens
Klose et al. Stereoscopic 3D view synthesis from unsynchronized multi-view video
CN104599305A (en) Two-dimension and three-dimension combined animation generation method
CN106600672A (en) Network-based distributed synchronous rendering system and method
CN103702099A (en) Ultra-large visual-angle integrated-imaging 3D(Three-Dimensional)displaying method based on head tracking
CN102385754B (en) A kind of object tracking methods and equipment
CN104869376A (en) Multi-image and multi-pixel level geometric correction method for video fusion
CN111062869A (en) Curved screen-oriented multi-channel correction splicing method
CN101188020A (en) Method for precisely getting pixel geometric location mapping relation between projector image and computer frame buffer image
CN105025281A (en) Large-dimension full dome super-clear film playing and interaction application splicing fusion method
CN103745448A (en) Rapid generating method for ultrahigh-resolution composite image in raster 3D displaying
JP2010140235A (en) Image processing apparatus, image processing method, and program
CN103281549A (en) Video deformation correcting method and system
CN103826114A (en) Stereo display method and free stereo display apparatus
CN104243949B (en) 3D display packing and device
CN103325086B (en) A kind of deformation method of the three-dimensional picture based on tetrahedral coordinate system
CN104639935A (en) Method and device for manufacturing and splicing 3D (three dimensional) picture

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Room 501-525B39 Huarong Building 518000 Guangdong city of Shenzhen province Futian District Futian District Center Street

Applicant after: SHENZHEN PLAYFUN CULTURE & TECHNOLOGY INC.

Address before: 518000 Guangdong city of Shenzhen province Futian District Shennan Avenue and Xiangmi Lake at the junction of the southeast side of Green Plaza building 23 layer 23G

Applicant before: Shenzhen Playfun Culture & Technology Co., Ltd.

COR Change of bibliographic data
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130904