1. A computerized method to encode image data comprising: determining a class for a group of pixels in a target frame of image data based on motion vectors associated with the pixels; predicting values for the pixels using a filter assigned to the class and a reference frame; and calculating prediction error values for the predicted values, wherein the filter, motion vectors and prediction error values represent the pixels in the encoded image data.