A Bayer dithering algorithm is used to
reduce the number of colors (or shades of gray) in the image. Note that setting the output channel
depth to 1 will reduce the image to monochrome or black-and-white. Also, the output channel depth
must be less than the input channel depth, or an error will result.