tomwer.core.utils.image.shift_img#

tomwer.core.utils.image.shift_img(data, dx, dy, cval=0.0, use_scipy=True)#

Apply simple 2d image shift in ‘constant mode’.

Parameters:
  • data (ndarray) –

  • dx (float) – x translation to be applied

  • dy (float) – y translation to be applied

  • cval (float) – value to replace the shifted values

Return type:

ndarray

Returns:

shifted image