Image layers

Layer

Description

BilinearResize

Resize image with bilinear interpolation

CompositeImageTransformation

Rotate a image clockwise around its center, then shear , then translate

Rotation

Rotate a image clockwise around its center


BilinearResize

The BilinearResize layer resizes image with bilinear interpolation

Expects a 3D input tensor, which is interpreted as an image in CHW format. Gradients are not propagated during backprop.

Arguments:

height

(int64) Output image height

width

(int64) Output image width

Back to Top


CompositeImageTransformation

The CompositeImageTransformation layer rotates an image clockwise around its center, then shear, then translate.

Expects 4 inputs: a 3D image tensor in CHW format, a scalar rotation angle, a tensor for (X,Y) shear factor, a tensor for (X,Y) translate.

Arguments: None

Back to Top


Rotation

The Rotation layer rotates an image clockwise around its center.

Expects two inputs: a 3D image tensor in CHW format and a scalar rotation angle.

Arguments: None

Back to Top