illuminationCorrection

lsst.ip.isr.illuminationCorrection(maskedImage, illumMaskedImage, illumScale, trimToFit=True)

Apply illumination correction in place.

Parameters:
maskedImagelsst.afw.image.MaskedImage

Image to process. The image is modified.

illumMaskedImagelsst.afw.image.MaskedImage

Illumination correction image of the same size as maskedImage.

illumScalescalar

Scale factor for the illumination correction.

trimToFitBool, optional

If True, raw data is symmetrically trimmed to match calibration size.

Raises:
RuntimeError

Raised if maskedImage and illumMaskedImage do not have the same size.