Convert

class Convert(colorMode: ColorMode) : Operation<BufferedImage, BufferedImage>

Converts provided image to the desired ColorMode.

Constructors

Convert
Link copied to clipboard
fun Convert(colorMode: ColorMode = ColorMode.BGR)

Functions

apply
Link copied to clipboard
open override fun apply(input: BufferedImage): BufferedImage
getOutputShape
Link copied to clipboard
open override fun getOutputShape(inputShape: TensorShape): TensorShape

Takes result color mode into account when computing output shape.

Properties

colorMode
Link copied to clipboard
var colorMode: ColorMode

target color mode.