Resize

class Resize(outputWidth: Int, outputHeight: Int) : Operation<Bitmap, Bitmap>

This image preprocessor defines the Resize operation.

Resize operations creates new Bitmap with the following sizes:

Constructors

Resize
Link copied to clipboard
fun Resize(outputWidth: Int = 100, outputHeight: Int = 100)

Types

Companion
Link copied to clipboard
object Companion

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

outputHeight
Link copied to clipboard
var outputHeight: Int = 100

The output height.

outputWidth
Link copied to clipboard
var outputWidth: Int = 100

The output width.