Companion
object Companion
Content copied to clipboard
Functions
getImage
Link copied to clipboard
fun getImage(inputStream: InputStream, imageType: String = "png"): BufferedImage
Content copied to clipboard
Returns BufferedImage extracted from inputStream with imageType.
imageTo3DFloatArray
Link copied to clipboard
fun imageTo3DFloatArray(image: BufferedImage, colorOrder: ColorOrder = ColorOrder.BGR): Array<Array<FloatArray>>
Content copied to clipboard
Converts image with colorOrder to the 3D array.
toBufferedImage
Link copied to clipboard
fun toBufferedImage(inputStream: InputStream, colorOrder: ColorOrder = ColorOrder.BGR): BufferedImage
Content copied to clipboard
toNormalizedFloatArray
Link copied to clipboard
fun toNormalizedFloatArray(imageFile: File, colorOrder: ColorOrder = ColorOrder.BGR): FloatArray
Content copied to clipboard
fun toNormalizedFloatArray(inputStream: InputStream, colorOrder: ColorOrder = ColorOrder.BGR): FloatArray
Content copied to clipboard
All pixels in range [0;1)
toRawFloatArray
Link copied to clipboard
fun toRawFloatArray(imageFile: File, colorOrder: ColorOrder = ColorOrder.BGR): FloatArray
Content copied to clipboard
fun toRawFloatArray(inputStream: InputStream, colorOrder: ColorOrder = ColorOrder.BGR): FloatArray
Content copied to clipboard
All pixels has values in range 0; 255.