 Error diffusion

Error diffusion is a type of halftoning in which the quantization residual is distributed to neighboring pixels that have not yet been processed.Its main use is to convert a multi-level image into a binary image, though it has other applications.