Thresholding, with threshold equal to the pixel value average and error diffusion using Floyd-Dteibeg algorithm

Original grey image
8 bits image( 256* 256)

binarized image
threshold = 123.5

Dither image
Floyd-Steibeg

 


Original color image
24 bits image( 256* 256)

binarized image
threshold = 136.4,127.9,112.4

Dither image
Floyd-Steibeg

© Xiaoru Yuan 2004