该算法使用误差扩散来实现抖动,这意味着它将像素的残余量化误差推(添加)到其相邻像素上,以便稍后处理。它根据分布(显示为相邻像素的图)分散债务:

$$ \left[\begin{array}{ccccc} & & * & \frac{7}{16} & \ldots \\ \ldots & \frac{3}{16} & \frac{5}{16} & \frac{1}{16} & \ldots \end{array}\right]

$$

✍️提及

Python非线性光学映射数据压缩算法

https://embed.notionlytics.com/wt/ZXlKM2IzSnJjM0JoWTJWVWNtRmphMlZ5U1dRaU9pSlhiRWhvWlV4VVQxbHNjMlZYV2tKbU9URndaU0lzSW5CaFoyVkpaQ0k2SWpBNE1USXhOV1ZpWm1RMk16UmxNREU0WVRrM05UWXhaakl4TURaak1qSTRJbjA9