Patent ID: 7463755

Claim:
A method of correcting errors in motion vectors due to camera panning, the method comprising steps: (a) identifying a first error block that contains an error motion vector out of a plurality of blocks in a current video frame, each block in the current video frame containing a corresponding motion vector; (b) calculating a first average motion vector value of the motion vectors for all blocks located in a first section of the current video frame, the first section of blocks being all of the blocks in the current video frame that are located before the first error block; (c) identifying a first group of effective motion vectors by counting blocks in the first section of the current video frame having corresponding motion vector values within a first range of values bounded by the first average motion vector value minus a first threshold value and the first average motion vector value plus the first threshold value; (d) calculating a first panning motion vector value to be equal to an average value of the first group of effective motion vectors; and (e) correcting the first error block by setting the motion vector of the first error block to be equal to the first panning motion vector value.