illuminationCorrection

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

Apply illumination correction in place.

Parameters:
maskedImage : lsst.afw.image.MaskedImage

Image to process. The image is modified.

illumMaskedImage : lsst.afw.image.MaskedImage

Illumination correction image of the same size as maskedImage.

illumScale : scalar

Scale factor for the illumination correction.

trimToFit : Bool, 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.