Every camera sensor delivers shades of gray. Every vision pipeline eventually needs a clean yes/no decision: is this pixel foreground or background? That step is called binarization, and it demands a single number — a threshold — that splits the 256 possible brightness levels into two groups.
Pick too low and the background bleeds into your foreground. Pick it too high and fine details vanish. For decades, engineers set by eye. In 1979, Nobuyuki Otsu published a one-page paper that made the choice automatic and optimal: scan the histogram once, find the that maximizes the variance between the two resulting classes, and you are done.
The method is still the default in OpenCV, ImageJ, and every other serious imaging library today — not because nothing better exists for special cases, but because it works remarkably well on the enormous range of problems where foreground and background differ in brightness.
Comments
Loading comments...