img_translate_xy: Translate xy dims

Description Usage Arguments Value Raises

Description

Translates image in X or Y dimension.

Usage

1
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.


tfaddons documentation built on July 2, 2020, 2:12 a.m.