FloydSteinberg
Floyd–Steinberg is a dithering algorithm used in image processing to convert grayscale or color images to a limited palette, such as black and white or a small set of colors, while preserving perceived tonal detail. It belongs to the family of error diffusion methods, where the quantization error from each processed pixel is distributed to neighboring pixels that have yet to be processed.
The method processes the image in a raster scan order (left to right, top to bottom). For
Developed by Robert W. Floyd and Louis Steinberg and introduced in 1976, the algorithm became one of