imageTo3DFloatArray

fun imageTo3DFloatArray(image: BufferedImage, colorMode: ColorMode = ColorMode.BGR): Array<Array<FloatArray>>

Converts image with colorMode to the 3D array.

Return

a 3D array with the image in a format height x width x channels

Parameters

image

image to convert

colorMode

color mode used in the target array