lsst.afw g3a5ebb7d8a+28b83bf6a5
Loading...
Searching...
No Matches
lsst.afw.cameraGeom._assembleImage Namespace Reference

Classes

class  AmplifierIsolator

Functions

 _insertPixelChunk (outView, inView, amplifier)
 assembleAmplifierImage (destImage, rawImage, amplifier)
 assembleAmplifierRawImage (destImage, rawImage, amplifier)
 makeUpdatedDetector (ccd)

Variables

dict _SliceDict

Function Documentation

◆ _insertPixelChunk()

_insertPixelChunk ( outView,
inView,
amplifier )
protected

Definition at line 32 of file _assembleImage.py.

◆ assembleAmplifierImage()

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.cameraGeom.Amplifier`
    Amplifier geometry, with raw amplifier info.

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

Definition at line 51 of file _assembleImage.py.

◆ assembleAmplifierRawImage()

assembleAmplifierRawImage ( destImage,
rawImage,
amplifier )
Assemble the amplifier region of a raw CCD image.

For most cameras this is a no-op: the raw image already is an assembled
CCD image.
However, it is useful for camera such as LSST for which each amplifier
image is a separate image.

Parameters
----------
destImage : `lsst.afw.image.Image` or `lsst.afw.image.MaskedImage`
    CCD Image; the region amplifier.getRawAmplifier().getBBox()
    is overwritten with the raw amplifier image.
rawImage : `lsst.afw.image.Image` or `lsst.afw.image.MaskedImage`
    Raw image (same type as destImage).
amplifier : `lsst.afw.cameraGeom.Amplifier`
    Amplifier geometry with raw amplifier info

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

Definition at line 78 of file _assembleImage.py.

◆ makeUpdatedDetector()

makeUpdatedDetector ( ccd)
Return a Detector that has had the definitions of amplifier geometry
updated post assembly.

Parameters
----------
ccd : `lsst.afw.image.Detector`
    The detector to copy and update.

Definition at line 113 of file _assembleImage.py.

Variable Documentation

◆ _SliceDict

dict lsst.afw.cameraGeom._assembleImage._SliceDict
protected
Initial value:
= {
False: slice(None, None, 1),
True: slice(None, None, -1),
}

Definition at line 26 of file _assembleImage.py.