Given an image, quantisation attempts to choose a small number of gray levels or colors which will closely approximate the distribution of pixels in the image. Quantisation is distinct from dithering in that quantisation aims to pick colors from a wide range, then repesent each pixel in the original image by its closest chosen color, whereas dithering starts with a fixed set of colors, and uses patterns of these to approximate the image.