ImageCenterCrop

Center crops an image to a square of the specified size.

Usage

val centerCrop = ImageCenterCrop(224)
val cropped = centerCrop.apply(originalImage)

Parameters

size

The size of the output square (width and height)

Constructors

Link copied to clipboard
constructor(size: Int)

Properties

Link copied to clipboard
val size: Int

Functions

Link copied to clipboard
open override fun apply(input: PlatformBitmapImage): PlatformBitmapImage

Applies this transformation to the given input.

Link copied to clipboard
open override fun getOutputShape(inputShape: Shape): Shape

Computes the output shape that would result from applying this transform to data with the given input shape.

Link copied to clipboard
open override fun toString(): String