Our current implementation of the temporary local background approach to avoiding spurious detections near bright objects simply subtracts a local background from the full image before performing any detection steps. That can result in missed isolated-object detections and incorrect Footprints for large objects.
Instead, we should:
1. Detect Footprints and Peaks.
2. Subtract the local background.
3. Detect Peaks within each Footprint again, and use the new set of Peaks instead of the old set if and only if there is at least one Peak in the new set.
This really ought to be fixed before the HSC internal release or major HSC processing at NCSA.