clipFootprintsToNonzero#

lsst.meas.deblender.clipFootprintsToNonzero(debResult, log)#

Clip non-zero spans in the template footprints for every peak in each filter.

Peak Footprints are clipped to the region in the image containing non-zero values by dropping spans that are completely zero and moving endpoints to non-zero pixels (but does not split spans that have internal zeros).

Parameters#

debResult: lsst.meas.deblender.baseline.DeblenderResult

Container for the final deblender results.

log: lsst.log.Logger or lsst.utils.logging.LsstLogAdapter

LSST logger for logging purposes.

Returns#

modified: bool

Whether or not any templates were modified. This will be True as long as there is at least one source that is not flagged as a PSF.