Information About

Floyd-steinberg Dithering




For example, consider this matrix of pixel values:

:
\begin{bmatrix}
0.00 & 0.00 & 0.00 \
0.00 & 1.00 & 0.00 \
0.00 & 0.00 & 0.00
\end{bmatrix}


If the center value is quantized to zero and the error is diffused by the Floyd-Steinberg algorithm, this would be the result:

:
\begin{bmatrix}
0.00 & 0.00 & 0.00 \
0.00 & 0 & 0.44 \
0.19 & 0.31 & 0.06
\end{bmatrix}


Note that the whole algorithm should run In-place instead of accumulating the errors on a separate buffer.


EXTERNAL LINKS