This is documentation for an old release of SciPy (version 0.7.). Read this page Search for this page in the documentation of the latest stable release (version 1.15.1).
scipy.stsci.image.translate
-
scipy.stsci.image.translate(a, sdx, sdy, output=None, mode='nearest', cval=0.0)
translate performs a translation of ‘a’ by (sdx, sdy)
storing the result in ‘output’.
sdx, sdy are float values.
- supported ‘mode’s include:
- ‘nearest’ elements beyond boundary come from nearest edge pixel.
‘wrap’ elements beyond boundary come from the opposite array edge.
‘reflect’ elements beyond boundary come from reflection on same array edge.
‘constant’ elements beyond boundary are set to ‘cval’