"""Warm-region ("bubble") test against how close the orbs are, drone video, distinct pictures only. For every DISTINCT picture (the slowed replay 108.8-121.3 s is excluded: it repeats 103.7-106.2 s): 1. heat S = 2*palette-heat + brightness; per stretch, the screen-fixed pattern (median of the stretch with plane, orbs and trail masked) is removed. 2. plane centre and size W (its bounding-box width) from the detections. 3. NEAR = mean S in a ring 0.6W-1.5W around the plane, FAR = ring 2.2W-3.5W; plane, orbs (dilated) and the plane's own wake/nose (a +/-25 deg sector along its long axis, both ends) are excluded from both. signal = NEAR - FAR (warmer close to the plane than further out). 4. orb closeness = mean orb distance from the plane centre in units of W; also the number of orbs within 1.5W. Within each stretch the signal is compared between pictures with the orbs close and far (stretch effects removed), with a bootstrap over pictures. Usage: python -I bubble_dose.py