a method of dynamically adjusting the threshold level of an error diffusion algorithm to selectively control the amount of edge enhancement introduced into the encoded output . the threshold level is selectively modified on a pixel by pixel basis and may be used to increase or decrease the edge enhancement of the output digital image , thus , more closely representing the original detail and edge sharpness of the continuous tone input image .