Image Thresholding

A bright seed on a dark tray gives us a first rule to try. Compare each pixel with a cutoff, keep the result as a mask, and inspect where that rule fails.

13 sections · 4 questions · 2 coding challenges

1 / 13

Finding a Cutoff Without Inspecting Every Pixel

BOTIE

Thresholding already offered a way to separate image regions, but choosing the cutoff by hand was another problem. Otsu's 1979 method chose a threshold from the intensity histogram by comparing the variation within the resulting groups. It was a method for selecting a threshold, not the invention of thresholding itself.

The useful intuition is to seek two reasonably compact intensity groups. That works only when intensity is a suitable way to separate the objects we care about. Shadows or similar foreground and background intensities can defeat a single global cutoff.

Sources for this history