Practical predictors

The JPEG standard in the lossless mode uses the following seven predictors:

Predictor no. Prediction
1 a
2 b
3 c
4 a+b-c
5 a+(b-c)/2
6 b+(a-c)/2
7 (a+b)/2

next theory page