主权项 |
1. A motion estimation method for processing images intended to be inserted, between a preceding original image and a following original image, into a sequence of images, each of the images being divided into a plurality of pixel blocks, and a motion vector being associated with each of the pixel blocks of a processed image, the method comprising, for a current block of an image being processed, the steps of:
selecting spatial motion vectors associated with pixel blocks of the image being processed and/or temporal motion vectors associated with determined pixel blocks of an already processed image; generating candidate motion vectors from the selected motion vectors; calculating, by a processing device, an error for each of the candidate motion vectors; determining a penalty for at least one subset of the candidate motion vectors; electing a motion vector from among the candidate motion vectors based on the error that is calculated and the penalty that is determined; and storing information associating the elected motion vector with the current pixel block, wherein the determining step comprises, for each candidate motion vector of the subset:
calculating a first value corresponding to a value of the pixels of the pixel block in the preceding original image from which that candidate motion vector points to the current block;calculating a second value corresponding to a value of the pixels of the pixel block in the preceding original image from which that candidate motion vector points to the pixel block with which the motion vector is associated, from which the candidate motion vector is generated, is associated; andcomparing the first and second values to determine the penalty with a magnitude corresponding to a difference between the compared first and second values. |