1

In MATLAB, I did lossless predictive coding of standard images by predicting the next sample from previous samples, subtracting the predicted value from the actual one, and encoding the error using Huffman coding. I decoded the errors as well, but now I have an array of errors without knowing how to go back to the original image. How do I predict the values of the original image matrix from these errors?

Just in case this helps, my predictor is of different types (to see which one gives the best result), with X being the actual value of a sample: 1) I take three neighboring values of X, find their average, and subtract them from X to obtain the error. 2) I used the predictor (A+B)/2, where A and B are neighboring values of X, and subtract from X.

And others like that. There's a pretty comprehensive list out there.

Any advice on how to predict the original values at the decoder?

4

1 回答 1

0

如果您的相邻像素是 A 和 B。您的预测器 P 是 P=(A+B)/2。搜索到的像素为 X=P+E。做一些代数,将这些方程解到 X,你将得到你的公式:

X=(A+B)/2+E

根据您对错误的定义,它可能是 X=PE

于 2013-12-14T19:35:20.090 回答