A method of decoding a group of image elements in a frame of an encoded video sequence, said method comprising the steps of: a) providing a first prediction of said group of image elements; b) providing a second prediction of said group of image elements, and calculating a difference between said first prediction and said second prediction based on a basic prediction selected from said first prediction and said second prediction, wherein said basic prediction is selected based on a flag associated with said group in said encoded video sequence or based on predefined data; c) providing an initial first weighting factor; d) generating a first weighting factor comprising multiple factor values by modifying said initial first weighting factor with a factor modifier, each factor value being associated with an image element position in said group of image elements, and said factor values being dependent on their associated relative image element position in said group of image elements; e) providing a second weighting factor, wherein at least one of said initial first weighting factor and said second weighting factor is provided from a look-up table defining multiple different weighting factors based on the calculated difference between said first prediction and said second prediction; f) determining a weighted first prediction based on said first prediction and said first weighting factor; g) determining a second weighted prediction based on said second prediction and said second weighting factor; and h) generating a decoded version of said group of image elements based on said weighted first prediction and said second weighted prediction. a) providing a first prediction of said group of image elements; b) providing a second prediction of said group of image elements, and calculating a difference between said first prediction and said second prediction based on a basic prediction selected from said first prediction and said second prediction, wherein said basic prediction is selected based on a flag associated with said group in said encoded video sequence or based on predefined data; c) providing an initial first weighting factor; d) generating a first weighting factor comprising multiple factor values by modifying said initial first weighting factor with a factor modifier, each factor value being associated with an image element position in said group of image elements, and said factor values being dependent on their associated relative image element position in said group of image elements; e) providing a second weighting factor, wherein at least one of said initial first weighting factor and said second weighting factor is provided from a look-up table defining multiple different weighting factors based on the calculated difference between said first prediction and said second prediction; f) determining a weighted first prediction based on said first prediction and said first weighting factor; g) determining a second weighted prediction based on said second prediction and said second weighting factor; and h) generating a decoded version of said group of image elements based on said weighted first prediction and said second weighted prediction.