Image layers
Layer |
Description |
---|---|
Resize image with bilinear interpolation |
|
Rotate a image clockwise around its center, then shear , then translate |
|
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
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
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