ImagePreprocessing

class ImagePreprocessing

The whole image preprocessing pipeline DSL.

It supports operations that implement ImagePreprocessor, for example:

It's a part of the org.jetbrains.kotlinx.dl.dataset.preprocessor.Preprocessing pipeline DSL.

Constructors

ImagePreprocessing
Link copied to clipboard
fun ImagePreprocessing()

Functions

addOperation
Link copied to clipboard
fun addOperation(operation: ImagePreprocessor)

Adds a new operation to the operations.

Extensions

crop
Link copied to clipboard
fun ImagePreprocessing.crop(block: Cropping.() -> Unit)
resize
Link copied to clipboard
fun ImagePreprocessing.resize(block: Resize.() -> Unit)
rotate
Link copied to clipboard
fun ImagePreprocessing.rotate(block: Rotate.() -> Unit)