Multi-object IoU field: each anchor is colored by its best match across all ground-truth boxes; bottom strip is the live bestIoU histogram.

Anchor Box IoU Field & Multi-Object Assignment (2D)

This 2D companion to the 3D anchor-box simulator keeps the exact same governing rule — Intersection-over-Union between an anchor rectangle and a ground-truth rectangle — but computes it independently for the situation real detectors are actually trained on: multiple objects scattered across one image simultaneously. Every anchor's IoU is evaluated against every ground-truth box, each anchor is labeled from whichever object it overlaps best, and a per-object best-match guarantee ensures that even a small or oddly-shaped object still receives at least one positive anchor, exactly as SSD, RetinaNet and Faster R-CNN's region-proposal network enforce it. A live histogram beneath the grid plots the full distribution of best-IoU values across the anchor population — a view the single-object 3D scene has no room to show — while a running "objects matched" readout confirms the guarantee holds at 100% no matter how the grid resolution, anchor scale or thresholds are tuned.