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’