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; 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; adapting the at least one such computed parameter value to correct for the 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.