Error-diffusion algorithm with edge enhancement

Error diffusion is a popular algorithm for the binarization of continuous-tone images. A modification of the error-diffusion algorithm is shown that introduces an input-dependent threshold into the process. This modification establishes a fast and efficient way to increase or decrease edge enhancement in the algorithm.