computeIntensity

lsst.afw.display.computeIntensity(imageR, imageG=None, imageB=None)

Return a naive total intensity from the red, blue, and green intensities

Parameters:
imageRlsst.afw.image.MaskedImage, lsst.afw.image.Image, or numpy.ndarray, (Nx, Ny)

intensity of image that’ll be mapped to red; or intensity if imageG and imageB are None

imageGlsst.afw.image.MaskedImage, lsst.afw.image.Image, or numpy.ndarray, (Nx, Ny)

intensity of image that’ll be mapped to green; or None

imageBlsst.afw.image.MaskedImage, lsst.afw.image.Image, or numpy.ndarray, (Nx, Ny)

intensity of image that’ll be mapped to blue; or None

Returns:
imagetype of imageR, imageG, and imageB`