exposureFromImage

lsst.obs.base.exposureFromImage(image, dataId=None, mapper=None, logger=None, setVisitInfo=True)

Generate an Exposure from an image-like object

If the image is a DecoratedImage then also set its WCS and metadata (Image and MaskedImage are missing the necessary metadata and Exposure already has those set)

Parameters:
image : Image-like object

Can be one of lsst.afw.image.DecoratedImage, Image, MaskedImage or Exposure.

Returns:
`lsst.afw.image.Exposure`

Exposure containing input image.