problem 1: describe, in detail, an algorithm to execute error diffusion on a grayscale image. Your algorithm must take a grayscale image, with eight bits per pixel and transform it to a black and white image, with one bit per pixel, at similar resolution.
problem 2: An inventor generates a display where each pixel can encompass one of three values: White, mid-grey or black. Such a display can be built by, for illustration, by using rotating triangular blocks of painted wood. The figure exhibits the back view of a row of five pixels with the central pixel turning. From left to right the pixels are showing, to the front side: black, black, turning, white, black.
Change your algorithm in part first to handle these three-valued pixels.
problem 3: describe, in detail, the modifications needed to turn the display describeed above into a color display. Your display, via use of a suitable error diffusion algorithm, must be able to display error-diffused versions of 24-bit RGB color images.