A high-speed motion estimating apparatus for a high-definition television is disclosed including a sub-screen forming portion for forming and outputting sub-search areas and prediction blocks corresponding to the respective steps from an input reference image and prediction image; a motion estimating portion for obtaining and outputting a minimum average absolute error and motion vector having the minimum average absolute error corresponding to one sub-search area from the sub-screen forming portion in the respective steps; and a minimum average absolute error motion vector detecting portion for obtaining and outputting a final motion vector having the minimum average absolute error and minimum average absolute error in the respective steps, using motion vectors having the minimum average absolute error and minimum average absolute error which are the outputs of the motion estimating portion.
|
6. A high-speed motion estimating method comprising the steps of:
(a) setting an initial step size and a sub-search area size, and establishing positions of a set of sub-search areas; (b) detecting a minimum average absolute error and a corresponding motion vector in each sub-search area; (c) detecting an overall minimum average absolute error and a corresponding motion vector from among the minimum average absolute errors of the set of sub-search areas; (d) deciding whether the motion vector corresponding to the overall minimum average absolute error is included in a central sub-search area of the set; (e) upon deciding that the motion vector corresponding to the overall minimum average absolute error is not present in the central sub-search area of the set, setting a next step size, establishing positions of a next set of sub-search areas, setting the position of a central sub-search area of the next set so that the central sub-search area includes the motion vector corresponding to the overall minimum average absolute error, and repeating steps (b)-(d); and (f) upon deciding that the motion vector corresponding to the overall minimum average absolute error is present in the central sub-search area of the set as a result of step (d), outputting the motion vector as a final motion vector.
1. A high-speed motion estimating apparatus for a high-definition television comprising:
a sub-screen forming portion for forming and outputting sub-search areas corresponding to predetermined step sizes from an input reference image and prediction blocks from an input prediction image; a motion estimating portion for comparing the sub-search areas to the prediction blocks for obtaining and outputting a minimum average absolute error and a corresponding motion vector for each compared sub-search area; and a minimum average absolute error motion vector detecting portion for obtaining and outputting a final minimum average absolute error and a corresponding final motion vector, the minimum average absolute error motion vector detecting portion being configured to: (a) detect an overall minimum average absolute error and a corresponding motion vector from among the minimum average absolute errors of a set of sub-search areas; (b) decide whether the motion vector corresponding to the overall minimum average absolute error is included in a central sub-search area of the set; (c) upon deciding that the motion vector corresponding to the overall minimum average absolute error is not included in the central sub-search area of the set, set a next step size, establish positions of a next set of sub-search areas, set the position of a central sub-search area of the next set so that the central sub-search area includes the motion vector corresponding to the overall minimum average absolute error, and repeat steps (a) and (b); and (d) upon deciding that the motion vector corresponding to the overall minimum average absolute error is included in the central sub-search area of the set, output the motion vector as the final motion vector. 3. A high-speed motion estimating apparatus for a high-definition television comprising:
a motion error controller for forming and outputting sub-search areas from input reference images corresponding to predetermined step sizes and prediction blocks from input prediction images; a motion error processing portion for comparing the sub-search areas to the prediction blocks for obtaining minimum average absolute errors and corresponding motion vectors for one or more sub-search areas from the output of said motion error controller, wherein the motion error processing portion outputs a minimum average absolute error and a corresponding motion vector; and a minimum average absolute error motion vector detecting portion for obtaining and outputting a final minimum average absolute error and a corresponding final motion vector, the minimum average absolute error motion vector detecting portion being configured to: (a) detect an overall minimum average absolute error and a corresponding motion vector from among the minimum average absolute errors of a set of sub-search areas; (b) decide whether the motion vector corresponding to the overall minimum average absolute error is included in a central sub-search area of the set; (c) upon deciding that the motion vector corresponding to the overall minimum average absolute error is not included in the central sub-search area of the set, set a next step size, establish positions of a next set of sub-search areas, set the position of a central sub-search area of the next set so that the central sub-search area includes the motion vector corresponding to the overall minimum average absolute error, and repeat steps (a) and (b); and (d) upon deciding that the motion vector corresponding to the overall minimum average absolute error is included in the central sub-search area of the set, output the motion vector as the final motion vector. 2. The high-speed motion estimating apparatus for a high-definition television as claimed in
a sub-search area forming circuit for forming and outputting a sub-search area from the input reference image, the sub-search area corresponding to a predetermined step size; and a prediction block forming circuit for forming and outputting a prediction block from the input prediction image.
4. The high-speed motion estimating apparatus for a high-definition television as claimed in
5. The high-speed motion estimating apparatus for a high-definition television as claimed in
one or more sub-search area forming circuits for forming and outputting the sub-search areas from the input reference image corresponding to the predetermined step sizes; and one or more prediction block forming circuits for forming and outputting the prediction blocks from the input prediction image corresponding to the predetermined step sizes.
|
The present invention relates to a high-speed motion estimating apparatus for a high-definition television and a method therefor, and more particularly, to a high-speed motion estimating apparatus for a high-definition television and a method therefor, which reduces the amount of operation and enhances the precision thereof when a high-speed motion estimating apparatus of a large search area estimates motions.
General motion estimating methods include full search, two-dimension logarithmic search and telescopic search, which will be explained with reference to FIGS. 1A, 1B and 1C.
As shown in FIG. 1A, the full search method obtains errors of a search area 10 taken from a reference frame image while shifting a prediction block 20 to be currently predicted in units of pixel. In this method, the relative coordinates X and Y of a minimum error block 30 having the smallest error among the thus obtained errors are taken using a motion vector, the mixed vector of X-coordinate vector 104 and Y-coordinate vector 105. This full search method performs the most precise search among the several motion search methods. However, if the size of search area 10 and the number of prediction blocks 20 are large, a lot of operations must be involved, requiring long time of operation.
The two-dimension logarithmic search method is to reduce the amount of operation, which is the drawback of the full search method. In this method, the amount of operation is reduced into one several tenths or hundredths, and the time required to perform the operation is reduced to several tenths the original time, as compared with the full search method. Referring to FIG. 1B, errors are obtained interspersely between the respective step sizes on search area 10. The procedure goes to a new step while moving to a position having the smallest error among the errors obtained.
In a new step, its step size is reduced according to the following equation, repeating the above-described process.
dn+1 =log2 (dk is kth step size)
When the step size reaches one pixel interval, search is finished. A position where the minimum error is present in the final step becomes a motion vector.
Though the two-dimension logarithmic search method reduces the amount of operation, as compared with the full search method, the operation precision decreases as the search area becomes large. The telescopic search method is illustrated in FIG. 1C.
Generally, if the distance difference between a prediction frame and reference frame is present, the search area becomes larger in proportion to the frame distance difference, increasing the amount of operations. As shown in FIG. 1C, the telescopic search method is based on the fact that the motion vector between nearby frames is similar. According to this method, the search area does not increase even when the distance difference between frames is present, and a search is performed while moving only as long as the motion vector found in the previous frame.
The telescopic search is useful when there is a distance difference between frames. However, if the motion vectors between nearby frames are not similar, due to, for instance, the change of scene, coping with the change of scene is not prompt. In addition, the amount of movement is detected inaccurately, sharply decreasing the performance.
Meanwhile, a high-speed motion estimating apparatus using such conventional search methods is disadvantageous because it cannot satisfy both reduce the amount of operations and increase precision. Especially, in the case of high-definition television, the increase in the amount of operations and inaccurate detection of motion due to the expansion of the search area are problems to requiring urgent solution.
Therefore, it is an object of the present invention to provide a high-speed motion estimating apparatus and method thereof for a high-definition television in which a small sub-search area is formed around a point, a search target, by jumping as long as a predetermined step size, while maintaining a format similar to the two-dimension logarithmic search method on the whole, and the full search is performed over the sub-search area, reducing the amount of operation and obtaining a precision like the full search method.
To accomplish the object of the present invention, there is provided a high-speed motion estimating apparatus for a high-definition television comprising: a sub-screen forming portion for forming and outputting sub-search areas and prediction blocks corresponding to the respective steps from an input reference image and prediction image; a motion estimating portion for obtaining and outputting a minimum average absolute error and motion vector having the minimum average absolute error corresponding to one sub-search area from the sub-screen forming portion in the respective steps; and a minimum average absolute error motion vector detecting portion for obtaining and outputting a final motion vector having the minimum average absolute error and minimum average absolute error in the respective steps, using motion vectors having the minimum average absolute error and minimum average absolute error which are the outputs of the motion estimating portion.
For the object of the present invention, there is provided a high-speed motion estimating method comprising the steps of: (a) setting an initial step size and sub-search area size, and establishing the position of the respective sub-search areas; (b) detecting a minimum average absolute error and a motion vector having the minimum average absolute error in the respective sub-search areas; (c)detecting the minimum average absolute error and the motion vector having the minimum average absolute error among the minimum average absolute errors of the respective sub-search areas in one step; (d) deciding whether the motion vector having the found minimum average absolute error is included or not in the central sub-search area of the current step; (e) going to the next step if the motion vector having the minimum average absolute error is not present in the central sub-search area of the current step, establishing the next step size, setting the position of the respective sub-search area of the next step, controlling the position of the central sub-search area of the next step, and then going to step (b); and (f) outputting the motion vector having the found minimum average absolute error as the final motion vector, if the motion vector having the minimum average absolute error is present in the central sub-search area of the current step as the result of step (d).
FIGS. 1A, 1B and 1C are diagrams of general motion detecting methods;
FIG. 2 is a diagram of a high-speed motion detection principle of the present invention;
FIG. 3 is a block diagram of one embodiment of a high-speed motion estimating apparatus for high-definition television of the present invention;
FIG. 4 is a block diagram of another embodiment of a high-speed motion estimating apparatus for high-definition television of the present invention; and
FIG. 5 is a flowchart of the high-speed motion detecting method for high-definition television of the present invention.
Hereinafter, preferred embodiments of the present invention will be described with reference to the attached drawings.
The high-speed motion search of the present invention mixes the full search and two-dimension logarithmic search. In this invention, a search is performed interspersely by a predetermined step size, not for the whole search area.
In other words, while the two-dimension logarithmic search performs a search for one point by step size intervals, the high-speed motion search of the present invention forms a small sub-search area 102 around a point, a search target, by jumping as long as a predetermined step size, while maintaining a format similar to the two-dimension logarithmic search method on the whole, and the full search is performed over the sub-search area 102.
The high-speed motion estimating apparatus of the present invention will be explained with reference to FIG. 2, which illustrates a process of estimating motions from step 1 to step 3. First, a whole search area 101 is formed from a reference frame image. Sub-search area 102 is formed by intervals corresponding to step size d1 of step 1.
When search is finished over the overall sub-search area, the center of search moves to a motion vector having minimum average error 105 in sub-search area 103 and forms new sub-search area including 106 error, going to step 2. Here, the hatched block is a sub-search area including the minimum error block. The number contained in the block indicates the n-th step sub-search area. Here, the step size is determined as follows.
dn+1 =f(dn), (dn is nth step size, and f() is an arbitrary reduction function)
Until the fixed minimum error motion vector is included in central sub-search area 104, the above search process is repeated, obtaining a final motion vector.
Referring to FIG. 3, the high-speed motion estimating apparatus of the present invention comprises a sub-screen forming portion 113 having a sub-search area forming circuit 111 for forming and outputting a sub-search area 113a corresponding to the respective steps from an input reference image, and a prediction block forming circuit 112 for forming and outputting a prediction block 113b from an input prediction image. A motion estimating portion 114 is provided for obtaining and outputting minimum average absolute error 114b and motion vector 114a having a minimum average absolute error corresponding to one sub-search area 113a from the sub-search area and prediction block which are the outputs of sub-search area forming circuit 111 and prediction block forming circuit 112. A minimum average absolute error motion vector detecting portion is provided 115 for obtaining and outputting minimum average absolute error 115b, which is the smallest error in the respective step, and motion vector 115a having the smallest minimum average absolute error, using minimum average absolute error 114b and motion vector 114a, which are output from motion estimating portion 114.
In the high-speed motion estimating apparatus for high-definition television of the present invention, sub-search forming circuit 111 makes a sub-search window 113a corresponding to the respective steps from the input reference image. Prediction block forming circuit 112 makes prediction block 113b from the input prediction image. According to sub-search area 113a and prediction block 113b, motion estimating portion 114 obtains and outputs minimum average absolute error 114b corresponding to one sub-search area 113a. This procedure is repeated until the end of one step.
Minimum average absolute error motion vector detecting portion 115 obtains and outputs minimum average absolute error 115b, which is the smallest error in the respective step, and motion vector 115a having the smallest minimum average absolute error, from minimum average absolute error 114b and minimum average absolute error motion vector 114a, which are output from motion estimating portion 114. After one step, the final motion vector 115a having the smallest minimum average absolute error is fed back to sub-screen forming portion 113, to be thereby used as the initialization material of the next step.
The high-speed motion estimating apparatus for high-definition television of FIG. 3 is favorable if the size P×Q of the whole search area is greater than the size p×q of the sub-search area.
FIG. 4 illustrates another embodiment of the high-speed motion estimating apparatus for high-definition television, which is expanded in a parallel structure so as to enable high-speed motion estimation simultaneously in n sub-search areas within one cycle.
Referring to FIG. 4, this embodiment of the present invention comprises a motion error controller 120, motion error processing portion 130, and minimum average absolute error motion vector detecting portion 140.
Motion error controller 120 has n sub-screen forming portions 121. Motion error processing portion 130 has r motion estimating portions 132.
Motion error controller 120 forms sub-search areas and prediction blocks corresponding to the respective steps from the input reference images and prediction images.
Motion error processing portion 130 obtains motion vectors having the minimum average absolute errors and minimum average absolute errors corresponding to n sub-search areas in the respective steps from the output of motion error controller 120, so as to output a motion vector having the minimum average absolute error and minimum average absolute error.
Minimum average absolute error motion vector detecting portion 140 obtains and outputs a final motion vector having the minimum average absolute error and minimum average absolute error in the respective steps, using motion vectors having the minimum average absolute error and minimum average absolute errors which are the outputs of motion error processing portion 130.
After each step, the final motion vector 140a is fed back to motion error controller 120 to construct the sub-blocks for next step.
Similar to sub-screen forming portion 113 of FIG. 3, sub-screen forming portion 121 of FIG. 4 comprises a sub-search area forming circuit 122 for forming and outputting the sub-search areas corresponding to the respective steps from the input reference image, and a prediction block forming circuit 123 for forming and outputting prediction blocks corresponding to the respective steps from the input prediction image.
As described above, the operation of the high-speed motion estimating apparatus of FIG. 4 is similar to that of FIG. 3. The high-speed motion estimating apparatus of FIG. 4 is very useful in high-speed performance of the high-speed estimating apparatus because, in case of motion estimation shown in FIG. 2, one step can be processed for one cycle in the parallel structure of n=9.
Referring to FIG. 5, in step S10, the initial step size d1 and sub-search area size p,q are set, and initialization is performed to establish the position of the respective sub-search areas. In step S20, the minimum average absolute errors and the motion vector having the minimum average absolute error are found in the respective sub-search areas.
In step S30, the minimum average absolute error and the motion vector having the minimum average absolute error are found among the minimum average absolute errors of the respective sub-search areas in one step.
Then, in step S40, it is decided whether the motion vector having the minimum average absolute error is included or not in the central sub-search area of the current step.
In step S40, if the motion vector having the minimum average absolute error is present in the central sub-search area of the current step, the motion vector having the minimum average absolute error is output as the final motion vector in step S50. If not, the procedure goes to the next step, and the next step size dn+1 is established. In step S60, the position of the respective sub-search area of the next step is set and the position of the central sub-search area of the next step is adjusted and other sub-search area is formed. Then, the procedure goes to step S20, repeating steps S20, S30, S40 and S60 until the motion vector having the minimum average absolute error is present in the central sub-search area of the current step.
As described above, employing precision of the full search method and reduction of operation amount of the two-dimension logarithmic search method, the present invention improves precision of search and reduces the operation amount. In addition, the present invention can be utilized for real-time system of high-definition TV encoder, MPEG1, and two-moving image encoder.
Kim, Hyung Suk, Choi, Sang Hoon
Patent | Priority | Assignee | Title |
5926231, | Sep 18 1995 | QUARTERHILL INC ; WI-LAN INC | Method and apparatus for detecting motion vectors based on hierarchical motion estimation |
6148108, | Jan 16 1997 | Kabushiki Kaisha Toshiba | System for estimating motion vector with instant estimation of motion vector |
6542642, | Feb 29 1996 | Canon Kabushiki Kaisha | Image coding process and motion detecting process using bidirectional prediction |
6842483, | Sep 11 2000 | HONG KONG UNIVERSITY OF SCIENCE AND TECHNOLOGY, THE | Device, method and digital video encoder for block-matching motion estimation |
7266151, | Sep 04 2002 | Intel Corporation | Method and system for performing motion estimation using logarithmic search |
7327787, | Nov 20 2000 | Intel Corporation | Method and apparatus for motion estimation |
7933331, | Jul 15 2003 | AVAGO TECHNOLOGIES INTERNATIONAL SALES PTE LIMITED | High quality, low memory bandwidth motion estimation processor |
8345992, | Oct 23 2007 | Hitachi Kokusai Electric Inc | Method and device of image encoding and image processing apparatus |
Patent | Priority | Assignee | Title |
5144429, | Jun 21 1988 | U.S. Philips Corporation | High definition television transmission and reception system with an improved motion estimator and with reduced data throughput |
5502492, | Apr 09 1993 | Daewoo Electronics Co., Ltd. | Motion vector detection apparatus |
5537155, | Apr 29 1994 | Motorola, Inc.; Motorola, Inc | Method for estimating motion in a video sequence |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Aug 16 1995 | LG Electronics Inc. | (assignment on the face of the patent) | / | |||
Aug 19 1995 | KIM, HYNG SUK | L G ELECTRONICS INC | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 007734 | /0205 | |
Aug 19 1995 | CHOI, SANG HOON | L G ELECTRONICS INC | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 007734 | /0205 |
Date | Maintenance Fee Events |
Sep 20 2001 | M183: Payment of Maintenance Fee, 4th Year, Large Entity. |
Sep 16 2005 | M1552: Payment of Maintenance Fee, 8th Year, Large Entity. |
Nov 16 2009 | REM: Maintenance Fee Reminder Mailed. |
Apr 14 2010 | EXP: Patent Expired for Failure to Pay Maintenance Fees. |
Date | Maintenance Schedule |
Apr 14 2001 | 4 years fee payment window open |
Oct 14 2001 | 6 months grace period start (w surcharge) |
Apr 14 2002 | patent expiry (for year 4) |
Apr 14 2004 | 2 years to revive unintentionally abandoned end. (for year 4) |
Apr 14 2005 | 8 years fee payment window open |
Oct 14 2005 | 6 months grace period start (w surcharge) |
Apr 14 2006 | patent expiry (for year 8) |
Apr 14 2008 | 2 years to revive unintentionally abandoned end. (for year 8) |
Apr 14 2009 | 12 years fee payment window open |
Oct 14 2009 | 6 months grace period start (w surcharge) |
Apr 14 2010 | patent expiry (for year 12) |
Apr 14 2012 | 2 years to revive unintentionally abandoned end. (for year 12) |