View source on GitHub |
Perform shear operation on an image (x-axis).
tfa.image.shear_x(
image: tfa.types.TensorLike
,
level: float,
replace: tfa.types.TensorLike
) -> tfa.types.TensorLike
Args | |
---|---|
image
|
A 3D image Tensor .
|
level
|
A float denoting shear element along y-axis |
replace
|
A one or three value 1D tensor to fill empty pixels. |
Returns | |
---|---|
Transformed image along X or Y axis, with space outside image filled with replace. |