CN106534858B - True motion estimation method and device - Google Patents

True motion estimation method and device Download PDF

Info

Publication number
CN106534858B
CN106534858B CN201510574175.8A CN201510574175A CN106534858B CN 106534858 B CN106534858 B CN 106534858B CN 201510574175 A CN201510574175 A CN 201510574175A CN 106534858 B CN106534858 B CN 106534858B
Authority
CN
China
Prior art keywords
motion vector
optimal
distance
sum
motion
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.)
Active
Application number
CN201510574175.8A
Other languages
Chinese (zh)
Other versions
CN106534858A (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.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai 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 Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN201510574175.8A priority Critical patent/CN106534858B/en
Publication of CN106534858A publication Critical patent/CN106534858A/en
Application granted granted Critical
Publication of CN106534858B publication Critical patent/CN106534858B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Analysis (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

True motion estimation method and device, which comprises the image of present frame is divided into multiple piecemeals;The candidate motion vector of each piecemeal will be predicted according to preset scanning sequency, the preset scanning sequency includes: that the image of the present frame is divided into more than one subgraph along horizontal direction;For the same subgraph, the piecemeal for starting the first row of scanning uses from left to right and uses opposite scanning sequency between the piecemeal of adjacent rows;For two adjacent subgraphs, using the opposite scanning sequency of row scan sequence;Optimum prediction motion vector is chosen from the candidate motion vector of each piecemeal;Search obtains the motion vector of the image of present frame centered on the optimum prediction motion vector.Estimation of motion vectors speed and accuracy can be improved in above-mentioned scheme.

Description

True motion estimation method and device
Technical field
The present invention relates to technical field of image processing, more particularly to a kind of true motion estimation method and device.
Background technique
The encoding and decoding technique in transmission of video can obtain very high compression ratio at present, however in order to adapt to some Netowrk tapes The spatial and temporal resolution of vision signal is usually reduced to reduce data volume, can be jumped in the time domain by coding side by wide limitation Frame is realized.But the degeneration of the discontinuous and picture quality of video motion will necessarily be caused in decoding end, especially quickly transporting It is become apparent in dynamic and complex scene.
To solve the above problems, can be by using video frame interpolation technology in decoding end, i.e. frame rate conversion is restored Original frame per second is to improve the subjective vision effect of video image.Video frame interpolation technology can be used for the video format of different frame rates Between conversion.Since simple frame repeats averagely generate motion jitter with frame and obscures, in practice usually It is the motion compensated interpolation (Motion-compensated Interpolation, MCI) based on Block- matching using method, and is somebody's turn to do The quality of method interpolation frame obtained depends on the accuracy of estimation of motion vectors.
In the prior art, the block matching method of three-dimensional recursive search is generallyd use to estimate the real motion of object.It is three-dimensional The block matching method of recursive search, the motion vector of current block are repaired to the small-scale of motion vector of time, spatial prediction Just.The motion vector of current block is also next piecemeal simultaneously, and the airspace candidate vector and time domain of the adjacent piecemeal of next line are candidate Vector.Therefore, the estimation of current block is needed in the candidate motion vector for calculating the piecemeal that each frame image divides When, using raster scan order, i.e., from top to bottom, sequence from left to right.But this scanning sequency will cause motion vector Sequence convergence along from top to bottom, or from left to right, can not quickly and accurately converge to true motion vector.
Summary of the invention
The technical issues of embodiment of the present invention solves is how to improve the speed and accuracy of estimation of motion vectors.
To solve the above problems, the embodiment of the invention provides a kind of true motion estimation method, the method, comprising:
The image of present frame is divided into multiple piecemeals;
The candidate motion vector of each piecemeal, the preset scanning sequency will be predicted according to preset scanning sequency It include: that the image of the present frame is divided into more than one subgraph along horizontal direction;For the same subgraph, The piecemeal for starting the first row of scanning uses from left to right and uses opposite scanning sequency between the piecemeal of adjacent rows;For phase Two adjacent subgraphs, using the opposite scanning sequency of row scan sequence;
Optimum prediction motion vector is chosen from the candidate motion vector of each piecemeal;
Search obtains the motion vector of the image of present frame centered on the optimum prediction motion vector.
Optionally, the candidate motion vector, comprising: airspace candidate motion vector, time domain candidate motion vector, global fortune Dynamic vector and zero motion vector.
It is optionally, described that optimum prediction motion vector is chosen from the candidate motion vector of each piecemeal, comprising:
Calculate the corresponding absolute difference of each candidate motion vector and, and by the fortune of each candidate motion vector and surrounding piecemeal The product of difference and default weight coefficient between dynamic vector is as penalty term;
Corresponding absolute difference is chosen from the candidate motion vector field and is sweared with the smallest Candidate Motion of the sum of penalty term Amount is used as the optimum prediction motion vector.
Optionally, the search centered on the optimum prediction motion vector obtains the movement arrow of the image of present frame Amount, comprising:
Using with the distance between the optimum prediction motion vector for first distance 8 motion vectors as first group of fortune Dynamic vector, using with the distance between the optimum prediction motion vector for second distance 8 motion vectors as second group of fortune Dynamic vector;
Respectively to the corresponding absolute difference of each motion vector computation in first group of motion vector and second group of motion vector With with penalty term;
Chosen from first group of motion vector and second group of motion vector respectively absolute difference and with the sum of penalty term most Small motion vector is as first optimal motion vector sum the second optimal motion vector;
When determining the first optimal motion vector or the second optimal motion vector and the optimal motion vector When identical, using the optimum prediction motion vector as the motion vector of the image of the present frame;
When determine the second optimal motion vector described in the first optimal motion vector sum with the optimal motion vector It is not identical, and the second optimal motion vector described in the first optimal motion vector sum is located at the optimum prediction motion vector When surface, underface, front-left or front-right, from a distance from the first optimal motion vector be the first distance 8 motion vectors in, in 5 motion vectors in addition to first group of motion vector, choose corresponding absolute difference and with The smallest motion vector of the sum of penalty term is as third optimal motion vector, from a distance from the second optimal motion vector In 5 motion vectors in 8 motion vectors of the second distance in addition to second group of motion vector, choose corresponding Absolute difference and with the smallest motion vector of the sum of penalty term as the 4th optimal motion vector;
When determine the second optimal motion vector described in the first optimal motion vector sum with the optimal motion vector It is not identical, and the second optimal motion vector described in the first optimal motion vector sum is non-positioned at the optimum prediction motion vector Surface, underface, front-left or when front-right, from be at a distance from the first optimal motion vector described first away from From 8 motion vectors in, chosen in 3 motion vectors in addition to first group of motion vector corresponding absolute difference and with The smallest motion vector of the sum of penalty term as the third optimal motion vector, from the second optimal motion vector away from From selection pair in 3 motion vectors in 8 motion vectors for the second distance in addition to second group of motion vector The absolute difference answered and with the smallest motion vector of the sum of penalty term as the 4th optimal motion vector;
Chosen from the 4th optimal motion vector described in the third optimal motion vector sum absolute difference and with punishment The sum of item motion vector of the lesser motion vector as the image of present frame.
Optionally, the first distance is 1, and the second distance is 3.
The embodiment of the invention also provides a kind of true motion estimation device, described device includes:
Blocking unit, suitable for the image of present frame is divided into multiple piecemeals;
Predicting unit, it is described suitable for will predict the candidate motion vector of each piecemeal according to preset scanning sequency Preset scanning sequency includes: that the image of the present frame is divided into more than one subgraph along horizontal direction;It is right In the same subgraph, the piecemeal for starting the first row of scanning is used from left to right and is used on the contrary between the piecemeal of adjacent rows Scanning sequency;For two adjacent subgraphs, using the opposite scanning sequency of row scan sequence;
Selection unit, suitable for choosing optimum prediction motion vector from the candidate motion vector of each piecemeal;
Search unit, suitable for searching for the movement arrow for obtaining the image of present frame centered on the optimum prediction motion vector Amount.
Optionally, the candidate motion vector, comprising: airspace candidate motion vector, time domain candidate motion vector, global fortune Dynamic vector and zero motion vector.
Optionally, the selection unit be suitable for calculating the corresponding absolute difference of each candidate motion vector and, and by each time Select the product of the difference and default weight coefficient between motion vector and the motion vector of surrounding piecemeal as penalty term;From described Corresponding absolute difference is chosen in candidate motion vector field and with the smallest candidate motion vector of the sum of penalty term as described optimal Predicted motion vector.
Optionally, described search unit is suitable for be first distance with the distance between the optimum prediction motion vector 8 motion vectors will be the 8 of second distance with the distance between the optimum prediction motion vector as first group of motion vector A motion vector is as second group of motion vector;Respectively to each movement in first group of motion vector and second group of motion vector Vector calculates corresponding absolute difference and and penalty term;It is chosen from first group of motion vector and second group of motion vector respectively Absolute difference and with the smallest motion vector of the sum of penalty term as first optimal motion vector sum the second optimal motion vector;When true It, will be described when the fixed first optimal motion vector or the second optimal motion vector identical as the optimal motion vector Motion vector of the optimum prediction motion vector as the image of the present frame;When determining the first optimal motion vector sum institute It is not identical as the optimal motion vector to state the second optimal motion vector, and second described in the first optimal motion vector sum When optimal motion vector is located at surface, underface, front-left or the front-right of the optimum prediction motion vector, from institute State the first optimal motion vector distance be the first distance 8 motion vectors in addition to first group of motion vector 5 motion vectors in, choose corresponding absolute difference and with the smallest motion vector of the sum of penalty term as third optimal motion Vector, from a distance from the second optimal motion vector be the second distance 8 motion vectors in remove described second group In 5 motion vectors except motion vector, choose corresponding absolute difference and with the smallest motion vector conduct of the sum of penalty term 4th optimal motion vector;When determine the second optimal motion vector described in the first optimal motion vector sum with it is described optimal Motion vector is not identical, and the second optimal motion vector described in the first optimal motion vector sum is non-positioned at the optimum prediction When the surface of motion vector, underface, front-left or front-right, from being institute at a distance from the first optimal motion vector It states in 3 motion vectors in 8 motion vectors of first distance in addition to first group of motion vector, chooses corresponding exhausted To difference and with the smallest motion vector of the sum of penalty term as the third optimal motion vector, from second optimal motion The distance of vector is 3 motion vectors in 8 motion vectors of the second distance in addition to second group of motion vector In, choose corresponding absolute difference and with the smallest motion vector of the sum of penalty term as the 4th optimal motion vector;
Chosen from the 4th optimal motion vector described in the third optimal motion vector sum absolute difference and with punishment The sum of item motion vector of the lesser motion vector as the image of present frame.
Optionally, the first distance is 1, and the second distance is 3.
Compared with prior art, technical solution of the present invention has the advantage that
Above-mentioned scheme, when the piecemeal that the image to present frame divides is scanned, for the same subgraph, The piecemeal for starting the first row of scanning uses from left to right and uses opposite scanning sequency between the piecemeal of adjacent rows;For phase Two adjacent subgraphs, using the opposite scanning sequency of row scan sequence, in this way, both having existed under upper in same frame image Scanning and scanning from left to right, there is also block scan sequences from bottom to up and from right to left, can be from four direction Motion vector is restrained, therefore, convergent speed can be accelerated, and improve the accuracy of true motion estimation.
Further, when choosing optimum prediction motion vector in the candidate motion vector from each piecemeal of present frame, Calculate corresponding absolute difference and on the basis of, increase the difference structure of the motion vector by the motion vector Yu surrounding piecemeal At penalty term, it is ensured that the continuity of motion vector therefore can be with the accuracy of true motion estimation.
Further, in the motion vector for the image for obtaining present frame according to obtained optimum prediction motion-vector search When, the motion vector of surrounding is scanned for centered on the optimum prediction motion vector, it can be to avoid due to optimal pre- It surveys plus the problem that convergence rate caused by a random offset is slow on motion vector, it is thus possible to improve movement is convergent Speed, and then improve the speed of true motion estimation.
Detailed description of the invention
Fig. 1 is the flow chart of one of embodiment of the present invention true motion estimation method;
Fig. 2 is the preset scanning sequency schematic diagram in the embodiment of the present invention;
Fig. 3 is that the image for obtaining present frame is searched for centered on the optimum prediction motion vector in the embodiment of the present invention Motion vector flow chart;
Fig. 4 is the structural schematic diagram of the true motion estimation device in the embodiment of the present invention.
Specific embodiment
To solve the above-mentioned problems in the prior art, technical solution used in the embodiment of the present invention passes through to former frame The corresponding motion vector of mass center for multiple classes that the motion vector of each piecemeal of image is clustered is as present frame figure The global motion vector of picture and output can save operand, and improve the accuracy for the global motion vector being calculated.
To make the above purposes, features and advantages of the invention more obvious and understandable, with reference to the accompanying drawing to the present invention Specific embodiment be described in detail.
Fig. 1 shows the flow chart of one of embodiment of the present invention true motion estimation method.As shown in Figure 1 is true Method for estimating may include:
Step S101: the image of present frame is divided into multiple piecemeals.
In specific implementation, the image of present frame can be divided into N*N nonoverlapping piecemeals.Wherein, N is positive whole Number, and can be configured according to the actual needs.
Step S102: the candidate motion vector of each piecemeal is predicted according to preset scanning sequency.
In specific implementation, after obtaining each piecemeal, each piecemeal can be matched with reference frame, to measure in advance To the candidate motion vector of each piecemeal.Wherein, when being matched each piecemeal with reference frame, the scanning of each piecemeal is suitable Sequence, namely the sequence of the candidate vector of each piecemeal is predicted, the motion vector of each piecemeal is rapidly converged to really Movement have important influence.
In an embodiment of the present invention, it in order to improve the convergent speed of prediction, can be predicted using following scanning sequencies Obtain the motion vector of each piecemeal:
It is possible, firstly, to which the image of present frame is divided into several subgraphs along horizontal direction.Wherein, to current When the image of frame carries out the division of subgraph, the number of the subgraph divided can be configured according to the actual needs, example It such as, is 1,2,4 etc..When the image of present frame to be divided into 2 or more subgraphs, due to the size of on piece memory capacity It is directly proportional to the width of subgraph to be processed, therefore, it is possible to reduce the memory capacity of required on piece.
But it is to be herein pointed out the same piecemeal can only belong to a subgraph when carrying out the division of subgraph Picture, and the different piece of a piecemeal cannot be divided into different subgraphs.
After division obtains corresponding subgraph, for the same subgraph, the piecemeal for starting the first row of scanning is adopted With using opposite scanning sequency from left to right and between the piecemeal of adjacent rows;For two adjacent subgraphs, swept using row Retouch the opposite scanning sequency of sequence.Wherein, row scan sequence here refers to, the scanning between row and row in vertical direction Sequentially.For example, one of subgraph can be suitable using row scanning from top to bottom for two adjacent subgraphs Sequence, and another subgraph can be using row scan sequence from bottom to up.
For example, shown in Figure 2, for the subgraph 201 on 200 left side of dotted line, using under upper and with a line Piecemeal is scanned using sequence from left to right, for the subgraph 202 on 200 the right of dotted line, then using from bottom to up and together The piecemeal of a line is scanned using sequence from right to left.Meanwhile subgraph 201 and subgraph 200 start the first of scanning The scanning direction of capable piecemeal is identical, i.e., from left to right.Certainly, the scanning between adjacent subgraph 201 and subgraph 202 is suitable Sequence also can be interchanged, as long as the scanning sequency of the piecemeal of the first row is from left to right when scanning.
Above-mentioned scanning sequency also has so that both there is scanning from top to bottom and from left to right in the image of present frame Scanning from bottom to up and from right to left can allow motion vector to restrain along four direction up and down in this way, because This, can be improved the convergence rate of motion vector, and then promote the speed of true motion estimation.
In specific implementation, candidate described in the motion vector of each piecemeal obtained according to above-mentioned scanning sequency prediction transports Dynamic vector C may include the airspace candidate motion vector C of corresponding sub-blockS, time domain candidate motion vector CT, global motion vector CG With zero motion vector C0, it may be assumed that
C={ CS, CT, CG, C0} (1)
Wherein, it is expert at current block using from left to right, subgraph where current block is using row scanning from top to bottom For sequence, zero motion vector C0For detecting static scene;Global motion vector CGFor improving the piecemeal of current block and surrounding The inconsistent situation of movement;Airspace candidate motion vector CS, completed around estimation using in same image The motion vector of block, it may be assumed that
Time domain candidate motion vector CT, using the motion vector of the piecemeal around current block in previous frame image, it may be assumed that
Step S103: optimum prediction motion vector is chosen from the candidate motion vector of each piecemeal.
It in specific implementation, can be by the way of certain from each after obtaining the candidate motion vector of each piecemeal Optimal motion vector is chosen in the candidate motion vector of a piecemeal.
In an embodiment of the present invention, can calculate first the corresponding absolute difference of candidate motion vector of each piecemeal with and The sum of penalty term, it may be assumed that
Wherein, E indicate the corresponding absolute difference of the candidate motion vector of current piecemeal with and the sum of penalty term, SAD (fc(x), fr(x+MVp)) indicate the corresponding absolute difference that the reference position being directed toward using the candidate motion vector of current piecemeal is calculated With λ ∑i∈C||MVi-MVp| | indicate that the corresponding penalty term of the candidate motion vector of current piecemeal (can also be using other names Claim, such as compensation term, adjustment item), i.e., multiply with the difference of the candidate motion vector of the piecemeal of surrounding and preset weight coefficient Product.Wherein, the weight coefficient λ that sets can change with each piecemeal, or fixed numerical value, the present invention to this not It is restricted.
In specific implementation, as the corresponding E of the candidate motion vector that each piecemeal is calculated using formula (4), just The candidate vector of the smallest piecemeal of E value can therefrom be chosen as the optimum prediction candidate vector, it may be assumed that
Wherein, MVpredIndicate the optimum prediction candidate motion vector.
It is to be herein pointed out can also be transported using others modes from the candidate of each piecemeal of the image of present frame Optimum prediction motion vector is chosen in dynamic vector, those skilled in the art can select according to the actual needs, herein With no restrictions.
Step S104: search obtains the motion vector of the image of present frame centered on the optimum prediction motion vector.
In specific implementation, when selection optimum prediction motion vector in the candidate motion vector from each piecemeal of present frame When, centered on the optimum prediction motion vector, by the motion vector searched for around the optimum prediction motion vector, and Finally obtain the motion vector of the image of present frame.
Below in conjunction with Fig. 3 to search obtains and works as centered on the optimum prediction motion vector in the embodiment of the present invention The process of the motion vector of the image of previous frame is further described in detail.
Step S301: the distance between search and the optimum prediction motion vector are 8 motion vectors of first distance As first group of motion vector.
In specific implementation, it is assumed that first distance d, optimum prediction motion vector are (X, Y), then, with optimum prediction Motion vector is that 8 motion vectors that the distance of (X, Y) is first distance d can be expressed as (X ± d, Y ± d).
Step S302: the first optimal motion vector is chosen from first group of motion vector.
In specific implementation, it can equally be chosen from first group of motion vector using formula (4) corresponding absolute Difference and with the smallest motion vector of the sum of penalty term as the first optimal motion vector.
Step S303: judge whether the first optimal motion vector is identical as the optimum prediction motion vector;When sentencing Disconnected result is when being, step S304 can be executed, conversely, can then execute step S305.
Step S304: it is exported the optimum prediction motion vector as the motion vector of the image of present frame.
In specific implementation, when determining that the first optimal motion vector is identical as the optimum prediction motion vector namely two When person is overlapped, it can be exported the optimum prediction motion vector as the motion vector of the image of present frame.
Step S305: judge the first optimal motion vector whether be located at the optimum prediction motion vector just on Side, underface, front-left or front-right;When the judgment result is yes, step S306 can be executed;Conversely, can then execute Step S307.
In specific implementation, when judging that the first optimal motion vector is not overlapped with the optimum prediction motion vector When, it can be determined that whether the first optimal motion vector is located at the surface of the optimum prediction motion vector, underface, just Left or front-right.
Step S306: from the distance between the first optimal motion vector in 8 motion vectors of first distance, In 5 motion vectors in addition to the motion vector in first motion vector set, third optimal motion vector is chosen.
In specific implementation, when determine the first optimal motion vector be located at the optimum prediction motion vector just on It, can be from being first distance and non-at a distance from the first optimal motion vector when side, underface, front-left or front-right In 5 motion vectors in first motion vector set, choose corresponding absolute difference and with the smallest movement of the sum of penalty term Vector, as the second optimal motion vector.
Step S307: from the distance between the first optimal motion vector in 8 motion vectors of first distance, In 3 motion vectors in addition to the motion vector in first motion vector set, the third optimal motion vector is chosen.
In specific implementation, when determining that the first optimal motion vector is not located at the optimum prediction motion vector When surface, underface, front-left or front-right, can from a distance from the first optimal motion vector be first distance And in 3 motion vectors of non-first motion vector set, choose corresponding absolute difference and with the smallest fortune of the sum of penalty term Dynamic vector, as the second optimal motion vector.
While executing above-mentioned step S301~step S307, following step S308~step S315 is executed:
Step S308: the distance between search and the optimum prediction motion vector are 8 motion vectors of second distance As second group of motion vector.
Step S309: the second optimal motion vector is chosen from second group of motion vector.
Step S310: judge whether the second optimal motion vector is identical as the optimum prediction motion vector;When sentencing Disconnected result is when being, step S304 can be executed, conversely, can then execute step S305.
Step S311: it is exported the optimum prediction motion vector as the motion vector of the image of present frame.
Step S312: judge the second optimal motion vector whether be located at the optimum prediction motion vector just on Side, underface, front-left or front-right;When the judgment result is yes, step S313 can be executed;Conversely, can then execute Step S314.
Step S313: from the distance between the second optimal motion vector in 8 motion vectors of second distance, In 5 motion vectors in addition to the motion vector in second motion vector set, the 4th optimal motion vector is chosen.
Step S314: from the distance between the second optimal motion vector in 8 motion vectors of second distance, In 3 motion vectors in addition to the motion vector in second motion vector set, the 4th optimal motion vector is chosen.
It is to be herein pointed out step S308~step S314 and step S301~step S307 execute one-to-one correspondence, And the treatment process of corresponding step is similar, this will not be repeated here.
Step S315: the absolute difference is chosen from the 4th candidate motion vector described in the third optimal motion vector sum With the motion vector with the lesser motion vector of the sum of penalty term as the image of present frame.
It in specific implementation, can be from the two when obtaining third optimal motion the 4th optimal motion vector of vector sum Choosing matching degree is higher used as the motion vector of the image of present frame to be exported.
In an embodiment of the present invention, the movement arrow of third optimal motion vector the 4th can be equally calculated using formula (4) Corresponding E is measured, and therefrom chooses the corresponding third optimal motion vector of smaller E value or the 4th optimal motion vector as current The motion vector memory of the image of frame exports.
In an embodiment of the present invention, the first distance is 1, and the second distance is 3.
Fig. 4 shows the structural schematic diagram of one of embodiment of the present invention true motion estimation device.As shown in Figure 4 True motion estimation device 400, may include blocking unit 401, predicting unit 402, selection unit 403 and search unit 404, Wherein:
Blocking unit 401, suitable for the image of present frame is divided into multiple piecemeals.
Predicting unit 402, suitable for will predict the candidate motion vector of each piecemeal, institute according to preset scanning sequency Stating preset scanning sequency includes: that the image of the present frame is divided into more than one subgraph along horizontal direction; For the same subgraph, the piecemeal for starting the first row of scanning is opposite using using from left to right and between the piecemeal of adjacent rows Scanning sequency;For two adjacent subgraphs, using the opposite scanning sequency of row scan sequence.
In specific implementation, the candidate motion vector may include: airspace candidate motion vector, time domain Candidate Motion arrow Amount, global motion vector and zero motion vector.
Selection unit 403, suitable for choosing optimum prediction motion vector from the candidate motion vector of each piecemeal.
In specific implementation, the selection unit 403 be suitable for calculating the corresponding absolute difference of each candidate motion vector and, and Using the product of difference and default weight coefficient between each candidate motion vector and the motion vector of surrounding piecemeal as punishment ?;Chosen from the candidate motion vector field corresponding absolute difference and with the smallest candidate motion vector conduct of the sum of penalty term The optimum prediction motion vector.
Search unit 404, suitable for searching for the fortune for obtaining the image of present frame centered on the optimum prediction motion vector Dynamic vector.
In specific implementation, described search unit 404 be suitable for will be with the distance between the optimum prediction motion vector 8 motion vectors of first distance will be with the distance between the optimum prediction motion vector as first group of motion vector 8 motion vectors of second distance are as second group of motion vector;Respectively to first group of motion vector and second group of motion vector In the corresponding absolute difference of each motion vector computation and and penalty term;Respectively from first group of motion vector and second group of fortune Absolute difference and optimal as the first optimal motion vector sum second with the smallest motion vector of the sum of penalty term is chosen in dynamic vector Motion vector;When determining the first optimal motion vector or the second optimal motion vector and the optimal motion vector When identical, using the optimum prediction motion vector as the motion vector of the image of the present frame;When determining described first most Excellent motion vector and the second optimal motion vector be not identical as the optimal motion vector, and first optimal motion Second optimal motion vector described in vector sum be located at the surface of the optimum prediction motion vector, underface, front-left or When front-right, from be at a distance from the first optimal motion vector the first distance 8 motion vectors in except described the In 5 motion vectors except one group of motion vector, choose corresponding absolute difference and with the smallest motion vector of the sum of penalty term As third optimal motion vector, sweared from 8 movements at a distance from the second optimal motion vector being the second distance In 5 motion vectors in amount in addition to second group of motion vector, choose corresponding absolute difference and with the sum of penalty term most Small motion vector is as the 4th optimal motion vector;When determining the second optimal motion described in the first optimal motion vector sum Vector is not identical as the optimal motion vector, and the second optimal motion vector described in the first optimal motion vector sum is non- When positioned at the surface of the optimum prediction motion vector, underface, front-left or front-right, from the described first optimal fortune The distance of dynamic vector is 3 movements arrow in 8 motion vectors of the first distance in addition to first group of motion vector In amount, corresponding absolute difference is chosen and with the smallest motion vector of the sum of penalty term as the third optimal motion vector, from With at a distance from the second optimal motion vector be the second distance 8 motion vectors in remove second group of motion vector Except 3 motion vectors in, choose corresponding absolute difference and optimal as the 4th with the smallest motion vector of the sum of penalty term Motion vector;Chosen from the 4th optimal motion vector described in the third optimal motion vector sum absolute difference and with punishment The sum of item motion vector of the lesser motion vector as the image of present frame.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can store in computer readable storage medium, and storage is situated between Matter may include: ROM, RAM, disk or CD etc..
The method and system of the embodiment of the present invention are had been described in detail above, the present invention is not limited thereto.Any Field technical staff can make various changes or modifications without departing from the spirit and scope of the present invention, therefore guarantor of the invention Shield range should be defined by the scope defined by the claims..

Claims (10)

1. a kind of true motion estimation method characterized by comprising
The image of present frame is divided into multiple piecemeals;
The candidate motion vector of each piecemeal is predicted according to preset scanning sequency, the preset scanning sequency includes: The image of the present frame is divided into 2 or more subgraphs along horizontal direction;
For the same subgraph, the piecemeal for starting the first row of scanning uses to be used from left to right and between the piecemeal of adjacent rows Opposite scanning sequency;For two adjacent subgraphs, using the opposite scanning sequency of row scan sequence, above-mentioned scanning is suitable Sequence can be improved the speed of true motion estimation so that motion vector is restrained along multiple directions;
Optimum prediction motion vector is chosen from the candidate motion vector of each piecemeal;
Search obtains the motion vector of the image of present frame centered on the optimum prediction motion vector.
2. true motion estimation method according to claim 1, which is characterized in that the candidate motion vector, comprising: empty Domain candidate motion vector, time domain candidate motion vector, global motion vector and zero motion vector.
3. true motion estimation method according to claim 1, which is characterized in that the candidate from each piecemeal Optimum prediction motion vector is chosen in motion vector, comprising:
Calculate the corresponding absolute difference of each candidate motion vector and, and the movement of each candidate motion vector and surrounding piecemeal is sweared The product of difference and default weight coefficient between amount is as penalty term;
Corresponding absolute difference is chosen from the candidate motion vector field and is made with the smallest candidate motion vector of the sum of penalty term For the optimum prediction motion vector.
4. true motion estimation method according to claim 3, which is characterized in that described moved with the optimum prediction is sweared Search obtains the motion vector of the image of present frame centered on amount, comprising:
It is sweared with the distance between the optimum prediction motion vector for 8 motion vectors of first distance as first group of movement Amount is sweared with the distance between the optimum prediction motion vector for 8 motion vectors of second distance as second group of movement Amount;
Respectively in first group of motion vector and second group of motion vector the corresponding absolute difference of each motion vector computation and with Penalty term;
Absolute difference and the smallest with the sum of penalty term is chosen from first group of motion vector and second group of motion vector respectively Motion vector is as first optimal motion vector sum the second optimal motion vector;
When determining that the first optimal motion vector or the second optimal motion vector are identical as the optimal motion vector When, using the optimum prediction motion vector as the motion vector of the image of the present frame;
When determine the second optimal motion vector described in the first optimal motion vector sum with the optimal motion vector not phase Together, and the second optimal motion vector described in the first optimal motion vector sum be located at the optimum prediction motion vector just on When side, underface, front-left or front-right, from a distance from the first optimal motion vector be the first distance 8 In 5 motion vectors in a motion vector in addition to first group of motion vector, choose corresponding absolute difference and with punishment The sum of the smallest motion vector as third optimal motion vector, from being described at a distance from the second optimal motion vector In 5 motion vectors in 8 motion vectors of second distance in addition to second group of motion vector, choose corresponding absolute Difference and with the smallest motion vector of the sum of penalty term as the 4th optimal motion vector;
When determine the second optimal motion vector described in the first optimal motion vector sum with the optimal motion vector not phase Together, and the second optimal motion vector described in the first optimal motion vector sum it is non-be located at the optimum prediction motion vector just When top, underface, front-left or front-right, from being the first distance at a distance from the first optimal motion vector In 8 motion vectors, chosen in 3 motion vectors in addition to first group of motion vector corresponding absolute difference and with punishment The sum of the smallest motion vector as the third optimal motion vector, be from a distance from the second optimal motion vector In 3 motion vectors in 8 motion vectors of the second distance in addition to second group of motion vector, choose corresponding Absolute difference and with the smallest motion vector of the sum of penalty term as the 4th optimal motion vector;
Chosen from the 4th optimal motion vector described in the third optimal motion vector sum absolute difference and with penalty term it Motion vector with lesser motion vector as the image of present frame.
5. true motion estimation method according to claim 4, which is characterized in that the first distance is 1, described second Distance is 3.
6. a kind of true motion estimation device characterized by comprising
Blocking unit, suitable for the image of present frame is divided into multiple piecemeals;
Predicting unit, it is described preset suitable for predicting the candidate motion vector of each piecemeal according to preset scanning sequency Scanning sequency includes: the subgraph that the image of the present frame is divided into 2 or more along horizontal direction;For same Subgraph, the piecemeal for starting the first row of scanning use from left to right and use opposite scanning suitable between the piecemeal of adjacent rows Sequence;For two adjacent subgraphs, using the opposite scanning sequency of row scan sequence, above-mentioned scanning sequency, so that movement arrow Amount is restrained along multiple directions, can be improved the speed of true motion estimation;
Selection unit, suitable for choosing optimum prediction motion vector from the candidate motion vector of each piecemeal;
Search unit, suitable for searching for the motion vector for obtaining the image of present frame centered on the optimum prediction motion vector.
7. true motion estimation device according to claim 6, which is characterized in that the candidate motion vector, comprising: empty Domain candidate motion vector, time domain candidate motion vector, global motion vector and zero motion vector.
8. true motion estimation device according to claim 6, which is characterized in that the selection unit is suitable for calculating each The corresponding absolute difference of candidate motion vector and, and by the difference between each candidate motion vector and the motion vector of surrounding piecemeal Product with default weight coefficient is as penalty term;Chosen from the candidate motion vector field corresponding absolute difference and with punishment The smallest candidate motion vector of the sum of item is as the optimum prediction motion vector.
9. true motion estimation device according to claim 8, which is characterized in that described search unit be suitable for will with it is described The distance between optimum prediction motion vector is 8 motion vectors of first distance as first group of motion vector, will with it is described The distance between optimum prediction motion vector is 8 motion vectors of second distance as second group of motion vector;Respectively to The corresponding absolute difference of each motion vector computation and and penalty term in one group of motion vector and second group of motion vector;Respectively from Absolute difference is chosen in first group of motion vector and second group of motion vector and is made with the smallest motion vector of the sum of penalty term For first optimal motion vector sum the second optimal motion vector;When determining the first optimal motion vector or described second most When excellent motion vector is identical as the optimal motion vector, using the optimum prediction motion vector as the image of the present frame Motion vector;When determine the second optimal motion vector described in the first optimal motion vector sum with the optimal motion swear Amount is not identical, and the second optimal motion vector described in the first optimal motion vector sum is located at the optimum prediction motion vector Surface, underface, front-left or when front-right, from be at a distance from the first optimal motion vector described first away from From 8 motion vectors in, in 5 motion vectors in addition to first group of motion vector, choose corresponding absolute difference and With the smallest motion vector of the sum of penalty term as third optimal motion vector, from a distance from the second optimal motion vector It is corresponded to be chosen in 5 motion vectors in 8 motion vectors of the second distance in addition to second group of motion vector Absolute difference and with the smallest motion vector of the sum of penalty term as the 4th optimal motion vector;When determining the described first optimal fortune Dynamic vector and the second optimal motion vector be not identical as the optimal motion vector, and the first optimal motion vector It is non-positioned at the surface of the optimum prediction motion vector, underface, front-left or just with the second optimal motion vector When right, from a distance from the first optimal motion vector be the first distance 8 motion vectors in, remove described first Group motion vector except 3 motion vectors in choose corresponding absolute difference and with the smallest motion vector conduct of the sum of penalty term The third optimal motion vector is sweared from 8 movements at a distance from the second optimal motion vector being the second distance Corresponding absolute difference and minimum with the sum of penalty term is chosen in 3 motion vectors in amount in addition to second group of motion vector Motion vector as the 4th optimal motion vector;
Chosen from the 4th optimal motion vector described in the third optimal motion vector sum absolute difference and with penalty term it Motion vector with lesser motion vector as the image of present frame.
10. true motion estimation device according to claim 9, which is characterized in that the first distance is 1, described the Two distances are 3.
CN201510574175.8A 2015-09-10 2015-09-10 True motion estimation method and device Active CN106534858B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510574175.8A CN106534858B (en) 2015-09-10 2015-09-10 True motion estimation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510574175.8A CN106534858B (en) 2015-09-10 2015-09-10 True motion estimation method and device

Publications (2)

Publication Number Publication Date
CN106534858A CN106534858A (en) 2017-03-22
CN106534858B true CN106534858B (en) 2019-09-06

Family

ID=58346140

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510574175.8A Active CN106534858B (en) 2015-09-10 2015-09-10 True motion estimation method and device

Country Status (1)

Country Link
CN (1) CN106534858B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108810317B (en) * 2017-05-05 2021-03-09 展讯通信(上海)有限公司 True motion estimation method and device, computer readable storage medium and terminal
EP3780608A4 (en) 2018-04-02 2021-12-01 SZ DJI Technology Co., Ltd. Image processing method and image processing device
WO2019192170A1 (en) * 2018-04-02 2019-10-10 深圳市大疆创新科技有限公司 Video image processing method and device
CN110933414B (en) * 2018-06-29 2022-07-29 杭州海康威视数字技术股份有限公司 Motion information candidate list construction method and device and readable storage medium
WO2020181507A1 (en) * 2019-03-12 2020-09-17 北京大学 Image processing method and apparatus
CN110719489B (en) * 2019-09-18 2022-02-18 浙江大华技术股份有限公司 Motion vector correction method, motion vector prediction method, motion vector encoding device, and storage device
CN111726555B (en) * 2020-06-04 2021-11-23 上海顺久电子科技有限公司 Display device, motion estimation method and video processing method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104811726A (en) * 2015-04-24 2015-07-29 宏祐图像科技(上海)有限公司 Method for selecting candidate motion vectors of motion estimation in frame rate conversion process

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1689192A3 (en) * 2005-02-04 2011-10-26 Thomson Licensing Method and device for scanning in a data frame
KR101377527B1 (en) * 2008-10-14 2014-03-25 에스케이 텔레콤주식회사 Method and Apparatus for Encoding and Decoding Motion Vector in Plural Number of Reference Pictures and Video Encoding/Decoding Method and Apparatus Using Same
US20110026596A1 (en) * 2009-07-28 2011-02-03 Wei Hong Method and System for Block-Based Motion Estimation for Motion-Compensated Frame Rate Conversion
KR101671460B1 (en) * 2009-09-10 2016-11-02 에스케이 텔레콤주식회사 Motion Vector Coding Method and Apparatus and Video Coding Method and Apparatus by Using Same
US20120113326A1 (en) * 2010-11-04 2012-05-10 Stmicroelectronics, Inc. System and method for detecting motion vectors in a recursive hierarchical motion estimation system using a non-rasterized scan

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104811726A (en) * 2015-04-24 2015-07-29 宏祐图像科技(上海)有限公司 Method for selecting candidate motion vectors of motion estimation in frame rate conversion process

Also Published As

Publication number Publication date
CN106534858A (en) 2017-03-22

Similar Documents

Publication Publication Date Title
CN106534858B (en) True motion estimation method and device
CN110213590B (en) Method and equipment for acquiring time domain motion vector, inter-frame prediction and video coding
TWI731363B (en) Efficient affine merge motion vector derivation
CN104539963B (en) The method performed by video decoder
JP5877469B2 (en) Object tracking using moment and acceleration vectors in motion estimation systems
US10341679B2 (en) Encoding system using motion estimation and encoding method using motion estimation
KR101217627B1 (en) Method and apparatus for estimating motion vector based on block
US20110050993A1 (en) Motion estimating method and image processing apparatus
CN112292861B (en) Sub-pixel accurate correction method based on error surface for decoding end motion vector correction
CN103338377A (en) Method for confirming optimal motion vector in motion estimation
CN108076347A (en) A kind of acquisition methods and device for encoding starting point
US20150110190A1 (en) Method and apparatus for motion estimation
EP3596698B1 (en) Motion estimation method and apparatus for plurality of frames
KR20050097936A (en) Efficient predictive image parameter estimation
US20130235274A1 (en) Motion vector detection device, motion vector detection method, frame interpolation device, and frame interpolation method
JP2008504786A (en) Motion compensation by video mode detection
KR100969420B1 (en) Frame rate conversion method
CN107124617A (en) The generation method and system of random vector in motion estimation motion compensation
CN105915835A (en) Frame frequency lifting method realized by hardware
Blume et al. Segmentation in the loop: an iterative object-based algorithm for motion estimation
CN104394417A (en) Method for acquiring parallax vector in multi-view video coding
KR20080107668A (en) Method for motion estimation based on image block and apparatus thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200604

Address after: 8-07, building 6, ronghuiyuan, airport economic core area, Shunyi District, Beijing

Patentee after: Xin Xin finance leasing (Beijing) Co.,Ltd.

Address before: 201203 Shanghai city Zuchongzhi road Pudong New Area Zhangjiang hi tech park, Spreadtrum Center Building 1, Lane 2288

Patentee before: SPREADTRUM COMMUNICATIONS (SHANGHAI) Co.,Ltd.

TR01 Transfer of patent right

Effective date of registration: 20201201

Address after: Room 2502, COFCO Plaza, 990 Nanma Road, Nankai District, Tianjin

Patentee after: Xin Xin finance leasing (Tianjin) Co.,Ltd.

Address before: 8-07, building 6, ronghuiyuan, airport economic core area, Shunyi District, Beijing

Patentee before: Xin Xin finance leasing (Beijing) Co.,Ltd.

TR01 Transfer of patent right
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20170322

Assignee: SPREADTRUM COMMUNICATIONS (SHANGHAI) Co.,Ltd.

Assignor: Xin Xin finance leasing (Tianjin) Co.,Ltd.

Contract record no.: X2021110000055

Denomination of invention: Real motion estimation method and device

Granted publication date: 20190906

License type: Exclusive License

Record date: 20211227

EE01 Entry into force of recordation of patent licensing contract
TR01 Transfer of patent right

Effective date of registration: 20230712

Address after: 201203 Shanghai city Zuchongzhi road Pudong New Area Zhangjiang hi tech park, Spreadtrum Center Building 1, Lane 2288

Patentee after: SPREADTRUM COMMUNICATIONS (SHANGHAI) Co.,Ltd.

Address before: Room 2502, COFCO Plaza, 990 Nanma Road, Nankai District, Tianjin 300100

Patentee before: Xin Xin finance leasing (Tianjin) Co.,Ltd.

TR01 Transfer of patent right