CN103247058A - Fast optical flow field calculation method based on error-distributed multilayer grid - Google Patents

Fast optical flow field calculation method based on error-distributed multilayer grid Download PDF

Info

Publication number
CN103247058A
CN103247058A CN2013101741586A CN201310174158A CN103247058A CN 103247058 A CN103247058 A CN 103247058A CN 2013101741586 A CN2013101741586 A CN 2013101741586A CN 201310174158 A CN201310174158 A CN 201310174158A CN 103247058 A CN103247058 A CN 103247058A
Authority
CN
China
Prior art keywords
centerdot
alpha
layer
error
formula
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
CN2013101741586A
Other languages
Chinese (zh)
Other versions
CN103247058B (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.)
Beijing University of Technology
Original Assignee
Beijing University of Technology
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 Beijing University of Technology filed Critical Beijing University of Technology
Priority to CN201310174158.6A priority Critical patent/CN103247058B/en
Publication of CN103247058A publication Critical patent/CN103247058A/en
Application granted granted Critical
Publication of CN103247058B publication Critical patent/CN103247058B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention belongs to the field of machine vision, and discloses a fast optical flow field calculation method based on an error-distributed multilayer grid. The method comprises the following steps: step one, inputting an image, and constructing a linear equation, that is Ax is equal to f; step two, establishing a multilayer image pyramid; step three, performing prior optimization, and eliminating high-frequency components; step four, performing residual error transmission, and eliminating low-frequency components; step five, repeating steps three and four until residual errors are transmitted to the thickest layer; step six, solving equation sets on thick girds; step seven, performing error passing back from the thickest layer; step eight, performing error correction on thin grids; step nine, performing subsequent optimization iteration, and improving stability of solutions; and step ten, repeating steps seven, eight and nine until the residual errors are transmitted to the thinnest layer. The method provided by the invention is an effective method for accelerating optimization solution of equations, can quick converge high-frequency errors, and can remarkably improve computing speed of a visual optical flow field; and compared with a variational method, the convergence rate of the method can be improved above 3.5 times.

Description

A kind of quick optical flow field computing method based on the distributed multi-layer net of error
Technical field
The invention belongs to field of machine vision, relate to a kind of quick optical flow field computing method based on the distributed multi-layer net of error.
Background technology
In the visual motion analysis theory, viewed brightness of image pattern motion is referred to as light stream (optical flow) when between camera and scene objects relative motion being arranged.Because the variation of image has been expressed in the light stream vector field between the sequence video image, therefore the matching relationship between the corresponding image points between descriptor frame quantitatively, and provide the image planes side-play amount provides motion and structural information about target for the observer.
The variational method is to find the solution the main stream approach of light stream.Its guiding theory is that the meaning of and data fidelity level and smooth in gradient makes up energy functional, and emphasis obtains fine and close light stream vector field by the Euler-Lagrange equation (partial differential equation) of finding the solution the optimized energy function.The advantage of variation light stream is that the versatility of model is good, the degree of accuracy height of finding the solution, and optical flow field densification.Under the variation framework, Horn can obtain different optical flow computation models according to different assumed condition with the method that Schunck proposes, and its energy functional model comprises level and smooth and data item, can resolve to be described as:
min u { ∫ Ω α ( | ▿ u | 2 + | ▿ v | 2 ) dΩ + ∫ Ω ( I 1 ( x + u ( x ) ) - I 0 ( x ) ) 2 dΩ } - - - ( 1 )
In the formula, I 0, I 1Adjacent two two field pictures of representing camera acquisition respectively, and x=(x, y) TCertain picture point on the presentation video is with u (x)=(u (x), v (x)) TThe light stream vector of representing this position, wherein u (x) and v (x) are respectively level and the vertical component of this vector.Symbol ▽ is gradient operator, and Ω represents imaging plane.The integration item of front is level and smooth, and the integration item of back is data item, and α is for regulating the constant coefficient of the two weight.
With following formula gray scale conservation item I 1(x+u (x))-I 0(x) carry out Taylor expansion, obtain:
I 1(x+u(x))-I 0(x)=I xu+I yv+I t (2)
In the formula, x, y be level and the vertical component of presentation video I respectively, and t represents the time.Lower right corner subscript is represented corresponding partial derivative, namely I x = ∂ I ∂ x , I y = ∂ I ∂ y , I t = ∂ I ∂ t ·
Bring formula (2) into formula (1), above-mentioned energy functional is converted to:
min u { ∫ Ω ( | ▿ u | 2 + | ▿ v | 2 ) dΩ + λ ∫ Ω ( I x u + I y v + I t ) 2 dΩ }
Utilize variational method, obtain its corresponding Euler-Lagrange equation and be:
I x 2 · u + I x I y · v - αΔu = - I x I t I x I y · u + I y 2 · v - αΔv = - I y I t - - - ( 3 )
In the formula, u and v are respectively level and the vertical component of light stream vector, and the symbol Δ is represented Laplace operator.After this system of equations discretize, if with traditional numerical solution method, as Gauss – Seidel, methods such as SOR need iteration just can try to achieve comparatively ideal result thousands of times, so the real-time of algorithm is relatively poor.
In traditional numerical value iterative algorithm, the convergence process of analytical error can find, the high frequency error component is decay rapidly in iterative process, and the error component that is in low frequency is decayed slowly.Therefore, the different multi-layer net of available a series of resolution comes the same numerical problem of rapid solving.This is because utilize less iterations can eliminate high frequency error at refined net; The low frequency aberration of leaving over changes high frequency error into respect to coarse grid, will map on the thicker grid, can continue to utilize less iterations to eliminate this part low frequency aberration at coarse grid, has reached the purpose of accelerating convergence.Usually set multi-layer net, error is transmitted layer by layer, realize the distributed estimation of error.When specific implementation, need formula (3) is converted to system of linear equations.Formula (3) is out of shape a little, can obtains following form:
β(x)=f (4)
Wherein:
β = I x 2 I x I y I x I y I y 2 + - αΔ 0 0 - αΔ
f = - I x I t - I y I t
x = u v
As seen, not only comprise constant coefficient among the function β, also comprise nonlinear Laplace operator
Figure BDA00003178658200024
Causing the calculating of optical flow field can not directly use the multi-layer net algorithm thus finds the solution.
Summary of the invention
According to the problems referred to above that exist in the optical flow computation method, the present invention proposes a kind of quick optical flow field computing method based on the distributed multi-layer net of error, can accelerate the light stream convergence speed of iteration calculation, improve the real-time of computer vision system.
Multi-layer net is a kind of effective ways that equation optimization is found the solution that accelerate.Wherein, equationof structure Ax=f is a primary step.Because in optical flow equation (4), contain nonlinear Laplace operator among the function β, so the present invention is converted into the coefficient matrices A that does not contain operator with function β, in order under the multi-layer net algorithm frame, find the solution.
A kind of quick optical flow field computing method based on the distributed multi-layer net of error is characterized in that comprising the steps:
Step 1, input picture makes up linear equation Ax=f, and method is as follows:
(1) calculates space-time gradient tensor matrix, will wait the group discretize of solving an equation;
Suppose on a certain two field picture plane (i, the j) position of the capable j row of expression i pixel, u I, jAnd v I, jRepresent this displacement field on the horizontal x axle that takes place between consecutive frame and vertical y axle respectively.The space partial derivative f of computed image x, f yAnd time partial derivative f t, can obtain the space-time gradient tensor J matrix of each pixel in the image:
J = f x f x f x f y f x f t f y f x f y f y f y f t f t f x f t f y f t f t = J 11 J 12 J 13 J 21 J 22 J 23 J 31 J 32 J 33 - - - ( 5 )
If with [J] I, jExpression J matrix pixel (with h representation space step-length, then can disperse is Euler-Lagrange equation (formula (3)) for i, the value of j) locating:
[ J 11 ] i , j u i , j + [ J 12 ] i , j v i , j - α h 2 ( u i + 1 , j + u i - 1 , j + u i , j + 1 + u i , j - 1 - 4 u i , j ) = - [ J 13 ] i , j - - - ( 6 )
[ J 12 ] i , j u i , j + [ J 22 ] i , j v i , j - α h 2 ( v i + 1 , j + v i - 1 , j + v i , j + 1 + v i , j - 1 - 4 v i , j ) = - [ J 23 ] i , j - - - ( 7 )
(2) difference equation (6) is changed into linear equation with constant coefficient group A 1X=f 1
Abbreviation equation (6) obtains finding the solution the DIFFERENCE EQUATIONS in the regional D:
( 1 + h 2 4 α [ J 11 ] i , j ) u i , j - 1 4 ( u i + 1 , j + u i - 1 , j + u i , j + 1 + u i , j - 1 ) + h 2 4 α [ J 12 ] v i , j = - h 2 4 α [ J 13 ] i , j
Always total N+1 is capable to suppose image, and it is capable to remove the 0th row and N, and the DIFFERENCE EQUATIONS of first each pixel of row has following form:
1 + h 2 4 α [ J 11 ] 11 - 1 4 0 · · · 0 0 0 - 1 4 1 + h 2 4 α [ J 11 ] 21 - 1 4 · · · 0 0 0 · · · · · · · · · · · · · · · · · · · · · 0 0 0 · · · - 1 4 1 + h 2 4 α [ J 11 ] ( N - 2 ) 1 - 1 4 0 0 0 · · · 0 - 1 4 1 + h 2 4 α [ J 11 ] ( N - 1 ) 1 u 11 u 21 · · · u ( N - 1 ) 1
- 1 4 1 0 · · · 0 0 1 · · · 0 · · · · · · · · · · · · 0 0 · · · 1 u 12 u 22 · · · u ( N - 1 ) 2 + h 2 4 α [ J 21 ] 11 0 · · · 0 0 h 2 4 α [ J 21 ] 21 · · · 0 · · · · · · · · · · · · 0 0 · · · h 2 4 α [ J 21 ] ( N - 1 ) 1 v 11 v 21 · · · v ( N - 1 ) 1
= - h 2 4 α [ J 13 ] 11 + 1 4 g 01 + 1 4 g 10 - h 2 4 α [ J 13 ] 21 + 1 4 g 20 · · · h 2 4 α [ J 13 ] ( N - 1 ) 1 + 1 4 g N 1 + 1 4 g ( N - 1 ) 0 = b 1 - - - ( 8 )
In the formula, g IjThe borderline element u of regional D is found the solution in expression i, i.e. g Ij=u Ij
If introduce light stream component u IjAnd v IjOn column vector:
u i = u li u 2 i · · · u ( N - 1 ) i , v i = v li v 2 i · · · v ( N - 1 ) i
And order:
[ J mn ] i = [ J mn ] li 0 · · · 0 0 [ J mn ] 2 i · · · 0 · · · · · · · · · · · · 0 0 · · · [ J mn ] ( N - 1 ) i - - - ( 9 )
For pixel (m, the J of the J matrix element of n) locating Mn, matrix [J in the formula (9) Mn] iThe unit matrix and the J that are equivalent to the N-1 rank MnI is listed as the product of this column vector.Therefore, the DIFFERENCE EQUATIONS (8) of first each pixel of row can turn to:
( G + h 2 4 α [ J 11 ] 1 ) u 1 - 1 4 Iu 2 + h 2 4 α [ J 21 ] 1 v 1 = b 1
In the formula, I is the unit matrix on N-1 rank, b 1Be the column vector of definition in the formula (6), G is following N-1 rank matrix:
G = 1 - 1 4 0 · · · 0 0 0 - 1 4 1 - 1 4 · · · 0 0 0 · · · · · · · · · · · · · · · · · · · · · 0 0 0 · · · - 1 4 1 - 1 4 0 0 0 · · · 0 - 1 4 1
In like manner, the difference equation of each pixel of secondary series is:
- 1 4 Iu 1 + ( G + h 2 4 α [ J 11 ] 2 ) u 2 - 1 4 Iu 3 + h 2 4 α [ J 21 ] 2 v 2 = b 2
In the formula:
b 2 = - h 2 4 α [ J 13 ] 12 + 1 4 g 02 - h 2 4 α [ J 13 ] 22 · · · · · · - h 2 4 α [ J 13 ] ( N - 1 ) 2 + 1 4 g N 2
All row of image are all transformed, and then system of equations can be written as A 1X=f 1Form, in the formula:
A 1 = G + h 2 4 α [ J 11 ] 1 1 4 I 0 · · · 0 0 0 h 2 4 α [ J 21 ] 1 0 · · · 0 0 1 4 I G + h 2 4 α [ J 11 ] 2 1 4 I · · · 0 0 0 0 h 2 4 α [ J 21 ] 2 · · · 0 0 · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 0 0 0 · · · 1 4 I G + h 2 4 α [ J 11 ] N - 2 1 4 I 0 0 · · · h 2 4 α [ J 21 ] N - 2 0 0 0 0 · · · 0 1 4 I G + h 2 4 α [ J 11 ] N - 1 0 0 · · · 0 h 2 4 α [ J 21 ] N - 1
x = u 1 u 2 · · · u N - 1 v 1 v 2 · · · v N - 1 f 1 = b 1 b 2 · · · b N - 1
(3) difference equation (7) is changed into linear equation with constant coefficient group A 2X=f 2
(4) by A 1X=f 1With A 2X=f 2Common formation system of equations:
Ax=f (10)
Step 2 is set up the multi-layer image pyramid;
The pyramidal synoptic diagram of multi-layer image as shown in Figure 2.A uppermost tomographic image is former image in different resolution, and each following tomographic image is represented successively to dwindle falls the resolution image.Because pixel itself is uniform discrete, therefore can regard multi-layer image as multi-layer net.
Usually, size of images (long and wide) is between 300-800.According to the scale factor η (0.5<η<0.95) that sets former image in different resolution is successively dwindled, and size is rounded, obtain the multi-layer image pyramid.Usually, number of plies N=4~5 layer.The initial value of every layer of light stream is set to zero.
Step 3 is carried out preceding optimization, eliminates high fdrequency component;
When anterior layer i (i=1,2 ..., N-1), be the light stream initial value with the null matrix to refined net equation iteration m time, to eliminate high fdrequency component.If x iBe initial value, obtain the approximate evaluation value
Figure BDA00003178658200055
Be designated as:
x ‾ i = Relax m ( x i , A i , r i )
In the formula, Relax mExpression Gauss-Seidel iterative process, the iterations of m for setting.
A iDetermined by formula (10); When i=1, r is definite by formula (10), i.e. r 1=f.Otherwise r equals the residual error that last layer is passed to this layer.The corresponding residual error of this layer is updated to:
r i = A i x ‾ i - f i
Step 4 is carried out the residual error transmission, eliminates low frequency component;
Preceding optimizing process is intended to eliminate the high frequency error component, and inherited error is mainly low frequency component.Therefore, residual error is passed on the coarse grid, to eliminate low frequency component.Be restricted to the surplus r on the coarse grid I+1For:
r i + 1 = I i i + 1 r i
In the formula,
Figure BDA00003178658200064
Be the mapping operator of refined net to the coarse grid.
Step 5, when i=1~N-1, repeating step three, four is passed to the thickest layer until residual error;
Step 6, find the solution the system of equations on the coarse grid:
A Ne N=r N
In the formula, e NBe the light stream error of accurately finding the solution on the thickest layer.
Obtain by matrix operation:
e N=(A N) -1r N
Step 7 begins to carry out the error passback from the thickest layer (j=N);
As anterior layer j, the amount of error correction of trying to achieve is passed back to last layer than on the refined net j-1, that is:
e j - 1 = I j j - 1 e j
In the formula,
Figure BDA00003178658200066
Be the mapping operator of coarse grid to the refined net.
Step 8 is carried out refined net error correction;
The initial value that calculates is added the error of being passed back by coarse grid, obtain the solution after refined net is proofreaied and correct
Figure BDA000031786582000610
That is:
x ^ j - 1 = x ^ j - 1 + e j - 1
Step 9 is carried out the back and is optimized iteration, improves stability of solution;
After refined net is proofreaied and correct, be initial value with the solution after proofreading and correct, carry out the back and optimize iteration n time, the corrected value after obtaining upgrading
Figure BDA00003178658200068
Its expression formula is:
x j - 1 new = Relax n ( x ^ j - 1 , A j - 1 , f j - 1 )
Step 10 is worked as j=N, N-1 ..., 2 o'clock, repeating step seven~nine was passed to the thinnest layer until residual error.
Compared with prior art, the present invention has following beneficial effect:
The present invention launches the light stream solving equation by row, with its form that turns to system of linear equations, make the complicated calculations process of light stream to accelerate to realize by linear multi-layer net algorithm.Secondly, adopt the multi-layer net of different resolution, the error component of different frequency has been distributed on the different grids, made error become high frequency error with respect to this layer grid.Because high frequency error convergence is very fast, thereby this method can significantly improve the computing velocity in visual light flow field, compares with the variational method, and the speed of convergence of this method can be brought up to more than 3.5 times.
Description of drawings
Fig. 1 is the process flow diagram of method involved in the present invention;
Fig. 2 is multi-layer image pyramid synoptic diagram;
Fig. 3 is first group of test pattern RubberWhale of application example of the present invention;
Fig. 4 is first group of test pattern of application example of the present invention.
Embodiment
The present invention will be further described below in conjunction with the drawings and specific embodiments.
One of the microcomputer of enforcement support P3800M dominant frequency of the present invention, 512M internal memory and above configuration is as the hardware device platform.Running environment is Windows XP operating system and Matlab software platform.
The detailed process of present embodiment is at first according to light stream model to be found the solution, to construct system of linear equations Ax=f.Set up 4~5 tomographic image pyramids then, be optimized iteration respectively at each layer, and the iteration residual error successively is mapped to down on the thicker grid of one deck.At the thickest layer, find the solution the system of equations on the coarse grid, obtain accurate estimation of error.After this, return error in opposite direction, on thinner grid, successively carry out error correction.Fig. 1 is the process flow diagram of method involved in the present invention, specifically may further comprise the steps:
Step 1, input picture makes up linear equation Ax=f;
Step 2 is set up the multi-layer image pyramid;
Step 3 is carried out preceding optimization, eliminates high fdrequency component;
Step 4 is carried out the residual error transmission, eliminates low frequency component;
Step 5, as i=1~N-1, repeating step three, four is passed to the thickest layer until residual error;
Step 6 is found the solution the system of equations on the coarse grid: A Ne N=r N
Step 7 begins to carry out the error passback from the thickest layer (j=N);
Step 8 is carried out refined net error correction;
Step 9 is carried out the back and is optimized iteration, improves stability of solution;
Step 10 is worked as j=N, N-1 ..., 2 o'clock, repeating step seven~nine was passed to the thinnest layer until residual error.
Provide an application example of the present invention below.
Select two groups of test patterns that the quick optical flow field algorithm based on the distributed multi-layer net of error that the present invention proposes is verified.One group is a pair of test pattern RubberWhale in the Middlebury java standard library that extensively adopts in the world, as shown in Figure 3; Another group is scientific paper " the An improved algorithm for TV-L that people such as Wedel deliver at them 1Optical flow " the middle a pair of test pattern that adopts, as shown in Figure 4.
During experiment, the quick optical flow field algorithm based on the distributed multi-layer net of error that adopts traditional variational algorithm and the present invention to propose respectively calculate every group of image between optical flow field.By the working time of two kinds of methods of software statistics, experimental result is as shown in table 1.In the table 1, image shown in Figure 3 is adopted in experiment one, and image shown in Figure 4 is adopted in experiment two.As shown in Table 1, shorten the operation time of comparing traditional variational algorithm based on the quick optical flow field algorithm of the distributed multi-layer net of error greatly, and the speed of convergence of two experiments is all brought up to more than 3.5 times, has significantly improved counting yield.
The contrast of the traditional variational algorithm of table 1 and the method for the invention working time
Figure BDA00003178658200081

Claims (1)

1. the quick optical flow field computing method based on the distributed multi-layer net of error is characterized in that comprising the steps:
Step 1, input picture makes up linear equation Ax=f, and method is as follows:
(1) calculates space-time gradient tensor matrix, will wait the group discretize of solving an equation;
Suppose on a certain two field picture plane (i, the j) position of the capable j row of expression i pixel, u I, jAnd v I, jRepresent this displacement field on the horizontal x axle that takes place between consecutive frame and vertical y axle respectively; The space partial derivative f of computed image x, f yAnd time partial derivative f t, can obtain the space-time gradient tensor J matrix of each pixel in the image:
J = f x f x f x f y f x f t f y f x f y f y f y f t f t f x f t f y f t f t = J 11 J 12 J 13 J 21 J 22 J 23 J 31 J 32 J 33 - - - ( 1 )
If with [J] I, jExpression J matrix pixel (with h representation space step-length, the Euler-Lagrange equation that the variational method is obtained by the energy functional number is discrete to be for i, the value of j) locating:
[ J 11 ] i , j u i , j + [ J 12 ] i , j v i , j - α h 2 ( u i + 1 , j + u i - 1 , j + u i , j + 1 + u i , j - 1 - 4 u i , j ) = - [ J 13 ] i , j - - - ( 2 )
[ J 12 ] i , j u i , j + [ J 22 ] i , j v i , j - α h 2 ( u i + 1 , j + u i - 1 , j + u i , j + 1 + u i , j - 1 - 4 u i , j ) = - [ J 23 ] i , j - - - ( 3 )
In the formula, α is for regulating the coefficient of level and smooth item and the two weight of data item;
(2) difference equation (2) is changed into linear equation with constant coefficient group A 1X=f 1
Abbreviation equation (2) obtains finding the solution the DIFFERENCE EQUATIONS in the regional D:
( 1 + h 2 4 α [ J 11 ] i , j ) u i , j - 1 4 ( u i + 1 , j + u i - 1 , j + u i , j + 1 + u i , j - 1 ) + h 2 4 α [ J 12 ] v i , j = - h 2 4 α [ J 13 ] i , j
Always total N+1 is capable to suppose image, and it is capable to remove the 0th row and N, and the DIFFERENCE EQUATIONS of first each pixel of row has following form:
1 + h 2 4 α [ J 11 ] 11 - 1 4 0 · · · 0 0 0 - 1 4 1 + h 2 4 α [ J 11 ] 21 - 1 4 · · · 0 0 0 · · · · · · · · · · · · · · · · · · · · · 0 0 0 · · · - 1 4 1 + h 2 4 α [ J 11 ] ( N - 2 ) 1 - 1 4 0 0 0 · · · 0 - 1 4 1 + h 2 4 α [ J 11 ] ( N - 1 ) 1 u 11 u 21 · · · u ( N - 1 ) 1
- 1 4 1 0 · · · 0 0 1 · · · 0 · · · · · · · · · · · · 0 0 · · · 1 u 12 u 22 · · · u ( N - 1 ) 2 + h 2 4 α [ J 21 ] 11 0 · · · 0 0 h 2 4 α [ J 21 ] 21 · · · 0 · · · · · · · · · · · · 0 0 · · · h 2 4 α [ J 21 ] ( N - 1 ) 1 v 11 v 21 · · · v ( N - 1 ) 1
= - h 2 4 α [ J 13 ] 11 + 1 4 g 01 + 1 4 g 10 - h 2 4 α [ J 13 ] 21 + 1 4 g 20 · · · h 2 4 α [ J 13 ] ( N - 1 ) 1 + 1 4 g N 1 + 1 4 g ( N - 1 ) 0 = b 1 - - - ( 4 )
In the formula, gi jThe borderline element ui of regional D, i.e. g are found the solution in expression Ij=u Ij
Introduce light stream component u IjAnd v IjOn column vector:
u i = u li u 2 i · · · u ( N - 1 ) i , v i = v li v 2 i · · · v ( N - 1 ) i
And order:
[ J mn ] i = [ J mn ] li 0 · · · 0 0 [ J mn ] 2 i · · · 0 · · · · · · · · · · · · 0 0 · · · [ J mn ] ( N - 1 ) i - - - ( 5 )
For pixel (m, the J of the J matrix element of n) locating Mn, matrix [J in the formula (5) Mn] iThe unit matrix and the J that are equivalent to the N-1 rank MnI is listed as the product of this column vector; Therefore, the DIFFERENCE EQUATIONS (4) of first each pixel of row can turn to:
( G + h 2 4 α [ J 11 ] 1 ) u 1 - 1 4 Iu 2 + h 2 4 α [ J 21 ] 1 v 1 = b 1
In the formula, I is N-1 rank unit matrix, b 1Be the column vector of definition in the formula (2), G is following N-1 rank matrix:
G = 1 - 1 4 0 · · · 0 0 0 - 1 4 1 - 1 4 · · · 0 0 0 · · · · · · · · · · · · · · · · · · · · · 0 0 0 · · · - 1 4 1 - 1 4 0 0 0 · · · 0 - 1 4 1
The difference equation of each pixel of secondary series is:
- 1 4 Iu 1 + ( G + h 2 4 α [ J 11 ] 2 ) u 2 - 1 4 Iu 3 + h 2 4 α [ J 21 ] 2 v 2 = b 2
In the formula:
b 2 = - h 2 4 α [ J 13 ] 12 + 1 4 g 02 - h 2 4 α [ J 13 ] 22 · · · · · · - h 2 4 α [ J 13 ] ( N - 1 ) 2 + 1 4 g N 2
All row of image are all transformed, and then system of equations can be written as A 1X=f 1Form, in the formula:
A 1 = G + h 2 4 α [ J 11 ] 1 1 4 I 0 · · · 0 0 0 h 2 4 α [ J 21 ] 1 0 · · · 0 0 - 1 4 I G + h 2 4 α [ J 11 ] 2 - 1 4 I · · · 0 0 0 0 h 2 4 α [ J 21 ] 2 · · · 0 0 · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 0 0 0 · · · 1 4 I G + h 2 4 α [ J 11 ] N - 2 1 4 I 0 0 · · · h 2 4 α [ J 21 ] N - 2 0 0 0 0 · · · 0 1 4 I G + h 2 4 α [ J 11 ] N - 1 0 0 · · · 0 h 2 4 α [ J 21 ] N - 1
x = u 1 u 2 · · · u N - 1 v 1 v 2 · · · v N - 1 f 1 = b 1 b 2 · · · b N - 1
(3) difference equation (3) is changed into linear equation with constant coefficient group A 2X=f 2
(4) by A 1X=f 1With A 2X=f 2Common formation system of equations:
Ax=f (6)
Step 2 is set up the multi-layer image pyramid, and method is as follows:
The uppermost tomographic image of multi-layer image pyramid is former image in different resolution, and each following tomographic image is represented successively to dwindle falls the resolution image; Because pixel itself is uniform discrete, therefore can regard multi-layer image as multi-layer net;
Usually, the length of image and wide between 300~800; According to the scale factor η that sets, 0.5<η<0.95 successively dwindles former image in different resolution, and size is rounded, and obtains the multi-layer image pyramid; Usually, number of plies N=4~5 layer, the initial value of every layer of light stream is set to zero;
Step 3 is carried out preceding optimization, eliminates high fdrequency component, and method is as follows:
Working as anterior layer i, i=1,2 ..., N-1 is the light stream initial value with the null matrix to refined net equation iteration m time, to eliminate high fdrequency component; If x iBe initial value, obtain the approximate evaluation value
Figure FDA00003178658100041
Be designated as:
x ‾ i = Relax m ( x i , A i , r i )
In the formula, Relax mExpression Gauss-Seidel iterative process, the iterations of m for setting;
A iDetermined by formula (6); When i=1, r is definite by formula (6), i.e. r 1=f; Otherwise r equals the residual error that last layer is passed to this layer; The corresponding residual error of this layer is updated to:
r i = A i x ‾ i - f i
Step 4 is carried out the residual error transmission, eliminates low frequency component, and method is as follows:
Preceding optimizing process is intended to eliminate the high frequency error component, and inherited error is mainly low frequency component, therefore residual error is passed on the coarse grid, to eliminate low frequency component; Be restricted to the surplus r on the coarse grid I+1For:
r i + 1 = I i i + 1 r i
In the formula, I i I+1Be the mapping operator of refined net to the coarse grid;
Step 5, when i=1~N-1, repeating step three, four is passed to the thickest layer until residual error;
Step 6, find the solution the system of equations on the coarse grid:
A Ne N=r N
In the formula, e NBe the light stream error of accurately finding the solution on the thickest layer;
Obtain by matrix operation:
e N=(A N) -1r N
Step 7 begins to carry out the error passback from the thickest layer, and method is as follows:
When anterior layer is j, the amount of error correction of trying to achieve is passed back to last layer than on the refined net j-1, that is:
e j - 1 = I j j - 1 e j
In the formula, Be the mapping operator of coarse grid to the refined net;
Step 8 is carried out refined net error correction, and method is as follows:
The initial value that calculates is added the error of being passed back by coarse grid, obtain the solution after refined net is proofreaied and correct
Figure FDA00003178658100053
That is:
x ^ j - 1 = x ‾ j - 1 + e j - 1
Step 9 is carried out the back and is optimized iteration, improves stability of solution, and method is as follows:
After refined net is proofreaied and correct, be initial value with the solution after proofreading and correct, carry out the back and optimize iteration n time, the corrected value after obtaining upgrading
Figure FDA00003178658100054
Its expression formula is:
x j - 1 new = Relax n ( x ^ j - 1 , A j - 1 , f j - 1 )
Step 10 is worked as j=N, N-1 ..., 2 o'clock, repeating step seven~nine was passed to the thinnest layer until residual error.
CN201310174158.6A 2013-05-13 2013-05-13 A kind of quick the Computation of Optical Flow based on error Distributed-tier grid Active CN103247058B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310174158.6A CN103247058B (en) 2013-05-13 2013-05-13 A kind of quick the Computation of Optical Flow based on error Distributed-tier grid

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310174158.6A CN103247058B (en) 2013-05-13 2013-05-13 A kind of quick the Computation of Optical Flow based on error Distributed-tier grid

Publications (2)

Publication Number Publication Date
CN103247058A true CN103247058A (en) 2013-08-14
CN103247058B CN103247058B (en) 2015-08-19

Family

ID=48926563

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310174158.6A Active CN103247058B (en) 2013-05-13 2013-05-13 A kind of quick the Computation of Optical Flow based on error Distributed-tier grid

Country Status (1)

Country Link
CN (1) CN103247058B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103700117A (en) * 2013-11-21 2014-04-02 北京工业大学 Robust optical flow field estimating method based on TV-L1 variation model
CN103761749A (en) * 2014-02-12 2014-04-30 北京工业大学 Optical flow field rapid estimation method based on non-linear multigrid method
CN104915968A (en) * 2015-05-19 2015-09-16 北京航空航天大学 Navier-Stokes equation-based optical flow velocity estimation method
CN106385541A (en) * 2016-09-30 2017-02-08 虹软(杭州)科技有限公司 Method for realizing zooming through wide-angle photographing component and long-focus photographing component
CN103618904B (en) * 2013-11-20 2017-02-22 华为技术有限公司 Motion estimation method and device based on pixels
CN108399629A (en) * 2018-02-05 2018-08-14 西南交通大学 A kind of pattern matrix light stream method of estimation of artificial compound eye camera
CN109061554A (en) * 2018-06-26 2018-12-21 哈尔滨工程大学 A kind of target angle of arrival estimation method updated based on spatial spreading grid dynamic
CN109314752A (en) * 2016-04-06 2019-02-05 脸谱公司 Effective determination of light stream between image
CN110322477A (en) * 2019-06-10 2019-10-11 广州视源电子科技股份有限公司 Characteristic point watch window setting method, tracking, device, equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101770568A (en) * 2008-12-31 2010-07-07 南京理工大学 Target automatically recognizing and tracking method based on affine invariant point and optical flow calculation
CN102509071A (en) * 2011-10-14 2012-06-20 江南大学 Light stream calculation system and method
WO2012173821A1 (en) * 2011-06-14 2012-12-20 Qualcomm Incorporated Content-adaptive systems, methods and apparatus for determining optical flow

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101770568A (en) * 2008-12-31 2010-07-07 南京理工大学 Target automatically recognizing and tracking method based on affine invariant point and optical flow calculation
WO2012173821A1 (en) * 2011-06-14 2012-12-20 Qualcomm Incorporated Content-adaptive systems, methods and apparatus for determining optical flow
CN102509071A (en) * 2011-10-14 2012-06-20 江南大学 Light stream calculation system and method

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
ANDRÉS BRUHN, JOACHIM WEICKERT, CHRISTIAN FEDDERN, TIMO KOHLBERG: "Variational Optical Flow Computation in Real Time", 《IEEE TRANSACTIONS ON IMAGE PROCESSING》 *
PIERRE-MARC JODOIN,MAX MIGNOTTE: "Optical-flow based on an edge-avoidance procedure", 《COMPUTER VISION AND IMAGE UNDERSTANDING》 *
昌猛,吴新根,罗立民,舒华忠,傅瑶: "一种快速的光流场计算方法", 《东南大学学报》 *
王骁,王卫卫,聂秀志: "基于多重网格法的变分光流计算", 《现代电子技术》 *
谢剑斌,王晖,刘通,李沛秦: "基于多重网格的光流场快速计算方法", 《仪器仪表学报》 *

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103618904B (en) * 2013-11-20 2017-02-22 华为技术有限公司 Motion estimation method and device based on pixels
CN103700117A (en) * 2013-11-21 2014-04-02 北京工业大学 Robust optical flow field estimating method based on TV-L1 variation model
CN103761749A (en) * 2014-02-12 2014-04-30 北京工业大学 Optical flow field rapid estimation method based on non-linear multigrid method
CN103761749B (en) * 2014-02-12 2016-08-17 北京工业大学 A kind of optical flow field method for quick estimating based on non-linear multi-grid method
CN104915968B (en) * 2015-05-19 2017-07-21 北京航空航天大学 A kind of optical flow velocity method of estimation based on navier stokes equations
CN104915968A (en) * 2015-05-19 2015-09-16 北京航空航天大学 Navier-Stokes equation-based optical flow velocity estimation method
CN109314752A (en) * 2016-04-06 2019-02-05 脸谱公司 Effective determination of light stream between image
CN109314752B (en) * 2016-04-06 2020-03-03 脸谱公司 Method and system for generating optical flow
CN106385541A (en) * 2016-09-30 2017-02-08 虹软(杭州)科技有限公司 Method for realizing zooming through wide-angle photographing component and long-focus photographing component
CN108399629A (en) * 2018-02-05 2018-08-14 西南交通大学 A kind of pattern matrix light stream method of estimation of artificial compound eye camera
CN108399629B (en) * 2018-02-05 2020-06-02 西南交通大学 Image array optical flow estimation method of artificial compound eye camera
CN109061554A (en) * 2018-06-26 2018-12-21 哈尔滨工程大学 A kind of target angle of arrival estimation method updated based on spatial spreading grid dynamic
CN109061554B (en) * 2018-06-26 2022-07-15 哈尔滨工程大学 Target arrival angle estimation method based on dynamic update of spatial discrete grid
CN110322477A (en) * 2019-06-10 2019-10-11 广州视源电子科技股份有限公司 Characteristic point watch window setting method, tracking, device, equipment and medium
CN110322477B (en) * 2019-06-10 2022-01-04 广州视源电子科技股份有限公司 Feature point observation window setting method, tracking method, device, equipment and medium

Also Published As

Publication number Publication date
CN103247058B (en) 2015-08-19

Similar Documents

Publication Publication Date Title
CN103247058B (en) A kind of quick the Computation of Optical Flow based on error Distributed-tier grid
CN107481279B (en) Monocular video depth map calculation method
CN106101535A (en) A kind of based on local and the video stabilizing method of mass motion disparity compensation
CN102073982B (en) Method for realizing acceleration of anisotropic diffusion filtration of overlarge synthetic aperture radar (SAR) image by graphic processing unit (GPU)
CN107229920B (en) Behavior identification method based on integration depth typical time warping and related correction
CN103810725B (en) A kind of video stabilizing method based on global optimization
CN107016649A (en) A kind of vision data complementing method estimated based on local low-rank tensor
CN108053437A (en) Three-dimensional model acquiring method and device based on figure
CN104729481B (en) Cooperative target pose precision measurement method based on PNP perspective model
CN108280858A (en) A kind of linear global camera motion method for parameter estimation in multiple view reconstruction
CN109685838A (en) Image elastic registrating method based on super-pixel segmentation
CN106408653A (en) Real-time robust cluster adjustment method for large-scale three-dimensional reconstruction
CN103700117A (en) Robust optical flow field estimating method based on TV-L1 variation model
CN113177432B (en) Head posture estimation method, system, equipment and medium based on multi-scale lightweight network
CN110139046A (en) A kind of video frame synthetic method based on tensor
CN109887029A (en) A kind of monocular vision mileage measurement method based on color of image feature
CN107862733A (en) Large scale scene real-time three-dimensional method for reconstructing and system based on sight more new algorithm
CN109376787A (en) Manifold learning network and computer visual image collection classification method based on it
CN106096516A (en) The method and device that a kind of objective is followed the tracks of
CN107204040A (en) Multiple-Point Geostatistics modeling method and device, computer-readable storage medium
CN103839280B (en) A kind of human body attitude tracking of view-based access control model information
CN116681838A (en) Monocular video dynamic human body three-dimensional reconstruction method based on gesture optimization
CN108171790A (en) A kind of Object reconstruction method based on dictionary learning
CN106934822A (en) A kind of automobile workpiece non-rigid three-dimensional point cloud method for registering based on linear hybrid deformation
CN110211189A (en) ToF camera depth error modeling bearing calibration and device

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