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 (numpy.ndarray) –
dx (float) – x translation to be applied
dy (float) – y translation to be applied
cval (float) – value to replace the shifted values
- Returns:
shifted image
- Return type:
numpy.ndarray