For grey-scale images, whose pixels contain a single intensity value, a single threshold
must be chosen. For colour images, a separate threshold can be defined for each channel (tocorrespond to a particular colour or to isolate different parts of each channel). In many
applications, colour images are converted to grey scale prior to thresholding for simplicity.
Common variations on simple thresholding are