Skip to content
Tactiverge

Perception and intelligence

Thresholding and simple classification

Classification means assigning each item to a category. The simplest classifier is a threshold: every pixel brighter than a chosen value is labelled object and every other pixel background, producing a binary mask. Thresholding on raw red, green and blue values is sensitive to lighting, so engineers often convert to hue, saturation and value, where hue describes colour more independently of brightness. Choosing the threshold is a decision with consequences: set it too low and background is mislabelled as object, too high and parts of the object are missed.

Why it mattersA sorting machine can separate red and green objects on a conveyor with a well-chosen colour threshold.

Learn it

  1. 1Colour spaces and thresholdingComputational Engineering · Introduction to computer vision