Quantization
Capturing a wide dynamic range of brightness levels or colors requires fine quantization. Common is 256 levels of each of red, green and blue.
Segmentation is simplified by having a small number of levels -- provided foreground and background pixels are reliably distinguished by their dark or light value.
Grayscale thresholding is typically to used to reduce the number of quantization levels to 2.