1. A method of processing components of an image for coding or decoding of a sample of the image, the image being composed of at least a first type of component and a second type of component different to the first type of component, wherein samples of the second type of component are predictable from samples of at least the first type of component using a prediction model linking the first type of component to the second type of component, the method comprising: computing at least one parameter value for use in representing, in the prediction model, the link between the first type of component and the second type of component, two intermediate model parameter values being used in computing the at least one parameter value; detecting, whether or not, at least one type of error exists in at least one such computed parameter value of the prediction model and in the case where at least a first type of error is detected; determining at least one of a plurality of different types of error as a function of the values of said two intermediate model parameters, said determining comprising comparing said intermediate model parameter values with at least one predetermined threshold, and depending on the result of said comparison, said determining further comprising determining whether or not the computed parameter value lies in a predetermined range; adapting the at least one such computed parameter value to correct for the error detected depending upon the type of error detected; and predicting at least one sample of the second type from a sample of the first type using the prediction model and the adapted at least one parameter value.