ImagePreprocessorBase

abstract class ImagePreprocessorBase : ImagePreprocessor

Base class for ImagePreprocessor implementations. Allows to add additional features, such as saving output with ImageSaver.

Constructors

ImagePreprocessorBase
Link copied to clipboard
fun ImagePreprocessorBase()

Functions

apply
Link copied to clipboard
abstract fun apply(image: BufferedImage): BufferedImage

Transforms provided input image.

getOutputShape
Link copied to clipboard
open fun getOutputShape(inputShape: ImageShape): ImageShape

Computes output image shape for the provided inputShape. Note that some input dimensions could equal to null, which means that they are undefined. This is useful for the operations with fixed output size not dependent on the input size.

Inheritors

CenterCrop
Link copied to clipboard
Convert
Link copied to clipboard
Cropping
Link copied to clipboard
Padding
Link copied to clipboard
Resize
Link copied to clipboard
Rotate
Link copied to clipboard

Extensions

save
Link copied to clipboard
fun ImagePreprocessorBase.save(block: Save.() -> Unit)

Saves the result of the enclosing ImagePreprocessor to the specified location.