Rotate

class Rotate(degrees: Float) : Operation<Bitmap, Bitmap>

This image preprocessor defines the Rotate operation.

It rotates the input Bitmap by degrees.

Constructors

Rotate
Link copied to clipboard
fun Rotate(degrees: Float = 0.0f)

Functions

apply
Link copied to clipboard
open override fun apply(input: Bitmap): Bitmap
getOutputShape
Link copied to clipboard
open override fun getOutputShape(inputShape: TensorShape): TensorShape

Properties

degrees
Link copied to clipboard
var degrees: Float = 0.0f

The rotation angle.