net = Σ(signal) − median(surrounding ring) × area, where signal is 255−brightness for dark bands
and brightness for bright ones. Polarity is detected from each image, so nothing to set.
Rotated boxes sample the original pixels directly — the image is never rotated, so no interpolation changes a value.
Lanes are numbered by x position, not click order. A box edge turns red where it cuts through the band.