Package org.jetbrains.kotlinx.dl.dataset.image

Types

ArrayTransform
Link copied to clipboard
fun interface ArrayTransform

This interface represents a custom transformation of a FloatArray.

ColorMode
Link copied to clipboard
enum ColorMode : Enum<ColorMode>

Represents the number and order of color channels in the image.

ImageConverter
Link copied to clipboard
object ImageConverter

Helper object with methods to convert BufferedImage to FloatArray.

Functions

denormalizeInplace
Link copied to clipboard
fun denormalizeInplace(input: FloatArray, scale: Float): FloatArray

Each array element of an input is multiplied in-place by scale coefficient.

imageType
Link copied to clipboard
fun ColorMode.imageType(): Int

Returns an integer representing a type of BufferedImage corresponding to this color mode.