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 applieddy (
float
) – y translation to be appliedcval (
float
) – value to replace the shifted values
- Return type:
ndarray
- Returns:
shifted image