float_img_to_uint8_img

ivy.float_img_to_uint8_img(x, f=None)[source]

Converts an image of floats into a bit-cast 4-channel image of uint8s, which can be saved to disk.

Parameters
  • x (array) – Input float image [batch_shape,h,w].

  • f (ml_framework, optional) – Machine learning library. Inferred from inputs if None.

Returns

The new encoded uint8 image [batch_shape,h,w,4] .


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty