Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Convert image, increasing apparent color resolution by dithering

`X = dither(RGB,map)`

`X = dither(RGB,map,Qm,Qe)`

`BW = dither(I)`

`dither`

increases the apparent color resolution of an image by
applying Floyd-Steinberg's error diffusion dither algorithm [1].

[1] Floyd, R. W., and L. Steinberg, "An Adaptive Algorithm for
Spatial Gray Scale," *International*
*Symposium Digest of Technical Papers*, Society for Information
Displays, 1975, p. 36.

[2] Lim, Jae S., *Two-Dimensional Signal and Image
Processing*, Englewood Cliffs, NJ, Prentice Hall, 1990, pp.
469–476.

- Image Types
- Reduce the Number of Colors in an Image (Image Processing Toolbox)