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.