Warning: This project is deprecated. TensorFlow Addons has stopped development, The project will only be providing minimal maintenance releases until May 2024. See the full announcement here or on github.


Translates image in X or Y dimension.

image A 3D image Tensor.
translate_to A 1D Tensor to translate [x, y].
replace A one or three value 1D Tensor to fill empty pixels.

Translated image along X or Y axis, with space outside image filled with replace.

ValueError if axis is neither 0 nor 1.