In a digital image, for each pixel to be thresholded, a threshold is
selected from a set of thresholds. Selection may be based on relative
magnitudes of the thresholds. At least one of the thresholds may be
dynamic, and one of the thresholds may be constant for at least a region
of the image.