How correlation helps in compression

我们两清 提交于 2019-12-10 14:42:22

问题


Hy, I would like to know how correlation between pixels in image helps in compression? Also, why I would like to reduce correlation between pixels to get better compression (I found that information in one literature, but I don't understand it)? My last question is: If correlation is R=0.9, how this information can help in compressing?

Thanks.


回答1:


I'll make an example. Let's say that every pixel is very much correlated with the pixel above it. Instead of compressing the pixel values directly we now compress bottomPixel - topPixel (the delta of the two).

This delta will be very small because of the correlation. I can now use a variable-length encoding like arithmetic or huffman to assign less bits to small deltas and more bits to high deltas. I'll save bits that way because small deltas occur a lot more often.

This example generalizes to lots of cases and models (audio being one of them).



来源:https://stackoverflow.com/questions/14285881/how-correlation-helps-in-compression

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!