assembleAmplifierImage

lsst.afw.cameraGeom.assembleAmplifierImage(destImage, rawImage, amplifier)

Assemble the amplifier region of an image from a raw image.

Parameters:
destImage : lsst.afw.image.Image or lsst.afw.image.MaskedImage

Assembled image; the region amplifier.getBBox() is overwritten with the assembled amplifier image.

rawImage : lsst.afw.image.Image or lsst.afw.image.MaskedImage

Raw image (same type as destImage).

amplifier : lsst.afw.table.AmpInfoRecord

Amplifier geometry, with raw amplifier info.

Raises:
RuntimeError

Raised if image types do not match or amplifier has no raw amplifier info.