Translates image in X or Y dimension.

img_translate_xy(image, translate_to, replace)

Arguments

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.

Value

Translated image along X or Y axis, with space outside image filled with replace. Raises: ValueError: if axis is neither 0 nor 1.

Raises

ValueError: if axis is neither 0 nor 1.