medianSmoothTemplates

lsst.meas.deblender.medianSmoothTemplates(debResult, log, medianFilterHalfsize=2)

Applying median smoothing filter to the template images for every peak in every filter.

Parameters:
debResult: `lsst.meas.deblender.baseline.DeblenderResult`

Container for the final deblender results.

log: `log.Log`

LSST logger for logging purposes.

medianFilterHalfSize: `int`, optional

Half the box size of the median filter, i.e. a medianFilterHalfSize of 50 means that each output pixel will be the median of the pixels in a 101 x 101-pixel box in the input image. This parameter is only used when medianSmoothTemplate==True, otherwise it is ignored.

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.