toNormalizedFloatArray
Converts image to FloatArray and scales the values, so they would fit into the [0, 1)
range.
Return
FloatArray with pixel values in the [0, 1)
range
Parameters
image to convert
color mode to convert the image to. null
value keeps the original color mode.
Reads the image from inputStream, converts it to FloatArray and scales the values, so they would fit into the [0, 1)
range.
Return
FloatArray with pixel values in the [0, 1)
range
Parameters
source of the image to convert
color mode to convert the image to. null
value keeps the original color mode.
Reads the image from imageFile, converts it to FloatArray and scales the values, so they would fit into the [0, 1)
range.
Return
FloatArray with pixel values in the [0, 1)
range
Parameters
source of the image to convert
color mode to convert the image to. null
value keeps the original color mode.