pydl.pydlutils
pydl.pydlutils.rgbcolor.
nw_float_to_byte
Converts an array of floats in [0.0, 1.0] to bytes in [0, 255].
image : ndarray
ndarray
Image to convert.
bits : int, optional
int
Number of bits in final image.
Converted image.