Patent ID: 7957468

Claim:
A method for processing motion images, such motion images having a plurality of consecutive frames, and each of said plurality of consecutive frames comprises a plurality of pixels, wherein said process method comprises: receiving in a processor each of said plurality of consecutive frames sequentially; dividing each of said plurality of consecutive frames into a plurality of macro blocks, and for each plurality of macro block there is a first predetermined number of pixels; defining one of said plurality of macro blocks in a pre-frame as a comparing block; calculating a Sum of Absolute Differences (SAD) threshold value by performing SAD computations on said pixels in said comparing block and pixels over image edges within one of said plurality of macro blocks in a searching window of a current frame, wherein said searching window contains a predetermined number of said plurality of macro blocks; calculating a final operation value by performing SAD computations on the pixels in the comparing block and the pixels in a next macro block that have not yet undergone SAD computations within the searching window; wherein, while performing said SAD computations to obtain said final operation value, an ongoing operation value is obtained by summing of SAD values generated when SAD computations are performed on said next macro block; whereby during the SAD computations, if the ongoing operation value becomes greater than or equal to said SAD threshold value, immediately suspending the SAD computations for said next macro block before computing the final operation value; otherwise, updating said SAD threshold value with the final operation value; acquiring a motion vector of the comparing block in each of said current frames and pre-frames according to the SAD threshold value; acquiring a motion track of all frames according to the motion vector of the comparing block in each of said current frames and pre-frames; determining in each of said current frames and pre-frames, whether the angle between the motion vector of the comparing block and the motion track is greater than a predetermined angle; and adjusting parameters of the current frames and pre-frames if, in any one of said current frames and pre-frames, the angle between the motion vector of the comparing block and the motion track that is greater than the predetermined angle, so as to make the motion vector of the comparing block approach the motion track, and to smoothen the motion track.