edifice.extra.numpy_image.NumpyArray_to_QImage#

edifice.extra.numpy_image.NumpyArray_to_QImage(arr)[source]#

Function to convert numpy arrays into QImages.

The provided array should have a shape of:

  • (height, width)

  • (height, width, 1)

  • (height, width, 3)

  • (height, width, 4)

Parameters:

arr (Union[ndarray[Any, dtype[uint8]], NumpyArray[uint8]]) –

One of:

Return type:

QImage

Returns:

A QImage.