ImagePreprocessor

interface ImagePreprocessor

Basic interface for image preprocessors. It operates on BufferedImage.

When implementing a new ImagePreprocessor it is recommended to use ImagePreprocessorBase as a base class to automatically add additional features such as saving preprocessor output.

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.

Inheritors

ImagePreprocessorBase
Link copied to clipboard