1. A method for coding a pixel intensity of a pixel of an image, the method comprising: selecting at least one reference pixel from pixels of the image, wherein the selecting comprises use of respective prediction errors of previously coded pixels; providing a model function that (a) provides a specific prediction method for generating a predicted pixel intensity candidate based on the respective intensity of one or more reference pixels, and (b) uses an adaptive rule for generating the predicted pixel intensity candidate, wherein the adaptive rule is based on intensity characteristics of the reference pixels; setting the predicted pixel intensity candidate for the pixel based on the model function as a predicted pixel intensity; and coding the pixel intensity of the pixel based on the predicted pixel intensity, wherein the coding comprises selecting probability distributions used for entry coding by an entropy coder of a prediction error that is based on a subtraction of the predicted pixel intensity from the pixel intensity of the pixel.