bebi103.image.rgb_to_rgba32

bebi103.image.rgb_to_rgba32(im, flip=True)

Convert an RGB image to a 32 bit-encoded RGBA image.

Parameters
  • im (ndarray, shape (nrows, ncolums, 3)) – Input image. All pixel values must be between 0 and 1.

  • flip (bool, default True) – If True, flip image so it displays right-side up. This is necessary because traditionally images have their 0,0 pixel index in the top left corner, and not the bottom left corner.

Returns

output – Image decoded as a 32 bit RBGA image.

Return type

ndarray, shape (nros, ncolumns), dtype np.uint32