1. A method of coding images, the coding of a current image portion comprising the following steps: determining a current descriptor of the current image portion; selecting a prediction function in a tunable group of usable functions; forming a predicted descriptor of the current image portion from at least one other image portion and the selected prediction function; determining a residue representing a difference between the predicted descriptor and the current descriptor; and integrating the residue into an output stream intended for a decoder; wherein the method further comprises: analyzing a coding context; and adapting at least one parameter of the usable function group as a function of the analysis of the coding context.