I used the gray level image 'cameraman.tif', which is included in the Matlab image processing toolbox. This seems to be a popular image, since a similar image appears in the chapter on compression we were given in class.
Part a.
Binary quantization by thresholding at the average pixel value.
![]() |
|
| Origianl gray image | Thresholded binary image |
Part b.
Binary quantization using the Floyd-Steinberg error diffusion algorithm as described at
http://www.ece.purdue.edu/~bouman/grad-labs/lab7/pdf/lab.pdf. Note the "worm" patterns that appear in the
binary image.
![]() |
|
| Origianl gray image | Floyd-Steinberg binary image |