ImageConverter
Helper object with methods to convert BufferedImage to FloatArray.
See also
for a list of supported image types.
Functions
Converts inputArray of type FloatArray to BufferedImage with outputShape provided.
Converts inputArray of type FloatArray to BufferedImage with width and height provided.
Converts inputArray of type FloatArray to BufferedImage with width and height provided. If a custom arrayTransform is needed, lambda or ArrayTransform can be provided.
Given a float array representing an image, swaps red and green channels in it.
Returns BufferedImage extracted from file.
Returns BufferedImage extracted from inputStream.
Converts image to FloatArray and scales the values, so they would fit into the [0, 1)
range.
Reads the image from imageFile, converts it to FloatArray and scales the values, so they would fit into the [0, 1)
range.
Reads the image from inputStream, converts it to FloatArray and scales the values, so they would fit into the [0, 1)
range.
Converts image to FloatArray without normalization.
Reads the image from imageFile and converts it to FloatArray without normalization.
Reads the image from inputStream and converts it to FloatArray without normalization.