Patent ID: 8442335

Claim:
A method for modifying a reference block of reference pixels of a reference image, said modified reference block is dedicated for predicting a block of pixels of a current image, said method comprises: transforming the reference block into a first set of coefficients, modifying the first set of coefficients by help of one or more weights and inverse transforming the modified first set of coefficients, wherein said block is predicted by help of further pixels of the current image, said reference block is predicted by help of further reference pixels of the reference image, said predicted reference block is transformed together with said further reference pixels into a second set of coefficients, said predicted block is transformed together with said further pixels into a third set of coefficients and the weights are determined by help of said second set of coefficients and said third set of coefficients, said method further comprising: testing for a coefficient of the second set whether it exceeds a first threshold and testing for the corresponding coefficient of the third set whether it exceeds a same or different third threshold, if at least one of the tested coefficients does not exceed the corresponding threshold, determining a corresponding weight as being zero, and otherwise, determining the corresponding weight as the quotient of the coefficient from the second set divided by said corresponding coefficient of the third set.