Package org.jetbrains.kotlinx.dl.impl.preprocessing.image
Types
This interface represents a custom transformation of a FloatArray.
This image preprocessor defines centerCrop operation. It crops the given image at the center. If the image size is smaller than the output size along any edge, the image is padded with 0 and then center cropped.
Converts provided image to the desired ColorMode.
Converts BufferedImage to float array representation.
This image preprocessor defines the Crop operation.
Helper object with methods to convert BufferedImage to FloatArray.
When an image is resized, we need an interpolation algorithm to draw newly created pixels between old pixels.
This image preprocessor defines the Pad operation.
Type of padding to use.
The speed of single file preprocessing could be tuned via this setting.
This image preprocessor defines the Resize operation.
This image preprocessor defines the Rotate operation.
Functions
Decodes an ARGB8888 encoded pixel array to a float array containing the red, green, blue components in NCWH layout.
Decodes an ARGB8888 encoded pixel array to a float array containing the red, green, blue components in NHWC layout.
Applies CenterCrop operation to crop the image at the center.
Decodes an ARGB8888 encoded pixel to a red, green, blue components.
Applies Convert operation to convert the image to ColorMode.GRAYSCALE.
Returns an integer representing a type of BufferedImage corresponding to this color mode.
Applies ConvertToFloatArray operation to convert the image to a float array.