applyDcr¶
-
lsst.ip.diffim.
applyDcr
(image, dcr, useInverse=False, splitSubfilters=False, **kwargs)¶ Shift an image along the X and Y directions.
Parameters: - image :
numpy.ndarray
The input image to shift.
- dcr :
tuple
Shift calculated with
calculateDcr
. Uses numpy axes ordering (Y, X). IfsplitSubfilters
is set, each element is itself atuple
of twofloat
, corresponding to the DCR shift at the two wavelengths. Otherwise, each element is afloat
corresponding to the DCR shift at the effective wavelength of the subfilter.- useInverse :
bool
, optional Apply the shift in the opposite direction. Default: False
- splitSubfilters :
bool
, optional Calculate DCR for two evenly-spaced wavelengths in each subfilter, instead of at the midpoint. Default: False
- kwargs
Additional keyword parameters to pass in to
scipy.ndimage.interpolation.shift
Returns: - shiftedImage :
numpy.ndarray
A copy of the input image with the specified shift applied.
- image :